@@ -65,6 +65,10 @@ const (
6565 ArangoSearchAnalyzerTypeGeoJSON ArangoSearchAnalyzerType = "geojson"
6666 // ArangoSearchAnalyzerTypeGeoPoint an Analyzer capable of breaking up JSON object describing a coordinate into a set of indexable tokens for further usage with ArangoSearch Geo functions.
6767 ArangoSearchAnalyzerTypeGeoPoint ArangoSearchAnalyzerType = "geopoint"
68+ // ArangoSearchAnalyzerTypeSegmentation an Analyzer capable of breaking up the input text into tokens in a language-agnostic manner
69+ ArangoSearchAnalyzerTypeSegmentation ArangoSearchAnalyzerType = "segmentation"
70+ // ArangoSearchAnalyzerTypeCollation an Analyzer capable of converting the input into a set of language-specific tokens
71+ ArangoSearchAnalyzerTypeCollation ArangoSearchAnalyzerType = "collation"
6872)
6973
7074// ArangoSearchAnalyzerFeature specifies a feature to an analyzer
@@ -90,6 +94,17 @@ const (
9094 ArangoSearchCaseNone ArangoSearchCaseType = "none"
9195)
9296
97+ type ArangoSearchBreakType string
98+
99+ const (
100+ // ArangoSearchBreakTypeAll to return all tokens
101+ ArangoSearchBreakTypeAll ArangoSearchBreakType = "all"
102+ // ArangoSearchBreakTypeAlpha to return tokens composed of alphanumeric characters only (default)
103+ ArangoSearchBreakTypeAlpha ArangoSearchBreakType = "alpha"
104+ // ArangoSearchBreakTypeGraphic to return tokens composed of non-whitespace characters only
105+ ArangoSearchBreakTypeGraphic ArangoSearchBreakType = "graphic"
106+ )
107+
93108type ArangoSearchNGramStreamType string
94109
95110const (
@@ -120,7 +135,7 @@ type ArangoSearchAnalyzerProperties struct {
120135 Delimiter string `json:"delimiter,omitempty"`
121136 // Accent used by Norm, Text
122137 Accent * bool `json:"accent,omitempty"`
123- // Case used by Norm, Text
138+ // Case used by Norm, Text, Segmentation
124139 Case ArangoSearchCaseType `json:"case,omitempty"`
125140
126141 // EdgeNGram used by Text
@@ -173,6 +188,9 @@ type ArangoSearchAnalyzerProperties struct {
173188 Latitude []string `json:"latitude,omitempty"`
174189 // Longitude used by GetPoint.
175190 Longitude []string `json:"longitude,omitempty"`
191+
192+ // Break used by Segmentation
193+ Break ArangoSearchBreakType `json:"break,omitempty"`
176194}
177195
178196// ArangoSearchAnalyzerGeoJSONType GeoJSON Type parameter.
0 commit comments