Class DocumentScrubber

java.lang.Object
com.atlassian.jira.issue.index.DocumentScrubber
All Implemented Interfaces:
Consumer<org.apache.lucene.document.Document>

public class DocumentScrubber extends Object implements Consumer<org.apache.lucene.document.Document>
A utility class that scrubs documents clean of fields that could generate Lucene errors, i.e. immense termes and too-large DocValues.
Since:
v8.5
  • Constructor Details

    • DocumentScrubber

      public DocumentScrubber()
  • Method Details

    • accept

      public void accept(org.apache.lucene.document.Document document)
      Specified by:
      accept in interface Consumer<org.apache.lucene.document.Document>