Skip to content

Commit

Permalink
spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
weizijun committed Aug 18, 2022
1 parent 4eaf674 commit dddd3e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
Expand Up @@ -1623,11 +1623,8 @@ private void indexValue(DocumentParserContext context, Number numericValue) {
// the last field is the current field, Add to the key map, so that we can validate if it has been added
List<IndexableField> fields = context.doc().getFields();
IndexableField last = fields.get(fields.size() - 1);
assert last.name().equals(fieldType().name()) : "last field name ["
+ last.name()
+ "] mis match field name ["
+ fieldType().name()
+ "]";
assert last.name().equals(fieldType().name())
: "last field name [" + last.name() + "] mis match field name [" + fieldType().name() + "]";
context.doc().onlyAddKey(fieldType().name(), fields.get(fields.size() - 1));
}

Expand Down
Expand Up @@ -10,16 +10,13 @@

import org.apache.lucene.index.DocValuesType;
import org.apache.lucene.index.IndexableField;
import org.elasticsearch.Version;
import org.elasticsearch.common.Strings;
import org.elasticsearch.core.Tuple;
import org.elasticsearch.index.mapper.NumberFieldMapper.NumberType;
import org.elasticsearch.index.mapper.NumberFieldTypeTests.OutOfRangeSpec;
import org.elasticsearch.index.termvectors.TermVectorsService;
import org.elasticsearch.script.DoubleFieldScript;
import org.elasticsearch.script.LongFieldScript;
import org.elasticsearch.script.Script;
import org.elasticsearch.script.ScriptCompiler;
import org.elasticsearch.script.ScriptContext;
import org.elasticsearch.script.ScriptFactory;
import org.elasticsearch.xcontent.XContentBuilder;
Expand Down

0 comments on commit dddd3e1

Please sign in to comment.