@@ -228,13 +228,23 @@ void createSearchAliasViewWithOptions(ArangoDatabase db) {
228228 void createSearchAliasViewWithIndexesAndGetProperties (ArangoDatabase db ) {
229229 assumeTrue (isAtLeastVersion (3 , 10 ));
230230 ArangoCollection col = db .collection (COLL_1 );
231- String idxName = "idx-" + rnd ();
231+ String idxName1 = "idx-" + rnd ();
232232 col .ensureInvertedIndex (new InvertedIndexOptions ()
233- .name (idxName )
233+ .name (idxName1 )
234234 .fields (new InvertedIndexField ().name ("a" + rnd ())));
235+
236+ String idxName2 = "idx-" + rnd ();
237+ col .ensureInvertedIndex (new InvertedIndexOptions ()
238+ .name (idxName2 )
239+ .fields (new InvertedIndexField ().name ("a" + rnd ())));
240+
235241 String viewName = "view-" + rnd ();
236242 final SearchAliasCreateOptions options = new SearchAliasCreateOptions ()
237- .indexes (new SearchAliasIndex (COLL_1 , idxName ));
243+ .indexes (
244+ new SearchAliasIndex (COLL_1 , idxName1 , SearchAliasIndex .OperationType .add ),
245+ new SearchAliasIndex (COLL_1 , idxName2 , SearchAliasIndex .OperationType .add ),
246+ new SearchAliasIndex (COLL_1 , idxName2 , SearchAliasIndex .OperationType .del )
247+ );
238248 final ViewEntity info = db .searchAlias (viewName ).create (options );
239249 assertThat (info ).isNotNull ();
240250 assertThat (info .getId ()).isNotNull ();
@@ -249,7 +259,7 @@ void createSearchAliasViewWithIndexesAndGetProperties(ArangoDatabase db) {
249259 assertThat (properties .getIndexes ())
250260 .isNotNull ()
251261 .isNotEmpty ()
252- .anyMatch (i -> i .getCollection ().equals (COLL_1 ) && i .getIndex ().equals (idxName ));
262+ .anyMatch (i -> i .getCollection ().equals (COLL_1 ) && i .getIndex ().equals (idxName1 ));
253263 }
254264
255265 @ ParameterizedTest (name = "{index}" )
0 commit comments