Skip to content

docs: add array value documentation for search expressions#444

Open
AlexFilipImproving wants to merge 4 commits into
valkey-io:mainfrom
AlexFilipImproving:feature/array-value-docs
Open

docs: add array value documentation for search expressions#444
AlexFilipImproving wants to merge 4 commits into
valkey-io:mainfrom
AlexFilipImproving:feature/array-value-docs

Conversation

@AlexFilipImproving
Copy link
Copy Markdown
Contributor

Summary

Adds documentation for array values in the search expressions topic and the TOLIST reducer in FT.AGGREGATE.

Changes

  • topics/search-expressions.md: New "Array Values" section covering:
    • Producing arrays via TOLIST reducer
    • Element-wise scalar functions
    • Array arithmetic (element-wise and scalar broadcast)
    • Array-specific functions (vectorlen, vectorat, isvector, makevector, flatten)
    • Error handling messages
    • RESP serialization behavior
  • commands/ft.aggregate.md: Added TOLIST reducer to the reducer functions table

Signed-off-by: Alexandru Filip <alexandru.filip@improving.com>
Signed-off-by: Alexandru Filip <alexandru.filip@improving.com>
…behavior

Remove element-wise operations, array-specific functions, and broadcasting.
Arrays now return errors/nil/nan when passed to scalar functions or arithmetic,
matching RediSearch behavior.

Signed-off-by: Alexandru Filip <alexandru.filip@improving.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant