• Unfortunately, the plugin isn’t working for me. The results are the same as they are without it activated. I checked the “things to check first” post on the Relevanssi website. But, these didn’t work for me.

    I have told Relvanssi to index only my portfolio projects and it appears that this worked. I have keywords on the content of these projects. However, the search results only display matching words in titles and not the content.

    Please help

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

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

    (@msaari)

    Tell me more about the posts. Since they are a custom post type, are they built as usual? Is the post content stored in the actual post content? Could it be the post content (which is not visible on the site as far as I can tell) is somewhere else, somewhere Relevanssi can’t see it?

    Thread Starter jamestashford

    (@jamestashford)

    Thanks for the response. All I know is that this is a Portfolio post type. The content is actually stored and visible in the post area. Here is another example page: https://timeatthelake.com/portfolio/beach-coast-dad/

    If I search “sally”, which is in the post area on this page, this does not show up in my results. If I search “dad”, since that word is in the title, it does show up.

    Plugin Author Mikko Saari

    (@msaari)

    And you don’t happen to have an empty value (or a zero) in the post content weight on the Searching tab? That’d be the obvious explanation.

    Can you please show me screenshots of your indexing and searching settings?

    Thread Starter jamestashford

    (@jamestashford)

    No – I have the relevance for post content high and everything else low.

    https://pasteboard.co/HfeDMz5.png
    https://pasteboard.co/HfeDXJL.png

    Was going to start a new thread, but figured may be having a similar issue.

    Search works in some cases, but not others.

    Example – Searching “medicare part D” returns a lot of “medicare” related pages/posts. searching “part d” returns nothing. Also, searching “part” returns nothing, despite this word appearing on nearly every page.

    So far I have built an index. Tried with 3 word, and 2 word index.

    You can test it from left side of home page here:
    https://www.bgainsurance.net/

    “part d” should return many results, but nothing is found.

    Plugin Author Mikko Saari

    (@msaari)

    James, do you have access to the database? Would be helpful to see if this is an indexing issue or a searching issue. If you use phpMyAdmin or Adminer to take a look at the wp_relevanssi database table, does the word “sally” appear in the “term” column? If it does, the post is indexed correctly and this is a searching issue; if it doesn’t, this is an indexing issue.

    @theriz, your problem is unrelated to this, and the explanation is simple: Relevanssi doesn’t index one-letter words, and “part” is a stopword.

    If you want results for “part”, remove it from stopwords and reindex (but since it appears on nearly every page, it’s not a good search term in any case). If you make Relevanssi index one-letter words, you may get better results, but not necessarily; those one-letter words are blocked for a reason, they generally don’t work very well. So that’s one of the most difficult cases for Relevanssi there is.

    Searching for “medicare part d” finds one post, does that sound better?

    There are bunch of possible solutions here, for example indexing “part d” as “partd”.

    Thread Starter jamestashford

    (@jamestashford)

    I do have access and it does look like an indexing issue. The titles of the portfolio pages are being indexed, but the content is not. Here is a screenshot of the database and my indexing settings.

    https://pasteboard.co/Hfmckyt.png
    https://pasteboard.co/HfmcvjF.png

    Thread Starter jamestashford

    (@jamestashford)

    If you have a suggestion for getting this option to work, that would be great. If not, I have found a workaround. I can use the “Project Attributes” section for keywords – instead of the post content – and tell the plugin to index this section.

    @msaari Thanks, this worked.

    Plugin Author Mikko Saari

    (@msaari)

    James, the easiest explanation would be a content-blocking filter – you don’t happen to have one in place for some reason? Or some filter on relevanssi_post_content that’s blocking the content?

    That’s one way to debug this, by the way. Add this to your theme functions.php and then go save a post:

    add_filter( 'relevanssi_post_content', 'rlv_content_test' );
    function rlv_content_test( $content ) {
        var_dump( $content );
        exit();
    }

    That should print out the post content, the way Relevanssi sees it. What does that say? Does it look correct?

    Once you’ve done debugging, remove the code and then save the post again to have it in the index.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Plugin Not Working’ is closed to new replies.