Skip to content

Conversation

@maowerner
Copy link
Contributor

With the type of status defined as keyword in https://github.com/codingexplained/complete-guide-to-elasticsearch/blame/master/Aggregations/introduction-to-aggregations.md#L31, the field status.keyword is not defined and the queries yield empty buckets.

The proposed changes use the keyword field as intended. Alternatively the mapping could be adjusted. The associated lecture is contains the same error.

With the type of `status` defined as `keyword` in https://github.com/codingexplained/complete-guide-to-elasticsearch/blame/master/Aggregations/introduction-to-aggregations.md#L31, the field `status.keyword` is not defined and the queries yield empty buckets. 

The proposed changes use the keyword field as intended. Alternatively the mapping could be adjusted. The associated lecture is contains the same error.
@ba0708 ba0708 merged commit 04031ba into codingexplained:master Jul 9, 2020
@ba0708
Copy link
Contributor

ba0708 commented Jul 9, 2020

Oh boy, I broke that myself in this commit: 0c0367f#diff-0cf563da0d9b90165fcd0c1fad6b658a. Apparently I forgot that the status field was of the keyword type and not mapped with dynamic mapping.

Thanks for the PR again, @maowerner, I appreciate it! 🙏

@maowerner maowerner deleted the patch-1 branch July 9, 2020 16:53
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.

2 participants