lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mohammad Norouzi" <mnr...@gmail.com>
Subject Re: NumberTools - Range Searches
Date Tue, 18 Sep 2007 17:59:06 GMT
Hi
you may put two fields in your document one contains decoded values and
another is original values, but still you need to implement your query
builder so while searching you must specify the decoded filed and you show
the original field to the user

On 9/18/07, marc.dumontier@thomson.com <marc.dumontier@thomson.com> wrote:
>
> 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
>
>
>
>


-- 
Regards,
Mohammad
--------------------------
see my blog: http://brainable.blogspot.com/
another in Persian: http://fekre-motefavet.blogspot.com/
Sun Certified Java Programmer
ExpertsExchange Certified, Master:
http://www.experts-exchange.com/M_1938796.html

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