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

Use keyword field for term query and terms agg #107

Conversation

danielmitterdorfer
Copy link
Member

With this commit we use the keyword subfield in the geonames track for
the term query and aggregations that aggregate on terms. While the
terms aggregation produces correct results on a text field, the term
query does not return any results (which is unintended).

With this commit we use the keyword subfield in the `geonames` track for
the `term` query and aggregations that aggregate on terms. While the
terms aggregation produces correct results on a `text` field, the `term`
query does not return any results (which is unintended).
Copy link

@hub-cap hub-cap left a comment

Choose a reason for hiding this comment

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

Wow good catch!

@danielmitterdorfer danielmitterdorfer merged commit 8a5617e into elastic:master Mar 13, 2020
@danielmitterdorfer danielmitterdorfer deleted the use-keyword-for-term-like-queries branch March 13, 2020 07:00
@danielmitterdorfer
Copy link
Member Author

Thank you for the review!

danielmitterdorfer added a commit that referenced this pull request Mar 13, 2020
With this commit we use the keyword subfield in the `geonames` track for
the `term` query and aggregations that aggregate on terms. While the
terms aggregation produces correct results on a `text` field, the `term`
query does not return any results (which is unintended).
danielmitterdorfer added a commit that referenced this pull request Mar 13, 2020
With this commit we use the keyword subfield in the `geonames` track for
the `term` query and aggregations that aggregate on terms. While the
terms aggregation produces correct results on a `text` field, the `term`
query does not return any results (which is unintended).
danielmitterdorfer added a commit that referenced this pull request Mar 13, 2020
With this commit we use the keyword subfield in the `geonames` track for
the `term` query and aggregations that aggregate on terms. While the
terms aggregation produces correct results on a `text` field, the `term`
query does not return any results (which is unintended).
danielmitterdorfer added a commit that referenced this pull request Mar 13, 2020
With this commit we use the keyword subfield in the `geonames` track for
the `term` query and aggregations that aggregate on terms. While the
terms aggregation produces correct results on a `text` field, the `term`
query does not return any results (which is unintended).
danielmitterdorfer added a commit that referenced this pull request Mar 13, 2020
With this commit we use the keyword subfield in the `geonames` track for
the `term` query and aggregations that aggregate on terms. While the
terms aggregation produces correct results on a `text` field, the `term`
query does not return any results (which is unintended).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants