Skip to content

Commit 56ae8fd

Browse files
authored
Don't omit stopwords field in analyzer definition (#292) (#294)
1 parent 17278d3 commit 56ae8fd

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## [master](https://github.com/arangodb/go-driver/tree/master) (N/A)
44
- Add Driver V2 in Alpha version
55
- Add HTTP2 support for V1 and V2
6+
- Don't omit the `stopwords` field. The field is mandatory in 3.6 ArangoDB
67

78
## [1.1.0](https://github.com/arangodb/go-driver/tree/1.1.0) (2020-08-11)
89
- Use internal coordinator communication for cursors if specified coordinator was not found on endpoint list

view_arangosearch.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ type ArangoSearchAnalyzerProperties struct {
118118

119119
// Stemming used by Text
120120
Stemming *bool `json:"stemming,omitempty"`
121-
// Stopword used by Text
122-
Stopwords []string `json:"stopwords,omitempty"`
121+
// Stopword used by Text. This field is not mandatory since version 3.7 of arangod so it can not be omitted in 3.6.
122+
Stopwords []string `json:"stopwords"`
123123
// StopwordsPath used by Text
124124
StopwordsPath []string `json:"stopwordsPath,omitempty"`
125125
}

0 commit comments

Comments
 (0)