lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From srinivasa v <>
Subject Proximity Feature
Date Mon, 12 Nov 2001 04:37:00 GMT


This is regarding the proximity feature in lucene,
in the previous mails we came to know that a variable
"slop" is used in PhraseQuery class for proximity feature.
But through jguru site

we got this answer

There is a variable called slop in PhraseQuery that allows you to perform NEAR/WITHIN-like
By default, slop is set to 0 so that only exact phrases will match. However, you can alter
the value using the setSlop(int) method. 

For instance, setSlop(3) will let you find documents containing a phrase such as "monkeys
love bananas". 
There is currently no way to specify the slop in the query, although there has been some discussion
about it on the Lucene mailing list recently. 

So, in latest version of the lucene is this feature incorporated  ?? if yes
please give the URL from which we can download.

Any inforamation regarding proximity would be helpful for us...

with regards



Do You Yahoo!?
Find a job, post your resume on Yahoo! Careers.
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message