WordPress only index published posts

Hello, how do I amend the Algolia indexing to only limit the index to published posts?


I just tested on my local install and only published post are indexed. Draft and Scheduled post aren’t in my Algolia index.
Can you share more details about your problem?

Hi Julien,

Thank you for your reply. Yes there is one example of this happening. Teases page is set up as draft. Yet it gets indexed in the sdfair_posts_page Indice.

I am worried that we get indexed more CPT that are “drafted” or set as “private”. Can you please confirm that this is not the case?

Thank you,

I have the same problem (drafts are being indexed) the result is that when people search and pick the draft from the instant search suggestions, they get a 404