With the new Collector API in Lucene 2.9, you no longer have to compute the
score.

Now a Collector is passed a Scorer if they want to use it, but you can
just ignore it.

-- 
- Mark

http://www.lucidimagination.com



Benjamin Pasero wrote:
> Hi,
>
> I am using Lucene not only for smart fulltext searches but also for
> getting the results for a DB-like query, where I am not tokenizing the
> terms at all. For this query, I am interested in all results and for
> that
> I am using my own HitCollector.
>
> Now, while profiling I noticed that quite some time is spent in
> methods like TermQuery.weight() or BooleanScorer2.score(). Given that
> I am interested in all results, I am not interested in any score for
> the
> results.
>
> Is it possible to run a query where Lucene simply checks if a Document
> is a hit or not and completly ignore weighting and scoring? Or is that
> an integrated part of the search used to determine if a Document
> is a hit or not?
>
> Thanks for helping,
> Ben
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
> For additional commands, e-mail: java-user-h...@lucene.apache.org
>
>   



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

Reply via email to