This question about Configuration: Answered

Solr Advanced Searching

Is there a way to use AND or OR in my search?

-- GregKuiper - 12 Jan 2012

Solr has got two different query modes: (1) lucene and (2) dismax.

While the lucene query mode comes with all the flexibility of the lucene query syntax, it all too often results in errors due to invalid queries. That's why there is the second query mode called dismax, which more or less imitates the google kind of approach being more fault tolerant to any sort of input.

The preconfigured search interfaces in System.SolrSearch make use of the dismax query handler. However you can make use of the %SOLRSEARCH macro directly and thus chose the query mode you like.

Have a look at

to learn more about the query syntax.

-- MichaelDaum - 13 Jan 2012
 

QuestionForm edit

Subject Configuration
Extension SolrPlugin
Version Foswiki 1.1.3
Status Answered
Related Topics
Topic revision: r2 - 13 Jan 2012, MichaelDaum
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy