lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erick Erickson" <>
Subject Re: Scoring for all the documents in the index relative to a query
Date Mon, 19 Nov 2007 16:55:00 GMT
Could you explain a bit more what problem you're trying to solve?
The reason I ask is that your question doesn't make sense to me,
since I have no idea what you expect by the term "negative score".

My simplistic view has been that all the docs returned via Hits
or HitCollector have scores > 0, and all the rest have scores of 0,
and this view is supported by the explanation of

" Called once for every non-zero scoring document, with the
document number and its score."

You might also get value from this page:


On Nov 19, 2007 11:05 AM, HAIDUC SONIA <> wrote:

> Hi everyone,
> I am trying to obtain the score for each document in the index relative to
> a given query. For example, if I have the query "search file", I am trying
> to get the list of all documents in the index and their scores relative to
> the given query. I tried first using Hits, which gave me the normalized
> score. I thought that I don't see the whole list of documents and their
> scores because of the normalization, so I tried using HitsCollector. But
> even after using HitsCollector, I get the same number of matching documents,
> so the normalization didn't exclude documents because of negative scoring.
> Does Lucene actually compute the score for all the documents in the index or
> just for matching documents? I really need to have the scores for all the
> documents in the index relative to the query (even if negative), not just
> the ones that contain the query terms(this is what Lucene considers
> "matching documents", right?). Is this possible using Lucene?
> I really appreciate your time and effort!
> Thanks,
> Sonia
>  ____________________________________________________________________________________
> Get easy, one-click access to your favorites.
> Make Yahoo! your homepage.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message