Hi,
when entering "London OR New York" you want to parse the meaning for OR. To do that, use a org.apache.lucene.queryParser.QueryParser to return a Query instance from the string.
Then you can combine different Query instances with the Query DSL, or run it directly.
For example you could after that parsing add additional clauses:
Code:
Query parsedQuery = queryParser.parse( "London OR New York" );
orderQB.bool()
.must(
orderQB.range()
.onField(“price”).above(100).excludeLimit().createQuery() )
.must( parsedQuery )
.createQuery()