Skip to content

Commit d8a53fb

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent 7136e09 commit d8a53fb

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

server/src/test/java/org/elasticsearch/index/mapper/vectors/SparseVectorFieldMapperTests.java

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,10 @@ private PruningScenario getEffectivePruningScenario(
802802
}
803803

804804
if (shouldPrune == null) {
805-
shouldPrune = indexVersion.between(SPARSE_VECTOR_PRUNING_INDEX_OPTIONS_SUPPORT_BACKPORT_8_X, IndexVersions.UPGRADE_TO_LUCENE_10_0_0) || indexVersion.onOrAfter(SPARSE_VECTOR_PRUNING_INDEX_OPTIONS_SUPPORT);
805+
shouldPrune = indexVersion.between(
806+
SPARSE_VECTOR_PRUNING_INDEX_OPTIONS_SUPPORT_BACKPORT_8_X,
807+
IndexVersions.UPGRADE_TO_LUCENE_10_0_0
808+
) || indexVersion.onOrAfter(SPARSE_VECTOR_PRUNING_INDEX_OPTIONS_SUPPORT);
806809
}
807810

808811
PruningScenario pruningScenario = PruningScenario.NO_PRUNING;
@@ -840,10 +843,9 @@ private List<Query> getExpectedQueryClauses(
840843
}
841844

842845
private void assertPruningScenario(PruningOptions indexPruningOptions, PruningOptions queryPruningOptions) throws IOException {
843-
IndexVersion indexVersion = ESTestCase.randomFrom(IndexVersionUtils.allReleasedVersions().subSet(
844-
SPARSE_VECTOR_PRUNING_INDEX_OPTIONS_SUPPORT_BACKPORT_8_X,
845-
IndexVersion.current()
846-
));
846+
IndexVersion indexVersion = ESTestCase.randomFrom(
847+
IndexVersionUtils.allReleasedVersions().subSet(SPARSE_VECTOR_PRUNING_INDEX_OPTIONS_SUPPORT_BACKPORT_8_X, IndexVersion.current())
848+
);
847849
MapperService mapperService = createMapperService(indexVersion, getIndexMapping(indexPruningOptions));
848850
PruningScenario effectivePruningScenario = getEffectivePruningScenario(indexPruningOptions, queryPruningOptions, indexVersion);
849851
withSearchExecutionContext(mapperService, (context) -> {

0 commit comments

Comments
 (0)