• Resolved webprepare

    (@webprepare)


    Hey Guys,

    We are running into issues with searching products. For example, we have several products with titles like this:

    AC/DC

    Most of our visitors are entering the search term ‘acdc’. But that give no results.

    Any suggestions on how to make these products searchable?

    Thanks a lot in advance,

    Jordy

    The page I need help with: [log in to see the link]

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

    (@msaari)

    By default, Relevanssi replaces slashes with spaces, so “AC/DC” becomes “AC DC” and isn’t indexed, because the words are too short.

    Add this to your site:

    add_filter( 'relevanssi_punctuation_filter', 'rlv_adjust_punctuation' );
    function rlv_adjust_punctuation( $replacements ) {
    $replacements['/'] = '';
    return $replacements;
    }

    Rebuild the index, and now “AC/DC” is indexed as “ACDC”.

    Thread Starter webprepare

    (@webprepare)

    Mikko – you’re awesome. Thanks so much!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Products with a forward slash not found’ is closed to new replies.