We're updating the issue view to help you get more done. 

Avoid allocation cost of FacetConfig during creation of Document

Description

When we're building the Document to be indexed, the FacetConfig initialization and it's org.apache.lucene.facet.FacetsConfig.build(Document) require quite some memory.
We should investigate how to avoid creating a new FacetConfig instance for each document, avoid it unless faceting is used, and see if it can be used more efficiently when faceting is being used.

It looks like the FacetConfig implementation was designed to be threadsafe and configured with index specific options, so it seems the developer's intention was for it to be created only once per index.

Environment

None

Status

Assignee

Sanne Grinovero

Reporter

Sanne Grinovero

Labels

None

Suitable for new contributors

None

Feedback Requested

None

Components

Fix versions

Priority

Major