lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam <>
Subject Ordered Proximity searching, does it exist?
Date Tue, 21 Nov 2006 04:20:10 GMT

Dear Lucene Users,

Is there a way or has someone been able to implement an ordered proximity search. Lucene currently
uses the "word1 word2"~5 query to find tokens that are within 5 words of each other in any
order. What I've been asked to do is find only the results that are for instance within 5
words of each other in the order the query was written. 

For a scenario like

text:"blah blah blah. Section 1 of Primary Act 1976, s1. Dogs Act 1999, s3 blah blah blah"

Say  I wanted to find the Dogs Act Section 1 using text:"dogs act s1"~5 query would give the
above record when it wasn't in context. This is the reason for wanting results in order to
stop these incorrect results.

Any help would be greatly appreciated.


Be one of the first to try Windows Live Mail.
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message