public CustomNumericField(NumberFieldMapper mapper, byte[] value) { this.mapper = mapper; this.name = mapper.names().indexName(); fieldsData = value; isIndexed = mapper.indexed(); isTokenized = mapper.indexed(); indexOptions = FieldInfo.IndexOptions.DOCS_ONLY; omitNorms = mapper.omitNorms(); if (value != null) { isStored = true; isBinary = true; binaryLength = value.length; binaryOffset = 0; } setStoreTermVector(Field.TermVector.NO); }