Re: Getting more than just a score out of a search script

2014-10-03 Thread vineeth mohan
Hello Klaus , What i had in mind was , whenever you want to see the result with a particular flag , apply the filter and see the result. The good thing here is the filter result is cached and is not made again and hence you should find closer performance. Thanks Vineeth On Fri, Oct

Re: Getting more than just a score out of a search script

2014-10-03 Thread Tanguy Leroux
You may have a look at the "script_fields" feature: it allows to return one or more script evaluation for each hit (but you can't use the score here). If you want to compute multiple scores for the same set of results, you can try to execute multiple function score queries with a custom "script

Re: Getting more than just a score out of a search script

2014-10-02 Thread Klaus Brunner
Hi Vineeth, thanks for the hints, but I'm not sure I understand how this would help. A filter script would allow me to remove documents from the next phase and thus the result set, but there seems to be no way to annotate the results, unless I'm missing something obvious here? What I'm really

Re: Getting more than just a score out of a search script

2014-10-02 Thread vineeth mohan
Hello Klaus , For document flagging or similar feature , you can use script filter with caching to achieve something close to it - http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-script-filter.html#query-dsl-script-filter Also in ES 1.4.0 , there is support for scr

Getting more than just a score out of a search script

2014-10-02 Thread Klaus Brunner
We're making extensive use of custom scoring (implemented in Java). One of the problems we've encountered is that we'd love to get not just the score, but other data that result from the score function out of Elasticsearch. For example, this could be a flag marking certain documents, or some sor