• Resolved PG

    (@parulgarg2)


    Hi

    I understand that Relevanssi doesn’t store special charecters in the indexing. But when I am searching for the word “dalon” then i see the correct results where as if I search for “danl?n” I am not getting the result.
    https://partner.uniconta.com/da/addons/

    If we are not storing the special characters that means they should also be replaced when searching.

    Can you please check whats happening. It is the first time I am receiving this type of issue.

    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)

    Relevanssi is converting “danl?n” into “danloen”, but your database is converting it to “danlon”, hence no results.

    There are a couple of ways to deal with this. This is the easiest. Add this to your site and rebuild the index:

    add_filter( 'relevanssi_remove_punctuation', function( $string ) {
      $chars = array(
        '?' => 'a',
        '?' => 'o',
        '?' => 'A',
        '?' => 'O',
      );
      return strtr( $string, $chars );
    }, 8 );
    Thread Starter PG

    (@parulgarg2)

    thanks, it works

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Special Characters search issue’ is closed to new replies.