Hello Ranganath,

I guess you need to loop through LeafReaderContexts, create scorer/span for
them to get to 7th crore and beyond.

On Tue, Jun 20, 2017 at 10:59 AM, Ranganath B N <ranganath....@huawei.com>
wrote:

> Hi,
>
>
>     This is regarding the search limit of  SpanNearQuery Class.  I create
> a lucene index  consisting of 2 billion documents .
>    Then obtain a spans object  through    getspans method of Spanweight
> object  created from     SpanNearQuery  object.     Then I get the
> matching documents  by iterating through spans.nextdoc().   But   searching
> through   spans object      returns   results only if search terms are
> within first  6 crore   inserted  documents.   Am I missing  anything
> during initialization so that search is getting restricted or is this a
> limitation issue with  SpanNearQuery Class?
> I am using Apache lucene 6.5.0 version.  Please let me know about this
> since I am using this for a critical project?
>
> Thanks,
> Ranganath B. N.
>
>


-- 
Sincerely yours
Mikhail Khludnev

Reply via email to