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

allow querying non existing fields #5308

Merged
merged 4 commits into from
Aug 30, 2024
Merged

Conversation

trinity-1686a
Copy link
Contributor

Description

fix #5302
the spec around update is a bit odd: we can search inside deleted fields (validation is okay with inexistant field, and mapping the query per-split actually find the field for older splits), but we don't return these fields

How was this PR tested?

updated ut, added it

Copy link

github-actions bot commented Aug 8, 2024

On SSD:

Average search latency is 1.0x that of the reference (lower is better).
Ref run id: 3133, ref commit: 489c9d6
Link

On GCS:

Average search latency is 1.04x that of the reference (lower is better).
Ref run id: 3134, ref commit: 489c9d6
Link

@trinity-1686a
Copy link
Contributor Author

we may make so we accept query on non-existing field only when lenient is true. This is different from what ES does, but there seems to be a consensus among us that what ES does here is not a behaviour we like (being too lenient by default)

@fulmicoton fulmicoton requested review from fulmicoton and removed request for fmassot August 30, 2024 13:19
@@ -45,8 +45,8 @@ pub(crate) struct MatchQueryParams {
// Regardless of this option Quickwit behaves in elasticsearch definition of
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you edit the comment?

#[serde(default, rename = "lenient")]
_lenient: bool,
#[serde(default)]
lenient: bool,
Copy link
Contributor

Choose a reason for hiding this comment

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

same as for match query. we need to edit the comment.

@@ -99,6 +105,7 @@ fn convert_user_input_ast_to_query_ast(
user_input_ast: UserInputAst,
Copy link
Contributor

Choose a reason for hiding this comment

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

can you add some short documentation for this method?

@trinity-1686a trinity-1686a enabled auto-merge (squash) August 30, 2024 15:42
@trinity-1686a trinity-1686a merged commit d684b92 into main Aug 30, 2024
5 checks passed
@trinity-1686a trinity-1686a deleted the trinity/ignore-unknown-field branch August 30, 2024 15:55
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.

Quickwit Should Ignore Field queries with a mismatch type
3 participants