I look at the test section in the source code, before posting, but all
seemed too complicated.

Currently I am trying to use an implementation of the Scorer abstract class.

Michele

On 11/2/06, Erick Erickson <[EMAIL PROTECTED]> wrote:
BTW, I highly recommend "Lucene in Action" for examples on getting started.
Another good place to see examples is in the unit tests that come along with
the Lucene source code. See
http://www.eng.lsu.edu/mirrors/apache/lucene/java/

Best
Erick

On 11/2/06, Michele Amoretti <[EMAIL PROTECTED]> wrote:
>
> Hello, I am completely new at Lucene. I browsed the web site and the
> source code, searching for an example which illustrates the following
> operation:
>
> given a Query and a Document, return the score
>
> To me, this is a very basic operation, but I cannot find a class which
> easily provide this functionality.
>
> E.g. the Similarity class provides methods which return the factors of
> the scoring formula, but I would like a method which returns the score
> directly.
>
> Is this possible?
>
> Is the Scorer class the solution? Javadoc is too poor to understand
> how to use it. Btw, I do not have an index, I have 1 Document, and 1
> Query.
>
> Thanks
>
> --
> Michele Amoretti, Ph.D.
> Distributed Systems Group
> Dipartimento di Ingegneria dell'Informazione
> Università degli Studi di Parma
> http://www.ce.unipr.it/people/amoretti
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>




--
Michele Amoretti, Ph.D.
Distributed Systems Group
Dipartimento di Ingegneria dell'Informazione
Università degli Studi di Parma
http://www.ce.unipr.it/people/amoretti

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to