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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to