Hi,

The reason why AND is default with /browse is that it uses the "dismax" query 
parser, which does not currently respect defaultOperator.
If you want an OR like behaviour, try to add at the end of the url: &mm=0 
(which means minumum number of terms that should match=0), e.g.
http://localhost:8983/solr/browse?q=samsung+maxtor&mm=0

For more about mm, see 
http://wiki.apache.org/solr/DisMaxQParserPlugin#mm_.28Minimum_.27Should.27_Match.29
NB: In trunk (4.0), even dismax will respect the defaultOperator from schema.

--
Jan Høydahl, search solution architect
Cominvent AS - www.cominvent.com
Solr Training - www.solrtraining.com

On 18. okt. 2011, at 12:36, hadi wrote:

> in solr schema the defaultOperator value is OR but when i use
> browse(http://localhost:8983/solr/browse)for searching AND is a
> defaultOperator,and that config in solr is not affect on velocity how can i
> change the velocity template engine default operators?
> 
> 
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/How-to-change-default-operator-in-velocity-tp3430871p3430871.html
> Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to