Web / Apache Solr Interview questions
What is the difference between DisMax and eDisMax query parsers?
eDisMax (Extended DisMax) is a superset of DisMax built to close its biggest gap: lack of full boolean logic.
| DisMax | eDisMax |
| No support for AND/OR/NOT or field:value syntax | Supports full Lucene-style boolean operators and field:value syntax |
| No support for pure negative queries | Supports pure negative queries like -inStock:false |
| Limited multi-clause query handling | Adds mm (minimum should match) tuning and userFields whitelisting |
In practice, most modern Solr applications default to eDisMax because it keeps DisMax's multi-field weighting behavior while letting power users mix in explicit field queries when needed, giving the best of both parsers without a real downside for typical search-box use cases.
More Related questions...