JarvisCraft commented on PR #12343:
URL: https://github.com/apache/lucene/pull/12343#issuecomment-1572304442

   > Tusing termtoattribute as i suggest makes its own internal BytesRef. 
there's no waste as the BytesRef you get from TermToBytesRefAttribute is 
re-used (look at the source code). This is the method used by both lucene's 
indexers and query parsers, so it is really what you should be using to form 
terms.
   
   Hmm, that's a good point. I will try to use it then, Thanks!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to