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
, 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. ...