Are there any ways to perform post-processing on aggregation results with
elasticsearch version 1.4.4?
My scenario is as follows: for every document of type X, we want to find
out how many of its nested documents matches specific criteria, which are
divided into buckets with the filters aggregation.
For example: see https://gist.github.com/mwdchang/067c64097589d6983ed3
However we want to score/sort the documents based on how many nested
documents are matched in each bucket, with different weightings.
For example: score = buckets.doc_count * 0.2 + buckets.doc_count *
0.7 + buckets.doc_count * 0.1
I don't think this can be done inside a scripted field, as our filters
criteria may reference other documents per
We also have close to 13 million documents so we would like to avoid
bringing the post processing to client side.
Any help or advice would be appreciated.
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 firstname.lastname@example.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/68d23f54-9f72-4337-bbaa-589f2c07f316%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.