Yes.  

See http://wiki.apache.org/solr/SolrQuerySyntax  - The standard Solr Query 
Parser syntax is a superset of the Lucene Query Parser syntax.
Which links to http://lucene.apache.org/core/3_6_0/queryparsersyntax.html 

Note - Based on the info on these pages I believe the "+" symbol is to be 
placed just before the mandatory value, not before the field name in the query.

Matt Kuiper
Intelligent Software Solutions

-----Original Message-----
From: G.Long [mailto:jde...@gmail.com] 
Sent: Wednesday, May 09, 2012 10:45 AM
To: solr-user@lucene.apache.org
Subject: Solr query with mandatory values

Hi :)

I remember that in a Lucene query, there is something like mandatory values. I 
just have to add a "+" symbol in front of the mandatory parameter, like: 
+myField:my value

I was wondering if there was something similar in Solr queries? Or is this 
behaviour activated by default?

Gary


Reply via email to