-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Missing doc.score documentation #7712
Comments
The score for the current document can be accessed by a script using the _score variable which is equivalent to doc.score. This is the preferred way of accessing the score and is documented at http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/modules-scripting.html#_score |
Hello @colings86 ES script - 1.3.2 I am not able to access this field in aggs scripts - Works { gives - QueryPhaseExecutionException[[twitter][2]: query[ConstantScore(:)],from[0],size[10]: Query Failed [Failed to execute main query]]; nested: PropertyAccessException[[Error: unresolvable property or identifier: _score] [Near : {... _score ....}] ^ [Line: 1, Column: 1]]; |
@Vineeth-Mohan it works in groovy, not mvel (which is deprecated) |
I found the variable doc.score very useful but then it don't have documentation in http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/modules-scripting.html , but it has documentation in http://www.elasticsearch.cn/guide/reference/modules/scripting.html .
Kindly add this information.
The text was updated successfully, but these errors were encountered: