Conversation
…sh get, etc) for painless. but i have no clue how to test it, it seems this feature never worked via REST? Should we drop the feature instead?
|
Seems a lot of the docs were out of date here. I have concerns this feature is actually used... |
|
@rmuir and I spoke offline and the examples seem to be outdated in current master but work in 2.x so at least that is resolved. The question why we have this special value is still open and if we can / should move away from it? |
|
Right thats the thing, we should optimize for common cases. This PR optimizes this It was my understanding that this is how scripts interact with aggregations. So if this is true, then I want things to be performant, and i want the syntax to be easy. |
|
LGTM on the Painless portion. |
|
LGTM too |
|
LGTM. Let's move forward. |
|
@rmuir this feature works in 5.0.0-alpha2 and in master: There are two forms of scripts here: One where you don't specify the |
The confusion here was caused by the 5.0 docs not having I think we can fix the docs side, I would like to convert them all to painless anyway and also make them use the special notation so they are tested. |
|
ah ok - thanks for the explanation |
this makes aggregations per-document _value fast (bypass hash put, hash get, etc) for painless.
but i have no clue how to test it, it seems this feature never worked via REST? If i try to pass
scriptat all, terms aggregation says GFY.Should we drop the feature instead? Did it ever work????
@clintongormley @s1monw
Some guidance please, I'm kinda frustrated. I just want to make this stuff fast.