Distinct Keywords Search Order

Is it possible in elastic search to sort the search results by the distinct
keyword I search for;

So if I searched for "boat","House" and "cat"

i want the results ordered by the records which first contain all 3
keywords, then those which contain 2 keywords then those which contain a
single keyword.

Regards
Shawn

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

In other words i would like on the number of occurrence in the SHOULD
clause of the query.

On Wednesday, 13 February 2013 16:24:25 UTC+1, Shawn Ritchie wrote:

Is it possible in Elasticsearch to sort the search results by the
distinct keyword I search for;

So if I searched for "boat","House" and "cat"

i want the results ordered by the records which first contain all 3
keywords, then those which contain 2 keywords then those which contain a
single keyword.

Regards
Shawn

--
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.
For more options, visit https://groups.google.com/groups/opt_out.