Re: LeafReaderContext ord is unexpectedly 0

2020-12-28 Thread Joel Bernstein
red part leaves the top level context and then > creates a new one – an then you’re lost! > > > > Uwe > > > > - > > Uwe Schindler > > Achterdiek 19, D-28357 Bremen > > https://www.thetaphi.de > > eMail: u...@thetaphi.de > > > > *Fro

RE: LeafReaderContext ord is unexpectedly 0

2020-12-27 Thread Uwe Schindler
dev Subject: Re: LeafReaderContext ord is unexpectedly 0 Ok this makes sense. I suspect I never ran across this before because I always accessed the ord through the context before getting the reader. Joel Bernstein http://joelsolr.blogspot.com/ On Sun, Dec 27, 2020 at 1:10 PM

Re: LeafReaderContext ord is unexpectedly 0

2020-12-27 Thread Joel Bernstein
9, D-28357 Bremen > > https://www.thetaphi.de > > eMail: u...@thetaphi.de > > > > *From:* Joel Bernstein > *Sent:* Sunday, December 27, 2020 5:59 PM > *To:* lucene dev > *Subject:* LeafReaderContext ord is unexpectedly 0 > > > > I ran into this while writing some Solr cod

RE: LeafReaderContext ord is unexpectedly 0

2020-12-27 Thread Uwe Schindler
and then creates a new one – an then you’re lost! Uwe - Uwe Schindler Achterdiek 19, D-28357 Bremen https://www.thetaphi.de eMail: u...@thetaphi.de From: Joel Bernstein Sent: Sunday, December 27, 2020 5:59 PM To: lucene dev Subject: LeafReaderContext ord is unexpectedly 0 I ran

Re: LeafReaderContext ord is unexpectedly 0

2020-12-27 Thread Joel Bernstein
I'll have to dig around in some collector code. I could swear that you could track the ord of the leaf this way at collection time. But there may be different code paths used then one I showed above. Joel Bernstein http://joelsolr.blogspot.com/ On Sun, Dec 27, 2020 at 12:25 PM Haoyu Zhai

Re: LeafReaderContext ord is unexpectedly 0

2020-12-27 Thread Haoyu Zhai
Hi Joel, LeafReader.getContext() is expected to return "the root IndexReaderContext for this IndexReader 's sub-reader

LeafReaderContext ord is unexpectedly 0

2020-12-27 Thread Joel Bernstein
I ran into this while writing some Solr code today. List leaves = req.getSearcher().getTopReaderContext().leaves(); The req is a SolrQueryRequest object. Now if I do this: leaves.get(5).reader().getContext().ord I would expect *ord* in this scenario to be *5*. But in my testing in master