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

Introduce strategy or query for exact querying of text fields #53020

Closed
costin opened this issue Mar 2, 2020 · 2 comments
Closed

Introduce strategy or query for exact querying of text fields #53020

costin opened this issue Mar 2, 2020 · 2 comments
Labels
:Analytics/EQL EQL querying :Analytics/SQL SQL querying :Search/Search Search-related issues that do not fall into other categories Team:QL (Deprecated) Meta label for query languages team Team:Search Meta label for search team team-discuss

Comments

@costin
Copy link
Member

costin commented Mar 2, 2020

In languages implemented on top of Elasticsearch, exact matching on text field (non-exact fields) is problematic since the match can happen in a non exact fashion (e.g. a text field with value "an apple" can match "apple").

Examples of said discussions are mentioned are #52709 and a strategy for coping with this (falling back to keyword for aggregations and exact comparisons, in SQL, is documented here.

As different languages across the stack (KQL, EQL, SQL) have to deal with this issue, it's worth investigating whether having a generalized approach or even better, support for said strategy in Elasticsearch itself is desirable.

@costin costin added :Search/Search Search-related issues that do not fall into other categories :Analytics/SQL SQL querying team-discuss :Analytics/EQL EQL querying labels Mar 2, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search (:Search/Search)

jrodewig added a commit that referenced this issue Apr 23, 2020
Adds a important admonition to the EQL syntax page noting that
the equal (`==`) operator should not be used to match `text` field
values.

Relates to #52709 and #53020
jrodewig added a commit that referenced this issue Apr 23, 2020
…55670)

Adds a important admonition to the EQL syntax page noting that
the equal (`==`) operator should not be used to match `text` field
values.

Relates to #52709 and #53020
@rjernst rjernst added Team:QL (Deprecated) Meta label for query languages team Team:Search Meta label for search team labels May 4, 2020
@mayya-sharipova
Copy link
Contributor

We had a discussion within the search team, and have decided the following:

I am closing this issue as we don't plan to introduce any generalized approach on ES side. There will NO be special exact_match query. Please reopen if there is a plan to do something general for query languages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Analytics/EQL EQL querying :Analytics/SQL SQL querying :Search/Search Search-related issues that do not fall into other categories Team:QL (Deprecated) Meta label for query languages team Team:Search Meta label for search team team-discuss
Projects
None yet
Development

No branches or pull requests

4 participants