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

Fix mislabeled range filters with scripted fields #4708

Conversation

lukasolson
Copy link
Member

Closes #4696.

When you create a filter from a histogram or range on a scripted field, the label comes out as scripted_field: "".

This was happening because there is different logic when creating a filter for a scripted field vs. a regular field. A regular field will result in filter.range being set, while a scripted field will result in filter.script.params being set, but not filter.range as with normal fields. So, when the filter is read and mapped, only the filter.range property was being checked (there was no additional logic for scripted fields). This PR addresses it by checking filter.script.params for the associated range fields.

@lukasolson
Copy link
Member Author

Hold off on this for now.

@lukasolson
Copy link
Member Author

Superseded by #4751.

@lukasolson lukasolson closed this Aug 25, 2015
@lukasolson lukasolson deleted the 4696-mislabeled-script-range-filter branch February 11, 2016 18:22
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