lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vadim Gindin <vgin...@detectum.com>
Subject Re: Question about BytesRef and BinaryDocValues
Date Fri, 24 Aug 2018 03:26:36 GMT
Hi Kevin!

I think that your field is "analyzed" and so your field value is divided to
2 terms "hey" and "tom". So docvalue is written for each of them.

Regards
Vadim Gindin


пт, 24 авг. 2018, 5:19 Kevin Manuel <kevinmanuel92@gmail.com>:

> Hi,
>
> I'm using lucene version 4.3.1 and I've implemented a custom score query.
> I'm trying to read the value for a field from the field cache. It's a text
> field so I'm using getTerms which returns a binarydocvalues object.
>
> However on trying to get the bytes ref object for a document and converting
> it to a string using utf8ToString I think characters after a whitespace and
> not being returned in the string. For instance if the field has 'hey tom',
> the string only returns 'hey'.
>
> I tried this with version 4.10.0 too and I see the same thing. I was
> wondering if there's something wrong with the way I'm accessing it or it
> was an issue in these versions.
>
> Thanks,
> Kevin
>

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