Skip to content

Fix mislabeled range filters with scripted fields#4708

Closed
lukasolson wants to merge 1 commit intoelastic:masterfrom
lukasolson:4696-mislabeled-script-range-filter
Closed

Fix mislabeled range filters with scripted fields#4708
lukasolson wants to merge 1 commit intoelastic:masterfrom
lukasolson:4696-mislabeled-script-range-filter

Conversation

@lukasolson
Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor Author

Hold off on this for now.

@lukasolson
Copy link
Copy Markdown
Contributor 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