Rather than deleting the dismax config, I would recommend adding a new entry inside your "/browse" request handler config's <lst name="defaults"> tag:
<str name="mm">0</str> This will go "OR" mode, and you will still benefit from all the advantages that DisMax gives you for weighted search across different fields. See http://wiki.apache.org/solr/DisMaxQParserPlugin to learn more about DisMax. -- Jan Høydahl, search solution architect Cominvent AS - www.cominvent.com Solr Training - www.solrtraining.com On 18. okt. 2011, at 15:56, hadi wrote: > thanks for your reply,i delete the dismax conf from solrconf.xml and > it works,is it any side effect? > > On 10/18/11, Jan Høydahl / Cominvent [via Lucene] > <ml-node+s472066n3431189...@n3.nabble.com> wrote: >> >> >> 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. >> >> >> >> _______________________________________________ >> If you reply to this email, your message will be added to the discussion >> below: >> http://lucene.472066.n3.nabble.com/How-to-change-default-operator-in-velocity-tp3430871p3431189.html >> >> To unsubscribe from How to change default operator in velocity?, visit >> http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=3430871&code=bWQuYW5iYXJpQGdtYWlsLmNvbXwzNDMwODcxfC02NDQ5ODMwMjM= > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/How-to-change-default-operator-in-velocity-tp3430871p3431294.html > Sent from the Solr - User mailing list archive at Nabble.com.