
Thanks.
From: nik9000@gmail.com
Date: Mon, 23 Sep 2013 16:54:02 -0400
Subject: Re: Query String_Query and default operator
To: elasticsearch@googlegroups.com
Look here: http://www.elasticsearch.org/guide/reference/query-dsl/query-string-query/
It is called default_operator.
Nik
On Mon, Sep 23, 2013 at 4:48 PM, R Ashwin Sathya ashwin.sathya@outlook.com wrote:
Hi,
If I provide a direct query_string query as "foo bar" ( without the quotes), it gets treated as "foo" OR "bar". Is it possible to change this default behavior. I want it to be defaulted to "foo" AND "bar".
Looking up at Lucene, it looks like it is configured by,
https://lucene.apache.org/core/4_1_0/queryparser/org/apache/lucene/queryparser/classic/QueryParserBase.html#setDefaultOperator(org.apache.lucene.queryparser.classic.QueryParser.Operator)
Is there a way that I can configure it when running elastic search ??
--
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 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.