How to default to an implicit AND operator for QueryStringQueryBuilder?


(Shane Witbeck) #1

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


(Shay Banon) #2

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'?

https://gist.github.com/1680419

Thanks


(Shane Witbeck) #3

Awesome. Thanks again Shay


(medcl.net) #4

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'?

https://gist.github.com/1680419

Thanks


(system) #5