Hi ,
Its doable from here -
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-function-score-query.html#_script_score
Thanks
Vineeth
On Tue, Jul 29, 2014 at 7:53 AM, Maxime Nay <[email protected]> wrote:
> Hi,
>
> I am trying to sort using a script sort.
> My script would look like: _score * doc['someField'].value
> When I submit the query I am getting: unresolvable property or identifier:
> _score
>
> Is it not possible to use the score in a script sort?
>
> Thanks!
>
> --
> You received this message because you are subscribed to the Google Groups
> "elasticsearch" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elasticsearch/89f52074-c2c5-4e35-a779-0e0aeb567931%40googlegroups.com
> <https://groups.google.com/d/msgid/elasticsearch/89f52074-c2c5-4e35-a779-0e0aeb567931%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/CAGdPd5kqbZL4yLgZDXRXo4D7_g0m%2BkV%2BXepZGrE6FrLdBJav8Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.