Shai Erera created LUCENE-4680:
----------------------------------
Summary: Add reusability to FacetFields
Key: LUCENE-4680
URL: https://issues.apache.org/jira/browse/LUCENE-4680
Project: Lucene - Core
Issue Type: Improvement
Components: modules/facet
Reporter: Shai Erera
In LUCENE-4647 I added a TODO to handle resubility to this class. Currently it
allocates two new TokenStreams for every document, as well as some BytesRefs
and an IntsRef. I think it should be possible to reuses those across documents
(and also the Field instances, while we're at it).
It will make the class not thread-safe, but I don't think that's an important
feature. {{CategoryDocumentBuilder}} (its predecessor) wasn't thread-safe
either, and {{Field}} isn't thread safe, so it's fine by me if {{FacetFields}}
isn't thread safe too.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]