lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doron Cohen <>
Subject Re: simple (?) question about scoring
Date Thu, 02 Nov 2006 22:36:27 GMT
michele.amoretti wrote:
> Ok I am trying the MemoryIndex, but when compiling I have the
> following erro message:
> package org.apache.lucene.index.memory does not exist
> Is it not included in the lucene .jar?
> I currently have the latest lucene binaries.

Yes this is not part of core Lucene but rather under contrib.
To use this you can either download the source and compile, or download from the download site and use lucene-memory-2.0.0.jar
from within that zip.

> parse(java.lang.String) in org.apache.lucene.queryParser.QueryParser
> cannot be applied to
> (java.lang.String,java.lang.String,org.apache.lucene.analysis.Analyzer)
>     [javac]     float score =
>"information", "content", analyzer));

Probably because sample code in that javadocs was created with Lucene 1.4.
and also

> >
> > Lucene scoring - - uses
> > pre-computed statistics, location info, and the number of documents in
> > index (1 in your case). So some preparation is required before a
> > (stand-alone) document can be scored against a query.

Also see comments by Chris on the value (or not) of the score you would

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message