• Resolved jessizollero

    (@jessizollero)


    Hello I have tried on a test instance the plugin Relevanssi. The functions sound really great unfortunately nothing appears when I search. the content.php I have exchanged as described on your page. but it just appears nothing in the search. can I still do something? or what can I set that the search works with Relevanssi?

    thanks in advance

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

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

    (@msaari)

    Have you built an index for Relevanssi? Does the Relevanssi admin search (Dashboard > Admin search) work?

    Thread Starter jessizollero

    (@jessizollero)

    Hej Mikko, yes i have built an index for Relevanssi:
    Status of the index:
    49 documents in the index.

    11415 terms in the index.
    4557 is the lowest indexed contribution ID.

    Yes the admin search works

    Plugin Author Mikko Saari

    (@msaari)

    Ok, so it’s a searching problem. Here you can find tips for debugging searching issues. Checking the query with Query Monitor, for example, is often helpful.

    Thread Starter jessizollero

    (@jessizollero)

    Thank you, i tried the query monitor and added the parameter to functions:
    add_filter( ‘relevanssi_modify_wp_query’, ‘rlv_check_parameters’ );
    function rlv_check_parameters( $query ) {
    var_dump( $query->query_vars );
    exit();
    }

    This is what comes after the search:
    array(66) { ["s"]=> string(3) "esg" ["error"]=> string(0) "" ["m"]=> string(0) "" ["p"]=> int(0) ["post_parent"]=> string(0) "" ["subpost"]=> string(0) "" ["subpost_id"]=> string(0) "" ["attachment"]=> string(0) "" ["attachment_id"]=> int(0) ["name"]=> string(0) "" ["pagename"]=> string(0) "" ["page_id"]=> int(0) ["second"]=> string(0) "" ["minute"]=> string(0) "" ["hour"]=> string(0) "" ["day"]=> int(0) ["monthnum"]=> int(0) ["year"]=> int(0) ["w"]=> int(0) ["category_name"]=> string(0) "" ["tag"]=> string(0) "" ["cat"]=> string(0) "" ["tag_id"]=> string(0) "" ["author"]=> string(0) "" ["author_name"]=> string(0) "" ["feed"]=> string(0) "" ["tb"]=> string(0) "" ["paged"]=> int(0) ["meta_key"]=> string(0) "" ["meta_value"]=> string(0) "" ["preview"]=> string(0) "" ["sentence"]=> string(0) "" ["title"]=> string(0) "" ["fields"]=> string(0) "" ["menu_order"]=> string(0) "" ["embed"]=> string(0) "" ["category__in"]=> array(0) { } ["category__not_in"]=> array(0) { } ["category__and"]=> array(0) { } ["post__in"]=> array(0) { } ["post__not_in"]=> array(0) { } ["post_name__in"]=> array(0) { } ["tag__in"]=> array(0) { } ["tag__not_in"]=> array(0) { } ["tag__and"]=> array(0) { } ["tag_slug__in"]=> array(0) { } ["tag_slug__and"]=> array(0) { } ["post_parent__in"]=> array(0) { } ["post_parent__not_in"]=> array(0) { } ["author__in"]=> array(0) { } ["author__not_in"]=> array(0) { } ["posts_per_page"]=> int(8) ["ignore_sticky_posts"]=> bool(false) ["suppress_filters"]=> bool(false) ["cache_results"]=> bool(true) ["update_post_term_cache"]=> bool(true) ["lazy_load_term_meta"]=> bool(true) ["update_post_meta_cache"]=> bool(true) ["post_type"]=> string(3) "any" ["nopaging"]=> bool(false) ["comments_per_page"]=> string(2) "50" ["no_found_rows"]=> bool(false) ["search_terms_count"]=> int(1) ["search_terms"]=> array(1) { [0]=> string(3) "esg" } ["search_orderby_title"]=> array(1) { [0]=> string(173) "wp_vzqwrmzwdc_posts.post_title LIKE '{54912ee8f6d457c70be5255ab634b2ba1137e83934b01871aef941f5d96ca009}esg{54912ee8f6d457c70be5255ab634b2ba1137e83934b01871aef941f5d96ca009}'" } ["order"]=> string(4) "DESC" }

    And the MySQL Query:
    string(488) “SELECT DISTINCT(relevanssi.doc), relevanssi.*, relevanssi.title * 5 + relevanssi.content * 1 + relevanssi.comment * 0.75 + relevanssi.tag * 1 + relevanssi.link * 0 + relevanssi.author + relevanssi.category * 1 + relevanssi.excerpt + relevanssi.taxonomy + relevanssi.customfield + relevanssi.mysqlcolumn AS tf FROM wp_vzqwrmzwdc_relevanssi AS relevanssi WHERE (relevanssi.term LIKE ‘esg%’ OR relevanssi.term_reverse LIKE CONCAT(REVERSE(‘esg’), ‘%’)) ORDER BY tf DESC LIMIT 500”

    And the Results:
    array(5) { [8269]=> float(3337.9954975857368) [11937]=> float(3337.9954975857368) [8310]=> float(2579.360157225342) [6782]=> float(60.69082722883157) [6757]=> float(30.345413614415786) }

    • This reply was modified 2 years, 5 months ago by jessizollero.
    Thread Starter jessizollero

    (@jessizollero)

    I’ve tried the last Point: Look at the posts returned.
    then the search works so it displays the results plain without design but the results are correct. Do you know what the problem is?

    Kind regards

    Plugin Author Mikko Saari

    (@msaari)

    It looks like Relevanssi is returning results – five results, exactly, posts 8269, 11937, 8310, 6782 and 6757 – but your theme is not showing them for some reason.

    I don’t know why. As far as I can tell, OceanWP and Elementor should be compatible with Relevanssi. I installed the free version of Ocean on my test site, and out of the box, it works fine. So it’s something in your setup. Unfortunately, it’s very hard for me to say what it is.

    You can try previewing one of the default themes to ensure the problem is with your theme (and not a plugin, for example). Does the search work with Twenty Twenty, for example?

    Thread Starter jessizollero

    (@jessizollero)

    Hej Mikko,

    Thank you for your help. I have now tested it again and now the search works ?? . Unfortunately, the colour highlighting does not work yet, but hopefully I will find out.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘OceanWP und Relevanssi does not work’ is closed to new replies.