[ https://issues.apache.org/jira/browse/OAK-6735?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16233793#comment-16233793 ]
Vikas Saurabh edited comment on OAK-6735 at 11/1/17 1:43 PM: ------------------------------------------------------------- Fixed on trunk at [r1813955|https://svn.apache.org/r1813955]. Incorporated [~chetanm]'s feedback (offline) at [r1813973|https://svn.apache.org/r1813973]. was (Author: catholicon): Fixed on trunk at [r1813955|https://svn.apache.org/r1813955]. > Lucene Index: improved cost estimation by using document count per field > ------------------------------------------------------------------------ > > Key: OAK-6735 > URL: https://issues.apache.org/jira/browse/OAK-6735 > Project: Jackrabbit Oak > Issue Type: Improvement > Components: lucene, query > Affects Versions: 1.7.4 > Reporter: Thomas Mueller > Assignee: Vikas Saurabh > Priority: Major > Fix For: 1.8, 1.7.11 > > Attachments: IndexReadPattern.txt, LuceneIndexReadPattern.java, > OAK-6735.patch > > > The cost estimation of the Lucene index is somewhat inaccurate because (by > default) it just used the number of documents in the index (as of Oak 1.7.4 > by default, due to OAK-6333). > Instead, it should use the number of documents for the given fields (the > minimum, if there are multiple fields with restrictions). > Plus divided by the number of restrictions (as we do now already). -- This message was sent by Atlassian JIRA (v6.4.14#64029)