lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeroen Lauwers <Jeroen.Lauw...@CTLO.NET>
Subject How to query for 'any word' in a phrase
Date Thu, 09 Jan 2020 15:17:37 GMT
Dear all,

Is there a way to construct (spans?) a phrase search like the following:
the quick brown * jumps over the * *
where * = any word but exactly 1 word

I introduced these *’s at a specific position, so a PhraseQuery with slop of 2 is just not
good enough
and the two *’s at the end must be matched as well.

Is there such a thing as a Term or BytesRef that always matches everything?

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message