Log in

SearchWP - Fuzzy Matches 1.4.4

Download SearchWP - Fuzzy Matches 1.4.4 from nulled fire. Fuzzy matching aims to make SearchWP a bit more lenient with search queries.
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:
<?php
function my_fuzzy_word_length()
{
  return 5;
}
add_filter( 'searchwp_fuzzy_min_length', 'my_fuzzy_word_length' );
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:
<?php
function my_fuzzy_threshold()
{
  return 85;
}
add_filter( 'searchwp_fuzzy_threshold', 'my_fuzzy_threshold' );
searchwp_fuzzy_digit_threshold
Set the maximum percentage of digits in search term to perform spell checking (default is 10)

Code:
<?php
function myChangeDigitThreshold()
{
  return 15; // 15% maximum threshold
}
add_filter( 'searchwp_fuzzy_digit_threshold', 'myChangeDigitThreshold' );
Uploaded By
Apanha
Last update
Rating
0.00 star(s) 0 ratings

Latest updates

  1. 1.4.4

    [Update] Updated updater
  2. 1.4.3

    [New] New filters searchwp_fuzzy_prefix and searchwp_fuzzy_suffix to refine control over partial...

About us

  • NulledFire.com is one of the most comprehensive repositories under the terms of GPL (GNU General Public License v3.0 Free as in Freedom) that provides premium Plugins, Themes and PHP Scripts for testing purposes.
    We promote WP codes to the users globally so that you can check it before buying from the original developer/designer.

User Menu

NulledFire Statistics

Posts
25,070
Comments
55,560
Members
13,500
Latest member
tegaenai