You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by ba...@oracle.com on 2020/02/24 22:54:52 UTC

Lucene 7.7.2 Indexwriter.numDocs() replacement in Lucene 8.4.1

Hi,-

  I hope everyone is doing great.


I think the Lucene 7.7.2  Indexwriter.numDocs()

https://lucene.apache.org/core/7_7_2/core/org/apache/lucene/index/IndexWriter.html#numDocs--

can be replaced by the following in Lucene 8.4.1, right?

https://lucene.apache.org/core/8_4_1/core/org/apache/lucene/index/IndexWriter.html#getDocStats--
--->>> 
https://lucene.apache.org/core/8_4_1/core/org/apache/lucene/index/IndexWriter.DocStats.html#numDocs

i.e., IndexWriter.DocStats.numDocs

Best regards




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


Re: Lucene 7.7.2 Indexwriter.numDocs() replacement in Lucene 8.4.1

Posted by Michael McCandless <lu...@mikemccandless.com>.
Yes.

Mike McCandless

http://blog.mikemccandless.com


On Mon, Feb 24, 2020 at 5:55 PM <ba...@oracle.com> wrote:

> A typo corrected below.
>
> Best regards
>
>
> On 2/24/20 5:54 PM, baris.kazar@oracle.com wrote:
> > Hi,-
> >
> >  I hope everyone is doing great.
> >
> >
> > I think the Lucene 7.7.2  Indexwriter.numDocs()
> >
> >
> https://lucene.apache.org/core/7_7_2/core/org/apache/lucene/index/IndexWriter.html#numDocs--
> >
> >
> > can be replaced by the following in Lucene 8.4.1, right?
> >
> >
> https://lucene.apache.org/core/8_4_1/core/org/apache/lucene/index/IndexWriter.html#getDocStats--
> >
> > --->>>
> >
> https://lucene.apache.org/core/8_4_1/core/org/apache/lucene/index/IndexWriter.DocStats.html#numDocs
> >
> > i.e./_*, IndexWriter.getDocStats().numDocs *_/
> >
> > Best regards
> >
> >
> >
>

Re: Lucene 7.7.2 Indexwriter.numDocs() replacement in Lucene 8.4.1

Posted by ba...@oracle.com.
A typo corrected below.

Best regards


On 2/24/20 5:54 PM, baris.kazar@oracle.com wrote:
> Hi,-
>
>  I hope everyone is doing great.
>
>
> I think the Lucene 7.7.2  Indexwriter.numDocs()
>
> https://lucene.apache.org/core/7_7_2/core/org/apache/lucene/index/IndexWriter.html#numDocs-- 
>
>
> can be replaced by the following in Lucene 8.4.1, right?
>
> https://lucene.apache.org/core/8_4_1/core/org/apache/lucene/index/IndexWriter.html#getDocStats-- 
>
> --->>> 
> https://lucene.apache.org/core/8_4_1/core/org/apache/lucene/index/IndexWriter.DocStats.html#numDocs
>
> i.e./_*, IndexWriter.getDocStats().numDocs *_/
>
> Best regards
>
>
>