Searching with multiple tokens in the query

I would like to be able to search for multiple tokens at once. Currently it
is only matching the entire query. However, I would like to search each
query individually as well so if my query string is "quick brown fox" I
will get documents matching the whole string but also document that may
have only one or two of the keywords, regardless of order.

What is the best way to accomplish this?

--
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.

On Mon, 2013-02-11 at 19:07 -0800, Dave Lee wrote:

I would like to be able to search for multiple tokens at once.
Currently it is only matching the entire query. However, I would like
to search each query individually as well so if my query string is
"quick brown fox" I will get documents matching the whole string but
also document that may have only one or two of the keywords,
regardless of order.

Use a "match" query.

clint

--
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.