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.
This commit is contained in:
Michael Sokolov 2017-08-24 14:49:09 -04:00 committed by Mike McCandless
parent d640c92b9f
commit 803b436fda
1 changed files with 1 additions and 1 deletions

View File

@ -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();