• Search for 2 characters does not work ( Q1 ). I get the “Not Found ” result. The word doesn’t appear in a headline like this “Pays out £17.4 million of international revenue in Q1 distribution”. This word is not in the Stopwords list. And the setting “relevanssi_min_word_length”: “2” is set. The WP has been updated to the latest version. The list of all settings here https://s3.amazonaws.com/tz9i2p4ymw/xv57y7948250719k3.jpg . What the problem can be? Thank You.

Viewing 4 replies - 16 through 19 (of 19 total)
  • Plugin Author Mikko Saari

    (@msaari)

    Ok, everything seems to be working, and the results should be in strict post type order. With this sorting, it’s not normal that the post types are in mixed order.

    Is it possible that Relevanssi returns the posts in the correct order, but something else then reorders them? What’s the context here? Is this a normal WP search, with a search results template, or are there any other plugins involved?

    You can check this from the relevanssi_hits_filter hook.

    add_filter( 'relevanssi_hits_filter', function( $hits ) {
      foreach ( $hits[0] as $hit ) {
        echo $hit->post_type . '<br>';
      }
      return $hits;
    } );

    This will print out the post types of the results Relevanssi returns. Are the post types in correct order here?

    Thread Starter mira19

    (@mira19)

    That is result of your script https://s3.amazonaws.com/tz9i2p4ymw/o814311531e16sc06.jpg and then again https://s3.amazonaws.com/tz9i2p4ymw/81w4frhs3q67g812g7v283.jpg . The result gives a mixed value. Can any of your plugin settings do this? I disabled all other plugins. https://s3.amazonaws.com/tz9i2p4ymw/81qa5637859430s3.jpg – Is this the latest version of the plugin?

    Plugin Author Mikko Saari

    (@msaari)

    That version is almost five years old. I’m afraid I can’t support anything that old. Also, this isn’t the right place for Relevanssi Premium support. Please upgrade to the current version of Premium, which is 2.24.2, and then return to this at Relevanssi Premium support, or switch to the free version and get the latest version (4.21.1).

    If it’s still not working after the update to the latest version, we can continue this.

    Thread Starter mira19

    (@mira19)

    Thank You

Viewing 4 replies - 16 through 19 (of 19 total)
  • The topic ‘Search for 2 characters does not work’ is closed to new replies.