Result the number of matched terms for a given result


(Dan Harvey) #1

Hi,

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.

Thanks,
Dan

--
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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/b5cd6753-f166-4ae5-8c61-844650efa859%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(system) #2