Skip to content

Commit 8838d7c

Browse files
authored
Merge pull request #5 from hyper63/tillathehun0/feat-add-fuzziness-2
feat(query): add fuzziness to query api #2
2 parents 404d649 + 8af31bb commit 8838d7c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: adapter.js

+2
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,8 @@ export default function ({ config, asyncFetch, headers, handleResponse }) {
280280
must: {
281281
multi_match: {
282282
query,
283+
// See https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-match-query.html#query-dsl-match-query-fuzziness
284+
fuzziness: "AUTO",
283285
fields,
284286
},
285287
},

0 commit comments

Comments
 (0)