You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Tate Avery <ta...@nstein.com> on 2004/04/02 19:55:25 UTC
Numeric field data
Hello,
Is there a way (direct or indirect) to support a field with numeric data?
More specifically, I would be interested in doing a range search on numeric
data and having something like:
number:[1 TO 2]
... and not have it return 11 or 103, etc. But, return 1.5, for example.
Is there any support in current and/or upcoming versions for this type of
thing?
Or, has anyone figured out a creative workaround to obtain the desired
result?
Thank you for any comments,
Tate
p.s. Ideally, I would be able to do equal, greater than, less than and
these in combination with each other (i.e. ranges, greater than or equal to,
etc.).
---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org
Re: Numeric field data
Posted by Stephane James Vaucher <va...@cirano.qc.ca>.
Added to the wiki, can of course be removed if it's transfered to the
FAQs.
sv
On Sun, 4 Apr 2004, Kevin A. Burton wrote:
> Stephane James Vaucher wrote:
>
> >Hi Tate,
> >
> >There is a solution by Erik that pads numbers in the index. That would
> >allow you to search correctly. I'm not sure about decimal, but you could
> >always add a multiplier.
> >
> >
> Wonder if that should go in the FAQ... wiki...
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org
Re: Numeric field data
Posted by "Kevin A. Burton" <bu...@newsmonster.org>.
Stephane James Vaucher wrote:
>Hi Tate,
>
>There is a solution by Erik that pads numbers in the index. That would
>allow you to search correctly. I'm not sure about decimal, but you could
>always add a multiplier.
>
>
Wonder if that should go in the FAQ... wiki...
--
Please reply using PGP.
http://peerfear.org/pubkey.asc
NewsMonster - http://www.newsmonster.org/
Kevin A. Burton, Location - San Francisco, CA, Cell - 415.595.9965
AIM/YIM - sfburtonator, Web - http://peerfear.org/
GPG fingerprint: 5FB2 F3E2 760E 70A8 6174 D393 E84D 8D04 99F1 4412
IRC - freenode.net #infoanarchy | #p2p-hackers | #newsmonster
Re: Numeric field data
Posted by Stephane James Vaucher <va...@cirano.qc.ca>.
Hi Tate,
There is a solution by Erik that pads numbers in the index. That would
allow you to search correctly. I'm not sure about decimal, but you could
always add a multiplier.
HTH,
sv
On Fri, 2 Apr 2004, Tate Avery wrote:
> Hello,
>
> Is there a way (direct or indirect) to support a field with numeric data?
>
> More specifically, I would be interested in doing a range search on numeric
> data and having something like:
>
> number:[1 TO 2]
>
> ... and not have it return 11 or 103, etc. But, return 1.5, for example.
>
> Is there any support in current and/or upcoming versions for this type of
> thing?
> Or, has anyone figured out a creative workaround to obtain the desired
> result?
>
>
> Thank you for any comments,
> Tate
>
> p.s. Ideally, I would be able to do equal, greater than, less than and
> these in combination with each other (i.e. ranges, greater than or equal to,
> etc.).
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: lucene-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org