• Resolved hansford77

    (@hansford77)


    Hi, I am having trouble with Relevanssi, as it doesn’t appear to be indexing correctly. For example, you would think the search term “safe” would first return the page “Safe use of a sling”, which has the term in the title, but it doesn’t appear anywhere in the search results. The same goes for lots of other content, and it doesn’t seem to be limited to one sort of post type. I can find something of nearly every post type that isn’t indexed. Further, it is indexing custom post types I have not asked for (‘subpages’).

    I have uninstalled and reinstalled Relevanssi but to no avail.

    I have a further question which will be relevant if the above can be sorted… Some of my pages are created dynamically using a loop. Is it possible for the content of these pages to be indexed?

    Thanks

    109.123.74.31/~sheffiel

    http://wordpress.org/extend/plugins/relevanssi/

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

    (@msaari)

    If those dynamic pages are created with templates, it is not possible to have Relevanssi index them. If you are using shortcodes, it’s easier.

    As to your indexing problems, hard to say. First thing to sort out would be to figure out whether the problem is in indexing or in searching, ie. is the data correct in the database or not.

    This may be helpful: http://www.relevanssi.com/knowledge-base/how-to-debug-indexing-problems/

    Thread Starter hansford77

    (@hansford77)

    Thanks. The dynamic pages are created using mini loops shortcodes. For my first problem – it’s definitely the indexing that’s the problem because I have checked the database. I’ll run through that link you posted and report back.

    Thread Starter hansford77

    (@hansford77)

    Hi, I’ve discovered the problem. The expansion of the shortcodes at $contents = do_shortcode($contents) is associating the content with the wrong post ID.

    Some of my pages are created by pulling in from other pages using a loop in a shortcode, and thus $post is being altered during do_shortcode. Thus the problem is very simply solved by assigning $post->ID to a variable before do_shortcodes, and using that in $value instead of $post->ID.

    Thanks!

    Plugin Author Mikko Saari

    (@msaari)

    This is a known problem and that fix will be included in the next version.

    I wonder if something has changed in how WordPress does this – this code has been like this for quite a while now and now I’m getting several complaints about this for the first time.

    Thread Starter hansford77

    (@hansford77)

    It’s annoying when that happens!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Indexing not working’ is closed to new replies.