@@ -411,5 +411,46 @@ public void textAnalyzer() {
411411 createGetAndDeleteAnalyzer (options );
412412 }
413413
414+ @ Test
415+ public void arangoSearchOptions () {
416+ assumeTrue (isAtLeastVersion (3 , 4 ));
417+
418+ ArangoCollection collection = db .collection ("entities" );
419+ if (!collection .exists ())
420+ collection .create ();
421+
422+ ArangoSearchCreateOptions options = new ArangoSearchCreateOptions ()
423+ .link (
424+ CollectionLink .on ("entities" )
425+ .analyzers ("identity" )
426+ .fields (
427+ FieldLink .on ("id" )
428+ .analyzers ("identity" )
429+ )
430+ .includeAllFields (true )
431+ .storeValues (StoreValuesType .ID )
432+ .trackListPositions (false )
433+
434+ );
435+
436+ final ArangoSearch view = db .arangoSearch ("entities_view" );
437+ if (view .exists ())
438+ view .drop ();
439+
440+ view .create (options );
441+
442+ final ArangoSearchPropertiesEntity properties = view .getProperties ();
443+ assertThat (properties , is (not (nullValue ())));
444+ assertThat (properties .getId (), is (not (nullValue ())));
445+ assertThat (properties .getName (), is ("entities_view" ));
446+ assertThat (properties .getType (), is (ViewType .ARANGO_SEARCH ));
447+
448+ CollectionLink link = properties .getLinks ().iterator ().next ();
449+ assertThat (link .getAnalyzers (), contains ("identity" ));
450+ assertThat (link .getName (), is ("entities" ));
451+ assertThat (link .getIncludeAllFields (), is (true ));
452+ assertThat (link .getStoreValues (), is (StoreValuesType .ID ));
453+ assertThat (link .getTrackListPositions (), is (false ));
454+ }
414455
415456}
0 commit comments