Skip to content

[backport] PR #8642 to 5.x - Scripted fields must reference values via params when filtering#8675

Merged
stacey-gammon merged 1 commit into5.xfrom
jasper/backport/8642/5.x
Oct 13, 2016
Merged

[backport] PR #8642 to 5.x - Scripted fields must reference values via params when filtering#8675
stacey-gammon merged 1 commit into5.xfrom
jasper/backport/8642/5.x

Conversation

@elastic-jasper
Copy link
Contributor

Backport PR #8642

Commit 1:
Fix our request to ES for filtering on scripted fields

Need to use params.value instead of value.

Fixes #8404

Add params prefix in another spot for painless scripted fields

Fix date histogram with scripted fields

Remove format: epoch_millis so the script compiles. I am not 100%
confident of the side affect from this (it’s used for non-scripted
fields, but I’m not sure where I would put it for scripted fields, or
if it’s needed). At any rate, it appears that formatting settings for
scripted fields is still being honored, even after removing it from
params.

---------

**Commit 1:**
Fix our request to ES for filtering on scripted fields

Need to use params.value instead of value.

Fixes #8404

Add params prefix in another spot for painless scripted fields

Fix date histogram with scripted fields

Remove format: epoch_millis so the script compiles.  I am not 100%
confident of the side affect from this (it’s used for non-scripted
fields, but I’m not sure where I would put it for scripted fields, or
if it’s needed).  At any rate, it appears that formatting settings for
scripted fields is still being honored, even after removing it from
params.

* Original sha: 7cdb74d
* Authored by Stacey Gammon <gammon@elastic.co> on 2016-10-12T14:54:23Z
@elastic-jasper elastic-jasper added the backport This PR is a backport of another PR label Oct 13, 2016
@stacey-gammon stacey-gammon merged commit e080b85 into 5.x Oct 13, 2016
@stacey-gammon stacey-gammon deleted the jasper/backport/8642/5.x branch October 13, 2016 23:37
@epixa epixa changed the title [backport] PR #8642 to 5.x [backport] PR #8642 to 5.x - Scripted fields must reference values via params when filtering Oct 14, 2016
airow pushed a commit to airow/kibana that referenced this pull request Feb 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants