โ๏ธApache Solr
Solr is a blazing-fast, open source enterprise search platform built on Apache Lucene.
Common Issues
Query Parser Choice
Solr supports multiple query parsers. Which one to chose depends on the use case.
Lucene Query Parser
default parser with good results out of the box, more strict and harder to configure
eDisMax Query Parser (Extended DisMax Query Parser)
more lenient syntax, better configurability then Lucene, less ideal results out of the box
supports boosting with multiplication instead of addition
see also: https://medium.com/empathyco/edismax-query-parser-a-parser-to-be-going-mad-for-3cb353292a30
Sorting
When sorting search results alphabetically it's important to use a field that contains the full string without any indexing. Sorting indexed fields can result in an unexpected order depending on the filter functions that are used to tokenise the field.
An easy fix is to setup a dedicated field for sorting. E.g.
to automatically populate the field from the source a copyField action can be used:
Last updated