Skip to content

Commit 28ba8e1

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent 46157d8 commit 28ba8e1

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

x-pack/plugin/inference/src/test/java/org/elasticsearch/xpack/inference/mapper/SemanticTextFieldMapperTests.java

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -746,20 +746,20 @@ public void testSparseVectorMappingUpdate() throws IOException {
746746
indexVersion
747747
);
748748
var expectedIndexOptions = (indexOptions == null)
749-
? new SemanticTextIndexOptions(
750-
SemanticTextIndexOptions.SupportedIndexOptions.SPARSE_VECTOR,
751-
SparseVectorFieldMapper.SparseVectorIndexOptions.getDefaultIndexOptions(indexVersion)
752-
)
753-
: indexOptions;
749+
? new SemanticTextIndexOptions(
750+
SemanticTextIndexOptions.SupportedIndexOptions.SPARSE_VECTOR,
751+
SparseVectorFieldMapper.SparseVectorIndexOptions.getDefaultIndexOptions(indexVersion)
752+
)
753+
: indexOptions;
754754
assertSemanticTextField(mapperService, fieldName, true, chunkingSettings, expectedIndexOptions);
755755

756756
final SemanticTextIndexOptions newIndexOptions = randomSemanticTextIndexOptions(TaskType.SPARSE_EMBEDDING);
757757
expectedIndexOptions = (newIndexOptions == null)
758-
? new SemanticTextIndexOptions(
759-
SemanticTextIndexOptions.SupportedIndexOptions.SPARSE_VECTOR,
760-
SparseVectorFieldMapper.SparseVectorIndexOptions.getDefaultIndexOptions(indexVersion)
761-
)
762-
: newIndexOptions;
758+
? new SemanticTextIndexOptions(
759+
SemanticTextIndexOptions.SupportedIndexOptions.SPARSE_VECTOR,
760+
SparseVectorFieldMapper.SparseVectorIndexOptions.getDefaultIndexOptions(indexVersion)
761+
)
762+
: newIndexOptions;
763763

764764
ChunkingSettings newChunkingSettings = generateRandomChunkingSettingsOtherThan(chunkingSettings);
765765
merge(
@@ -977,9 +977,9 @@ public void testSuccessfulParse() throws IOException {
977977

978978
var expectedIndexOptions = (indexOptions == null)
979979
? new SemanticTextIndexOptions(
980-
SemanticTextIndexOptions.SupportedIndexOptions.SPARSE_VECTOR,
981-
SparseVectorFieldMapper.SparseVectorIndexOptions.getDefaultIndexOptions(indexVersion)
982-
)
980+
SemanticTextIndexOptions.SupportedIndexOptions.SPARSE_VECTOR,
981+
SparseVectorFieldMapper.SparseVectorIndexOptions.getDefaultIndexOptions(indexVersion)
982+
)
983983
: indexOptions;
984984

985985
MapperService mapperService = createMapperServiceWithIndexVersion(mapping, useLegacyFormat, indexVersion);

0 commit comments

Comments
 (0)