Title: Missing posts from Algolia index
Last modified: December 18, 2020

---

# Missing posts from Algolia index

 *  Resolved [Josh](https://wordpress.org/support/users/josh-stopper/)
 * (@josh-stopper)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/missing-posts-from-algolia-index/)
 * 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 5 years, 5 months ago by [Josh](https://wordpress.org/support/users/josh-stopper/).

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [5 years, 5 months ago](https://wordpress.org/support/topic/missing-posts-from-algolia-index/#post-13819712)
 * 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.

 * ![](https://ps.w.org/wp-search-with-algolia/assets/icon-256x256.png?rev=2894668)
 * [WP Search with Algolia](https://wordpress.org/plugins/wp-search-with-algolia/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-search-with-algolia/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-search-with-algolia/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-search-with-algolia/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-search-with-algolia/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-search-with-algolia/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * Last activity: [5 years, 5 months ago](https://wordpress.org/support/topic/missing-posts-from-algolia-index/#post-13819712)
 * Status: resolved