File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
server/src/test/java/org/elasticsearch/index/mapper/vectors Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff 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 ) -> {
You can’t perform that action at this time.
0 commit comments