ElasticSearch also returns queries

Dear All, I use ES to query "TermA OR TermB", and get a lot of results. I
wonder how to configure ES so that I can figure out which results contain "
TermA" only, which contain "TermB" only, and which contain "TermA" and
"TermB".

Wei

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

May be the MultiSearch API could help here?

--
David :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 2 juil. 2013 à 21:46, Wei Sun sunwei317@gmail.com a écrit :

Dear All, I use ES to query "TermA OR TermB", and get a lot of results. I wonder how to configure ES so that I can figure out which results contain " TermA" only, which contain "TermB" only, and which contain "TermA" and "TermB".

Wei

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.

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

You can run multiple queries, even on the same search request as David
mentioned using the multi search apihttp://www.elasticsearch.org/guide/reference/api/multi-search/.
You could also have a look at named filtershttp://www.elasticsearch.org/guide/reference/api/search/named-filters/:
you can basically assing a name to each filter and get back for each hit
which filters it matched.

On Wednesday, July 3, 2013 12:23:10 AM UTC+2, David Pilato wrote:

May be the MultiSearch API could help here?

--
David :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 2 juil. 2013 à 21:46, Wei Sun <sunw...@gmail.com <javascript:>> a
écrit :

Dear All, I use ES to query "TermA OR TermB", and get a lot of results. I
wonder how to configure ES so that I can figure out which results contain "
TermA" only, which contain "TermB" only, and which contain "TermA" and
"TermB".

Wei

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

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

Thank you, David and Luca!

wei

On Tuesday, July 2, 2013 3:46:45 PM UTC-4, Wei Sun wrote:

Dear All, I use ES to query "TermA OR TermB", and get a lot of results. I
wonder how to configure ES so that I can figure out which results contain "
TermA" only, which contain "TermB" only, and which contain "TermA" and
"TermB".

Wei

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