Convert Lucene to Manticore Search
Translate a Lucene query into Manticore Search syntax for a self-hosted Manticore or Sphinx index. Socialgist and Datastreamer Unify are selectable in their own right if you are querying those.
Once the syntax is sorted
Three different situations, depending on how far along the move is.
Reference
Worked example
Lucene query
(cat OR dog) AND pets AND NOT toy
Manticore Search output
(cat | dog) pets -toy
What carries over, and what does not
Carries over
- •Boolean AND / OR / NOT
- •Proximity (NEAR/n)
- •Wildcards
Degrades or drops
- •Fuzzy matching is dropped (Manticore Search does not support it)
- •Relevance boost is dropped (Manticore Search does not support it)
- •Range queries is dropped (Manticore Search does not support it)
- •An OR chain over 500 branches is truncated to 500 (an engine-wide limit, not specific to Manticore Search)