You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Vasudevan Comandur <vc...@gmail.com> on 2009/02/23 07:04:23 UTC

Question on Proximity Search in Lucene Query

Hi,

   I have a question on the proximity query usage in Lucene Query Syntax.

  The documentation says "W1 W2"~5 means W1 and W2 can occur within 5 words.
Here W1 & W2 represents Words.

  What happens when I give "W1 W2 W3 W4"~25 as proximity query?

   Does it treat each word pairs (W1, W2) , (W1, W3) , (W1, W4) , (W2, W3) ,
(W2, W4) , (W3, W4) can occur within 25 words?

   Looking forward to your reply.

Regards
 Vasu