Password protected posts still show up in results

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Password protected posts still show up in results

This topic contains 3 replies, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 1 week, 6 days ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #37682
    apbalice71
    apbalice71
    Participant

    I think there may be a bug. We’ve the setting to not index password protected posts but they still show up. Please see the images for the index table settings. Do we need to turn on refreshing the index whenever post meta are updated?

    Attachments:
    You must be logged in to view attached files.
    #37691
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    Yes, I think there is a bug here, at least I can confirm from our test servers. I do not recommend turning on that option, it is not very efficient for such large databses, and will not resolve the issue.

    This may be only possible to resolve by directly editing the index table engine file. I tried to open the plugin editor, but the account does not have privileges. Can you please try this:

    1. Make a full site backup just in case
    2. Open up the wp-content/plugins/ajax-search-pro/includes/classes/etc/indextable.class.php file on your server
    3. Replace it’s contents ith this
    4. First, only test on one post – Open the post editor screen for a post, change it to password protected and save it.
    5. The post should update in the index automatically during saving, so now if you try to search it, it should not show up
    6. If that actually works, then re-create the index.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #37754
    apbalice71
    apbalice71
    Participant

    Hi, it works as you described.
    1. Does it mean if we re-save our existing password protected posts or there’s only future password protected posts, we don’t need to re-create index?
    2. Will you implement this in the next update?

    #37762
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    1. Yes, you will need to re-save them, no need to re-index.
    2. Yes, as per your feedback, this is going to be implemented for sure.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.