Fuzzy matching aims to make SearchWP a bit more lenient with search queries. Use this extension to include search terms that are close in spelling to terms within your index. There are some filters available for this Extension that let you fine-tune how loose the fuzziness is.
searchwp_fuzzy_min_length
Set the minimum word length to include in fuzzy matches (default is 5)
Code:
You must be logged-in to view.
(6 lines)
searchwp_fuzzy_threshold
Beyond basic fuzzy matching, SearchWP will apply some primitive spell checking to submitted terms. This filter lets you specify what minimum percentage should be used to constitute a valid match. Must be 0 – 100. (default is 80)
Code:
You must be logged-in to view.
(6 lines)
searchwp_fuzzy_digit_threshold
Set the maximum percentage of digits in search term to perform spell checking (default is 10)
Code:
You must be logged-in to view.
(6 lines)