Repository navigation
feat(index): enable flattened JSON queries - #5
Open
wirybeaver wants to merge 1 commit into
Open
wirybeaver wants to merge 1 commit into
wirybeaver wants to merge 1 commit into
Conversation
wirybeaver
force-pushed
the
json-flat-query-semantics
branch
from
November 1, 2026 06:24
ed8e209 to
8412042
Compare
wirybeaver
force-pushed
the
json-flat-query-semantics
branch
from
November 1, 2026 21:27
8412042 to
8aa75c8
Compare
wirybeaver
changed the base branch from
json-memwal-subdocs
to
json-index-writer
November 1, 2026 21:27
wirybeaver
force-pushed
the
json-flat-query-semantics
branch
from
November 1, 2026 21:40
8aa75c8 to
8ced7d6
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
JSON queries need the same array-element boundaries in flat scans and indexed search. This completes the query path in #7445 on top of the write path, then enables flattened mode for new JSON indices.
Modification
A single AND Match query checks its terms within one sub-document. Separate Boolean clauses combine source rows. Both search paths keep the best score per row before applying the result limit.
Array positions remain exact during fuzzy value matching. Tokenization errors reach the caller, and combined-fields scoring rejects flattened JSON because it cannot preserve these constraints.
Test
Dataset tests compare nested-object matching with row-level Boolean composition across indexed and appended fragments. They also cover exact and wildcard paths, fuzzy positions, and rejection of combined-fields queries. The Python JSON integration test uses the new wildcard syntax.