This commit is contained in:
Karl Wright 2017-08-28 01:50:16 -04:00
commit 869fc53b7e
1 changed files with 3 additions and 1 deletions

View File

@ -31,7 +31,9 @@ import org.apache.lucene.index.IndexOptions;
* you add the document to IndexWriter.
*/
public class FacetField extends Field {
static final FieldType TYPE = new FieldType();
/** Field type used for storing facet values: docs, freqs, and positions. */
public static final FieldType TYPE = new FieldType();
static {
TYPE.setIndexOptions(IndexOptions.DOCS_AND_FREQS_AND_POSITIONS);
TYPE.freeze();