Skip to content

Disable fielddata use for analyzed strings #309

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

Closed
wants to merge 1 commit into from

Conversation

pickypg
Copy link
Contributor

@pickypg pickypg commented Nov 18, 2015

By default, users should not be sorting, aggregating, or scripting against the analyzed string variant of fields. Instead, users should do those things against the .raw multifield variant.

This will prevent the use of significant_terms aggregation against the associated field, which will be undesirable in rare cases. Given the rarity of that need, I would much rather have those users manually enable fielddata explicitly for the field (it is dynamically updatable!).

Closes #308

By default, users should not be sorting, aggregating, or scripting against the analyzed string variant of fields. Instead, users should do those things against the `.raw` multifield variant.

This _will_ prevent the use of `significant_terms` aggregation against the associated field, which will be undesirable in rare cases. Given the rarity of that need, I would much rather have those users manually enable fielddata explicitly for the field (it is dynamically updatable!).
@elasticsearch-release
Copy link

Jenkins standing by to test this. If you aren't a maintainer, you can ignore this comment. Someone with commit access, please review this and clear it for Jenkins to run; then say 'jenkins, test it'.

@untergeek
Copy link
Contributor

LGTM™

@pickypg thanks for adding this! This is a great addition, which I presume comes from your experience in supporting Elasticsearch. 👍

@pickypg
Copy link
Contributor Author

pickypg commented Nov 18, 2015

which I presume comes from your experience in supporting Elasticsearch.

Indeed! :)

@elasticsearch-bot
Copy link

Merged sucessfully into master!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants