Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Daft pages appearing in search #2474

lukeagsmith opened this issue Dec 17, 2019 · 1 comment

Daft pages appearing in search #2474

lukeagsmith opened this issue Dec 17, 2019 · 1 comment


Copy link

@lukeagsmith lukeagsmith commented Dec 17, 2019

Describe the bug
With the local search driver, draft pages appear in the search index.

Expected behaviour
Only published pages should appear in the index.

Environment details (please complete the following information):

  • Statamic Version 2.11.5
@lukeagsmith lukeagsmith changed the title Daft search appearing in search Daft pages appearing in search Dec 17, 2019

This comment has been minimized.

Copy link

@lukeagsmith lukeagsmith commented Dec 20, 2019


It appears this is related to having supplement_data="false" on the search tag.

Removing the parameter makes drafts not appear in the results.

I think this is still a bug though, supplement_data is a nice feature and shouldn't come at the expense of showing incorrect information.

FYI even putting the published field in the search index still realists in drafts being shown when supplement_data="false".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
3 participants
You can’t perform that action at this time.