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

Fix existence queries for nested fields #5581

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

rdettai
Copy link
Contributor

@rdettai rdettai commented Dec 10, 2024

Description

Closes #5560

How was this PR tested?

Describe how you tested this PR.

@rdettai rdettai self-assigned this Dec 10, 2024
expected:
hits:
total:
# one of the docs contains `"payload":{}`
Copy link
Contributor

Choose a reason for hiding this comment

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

did you run this test against elasticsearch too locally?

Copy link
Contributor

Choose a reason for hiding this comment

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

in particular is {} considered not having the value? Is this true in elastic and in quickwit? Both for fast field and indexed field path?

Copy link
Contributor Author

@rdettai rdettai Dec 11, 2024

Choose a reason for hiding this comment

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

yes, I ran this test against Elastic. That's how I got the 99 value and discovered that there is a {} and that it is considered has not having a value in Elastic

Copy link
Contributor

Choose a reason for hiding this comment

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

I thnk you are the first dev to actually run those tests against elastic too :) thx

@rdettai rdettai marked this pull request as ready for review December 17, 2024 16:13
@rdettai rdettai force-pushed the nested-field-presence branch 2 times, most recently from 2efa1ed to b986963 Compare December 17, 2024 21:31
@rdettai rdettai requested a review from fulmicoton December 17, 2024 21:46
@rdettai rdettai force-pushed the nested-field-presence branch from b986963 to 749f03b Compare December 17, 2024 21: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.

Existence queries unable to match nested object fields
2 participants