lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Muir <rcm...@gmail.com>
Subject Re: Field should accept BytesRef?
Date Mon, 16 May 2011 15:41:47 GMT
On Mon, May 16, 2011 at 11:29 AM, Jason Rutherglen
<jason.rutherglen@gmail.com> wrote:
>> 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?
>

you can do this with a tokenstream, see
http://svn.apache.org/repos/asf/lucene/dev/trunk/lucene/src/test/org/apache/lucene/index/Test2BTerms.java
for an example

(sorry i somehow was confused about your message earlier).

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


Mime
View raw message