@@ -77,43 +77,42 @@ export type CreateAnalyzerOptions =
7777
7878type CreateAnalyzerOptionsType <
7979 Type extends AnalyzerType ,
80- Properties = void
80+ Properties = void ,
8181> = Properties extends void
8282 ? {
83- /**
84- * Type of the Analyzer.
85- */
86- type : Type ;
87- /**
88- * Features to enable for this Analyzer.
89- */
90- features ?: AnalyzerFeature [ ] ;
91- /**
92- * This Analyzer does not take additional properties.
93- */
94- properties ?: Record < string , never > ;
95- }
83+ /**
84+ * Type of the Analyzer.
85+ */
86+ type : Type ;
87+ /**
88+ * Features to enable for this Analyzer.
89+ */
90+ features ?: AnalyzerFeature [ ] ;
91+ /**
92+ * This Analyzer does not take additional properties.
93+ */
94+ properties ?: Record < string , never > ;
95+ }
9696 : {
97- /**
98- * Type of the Analyzer.
99- */
100- type : Type ;
101- /**
102- * Features to enable for this Analyzer.
103- */
104- features ?: AnalyzerFeature [ ] ;
105- /**
106- * Additional properties for the Analyzer.
107- */
108- properties : Properties ;
109- } ;
97+ /**
98+ * Type of the Analyzer.
99+ */
100+ type : Type ;
101+ /**
102+ * Features to enable for this Analyzer.
103+ */
104+ features ?: AnalyzerFeature [ ] ;
105+ /**
106+ * Additional properties for the Analyzer.
107+ */
108+ properties : Properties ;
109+ } ;
110110
111111/**
112112 * Options for creating an Identity Analyzer.
113113 */
114- export type CreateIdentityAnalyzerOptions = CreateAnalyzerOptionsType <
115- "identity"
116- > ;
114+ export type CreateIdentityAnalyzerOptions =
115+ CreateAnalyzerOptionsType < "identity" > ;
117116
118117/**
119118 * Options for creating a Delimiter Analyzer.
@@ -122,12 +121,12 @@ export type CreateDelimiterAnalyzerOptions = CreateAnalyzerOptionsType<
122121 "delimiter" ,
123122 | string
124123 | {
125- /**
126- * This value will be used as delimiter to split text into tokens as
127- * specified in RFC 4180, without starting new records on newlines.
128- */
129- delimiter : string ;
130- }
124+ /**
125+ * This value will be used as delimiter to split text into tokens as
126+ * specified in RFC 4180, without starting new records on newlines.
127+ */
128+ delimiter : string ;
129+ }
131130> ;
132131
133132/**
@@ -583,7 +582,7 @@ export type AnalyzerDescription =
583582 */
584583type AnalyzerDescriptionType <
585584 Type extends string ,
586- Properties = Record < string , never >
585+ Properties = Record < string , never > ,
587586> = {
588587 /**
589588 * A unique name for this Analyzer.
@@ -932,43 +931,43 @@ export class Analyzer {
932931 * ```
933932 */
934933 create < Options extends CreateAnalyzerOptions > (
935- options : Options
934+ options : Options ,
936935 ) : Promise <
937936 Options extends CreateIdentityAnalyzerOptions
938- ? IdentityAnalyzerDescription
939- : Options extends CreateDelimiterAnalyzerOptions
940- ? DelimiterAnalyzerDescription
941- : Options extends CreateStemAnalyzerOptions
942- ? StemAnalyzerDescription
943- : Options extends CreateNormAnalyzerOptions
944- ? NormAnalyzerDescription
945- : Options extends CreateNgramAnalyzerOptions
946- ? NgramAnalyzerDescription
947- : Options extends CreateTextAnalyzerOptions
948- ? TextAnalyzerDescription
949- : Options extends CreateSegmentationAnalyzerOptions
950- ? SegmentationAnalyzerDescription
951- : Options extends CreateAqlAnalyzerOptions
952- ? AqlAnalyzerDescription
953- : Options extends CreatePipelineAnalyzerOptions
954- ? PipelineAnalyzerDescription
955- : Options extends CreateStopwordsAnalyzerOptions
956- ? StopwordsAnalyzerDescription
957- : Options extends CreateCollationAnalyzerOptions
958- ? CollationAnalyzerDescription
959- : Options extends CreateMinHashAnalyzerOptions
960- ? MinHashAnalyzerDescription
961- : Options extends CreateClassificationAnalyzerOptions
962- ? ClassificationAnalyzerDescription
963- : Options extends CreateNearestNeighborsAnalyzerOptions
964- ? NearestNeighborsAnalyzerDescription
965- : Options extends CreateGeoJsonAnalyzerOptions
966- ? GeoJsonAnalyzerDescription
967- : Options extends CreateGeoPointAnalyzerOptions
968- ? GeoPointAnalyzerDescription
969- : Options extends CreateGeoS2AnalyzerOptions
970- ? GeoS2AnalyzerDescription
971- : AnalyzerDescription
937+ ? IdentityAnalyzerDescription
938+ : Options extends CreateDelimiterAnalyzerOptions
939+ ? DelimiterAnalyzerDescription
940+ : Options extends CreateStemAnalyzerOptions
941+ ? StemAnalyzerDescription
942+ : Options extends CreateNormAnalyzerOptions
943+ ? NormAnalyzerDescription
944+ : Options extends CreateNgramAnalyzerOptions
945+ ? NgramAnalyzerDescription
946+ : Options extends CreateTextAnalyzerOptions
947+ ? TextAnalyzerDescription
948+ : Options extends CreateSegmentationAnalyzerOptions
949+ ? SegmentationAnalyzerDescription
950+ : Options extends CreateAqlAnalyzerOptions
951+ ? AqlAnalyzerDescription
952+ : Options extends CreatePipelineAnalyzerOptions
953+ ? PipelineAnalyzerDescription
954+ : Options extends CreateStopwordsAnalyzerOptions
955+ ? StopwordsAnalyzerDescription
956+ : Options extends CreateCollationAnalyzerOptions
957+ ? CollationAnalyzerDescription
958+ : Options extends CreateMinHashAnalyzerOptions
959+ ? MinHashAnalyzerDescription
960+ : Options extends CreateClassificationAnalyzerOptions
961+ ? ClassificationAnalyzerDescription
962+ : Options extends CreateNearestNeighborsAnalyzerOptions
963+ ? NearestNeighborsAnalyzerDescription
964+ : Options extends CreateGeoJsonAnalyzerOptions
965+ ? GeoJsonAnalyzerDescription
966+ : Options extends CreateGeoPointAnalyzerOptions
967+ ? GeoPointAnalyzerDescription
968+ : Options extends CreateGeoS2AnalyzerOptions
969+ ? GeoS2AnalyzerDescription
970+ : AnalyzerDescription
972971 > {
973972 return this . _db . request ( {
974973 method : "POST" ,
@@ -991,12 +990,14 @@ export class Analyzer {
991990 * // the Analyzer "some-analyzer" no longer exists
992991 * ```
993992 */
994- drop ( force : boolean = false ) : Promise < connection . ArangoApiResponse < { name : string } > > {
993+ drop (
994+ force : boolean = false ,
995+ ) : Promise < connection . ArangoApiResponse < { name : string } > > {
995996 return this . _db . request ( {
996997 method : "DELETE" ,
997998 pathname : `/_api/analyzer/${ encodeURIComponent ( this . _name ) } ` ,
998999 search : { force } ,
9991000 } ) ;
10001001 }
10011002}
1002- //#endregion
1003+ //#endregion
0 commit comments