24
24
import com .arangodb .ArangoSerializationAccessor ;
25
25
import com .arangodb .entity .*;
26
26
import com .arangodb .entity .arangosearch .AnalyzerEntity ;
27
+ import com .arangodb .entity .arangosearch .analyzer .SearchAnalyzer ;
27
28
import com .arangodb .model .*;
28
29
import com .arangodb .model .arangosearch .AnalyzerDeleteOptions ;
29
30
import com .arangodb .model .arangosearch .ArangoSearchCreateOptions ;
@@ -704,34 +705,70 @@ <T> CompletableFuture<T> getDocument(final String id, final Class<T> type, final
704
705
* @return the created Analyzer
705
706
* @see <a href="https://www.arangodb.com/docs/stable/http/analyzers.html">API Documentation</a>
706
707
* @since ArangoDB 3.5.0
708
+ * @deprecated use {@link this#createSearchAnalyzer(SearchAnalyzer)}}
707
709
*/
708
710
CompletableFuture <AnalyzerEntity > createAnalyzer (AnalyzerEntity options );
709
711
712
+ /**
713
+ * Creates an Analyzer
714
+ *
715
+ * @param analyzer SearchAnalyzer
716
+ * @return the created Analyzer
717
+ * @throws ArangoDBException
718
+ * @see <a href="https://www.arangodb.com/docs/stable/http/analyzers.html">API Documentation</a>
719
+ * @since ArangoDB 3.5.0
720
+ */
721
+ CompletableFuture <SearchAnalyzer > createSearchAnalyzer (SearchAnalyzer analyzer );
722
+
710
723
/**
711
724
* Gets information about an Analyzer
712
725
*
713
726
* @param name of the Analyzer without database prefix
714
727
* @return information about an Analyzer
715
728
* @see <a href="https://www.arangodb.com/docs/stable/http/analyzers.html">API Documentation</a>
716
729
* @since ArangoDB 3.5.0
730
+ * @deprecated use {@link this#getSearchAnalyzer(String)}}
717
731
*/
718
732
CompletableFuture <AnalyzerEntity > getAnalyzer (String name );
719
733
734
+ /**
735
+ * Gets information about an Analyzer
736
+ *
737
+ * @param name of the Analyzer without database prefix
738
+ * @return information about an Analyzer
739
+ * @throws ArangoDBException
740
+ * @see <a href="https://www.arangodb.com/docs/stable/http/analyzers.html">API Documentation</a>
741
+ * @since ArangoDB 3.5.0
742
+ */
743
+ CompletableFuture <SearchAnalyzer > getSearchAnalyzer (String name );
744
+
720
745
/**
721
746
* Retrieves all analyzers definitions.
722
747
*
723
748
* @return collection of all analyzers definitions
724
749
* @see <a href="https://www.arangodb.com/docs/stable/http/analyzers.html">API Documentation</a>
725
750
* @since ArangoDB 3.5.0
751
+ * @deprecated use {@link this#getSearchAnalyzers()}
726
752
*/
727
753
CompletableFuture <Collection <AnalyzerEntity >> getAnalyzers ();
728
754
755
+ /**
756
+ * Retrieves all analyzers definitions.
757
+ *
758
+ * @return collection of all analyzers definitions
759
+ * @throws ArangoDBException
760
+ * @see <a href="https://www.arangodb.com/docs/stable/http/analyzers.html">API Documentation</a>
761
+ * @since ArangoDB 3.5.0
762
+ */
763
+ CompletableFuture <Collection <SearchAnalyzer >> getSearchAnalyzers ();
764
+
729
765
/**
730
766
* Deletes an Analyzer
731
767
*
732
768
* @param name of the Analyzer without database prefix
733
769
* @see <a href="https://www.arangodb.com/docs/stable/http/analyzers.html">API Documentation</a>
734
770
* @since ArangoDB 3.5.0
771
+ * @deprecated use {@link this#deleteSearchAnalyzer(String)}}}
735
772
*/
736
773
CompletableFuture <Void > deleteAnalyzer (String name );
737
774
@@ -742,7 +779,29 @@ <T> CompletableFuture<T> getDocument(final String id, final Class<T> type, final
742
779
* @param options AnalyzerDeleteOptions
743
780
* @see <a href="https://www.arangodb.com/docs/stable/http/analyzers.html">API Documentation</a>
744
781
* @since ArangoDB 3.5.0
782
+ * @deprecated use {@link this#deleteSearchAnalyzer(String, AnalyzerDeleteOptions)}}}
745
783
*/
746
784
CompletableFuture <Void > deleteAnalyzer (String name , AnalyzerDeleteOptions options );
747
785
786
+ /**
787
+ * Deletes an Analyzer
788
+ *
789
+ * @param name of the Analyzer without database prefix
790
+ * @throws ArangoDBException
791
+ * @see <a href="https://www.arangodb.com/docs/stable/http/analyzers.html">API Documentation</a>
792
+ * @since ArangoDB 3.5.0
793
+ */
794
+ CompletableFuture <Void > deleteSearchAnalyzer (String name );
795
+
796
+ /**
797
+ * Deletes an Analyzer
798
+ *
799
+ * @param name of the Analyzer without database prefix
800
+ * @param options AnalyzerDeleteOptions
801
+ * @throws ArangoDBException
802
+ * @see <a href="https://www.arangodb.com/docs/stable/http/analyzers.html">API Documentation</a>
803
+ * @since ArangoDB 3.5.0
804
+ */
805
+ CompletableFuture <Void > deleteSearchAnalyzer (String name , AnalyzerDeleteOptions options );
806
+
748
807
}
0 commit comments