lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emir Arnautovic <emir.arnauto...@sematext.com>
Subject Re: solr BooleanClauses issue with space
Date Wed, 13 Jan 2016 15:05:13 GMT
Hi Sara,
You can run your query (or smaller one) with debugQuery=true and see how 
it is rewritten.

Thanks,
Emir

On 13.01.2016 16:01, sara hajili wrote:
> tnx.
> and my main question is about maxBooleanDefault in solr config.
> it is 1024 by default.
> and i have a edismax query with about 500 words in this way:
> q1= str1 OR str2 OR str3 ...OR strn
> it throws exception that cant't parse query too boolean clause.
> so if i changed maxBooleanDefault to 1500 it works
> but some thing is ambiguous for me is when i don;t change maxBooleanDefault
> and it remains 1024.
> but i changed query in this way
> q2 = str1 str2 str3 ... strn // i eliminated OR between for and inside space
> i didn't get exception !!!
> why?!
> what is diffrence between q1 an q2??
>
> On Wed, Jan 13, 2016 at 6:28 AM, Shawn Heisey <apache@elyograg.org> wrote:
>
>> On 1/13/2016 5:40 AM, sara hajili wrote:
>>> what is exactly diffrence between sapce and OR in solr query  ?
>>> i mean what is diffrence  between
>>> q = solr OR lucene OR search
>>> and this
>>> q = solr lucene search?
>>>
>>> solr default boolean occurence is OR,isn't it?
>> This depends on what the default operator is.  The default for the
>> default operator is OR, and that would produce exactly the same results
>> for both of the queries you have mentioned.  If the default operator is
>> AND, then those two queries would be different.
>>
>> The default operator applies to the lucene and edismax parsers.  The
>> lucene parser is Solr's default.  In older versions, the default
>> operator could be set by a defaultOperator parameter.  I do not remember
>> whether that was in solrconfig or schema.  That parameter is deprecated
>> and the q.op parameter should be used now.
>>
>> Thanks,
>> Shawn
>>
>>

-- 
Monitoring * Alerting * Anomaly Detection * Centralized Log Management
Solr & Elasticsearch Support * http://sematext.com/


Mime
View raw message