lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <erickerick...@gmail.com>
Subject Re: Clarification on +, and in edismax parser
Date Thu, 10 Mar 2016 19:53:38 GMT
Here's a _very_ useful explanation of why the query syntax isn't pure Boolean:
https://lucidworks.com/blog/2011/12/28/why-not-and-or-and-not/

Best,
Erick

On Thu, Mar 10, 2016 at 12:30 AM, Anil <anilklce@gmail.com> wrote:
> Thank you Dikshant.
>
> On 10 March 2016 at 13:26, Dikshant Shahi <contactsahi@gmail.com> wrote:
>
>> Hi,
>>
>> No, + and "and" doesn't works similar. Even "and" and "AND" would have a
>> different behavior (is configurable) in edismax.
>>
>> When you put a + before a term, you specify that it's mandatory. Hence,
>> "+google +india" will get you the same result as "google AND india".
>>
>> Best Regards,
>> *Dikshant Shahi*
>>
>>
>>
>> On Thu, Mar 10, 2016 at 12:59 PM, Anil <anilklce@gmail.com> wrote:
>>
>> >  "google"+"india" ,  "india"+"google" returning different results. Any
>> help
>> > would be appreciated.
>> >
>> > Thanks,
>> > Anil
>> >
>> >
>> > On 10 March 2016 at 11:47, Anil <anilklce@gmail.com> wrote:
>> >
>> > > HI,
>> > >
>> > > I am using edismax query parser for my solr search.
>> > >
>> > > i believe '+' and 'and' should work similar.
>> > >
>> > > ex : "google"+"india", "google" and "india" should return same number
>> of
>> > > results.
>> > >
>> > > Correct me if I am wrong. Thanks.
>> > >
>> > > Regards,
>> > > Anil
>> > >
>> > >
>> > >
>> >
>>

Mime
View raw message