Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(QueryParser): add support for patterns like "field:*". #2513

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

LebranceBW
Copy link
Contributor

ChangeLog

  • Add entries in LogicalLiteral and LogicalAst to support ExistsQuery pattern.

));
return (None, errors);
}
if !json_path.is_empty() && field_type.is_json() {
Copy link
Contributor

@trinity-1686a trinity-1686a Nov 12, 2024

Choose a reason for hiding this comment

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

i think this condition is wrong. it generates an error when the json path contains something and the field is json. It should error when there is a path, but the field isn't json (and maybe when there is no path and we're on a json field, i don't remember off hand if tantivy allows things at the root of a json field. I'll edit this comment after verifying)
edit: we don't support putting values at the root of a json field currently, so either it's a json field and there must be a path, or it isn't and there mustn't (though the error messages should likely differ)

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