-
Notifications
You must be signed in to change notification settings - Fork 25k
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
[feature/semantic-text] Add query and model compatibility tests #107256
[feature/semantic-text] Add query and model compatibility tests #107256
Conversation
…antic-text-add-query-tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @carlosdelest
- match: { hits.total.value: 2 } | ||
- match: { hits.total.relation: eq } | ||
- match: { hits.hits.0.inner_hits.dense_field\.inference\.chunks.hits.total.value: 2 } | ||
- exists: hits.hits.0.inner_hits.dense_field\.inference\.chunks.hits.hits.0.fields.dense_field\.inference\.chunks.0.text |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should be able to match the exact text of the chunk?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- match: { hits.total.value: 2 } | ||
- match: { hits.total.relation: eq } | ||
- match: { hits.hits.0.inner_hits.sparse_field\.inference\.chunks.hits.total.value: 2 } | ||
- exists: hits.hits.0.inner_hits.sparse_field\.inference\.chunks.hits.hits.0.fields.sparse_field\.inference\.chunks.0.text |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here?
4d24bf0
into
elastic:feature/semantic-text
Add queries that showcase using nested queries for performing search without the need for
semantic_query
.