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