lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Armbrust, Daniel C." <Armbrust.Dan...@mayo.edu>
Subject RE: Searching greater than/less than
Date Wed, 22 May 2002 13:33:20 GMT
As long at the field can be sorted alphabetically, you can build your own
filter.  

If you put your field in as the same length number, i.e.

001
010
136

Then you can build a filter (that will be mostly cut and paste from the date
filter class)

which will allow you to do less than and greater than operations.

Dan





-----Original Message-----
From: Victor Hadianto [mailto:victorh@nuix.com.au]
Sent: Tuesday, May 21, 2002 7:54 PM
To: lucene-user@jakarta.apache.org
Subject: Searching greater than/less than


Can I use lucene to search greater than / less than a value in the field? I 
have a field in the document that function as a score. I would need to be 
able to search the index + the option having to say a field > 50

Regards,

-- 
Victor Hadianto

--
To unsubscribe, e-mail:
<mailto:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:lucene-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-user-help@jakarta.apache.org>


Mime
View raw message