Any news?
Remember:
If I add the following line to the schema.xml, even if I do a search
'title:"test" OR author:"me"', it will returns documents matching
'title:"test" AND author:"me"':
<solrQueryParser defaultOperator="AND"/>
kr,
Bast
On 22/04/2016 13:22, Bastien Latard - MDPI AG wrote:
Yes Jan, I'm using edismax.
This is (a part of) my requestHandler:
<requestHandler name="/select" class="solr.SearchHandler">
<lst name="defaults">
<str name="indent">false</str>
<str name="echoParams">explicit</str>
<int name="rows">10</int>
<str name="df">title,abstract,authors,doi</str>
<str name="defType">edismax</str>
<str name="qf">title^1.0 author^1.0</str>
[...]
Is there anything I should do to improve/fix it?
Kind regards,
Bastien
On 22/04/2016 12:42, Jan Høydahl wrote:
Hi
Which query parser are you using? If using edismax yo may be hitting
a recent bug concerning default operator and explicit boolean operators.
--
Jan Høydahl, search solution architect
Cominvent AS - www.cominvent.com
22. apr. 2016 kl. 11.26 skrev Bastien Latard - MDPI AG
<lat...@mdpi.com.INVALID>:
Hi guys,
How can I set the defaultOperator to be AND?
If I add the following line to the schema.xml, even if I do a search
'title:"test" OR author:"me"', it will returns documents matching
'title:"test" AND author:"me"':
<solrQueryParser defaultOperator="AND"/>
solr version: 6.0
I know that I can overwrite the query with q.op, but this is not
that convenient...
I would need to write a complex query for a simple search '(a:x AND
b:y) OR c:z'
Kind regards,
Bastien Latard
Web engineer
--
MDPI AG
Postfach, CH-4005 Basel, Switzerland
Office: Klybeckstrasse 64, CH-4057
Tel. +41 61 683 77 35
Fax: +41 61 302 89 18
E-mail:
lat...@mdpi.com
http://www.mdpi.com/
Kind regards,
Bastien Latard
Web engineer
Kind regards,
Bastien Latard
Web engineer
--
MDPI AG
Postfach, CH-4005 Basel, Switzerland
Office: Klybeckstrasse 64, CH-4057
Tel. +41 61 683 77 35
Fax: +41 61 302 89 18
E-mail:
lat...@mdpi.com
http://www.mdpi.com/