lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject ComplexPhraseQueryParser class question
Date Wed, 29 Jan 2020 21:02:50 GMT

  I hope everyone is doing great.

i have a question regarrding ComplexPhraseQueryParser class.

This class can handle this queryText case very well:

"term1 erm2 abcd term3*"~2

(last term3 has * at the end and the whole phrase has slop value 2)

The term1, term2 and term3 are all in the Lucene index but abcd is not.

In other words there is no "term1 term2 abcd term3" in the Lucene index

but i still would like to find the following in my results:

"term1 term2 term3" despite having abcd term there.

How can i achieve this?

i setInOrder as true setPhraseSlop as 2 for the ComplexPhraseQueryParser.

Best regards


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message