• Resolved jlstysis

    (@jlstysis)


    Is it possible to configure relevanssi to match a certain part of the search term?
    For example, if a user searches for the term “running” to return all results that match “run”. I understand relevanssi does partial matching when the search term matches the beginning or the end of the result, but I need the opposite for the result to match a part of the search term.
    Thank you.

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

    (@msaari)

    You can modify the search term before the search is done. It’s possible to automatically convert all searches for “running” to searches for “run”. You can use the relevanssi_modify_wp_query filter hook to change the search term (which is in $query->query_vars['s']).

    If you’re looking for stemming in general, there’s Relevanssi Snowball Stemmer which does stemming in English (and several other languages), but that requires Relevanssi Premium.

    Thread Starter jlstysis

    (@jlstysis)

    Yes, stemming is what I need. Thank you very much!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Partial Search Term’ is closed to new replies.