O'Reilly logo

Apache Solr 3 Enterprise Search Server by Eric Pugh, David Smiley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The Dismax query parser (part 1)

The lucene query parser we've been using so far for searching offers a rich syntax, but it doesn't do anything more. A notable problem with using this parser is that the query must be well formed according to the aforementioned syntax rules, such as having balanced quotes and parenthesis. Users might type just about anything for a query, not knowing anything about this syntax, possibly resulting in an error or unexpected results. The dismax query parser, named after Lucene's DisjunctionMaxQuery , addresses this problem and adds many features to enhance search relevancy (that is good scoring). The features of this query parser that have a more direct relationship to scoring are described in part 2, in the next chapter. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required