Custom Scoring in ElasticSearch


I have a list of terms and I want to submit a TermsQuery for a document
corpus for a field that is multi-valued.

When I get the set of matching results, I want to make sure that I use my
own logic for scoring so that the Top N reflects my view of which documents
should be top rated.

Is there a plugin, a scripting function, or a built-in method to achieve

My custom scoring function will look at a few aspects like determining
which terms in the input are more important than the rest and what size of
the document should be matched first, whether my list of terms is a
complete subset of a document and if that document has other terms or not,

Please let me know! 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
To view this discussion on the web visit
For more options, visit