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

Indexing Pending Entries #38

Open
spAnser opened this issue Jan 10, 2024 · 0 comments
Open

Indexing Pending Entries #38

spAnser opened this issue Jan 10, 2024 · 0 comments

Comments

@spAnser
Copy link

spAnser commented Jan 10, 2024

If I make a entry that is in the future it gets indexed.

I'm guessing because of:

return Entry::find()
->status([Entry::STATUS_PENDING, Entry::STATUS_LIVE])
->siteId($siteId)
->type(ArrayHelper::merge(['not'], $this->plugin->getSettings()->blacklistedEntryTypes))
->uri(['not', '']); // Filter out entries with no URL as they shouldn't be indexed

It would be nice if this was configurable or just not the case since a pending entry shouldn't be part of any search results and doesn't have a page yet to store for full text search anyways.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant