Hi !
I'd like to make ES to find only docs matching all query words, but
not necessarily in the same order, so match_phrase is not what i'm looking
for.
Is there a query option doing that, or should i use minimum_should_match to
100% ?
Thanks for your help
--
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/77778c9d-8b82-44a0-9931-ced02666a185%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi,
I think a simple match query with operator AND should do what you want!
Cheers,
David
On Tuesday, February 24, 2015 at 12:09:14 PM UTC+1, Christophe Rosko wrote:
Hi !
I'd like to make ES to find only docs matching all query words, but
not necessarily in the same order, so match_phrase is not what i'm looking
for.
Is there a query option doing that, or should i use minimum_should_match
to 100% ?
Thanks for your help
--
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/137574b1-034b-45ee-bf88-8073f3c0efec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi David,
I finally got what I wanted with this query :
$es_query = array(
'match' => array(
'_all' => array(
'query' => 'word1 word2 word3',
'minimum_should_match' => '100%'
)
)
);
But maybe this not the best way to do it.
How do you do that with AND operator ? I didn't find an example in the
documentation.
Thanks for your help, maybe my problem is stupid but i'm very new to ES.
Le mardi 24 février 2015 12:09:14 UTC+1, Christophe Rosko a écrit :
Hi !
I'd like to make ES to find only docs matching all query words, but
not necessarily in the same order, so match_phrase is not what i'm looking
for.
Is there a query option doing that, or should i use minimum_should_match
to 100% ?
Thanks for your help
--
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/5b456423-7120-4840-aab5-d9a14625adc4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.