• Hello

    I have been using Revelanssi on my WordPress site with considerable success for some time now. After taking a couple of weeks out, I returned to the site to discover that whenever I type any search term in my search box and hit return, I receive the response “Sorry, but nothing matched your search terms. Please try again with some different keywords.” I have checked that the Plugin has not been deactivated. Could someone kindly suggest, please, what may have happened and how to address the problem.

    Many thanks
    Best wishes

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

    (@msaari)

    Do you still have a working index? Have you tried rebuilding the index?

    Thread Starter margmacd

    (@margmacd)

    Hi Mikko

    Thanks for getting back to me. Sorry for not understanding; can you please break down for me what I need to do to check I have a working index and what in turn, I would need to do to rebuild it? I have no idea what triggered the loss of functionality in the first place.

    Thanks

    Plugin Author Mikko Saari

    (@msaari)

    Go to Relevanssi settings page. What does it say on the “State of the index”? To rebuild the index, you need to click the “Build index” button.

    Thread Starter margmacd

    (@margmacd)

    Hello

    Thank you for your reply.

    Under ‘State of the index’, I have the following content:

    “Documents in the index: 199
    Terms in the index: 24043
    Highest post ID indexed: 2809”.

    Should I build the index or not?

    Best wishes

    Plugin Author Mikko Saari

    (@msaari)

    Your index seems to be correct (if 199 sounds like a correct number of posts in the index).

    Add this to your theme functions.php, do a search, let me know what it prints out and then remove this code:

    add_filter('relevanssi_search_filters', 'rlv_test');
    function rlv_test($args) {
        var_dump($args);
        exit();
    }
    Thread Starter margmacd

    (@margmacd)

    Further to inclusion of the temporary code, for the search term ‘sensitivity’, here is the code that was returned:

    “array(17) { [“q”]=> string(11) “sensitivity” [“tax_query”]=> array(0) { } [“tax_query_relation”]=> string(2) “OR” [“post_query”]=> array(0) { } [“parent_query”]=> array(0) { } [“meta_query”]=> array(0) { } [“date_query”]=> bool(false) [“expost”]=> string(0) “” [“post_type”]=> string(4) “post” [“post_status”]=> bool(false) [“operator”]=> string(3) “AND” [“search_blogs”]=> bool(false) [“author”]=> bool(false) [“orderby”]=> NULL [“order”]=> string(4) “DESC” [“fields”]=> string(0) “” [“sentence”]=> bool(false) }” .

    I will now remove the temporary code.

    I would welcome your comments and advice.

    Thank you

    Plugin Author Mikko Saari

    (@msaari)

    Nothing wrong with that. Another thing you can check:

    add_filter('relevanssi_hits_filter', 'rlv_show_hits');
    function rlv_show_hits($hits) {
        var_dump($hits[0]);
        exit();
    }

    What does this print out if you do a search that should return results?

    Thread Starter margmacd

    (@margmacd)

    array(0) { }

    Plugin Author Mikko Saari

    (@msaari)

    What about this?

    add_filter('relevanssi_query_filter', 'rlv_query_test');
    function rlv_query_test($query) {
        var_dump($query);
        exit();
    }
    Thread Starter margmacd

    (@margmacd)

    string(635) “SELECT DISTINCT(relevanssi.doc), relevanssi.*, relevanssi.title * 5 + relevanssi.content + relevanssi.comment * 0.75 + relevanssi.tag * 0.75 + relevanssi.link * 0 + relevanssi.author + relevanssi.category * 0.75 + relevanssi.excerpt + relevanssi.taxonomy + relevanssi.customfield + relevanssi.mysqlcolumn AS tf FROM wp_relevanssi AS relevanssi WHERE (relevanssi.term LIKE ‘sensitivity%’ OR relevanssi.term_reverse LIKE CONCAT(REVERSE(‘sensitivity’), ‘%’)) AND ( relevanssi.doc IN ( SELECT DISTINCT(posts.ID) FROM wp_posts AS posts WHERE posts.post_type IN (‘post’) ) ) ORDER BY tf DESC LIMIT 500”

    Plugin Author Mikko Saari

    (@msaari)

    Sorry, but everything seems to be in order with Relevanssi. If you haven’t yet, try disabling other plugins to see if there’s a conflict with a plugin.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Revelanssi has stopped working’ is closed to new replies.