Skip to content

Commit

Permalink
Autocomplete additionals fuzziness config (#708)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jade-GG authored Jan 23, 2025
1 parent fc7429f commit 2cdff4d
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 @@ -63,13 +63,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 2cdff4d

Please sign in to comment.