• Resolved Amoditer

    (@amoditer)


    Hello Mikko,

    Could you help me please? Is there any way to relevanssi search inside words too, when I use Fuzzy Matching?

    I saw your example:

    “The search term has to be either in the beginning or the end of the word, so searching for “ion” will find “caution” or “ionized”, but not “cautionary”.”

    But I need to find the “cautionary” words too when I searching for “ion”.

    Thank you for your answer.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Mikko Saari

    (@msaari)

    add_filter('relevanssi_fuzzy_query', 'rlv_search_inside_words');
    function rlv_search_inside_words($query) {
        return "(term LIKE '%#term#%') ";
    }

    Add this to your theme functions.php. That should do it.

    Thread Starter Amoditer

    (@amoditer)

    Thank you :D:D:D It works!!

    Have a good day and happy new year 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Fuzzy Matching question’ is closed to new replies.