Skip to content

Commit 378a8da

Browse files
authored
CLOUDP-98424: Add unit tests for atlas search (#246)
1 parent 0c6a090 commit 378a8da

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

mongodbatlas/search_test.go

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,17 @@ func TestSearch_ListIndexes(t *testing.T) {
6767
"plot": {
6868
"analyzer": "lucene.standard",
6969
"type": "string"
70-
}
70+
},
71+
"title": [
72+
{
73+
"analyzer": "lucene.keyword",
74+
"searchAnalyzer": "lucene.keyword",
75+
"type": "string"
76+
},
77+
{
78+
"type": "autocomplete"
79+
}
80+
]
7181
}
7282
},
7383
"name": "SearchIndex1",
@@ -123,6 +133,16 @@ func TestSearch_ListIndexes(t *testing.T) {
123133
"analyzer": "lucene.standard",
124134
"type": "string",
125135
},
136+
"title": []interface{}{
137+
map[string]interface{}{
138+
"analyzer": "lucene.keyword",
139+
"searchAnalyzer": "lucene.keyword",
140+
"type": "string",
141+
},
142+
map[string]interface{}{
143+
"type": "autocomplete",
144+
},
145+
},
126146
},
127147
},
128148
Name: "SearchIndex1",

0 commit comments

Comments
 (0)