You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Tom Mortimer <to...@gmail.com> on 2013/11/06 19:46:34 UTC

eDisMax and Boolean operator case-sensitivity

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

Posted by Tom Mortimer <to...@gmail.com>.
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 <so...@elyograg.org> 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
>
>

Re: eDisMax and Boolean operator case-sensitivity

Posted by Shawn Heisey <so...@elyograg.org>.
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