Hi,

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

-----
Uwe Schindler
Achterdiek 19, D-28357 Bremen
http://www.thetaphi.de
eMail: u...@thetaphi.de

> -----Original Message-----
> From: 江梓涵 [mailto:jiangzi...@ict.ac.cn]
> Sent: Monday, September 11, 2017 4:28 AM
> To: java-user@lucene.apache.org
> 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: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to