eDisMax and Boolean operator case-sensitivity

2013-11-06 Thread Tom Mortimer
Hi,

I'm using eDisMax query parser, and need to support Boolean operators AND
and OR. It seems from testing that these are *not* case sensitive, e.g.
setting mm to 0, "oscar AND wilde" returns the same results as "oscar and
wilde" (15 hits) while "oscar foo wilde" returns the same results as "oscar
wilde" (2000 hits).

Is it possible to configure eDisMax to do case-sensitive parsing, so that
"AND" is an operator but "and" is just another term?

thanks,
Tom


Re: eDisMax and Boolean operator case-sensitivity

2013-11-06 Thread Shawn Heisey

On 11/6/2013 11:46 AM, Tom Mortimer wrote:

I'm using eDisMax query parser, and need to support Boolean operators AND
and OR. It seems from testing that these are *not* case sensitive, e.g.
setting mm to 0, "oscar AND wilde" returns the same results as "oscar and
wilde" (15 hits) while "oscar foo wilde" returns the same results as "oscar
wilde" (2000 hits).

Is it possible to configure eDisMax to do case-sensitive parsing, so that
"AND" is an operator but "and" is just another term?


Include another query parameter: lowercaseOperators=false

http://wiki.apache.org/solr/ExtendedDisMax#lowercaseOperators

Thanks,
Shawn



Re: eDisMax and Boolean operator case-sensitivity

2013-11-06 Thread Tom Mortimer
Oh, good grief - I was just reading that page, how did I miss that? *derp*

Thanks Shawn!!!

Tom


On 6 November 2013 18:59, Shawn Heisey  wrote:

> On 11/6/2013 11:46 AM, Tom Mortimer wrote:
>
>> I'm using eDisMax query parser, and need to support Boolean operators AND
>> and OR. It seems from testing that these are *not* case sensitive, e.g.
>>
>> setting mm to 0, "oscar AND wilde" returns the same results as "oscar and
>> wilde" (15 hits) while "oscar foo wilde" returns the same results as
>> "oscar
>> wilde" (2000 hits).
>>
>> Is it possible to configure eDisMax to do case-sensitive parsing, so that
>> "AND" is an operator but "and" is just another term?
>>
>
> Include another query parameter: lowercaseOperators=false
>
> http://wiki.apache.org/solr/ExtendedDisMax#lowercaseOperators
>
> Thanks,
> Shawn
>
>