Skip to content

Feature/sortby implementation#618

Merged
allenss-amazon merged 27 commits intovalkey-io:mainfrom
Bit-Quill:feature/sortby-implementation
Feb 11, 2026
Merged

Feature/sortby implementation#618
allenss-amazon merged 27 commits intovalkey-io:mainfrom
Bit-Quill:feature/sortby-implementation

Conversation

@AlexFilipImproving
Copy link
Copy Markdown
Collaborator

Implementation of SORTBY on FT.SEARCH
Please check the conversation in Bit-Quill#1 first

@AlexFilipImproving AlexFilipImproving force-pushed the feature/sortby-implementation branch from 3a35723 to 645bb26 Compare January 19, 2026 16:16
Comment thread src/commands/ft_search_parser.h Outdated
Comment on lines 40 to 44
// By default, FT.SEARCH does not require complete results and can optimized
// with LIMIT based trimming.
// TODO: When SORTBY or similar clauses are supported, implement the correct
// logic here to return true when those clauses are present.
bool RequiresCompleteResults() const override { return false; }
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we ensure that each Search Operation (SEARCH / AGGREGATE) correctly reports if it needs complete results or not? If sorting is needed, this API needs to reflect it

Signed-off-by: Alexandru Filip <alexandru.filip@improving.com>
@AlexFilipImproving AlexFilipImproving force-pushed the feature/sortby-implementation branch from 8defc22 to 62f13e1 Compare January 28, 2026 20:02
Signed-off-by: Alexandru Filip <alexandru.filip@improving.com>
Signed-off-by: Alexandru Filip <alexandru.filip@improving.com>
Signed-off-by: Alexandru Filip <alexandru.filip@improving.com>
Signed-off-by: Alexandru Filip <alexandru.filip@improving.com>
Signed-off-by: Alexandru Filip <alexandru.filip@improving.com>
Signed-off-by: Alexandru Filip <alexandru.filip@improving.com>
@KarthikSubbarao KarthikSubbarao added the 1.2-rc1-blocker Blocker for 1.2's RC1 label Feb 5, 2026
Signed-off-by: Alexandru Filip <alexandru.filip@improving.com>
Signed-off-by: Alexandru Filip <alexandru.filip@improving.com>
@KarthikSubbarao
Copy link
Copy Markdown
Member

Can we add SORTBY and LIMIT integration tests to TestNonVector?

Signed-off-by: Alexandru Filip <alexandru.filip@improving.com>
Signed-off-by: Alexandru Filip <alexandru.filip@improving.com>
Signed-off-by: Alexandru Filip <alexandru.filip@improving.com>
Signed-off-by: Alexandru Filip <alexandru.filip@improving.com>
Signed-off-by: Alexandru Filip <alexandru.filip@improving.com>
Signed-off-by: Alexandru Filip <alexandru.filip@improving.com>
Signed-off-by: Alexandru Filip <alexandru.filip@improving.com>
Signed-off-by: Alexandru Filip <alexandru.filip@improving.com>
Signed-off-by: Alexandru Filip <alexandru.filip@improving.com>
@AlexFilipImproving AlexFilipImproving force-pushed the feature/sortby-implementation branch from 4967cc2 to 20106f2 Compare February 9, 2026 16:22
Signed-off-by: Alexandru Filip <alexandru.filip@improving.com>
Signed-off-by: Alexandru Filip <alexandru.filip@improving.com>
Signed-off-by: Alexandru Filip <alexandru.filip@improving.com>
Signed-off-by: Alexandru Filip <alexandru.filip@improving.com>
@allenss-amazon allenss-amazon merged commit 9b29188 into valkey-io:main Feb 11, 2026
9 checks passed
@github-project-automation github-project-automation Bot moved this from Backlog to Done in Valkey-search 1.2 Feb 11, 2026
boda26 pushed a commit to boda26/valkey-search that referenced this pull request Feb 12, 2026
Implementation of `SORTBY` on `FT.SEARCH`
Please check the conversation in
Bit-Quill#1 first

---------

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

1.2-rc1-blocker Blocker for 1.2's RC1

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[FEATURE] Implement SORTBY option for FT.SEARCH command

3 participants