lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doron Cohen <DOR...@il.ibm.com>
Subject Re: Numerical fields
Date Fri, 11 May 2007 19:02:31 GMT
karl wettin wrote:

>
> 11 maj 2007 kl. 18.16 skrev Stadler Hans-Christian:
>
> > Is there an enhancment/plugin to Lucene which would allow
> > queries like
> >
> > myNumericalField > 100
>
> FunctionQuery might be what you are looking for.
>
> http://issues.apache.org/jira/browse/LUCENE-446

LUCENE-446 allows also score manipulation. It can also be
used to filter docs by assigning 0 score to out-of-range
docs.

But note two aspects of using search.function: (1) values
cannot exceed Integer.MAX_VALUE. (some examples given
here had larger values...)   (2) all values are loaded
(once, cached) into memory, so expect RAM usage of
numDocs * 1/2/4/8 bytes, depending on the maximal
needed value.

A user discussion that may be relevant:
http://www.mail-archive.com/java-user@lucene.apache.org/msg11965.html

>
> --
> karl


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message