refactor: drop VectorQuery, unify single-target query on SearchQuery#428
Merged
zhourrr merged 2 commits intoMay 29, 2026
Merged
Conversation
41a9da5 to
85cefc1
Compare
85cefc1 to
27dea57
Compare
zhourrr
reviewed
May 29, 2026
chinaux
reviewed
May 29, 2026
zhourrr
reviewed
May 29, 2026
zhourrr
reviewed
May 29, 2026
zhourrr
reviewed
May 29, 2026
zhourrr
reviewed
May 29, 2026
zhourrr
reviewed
May 29, 2026
egolearner
added a commit
to egolearner/zvec
that referenced
this pull request
May 29, 2026
Adapt FTS to the query-model refactor from alibaba#428/alibaba#405 on main: - VectorQuery is replaced by SearchQuery + QueryTarget (variant<VectorClause, FtsClause>) - Fold FTS validation into SearchQuery::validate_and_sanitize - c_api / python binding read & write FTS via FtsClause and target_.clause_ - Add QueryTarget::get_fts_clause() helper, replacing raw std::get_if calls - Migrate FTS tests to the new model; drop the vector/fts mutual-exclusion case that no longer applies under the variant
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.
Extract query types from doc.h into a new src/include/zvec/db/query.h and introduce VectorClause / FtsClause / QueryTarget / SearchQuery as the unified query API.