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 elmerfudd <na...@012.net.il> on 2013/11/28 17:49:53 UTC

Solr query syntax.

Is solr ignoring parts of the query that dont consider fields.
something like
and(blabla , name: "george")

It wont throw an exeption, so what is he considering "blablabla" to?




--
View this message in context: http://lucene.472066.n3.nabble.com/Solr-query-syntax-tp4103784.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Solr query syntax.

Posted by Jack Krupansky <ja...@basetechnology.com>.
The edismax (ExtendedDisMax) query parser is the best, overall. There are 
other specialized query parsers with features that edismax does not have 
(e.g., surround for span queries, and complex phrase for wildcards in 
phrases.)

-- Jack Krupansky

-----Original Message----- 
From: elmerfudd
Sent: Monday, December 02, 2013 3:17 AM
To: solr-user@lucene.apache.org
Subject: Re: Solr query syntax.

Im using the default qparser that come with solr 4.4 , Is there anything
better?



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Solr-query-syntax-tp4103784p4104344.html
Sent from the Solr - User mailing list archive at Nabble.com. 


Re: Solr query syntax.

Posted by Ahmet Arslan <io...@yahoo.com>.
Hi,

Choice of query parser depends on your needs. I am just surprised that you used prefix notation in your example. 
Default query parser syntax for and(blabla , name: "george")  is q=blabla AND name:george
Term blabla (which does not consider field) parsed against default search field. Default field is set via df parameter.
https://cwiki.apache.org/confluence/display/solr/The+Standard+Query+Parser  




On Monday, December 2, 2013 10:17 AM, elmerfudd <na...@012.net.il> wrote:
 
Im using the default qparser that come with solr 4.4 , Is there anything
better?



--
View this message in context: http://lucene.472066.n3.nabble.com/Solr-query-syntax-tp4103784p4104344.html

Sent from the Solr - User mailing list archive at Nabble.com.

Re: Solr query syntax.

Posted by elmerfudd <na...@012.net.il>.
Im using the default qparser that come with solr 4.4 , Is there anything
better?



--
View this message in context: http://lucene.472066.n3.nabble.com/Solr-query-syntax-tp4103784p4104344.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Solr query syntax.

Posted by Ahmet Arslan <io...@yahoo.com>.
Hi,

No it does not ignore. &debugQuery=on shows actual parsed query.
By the way default query parser does not support prefix AND(a, b, c) notation.
Which query parser are you using?





On Thursday, November 28, 2013 6:50 PM, elmerfudd <na...@012.net.il> wrote:
Is solr ignoring parts of the query that dont consider fields.
something like
and(blabla , name: "george")

It wont throw an exeption, so what is he considering "blablabla" to?




--
View this message in context: http://lucene.472066.n3.nabble.com/Solr-query-syntax-tp4103784.html
Sent from the Solr - User mailing list archive at Nabble.com.