RE: MultiFields#getTerms docs clarification

2016-08-30 Thread Uwe Schindler
Trejkaz [mailto:trej...@trypticon.org] > Sent: Wednesday, August 31, 2016 6:33 AM > To: Lucene Users Mailing List > Subject: Re: MultiFields#getTerms docs clarification > > On Mon, Aug 29, 2016 at 8:23 PM, Michael McCandless > wrote: > > Seems like you need to scrutinize ex

Re: MultiFields#getTerms docs clarification

2016-08-30 Thread Trejkaz
On Mon, Aug 29, 2016 at 8:23 PM, Michael McCandless wrote: > Seems like you need to scrutinize exactly what documents were indexed in step > 3? > > How exactly did you copy documents out of the old index? Note that > when Lucene's IndexReader returns a Document, it's not the same > Document that

Re: MultiFields#getTerms docs clarification

2016-08-29 Thread Michael McCandless
Seems like you need to scrutinize exactly what documents were indexed in step 3? How exactly did you copy documents out of the old index? Note that when Lucene's IndexReader returns a Document, it's not the same Document that was indexed in the first place: it will only have fields that were stor

Re: MultiFields#getTerms docs clarification

2016-08-28 Thread Trejkaz
Updating this with newly-obtained info. 1. The original index was created in Lucene 3.x. In 3.x, if I call getMin(), it returns non-empty values. So far so good. 2. The index then gets migrated to 5.x using multiple IndexUpgrader steps. Now, when I call getMin(), it still returns a non-empty valu

Re: MultiFields#getTerms docs clarification

2016-08-12 Thread Trejkaz
On Fri, Aug 12, 2016 at 11:51 PM, Michael McCandless wrote: > Getting an empty BytesRef back from Terms.getMin() means Lucene thinks you > indexed an empty (zero length) token. Lucene (unfortunately) allows this. > Is it possible you did that? > > If not, can you make a test case showing this? I

Re: MultiFields#getTerms docs clarification

2016-08-12 Thread Michael McCandless
Getting an empty BytesRef back from Terms.getMin() means Lucene thinks you indexed an empty (zero length) token. Lucene (unfortunately) allows this. Is it possible you did that? If not, can you make a test case showing this? Mike McCandless http://blog.mikemccandless.com On Thu, Aug 11, 2016 a

Re: MultiFields#getTerms docs clarification

2016-08-12 Thread Cristian Lorenzetto
For type null I added a field with byte ref with a empty byte array. Maybe it will resolve ? Il 12/ago/2016 11:57 "Trejkaz" ha scritto: > Hi all. > > The docs on MultiFields#getTerms state: > > > This method may return null if the field does not exist. > > Does this mean: > > (a) The method *w

MultiFields#getTerms docs clarification

2016-08-12 Thread Trejkaz
Hi all. The docs on MultiFields#getTerms state: > This method may return null if the field does not exist. Does this mean: (a) The method *will* return null if the field does not exist. (b) The method will *not necessarily* return null if the field does not exist. I think we've seen a sit