lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doron Cohen <>
Subject Re: Find if words are in the same phrase?
Date Thu, 05 Oct 2006 07:06:10 GMT
I am not sure I understand what you are asking.

I assume you are aware of Lucene Proximity Search - e.g. "jakarta apache"~4
- see

Are you asking if it is possible to search for docs in which the gap
between the two words is exactly N, e.g. exactly 4? If so, this seems
equivalent to something like:

"jakarta apache"~4 AND NOT "jakarta apache"~3

Otherwise, could you explain a bit more - e.g. short sample content of a
doc that search should return and a doc that search should not return.

Hope this helps,

Michael Imbeault <> wrote on 04/10/2006
> Is it possible with Lucene to limit a proximity query to a phrase to
> determine if two words are in the same phrase? Along the same train of
> thoughts, is it possible to determine if two words in a same phrase are
> separated by a word, or a list of words? Like for example Virus (some
> other words) activate (some other words) cancer?

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

View raw message