On Mon, May 16, 2011 at 11:29 AM, Jason Rutherglen <[email protected]> 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: [email protected] For additional commands, e-mail: [email protected]
