You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Adrien Grand (JIRA)" <ji...@apache.org> on 2017/11/22 22:46:00 UTC

[jira] [Comment Edited] (LUCENE-8060) Require users to tell us whether they need total hit counts

    [ https://issues.apache.org/jira/browse/LUCENE-8060?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16263491#comment-16263491 ] 

Adrien Grand edited comment on LUCENE-8060 at 11/22/17 10:45 PM:
-----------------------------------------------------------------

At first I thought it would be less user-friendly, but the methods I was thinking of in order to get approximate counts (basically assuming that the hit ratio is the same until collection is terminated as in the whole index) would be of low quality, so maybe it's better to not return any hit count as well indeed.


was (Author: jpountz):
At first I thought it would be less user-friendly, but the methods I was thinking of in order to get approximate counts (basically assuming that the hit ratio is the same until collection is terminated as in the whole index) would be of low quality, so maybe it's better to not return any hit count as well.

> Require users to tell us whether they need total hit counts
> -----------------------------------------------------------
>
>                 Key: LUCENE-8060
>                 URL: https://issues.apache.org/jira/browse/LUCENE-8060
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Adrien Grand
>            Priority: Minor
>             Fix For: master (8.0)
>
>
> We are getting optimizations when hit counts are not required (sorted indexes, MAXSCORE, short-circuiting of phrase queries) but our users won't benefit from them unless we disable exact hit counts by default or we require them to tell us whether hit counts are required.
> I think making hit counts approximate by default is going to be a bit trappy, so I'm rather leaning towards requiring users to tell us explicitly whether they need total hit counts. I can think of two ways to do that: either by passing a boolean to the IndexSearcher constructor or by adding a boolean to all methods that produce TopDocs instances. I like the latter better but I'm open to discussion or other ideas?



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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