File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed
main/java/org/elasticsearch/index/mapper/vectors
test/java/org/elasticsearch/index/mapper/vectors Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -130,10 +130,9 @@ protected Parameter<?>[] getParameters() {
130130 @ Override
131131 public SparseVectorFieldMapper build (MapperBuilderContext context ) {
132132 IndexOptions builderIndexOptions = indexOptions .getValue ();
133- if (builderIndexOptions == null &&
134- mappingParserContext != null &&
135- shouldHaveDefaultPruningConfig (mappingParserContext .indexVersionCreated ())
136- ) {
133+ if (builderIndexOptions == null
134+ && mappingParserContext != null
135+ && shouldHaveDefaultPruningConfig (mappingParserContext .indexVersionCreated ())) {
137136 builderIndexOptions = new IndexOptions (true , new TokenPruningConfig ());
138137 }
139138
Original file line number Diff line number Diff line change 2929import org .elasticsearch .index .mapper .DocumentMapper ;
3030import org .elasticsearch .index .mapper .DocumentParsingException ;
3131import org .elasticsearch .index .mapper .MappedFieldType ;
32- import org .elasticsearch .index .mapper .Mapper ;
3332import org .elasticsearch .index .mapper .MapperParsingException ;
3433import org .elasticsearch .index .mapper .MapperService ;
3534import org .elasticsearch .index .mapper .MapperTestCase ;
3635import org .elasticsearch .index .mapper .ParsedDocument ;
37- import org .elasticsearch .index .mapper .SourceToParse ;
3836import org .elasticsearch .index .query .SearchExecutionContext ;
3937import org .elasticsearch .inference .WeightedToken ;
4038import org .elasticsearch .search .lookup .Source ;
You can’t perform that action at this time.
0 commit comments