Result the number of matched terms for a given result

(Dan Harvey) #1


Is it possible to get elasticsearch to return the number of terms matched
per result in a query. I know these are evaluated as they make up the score
but there doesn't seem to be a way to get a simple count?

For example with :query => {:in => {:user_ids => [user_ids...],
:minimum_should_match => 1}}

I would like to know how many user_ids were matched.


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

(system) #2