lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Rutherglen <jason.rutherg...@gmail.com>
Subject Re: Field should accept BytesRef?
Date Mon, 16 May 2011 15:29:16 GMT
> But when you create an untokenized field (or even a binary field, which is stored-only
at the moment), you could theoretically index the bytes directly

Right, if I already have a BytesRef of what needs to be indexed, then
passing the BR into Field/able should reduce garbage collection of
strings?

On Sun, May 15, 2011 at 9:59 AM, Uwe Schindler <uwe@thetaphi.de> wrote:
> Hi,
>
> I think Jason meant the field value,  not the field name.
>
> Field names should stay Strings, as they are only "identifiers" making them BytesRefs
is not really useful.
>
> But when you create an untokenized field (or even a binary field, which is stored-only
at the moment), you could theoretically index the bytes directly.
>
> -----
> Uwe Schindler
> H.-H.-Meier-Allee 63, D-28213 Bremen
> http://www.thetaphi.de
> eMail: uwe@thetaphi.de
>
>
>> -----Original Message-----
>> From: Robert Muir [mailto:rcmuir@gmail.com]
>> Sent: Sunday, May 15, 2011 6:22 PM
>> To: dev@lucene.apache.org
>> Subject: Re: Field should accept BytesRef?
>>
>> On Sun, May 15, 2011 at 12:05 PM, Jason Rutherglen
>> <jason.rutherglen@gmail.com> wrote:
>> > In the Field object a text value must be of type string, however I
>> > think we can allow a BytesRef to be passed in?
>> >
>>
>> it would be nice if we sorted them in byte order too? I think right now fields
>> are sorted in utf-16 order, but terms are sorted in utf-8 order? (if so, this is
>> confusing)
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional
>> commands, e-mail: dev-help@lucene.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message