When I use the search bar, it ends up showing things that are no longer published. how can i fix this?
Your site is re-indexed roughly every 24h. If it’s been longer than that would be interesting to see what’s happening.
Share a link to your published site, with an example search if that’s the case.