Skip to content

Commit

Permalink
Autocomplete additionals fuzziness config (#709)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jade-GG authored Jan 23, 2025
1 parent fd3db25 commit 47892cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion resources/js/components/Search/Autocomplete.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,14 @@ export default {
let fields = data['fields'] ?? data
let size = data['size'] ?? self.size ?? undefined
let sort = data['sort'] ?? undefined
let fuzziness = data['fuzziness'] ?? 'AUTO'
let multimatch = self.multiMatchTypes.map((type) => ({
multi_match: {
query: query,
type: type,
fields: fields,
fuzziness: type.includes('phrase') ? undefined : 'AUTO',
fuzziness: type.includes('phrase') ? undefined : fuzziness,
},
}))
Expand Down

0 comments on commit 47892cc

Please sign in to comment.