lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cristian Lorenzetto <cristian.lorenze...@gmail.com>
Subject Re: MultiFields#getTerms docs clarification
Date Fri, 12 Aug 2016 11:41:10 GMT
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" <trejkaz@trypticon.org> 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 *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 situation where it somehow returned non-null, but
> them Terms#getMin() returned an empty BytesRef, as if we had asked for
> an absent value. I would expect getMin() not to count absent values as
> the minimum, only because if that were the case, I would have
> reproduced the same error during development.
>
> TX
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message