From 803b436fda4c2914701b52aea31aa83b91539f1d Mon Sep 17 00:00:00 2001 From: Michael Sokolov Date: Thu, 24 Aug 2017 14:49:09 -0400 Subject: [PATCH] Make FacetField.TYPE public Everything else in the class is public, and all the other Field.TYPE constants are public. I want to use this in a field factory class. --- lucene/facet/src/java/org/apache/lucene/facet/FacetField.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lucene/facet/src/java/org/apache/lucene/facet/FacetField.java b/lucene/facet/src/java/org/apache/lucene/facet/FacetField.java index 14dabf1e8db..81dca56a0d7 100644 --- a/lucene/facet/src/java/org/apache/lucene/facet/FacetField.java +++ b/lucene/facet/src/java/org/apache/lucene/facet/FacetField.java @@ -31,7 +31,7 @@ import org.apache.lucene.index.IndexOptions; * you add the document to IndexWriter. */ public class FacetField extends Field { - static final FieldType TYPE = new FieldType(); + public static final FieldType TYPE = new FieldType(); static { TYPE.setIndexOptions(IndexOptions.DOCS_AND_FREQS_AND_POSITIONS); TYPE.freeze();