Skip to content

Add query-time search params and typed scroll cursors#29

Open
srimon12 wants to merge 1 commit into
pavanjava:mainfrom
srimon12:feat/python-sync-gaps
Open

Add query-time search params and typed scroll cursors#29
srimon12 wants to merge 1 commit into
pavanjava:mainfrom
srimon12:feat/python-sync-gaps

Conversation

@srimon12
Copy link
Copy Markdown
Collaborator

Summary

This PR syncs the Python implementation with the Go binary for three already-closed gaps:

  • WITH support for indexed_only and quantization search params
  • boolean filter literals in predicates and IN lists
  • native SCROLL next_offset type preservation

Changes

  • Extended Python SearchWith parsing/execution to support:
    • indexed_only
    • quantization: { ignore, rescore, oversampling }
  • Allowed boolean literals like true and false in filter comparisons and IN / NOT IN
  • Stopped coercing SCROLL next_offset values to strings
  • Forwarded search params consistently in sparse-only search
  • Updated docs and help text to match the new behavior

Validation

Ran:

  • pytest tests/test_parser.py -q
  • pytest tests/test_executor.py -q
  • pytest tests -q

Result:

  • 521 passed

Why

These were already fixed in the Go implementation but still open in Python. This PR removes that behavior drift before we move on to higher-priority work like native MMR.

…eries

- Introduced `indexed_only` and `quantization` options in the `WITH` clause for search statements.
- Updated relevant documentation to reflect new search capabilities.
- Enhanced parser and executor to handle new parameters.
- Added tests to ensure correct functionality of new features.
@srimon12 srimon12 requested a review from pavanjava May 15, 2026 16:51
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