Web / Apache Solr Interview questions
What is the difference between the standard query parser and DisMax?
The standard (Lucene) query parser exposes Lucene's full syntax directly: field:value pairs, boolean operators (AND, OR, NOT), wildcards, and range queries. It is powerful but unforgiving - a stray colon or unbalanced parenthesis from an end user can throw a syntax error.
| Standard parser | DisMax |
| Full Lucene syntax, error-prone for raw user input | Simplified syntax designed for direct user-typed queries |
| Searches one field unless explicitly specified | Searches multiple weighted fields via qf automatically |
DisMax takes a plain search box string, splits it into clauses, and searches it across several fields defined in qf (query fields) with per-field boosts, without letting special Lucene syntax characters break the query. It intentionally does not support full boolean logic, which is where eDisMax comes in.
More Related questions...