Support » Plugin: Relevanssi - A Better Search » Not finding shortcode content

  • Resolved jacquid

    (@jacquid)


    You can clearly see the term “Titan” on this page. It is being pulled into this page from a Post via a shortcode (from Content Views plugin).

    http://desertdiamond.wpengine.com/tucson/gaming/slots/

    The post shows up in the search results, but not the page that contains the shortcode.

    My understanding was that this plugin should index the content of the shortcodes, so the page that is pulling in the post should appear in the search results for that term.

    Am I incorrect in my understanding?

    I just installed the pluging and did a fresh index.

    Thanks,
    j

    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)

    Can’t see clearly anything, as the page is password protected…

    But yeah, if you’ve enabled the “expand shortcodes” option in Relevanssi setting and have indexed the database afterwards, Relevanssi should see the short code content.

    I just tested this on my test site and it works just as expected – both the original post and post with the view show up in the search results.

    I can send the login to view the site (just don’t want to post publically) if you want to look. I have no clue why it is not functioning as described.

    Thanks,
    j

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    I can send the login to view the site

    Please don’t. Plugin author’s get into trouble for accepting offers like that here.

    I get that you don’t want to share your URL but can you provide phpinfo output?

    It’s not top-secret or confidential- it’s just not ready for the world to see yet. The host password protects certain installs automatically, so I can’t remove it at the moment. Have no problem sharing the creds to view the site, just rather not post it in this forum. It’s probably the best way to troubleshoot the issue. Here’s the phpinfo tho: link
    What would we be looking for here?

    Thanks,
    j

    Plugin Author Mikko Saari

    (@msaari)

    Nothing, phpinfo doesn’t really help here at all.

    So is “expand shortcodes” enabled and have you tried rebuilding the index?

    Yes, it is checked and have rebuilt several times.

    It does not seem to be limited to the Content Views. I picked a random 4-word phrase from the home page (static Page content) and that did not produce any search results.

    It seems to also be producing inconsistent results. I did a search for a word that is included in a Content View on the Home page (from a Post), that is also included in a Content View on the “Entertainment” page. The search results show the original Post, the “Entertainment” page, but not the Home page.

    Plugin Author Mikko Saari

    (@msaari)

    Hard to say what’s wrong. There’s no reason why it shouldn’t work: I’ve tested and Content Views plays nice with Relevanssi. There are, however, many reasons why it’s possible plugins don’t work well together; the problem may be in your theme, for example.

    If a random word doesn’t work, make sure it’s not a common word that’s in the stop word list. Stop words can’t be found.

    I can’t tell what’s wrong without a closer look at your site, and that is a service I can unfortunately only offer to Relevanssi Premium customers.

    One way to dig into this is to see what Relevanssi is indexing. Take a look at the wp_relevanssi database. The “doc” column matches to post ID, so you can take a look at how Relevanssi sees your home page – are the words from the Content View there? If they are, then you’re having a search issue. If they’re not, then the issue is in indexing.

    From my original example, “titan” is found in the wp_relevanssi table only once, for the original Post, and not for the Page.

    Confirmed the same with my last example: the term “Anjelah” is found in the table for the original Post ID, the “Entertainment” page ID, but not for the Home Page.

    You were right about the Stop words, for my “random 4-word phrase from the home page” example. They were, in fact, ALL Stop words, and I was able to delete those and the search for that phrase was then successful.

    So, the issue is indexing then?

    Plugin Author Mikko Saari

    (@msaari)

    This was solved. For some reason, just indexing didn’t work, but when the posts with the Content Views were saved, the content could be found.

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