Elastic search should

the should filter is working for some word and not working for others..
_search{"from":"0","size":"10","query":{"bool":{"should":[{"term":{"name":"soliloquy"}},{"term":{"location":"soliloquy"}}]}}}

this query should be doing or but I am not getting exactly how this query
goes

--
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, Feb 4, 2013 at 1:13 PM, Jayshree Bhongle jayshreeb@fermion.inwrote:

the should filter is working for some word and not working for others..

_search{"from":"0","size":"10","query":{"bool":{"should":[{"term":{"name":"soliloquy"}},{"term":{"location":"soliloquy"}}]}}}

this query should be doing or but I am not getting exactly how this query
goes

Right, it should do a sort of "or". Because you have no "must", one or more
"should" clauses need to match. And you can change that with
minimum_number_should_match.

If things still don't work as they should, could you provide a curl
recreation of your problem?

Best regards,
Radu

http://sematext.com/ -- Elasticsearch -- Solr -- Lucene

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