Search not working properly


I am using wordpress algolia search plugin and it is showing all the related posts whether it is drafts or pending but i dont want to show those unwanted postes on my site so please suggest me some answer about how i could come up with a solution.


Hi @kuldeep.rawat03,

By default the plugin should not show draft posts.
Here is the condition that ensures only published posts become indexed:

However, we’ve seen in the past that some plugins rely on custom metadata to determine if a post is a draft or not.

If you are using such a plugin, you might want to leverage some of the hooks we expose to customize the indexing decision:

I hope that helps,

Keep us posted,