• Resolved Josh

    (@josh-stopper)


    Hi Support

    We are indexing 3142 posts (published) in a custom post type that are distributed across several languages with WPML. Unfortunately only 2960 posts are showing up in the Algolia index. I have been able to determine that the missing 182 posts are from the english language, but thats as far as I have been able to get as there are 2694 posts in english.

    I can’t see any errors in the Algolia API logs suggesting which posts have failed, or even that any have failed. The missing posts are not the latest, nor are they the oldest.

    I am hoping you can point me in the right direction for determining which posts are missing from the index so I can work out a common factor for them being missing. Is there a field that is set in the database somewhere that I can write an sql query against to see which are missing? Or maybe a simpler approach?

    Josh

    • This topic was modified 3 years, 11 months ago by Josh.
Viewing 1 replies (of 1 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Debugging remotely can be a little difficult, it’s hard to say what the issue could be without knowing a lot more about the install.

    Generically, you could enable WP_DEBUG before running a sync, so that exceptions get logged. If an exception is thrown during sync, it will call error_log() with the exception message.

    If an exception does not get thrown, then it could be something else. We don’t know if you have any custom code running on WPSWA hooks, but if you do, you should be able to verify that the custom code is not the reason posts aren’t synced. I’ve been told others have heard reports of badly coded shortcodes causing a sync to fail, or be incomplete.

    It sounds like you definitely have a ton of posts, if you aren’t using WP-CLI to run the sync, then it could potentially be a timeout issue, since some hosts limit execution time.

    Some notes worth reviewing and checking over.

Viewing 1 replies (of 1 total)
  • The topic ‘Missing posts from Algolia index’ is closed to new replies.