static { TOKEN_FIELD_TYPE.setIndexOptions(IndexOptions.DOCS); TOKEN_FIELD_TYPE.setStored(false); TOKEN_FIELD_TYPE.setTokenized(false); TOKEN_FIELD_TYPE.setNumericPrecisionStep(Defaults.PRECISION_STEP_64_BIT); TOKEN_FIELD_TYPE.setIndexAnalyzer( NumericLongAnalyzer.buildNamedAnalyzer(Defaults.PRECISION_STEP_64_BIT)); TOKEN_FIELD_TYPE.setSearchAnalyzer(NumericLongAnalyzer.buildNamedAnalyzer(Integer.MAX_VALUE)); TOKEN_FIELD_TYPE.setNames(new MappedFieldType.Names(NAME)); TOKEN_FIELD_TYPE.freeze(); }
@Override protected NamedAnalyzer makeNumberAnalyzer(int precisionStep) { return NumericLongAnalyzer.buildNamedAnalyzer(precisionStep); }