• hello, I install this plugin, bot nothing happened, did I miss somethong?
    also, I install Relevanssi Search in this site but I found that there’s some trouble when searching.
    For example, if I search the keyword “HSR” I can find qhat I want. but when I search with “SR”, than no result will be find, it seems I can only search with 3 or more letters, if I search with 2 or so, then nothing will be found
    sorry for my terrible English. Hope you have a good day.

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter ntucgm

    (@ntucgm)

    I guess I know why, I need to type more than 3 letters to get my ajax results, is it possible to modify this?

    Plugin Author Mikko Saari

    (@msaari)

    add_filter( 'relevanssi_live_search_configs', function( $configs ) {
      $configs['default']['input']['min_chars'] = 2;
      return $configs;
    } );

    Add this to your site (theme functions.php, code snippet or something like that), and the search will start at two letters.

    Thread Starter ntucgm

    (@ntucgm)

    thanks for your help!
    screenshot
    I did add this code to my site, but it doesn’t seem to work, did I do something wrong?

    Plugin Author Mikko Saari

    (@msaari)

    Since you’re using Relevanssi, you also need to adjust the minimum word length in Relevanssi settings to 2. Go to Settings > Relevanssi > Indexing > Advanced indexing settings, set the minimum word length to 2 and rebuild the index. Also make sure “Keyword matching” in Relevanssi searching settings is set to “Partial words”.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘no ajax results’ is closed to new replies.