lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <marc.dumont...@thomson.com>
Subject NumberTools - Range Searches
Date Tue, 18 Sep 2007 17:42:07 GMT
Hi,

 

I'm trying to do Range searches on a numeric field and have come across
the lexicographical behavior, such that

 

mylength: [0-2]

 

brings back values such as 1172

 

 

I've seen prior posts about the NumberTools class, and have indexed a
field using the longToString() method.

 

Do I have to rewrite the query to handle this field? I don't want
searches to have to looks something like

 

mylength: [00000000-00000002]

 

for example.

 

 

Any high level help or concrete examples would be much appreciated.

 

Thanks,

 

Marc Dumontier
Manager, Software Development
Thomson Scientific (Canada)
1 Yonge Street, Suite 1801
Toronto, Ontario M5E 1W7

 

Direct +1 416 214 3448
Mobile +1 416 454 3147

 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message