Skip to content

Conversation

@bsbodden
Copy link
Collaborator

…torRangeQuery

Issue #373 requested adding sortBy support to VectorQuery and VectorRangeQuery. Investigation reveals this feature is already fully implemented:

Implementation:

  • VectorQuery: sortBy() and sortDescending() methods (lines 817-831)
  • VectorRangeQuery: sortBy() and sortDescending() methods (lines 367-381)
  • SearchIndex.searchWithSort() applies sorting via Jedis (lines 1360-1399)
  • Sorting parameters properly passed through query execution pipeline

Test Coverage:

  • QuerySortingIntegrationTest with 4 passing tests
  • testSortVectorQuery: ascending sort verification
  • testSortVectorQueryDescending: descending sort verification
  • testSortVectorRangeQuery: range query sorting
  • testSortFilterQueryAlreadyWorks: baseline comparison

Changes:

  • Removed outdated test comments claiming methods don't exist
  • No implementation changes needed

Tests: 282 passed, 14 skipped (API keys)

Closes #373 - feature already complete with full test coverage

…torRangeQuery

Issue #373 requested adding sortBy support to VectorQuery and
VectorRangeQuery. Investigation reveals this feature is already fully
implemented:

Implementation:
- VectorQuery: sortBy() and sortDescending() methods (lines 817-831)
- VectorRangeQuery: sortBy() and sortDescending() methods (lines 367-381)
- SearchIndex.searchWithSort() applies sorting via Jedis (lines 1360-1399)
- Sorting parameters properly passed through query execution pipeline

Test Coverage:
- QuerySortingIntegrationTest with 4 passing tests
- testSortVectorQuery: ascending sort verification
- testSortVectorQueryDescending: descending sort verification
- testSortVectorRangeQuery: range query sorting
- testSortFilterQueryAlreadyWorks: baseline comparison

Changes:
- Removed outdated test comments claiming methods don't exist
- No implementation changes needed

Tests: 282 passed, 14 skipped (API keys)

Closes #373 - feature already complete with full test coverage
@bsbodden bsbodden merged commit 93835a3 into main Oct 22, 2025
4 checks passed
@bsbodden bsbodden deleted the bsb/multi_field_sorting_fix branch October 22, 2025 19:55
@bsbodden bsbodden self-assigned this Oct 23, 2025
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.

2 participants