You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Tommaso Teofili (JIRA)" <ji...@apache.org> on 2015/06/11 16:40:00 UTC
[jira] [Commented] (OAK-2980) Fast result size estimate in Solr
index
[ https://issues.apache.org/jira/browse/OAK-2980?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14581999#comment-14581999 ]
Tommaso Teofili commented on OAK-2980:
--------------------------------------
possible implementation approach in {{SolrQueryIndex}}
{code}
public long getSize(SizePrecision precision, long max) {
long estimate = -1;
switch (precision) {
case EXACT:
// query solr or use Solr result header's 'numFound'
// ...
break;
case APPROXIMATION:
// estimate result size
estimate = estimator.estimate(plan.getFilter());
break;
case FAST_APPROXIMATION:
// use already computed index plan's estimate
estimate = plan.getEstimatedEntryCount();
break;
}
return estimate;
}
{code}
> Fast result size estimate in Solr index
> ---------------------------------------
>
> Key: OAK-2980
> URL: https://issues.apache.org/jira/browse/OAK-2980
> Project: Jackrabbit Oak
> Issue Type: New Feature
> Components: solr
> Reporter: Tommaso Teofili
> Assignee: Tommaso Teofili
> Fix For: 1.3.1
>
>
> Fast result size estimate has been implemented in OAK-2928 for Lucene, it'd be good to have it for Solr index too.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)