11/08/2011

Solr: Q.Op default value

Currently working with Solr. As you know, you can use Solr as primary search engine in your liferay environment. One thing that might be interesting to you is the fact what the Q.OP operator does. The Q.OP operator specifies the "connector" between your search terms. Possible values are AND and OR.

I took a look into google and found no entry for "q.op default value", so here it is: The default value is ... up to you ;)


You can specify it in your schema.xml file like this:



 <solrQueryParser defaultOperator="OR"/>


If you like this post it would be very nice, if you could click on some of the google ads you see on the right side. It helps me run this block and motivates me ;)

If you have any questions, feel free to leave a comment.