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 http://lucene.apache.org/java/docs/queryparsersyntax.html
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, Doron Michael Imbeault <[EMAIL PROTECTED]> wrote on 04/10/2006 20:07:34: > 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]