• Hi. I use wordpress to display dynamically generated contents. My URLs are on this format: https://domain.com/book/?bookID=14

    This page will fetch info about book #14 and show it on the web site. The ID in the url parameter will change according to the chosen book, but relevanssi will treat all books as the same page (same page ID). Is there a way I can make relevanssi index my dynamic contents?

    I am aware of the relevanssi_content_to_index hook where I can add my dynamic content and get in indexed, but then all the dynamic content will be associated with the static page ID. E.g. when i search for “Alice wonderland” the search will find the title in the index, but when I click on the hit in the list it will resolve the URL to https://domain.com/book/ and ignore the very important url parameter.

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

    (@msaari)

    No, it’s not possible. Relevanssi doesn’t know anything about the URL parameters, because Relevanssi indexes posts, not URLs. Relevanssi sees that one post and the content in it, and will index it as one item.

    The only way to make this work with Relevanssi is to change it so that each book is represented by a separate post in the WordPress database.

Viewing 1 replies (of 1 total)

The topic ‘Indexing dynamically created contents’ is closed to new replies.