lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uwe Schindler" <>
Subject RE: How do I get lucene to score a given document
Date Mon, 11 Sep 2017 10:00:05 GMT

There is an explain functionality for single documents available for that. Check IndexSearcher.explain().
Otherwise a filter is your only chance. It should not be slow, as selective filters (applied
with BooleanClause.Occur.FILTER, maybe your filter is the problem: if you have many IDs to
limit on, use Term*s*Filter/Term*s*Query)?


Uwe Schindler
Achterdiek 19, D-28357 Bremen

> -----Original Message-----
> From: 江梓涵 []
> Sent: Monday, September 11, 2017 4:28 AM
> To:
> Subject: How do I get lucene to score a given document
> Hello, I am a student of Chinese Academy of Sciences. Search engine that
> based on lucene is an important part of our experiment. My question is how
> can I get lucene to score the given documents. For example, I just want
> lucene to score the document in the given docId set. As far as i know, Lucene
> will score all relevant documents in each query. I try to use filterQuery, but It
> increased the cost of time.
> Waiting for your kind help. Thanks!

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

View raw message