Given the following QueryStringQueryBuilder, where there is more than one
term being passed, it defaults to doing something 'termA OR termB'. How can
I change it to default to '+termA AND +termB'?
Thanks
Given the following QueryStringQueryBuilder, where there is more than one
term being passed, it defaults to doing something 'termA OR termB'. How can
I change it to default to '+termA AND +termB'?
Thanks
defaultOperator
On Thursday, January 26, 2012 at 3:57 AM, Shane Witbeck wrote:
Given the following QueryStringQueryBuilder, where there is more than one term being passed, it defaults to doing something 'termA OR termB'. How can I change it to default to '+termA AND +termB'?
Thanks
Awesome. Thanks again Shay
Try to set the parameter:
"default_operator" to "AND"
在 2012-1-26 上午9:57,"Shane Witbeck" shane@digitalsanctum.com写道:
Given the following QueryStringQueryBuilder, where there is more than one
term being passed, it defaults to doing something 'termA OR termB'. How can
I change it to default to '+termA AND +termB'?Thanks
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.