GitHub user s1monw opened a pull request:

    https://github.com/apache/lucene-solr/pull/527

    LUCENE-8609: Allow getting consistent docstats from IndexWriter

    Today we have #numDocs() and #maxDoc() on IndexWriter. This is enough
    to get all stats for the current index but it's subject to concurrency
    and might return numbers that are not consistent ie. some cases can
    return maxDoc < numDocs which is undesirable. This change adds a 
getDocStats()
    method to index writer to allow fetching consistent numbers for these stats.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/s1monw/lucene-solr docstats

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/lucene-solr/pull/527.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #527
    
----
commit 6721c40e16c485038fd092dbaa672204e6fdb3c6
Author: Simon Willnauer <simonw@...>
Date:   2018-12-13T15:05:47Z

    LUCENE-8609: Allow getting consistent docstats from IndexWriter
    
    Today we have #numDocs() and #maxDoc() on IndexWriter. This is enough
    to get all stats for the current index but it's subject to concurrency
    and might return numbers that are not consistent ie. some cases can
    return maxDoc < numDocs which is undesirable. This change adds a 
getDocStats()
    method to index writer to allow fetching consistent numbers for these stats.

----


---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to