We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b4495a4 + 10ce322 commit 90f859fCopy full SHA for 90f859f
README.md
@@ -160,6 +160,37 @@ ResultItem {
160
}
161
```
162
163
+#### Query Suggestion
164
+
165
+```javascript
166
+var options = {
167
+ size: 3,
168
+ types: {
169
+ documents: {
170
+ fields: ["name"]
171
+ }
172
173
+};
174
175
+client
176
+ .querySuggestion("cat", {
177
178
179
180
181
182
183
+ })
184
+ .then(response => {
185
+ response.results.documents.forEach(document => {
186
+ console.log(document.suggestion);
187
+ });
188
189
+ .catch(error => {
190
+ console.log(`error: ${error}`);
191
192
+```
193
194
#### Multi Search
195
196
It is possible to run multiple queries at once using the `multiSearch` method.
0 commit comments