File tree 3 files changed +32
-0
lines changed
3 files changed +32
-0
lines changed Original file line number Diff line number Diff line change 1
1
# Change Log
2
2
3
3
## [ master] ( https://github.com/arangodb/go-driver/tree/master ) (N/A)
4
+ - Add ` hex ` property to analyzer's properties
4
5
5
6
## [ 1.3.3] ( https://github.com/arangodb/go-driver/tree/v1.3.3 ) (2022-07-27)
6
7
- Fix ` lastValue ` field type
Original file line number Diff line number Diff line change @@ -282,6 +282,32 @@ func TestArangoSearchAnalyzerEnsureAnalyzer(t *testing.T) {
282
282
},
283
283
},
284
284
},
285
+ {
286
+ Name : "create-stopWords" ,
287
+ MinVersion : newVersion ("3.9" ),
288
+ Definition : driver.ArangoSearchAnalyzerDefinition {
289
+ Name : "my-stopWords" ,
290
+ Type : driver .ArangoSearchAnalyzerTypeStopwords ,
291
+ Properties : driver.ArangoSearchAnalyzerProperties {
292
+ Hex : newBool (true ),
293
+ Stopwords : []string {
294
+ "616e64" ,
295
+ "746865" ,
296
+ },
297
+ },
298
+ },
299
+ ExpectedDefinition : & driver.ArangoSearchAnalyzerDefinition {
300
+ Name : "my-stopWords" ,
301
+ Type : driver .ArangoSearchAnalyzerTypeStopwords ,
302
+ Properties : driver.ArangoSearchAnalyzerProperties {
303
+ Hex : newBool (true ),
304
+ Stopwords : []string {
305
+ "616e64" ,
306
+ "746865" ,
307
+ },
308
+ },
309
+ },
310
+ },
285
311
}
286
312
287
313
for _ , testCase := range testCases {
Original file line number Diff line number Diff line change @@ -191,6 +191,11 @@ type ArangoSearchAnalyzerProperties struct {
191
191
192
192
// Break used by Segmentation
193
193
Break ArangoSearchBreakType `json:"break,omitempty"`
194
+
195
+ // Hex used by stopwords.
196
+ // If false then each string in stopwords is used verbatim.
197
+ // If true, then each string in stopwords needs to be hex-encoded.
198
+ Hex * bool `json:"hex,omitempty"`
194
199
}
195
200
196
201
// ArangoSearchAnalyzerGeoJSONType GeoJSON Type parameter.
You can’t perform that action at this time.
0 commit comments