lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <luc...@mikemccandless.com>
Subject Re: Disabling Lucene Scoring/Ranking
Date Mon, 09 Jan 2017 11:59:04 GMT
Just wrap your Query in a ConstantScoreQuery.  Lucene will optimize
the query execution to not read term frequencies from disk, not
compute scores, etc.

Mike McCandless

http://blog.mikemccandless.com


On Mon, Jan 9, 2017 at 6:17 AM, Rajnish kamboj <rajnishk7.info@gmail.com> wrote:
> My application does not require scoring/ranking.  All data is equally
> important for me.
>
> Search query can return any documents matching search criteria.
>
> So, Is there a way to completely disable scoring/ranking altogether?
> OR Is there a better solution to it.
>
> Regards
> Rajnish

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


Mime
View raw message