Skip to content

feat(query): allow unordered vector and full-text search results - #5328

Merged
BubbleCal merged 4 commits into
mainfrom
feat/ordered-search-results
Dec 1, 2026
Merged

BubbleCal merged 4 commits into
mainfrom
feat/ordered-search-results

Conversation

@BubbleCal

@BubbleCal BubbleCal commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Callers that consume every selected hit can relax the final output order with ordered_results(false) in Rust, ordered_results(False) in Python, or orderedResults(false) in TypeScript. Ranked output remains the default. The option preserves top-k selection, each hit’s score and projected columns, and the existing rules for ties at the cutoff.

Embedded passes eligible queries to the Lance scanner. Enterprise sends "ordered": false for eligible searches and omits the field by default. Explicit sorting, positive offsets, batch vector queries and inputs to hybrid fusion or reranking keep their existing order.

Validation

A managed Linux preview passed 8 Rust wire cases, 4 Embedded Python cases, 10 HTTP mock cases and all 52 TypeScript query tests. The preview used a candidate Lance revision. Project CI on this PR validates the integration with the official Lance v16.0.0-beta.6.

Uses the official Lance dependency from #5327, now merged into main.

@github-actions github-actions Bot added enhancement New feature or request Python Python SDK Rust Rust related issues labels Dec 1, 2026
Base automatically changed from codex/update-lance-16-0-0-beta-6 to main December 1, 2026 10:49
@BubbleCal
BubbleCal force-pushed the feat/ordered-search-results branch from 7b4bf33 to d55697a Compare December 1, 2026 10:51
@BubbleCal
BubbleCal marked this pull request as ready for review December 1, 2026 10:51

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Claude Code Review

This repository is configured for manual code reviews. Comment @claude review for a one-time review, or @claude review always to subscribe this PR to a review on every future push.

Tip: disable this comment in your organization's Code Review settings.

lancedb-gatekeeper[bot]

This comment was marked as outdated.

@lancedb-gatekeeper lancedb-gatekeeper Bot added the K-changes Latest Gatekeeper recommendation requests changes. label Dec 1, 2026
@lancedb-gatekeeper lancedb-gatekeeper Bot removed the K-changes Latest Gatekeeper recommendation requests changes. label Dec 1, 2026

@lancedb-gatekeeper lancedb-gatekeeper Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

✅ Gate recommendation: approve.

The FTS reranking fix addresses the previous finding. Ranked candidates are preserved through SDK reranking, while eligible standalone searches can relax delivery order. The Rust documentation examples have also been added.

@lancedb-gatekeeper lancedb-gatekeeper Bot added K-approved Latest Gatekeeper recommendation permits acceptance. and removed K-approved Latest Gatekeeper recommendation permits acceptance. labels Dec 1, 2026
@BubbleCal
BubbleCal merged commit 155457d into main Dec 1, 2026
65 of 67 checks passed
@BubbleCal
BubbleCal deleted the feat/ordered-search-results branch December 1, 2026 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request K-approved Latest Gatekeeper recommendation permits acceptance. Python Python SDK Rust Rust related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants