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 scripted aggregation. Which can
like implement any custom aggregation logic.
Hope these might help in your use case.
Thanks
Vineeth
On Thu, Oct 2, 2014 at 5:06 AM, Klaus Brunner <[email protected]>
wrote:
> 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 sort
> of custom score explanation, or even another "score" (if you need multiple
> dimensions perhaps).
>
> So far, I haven't found any way of doing this. Search scripts simply
> return a float. There doesn't seem to be anything like a "search context"
> to decorate the returned results, at least not in the way I need it.
>
> Any other ideas?
>
> Thanks
>
> Klaus
>
> --
> 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/13e8367f-a2e6-4d70-8d7e-3e153200281a%40googlegroups.com
> <https://groups.google.com/d/msgid/elasticsearch/13e8367f-a2e6-4d70-8d7e-3e153200281a%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/CAGdPd5ksO3L9iePjWm2dg%3DFj_-RJeG%2BdJMEg2fPi6BMZKY4rBQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.