Convert Boolean (Generic) to Lucene
Turn a plain Boolean query into Lucene syntax for Elasticsearch, OpenSearch, or any Lucene-backed index.
Worked example
Boolean (Generic) query
(python OR rust) AND async AND NOT java
Lucene output
(python OR rust) AND async AND NOT java
What carries over, and what does not
Carries over
- •Boolean AND / OR / NOT
- •Wildcards
Degrades or drops
- Nothing is lost in this direction.