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