Closed Tam closed 2 years ago
Strange… not able to reproduce that.
Can you try running the following command for one of the entries you know to be expired?
php craft resave/entries --element-id=1234 --update-search-index
Thanks for coming back to us on this one @brandonkelly
I gave that a go for one of the entries and got this response:
No entries exist for that criteria.
So, feeling brave, I ran the resave command without the element-id flag. Strangely, for us, it only had 119 entries to save when I know that we have around 5,000 entries.
It's worth mentioning that we have multiple sites set up (30), and 16 sections. Some of the sections are set up to only save for the site they're created in and others save to all sites. In that list of 119, I observed entry titles that I believe, belong in sections of both types.
I think, possibly, that the entries not showing up are ones that have generated titles; all of the ones in the list of 119 had manually input titles (the majority of our sections have generated titles).
Ah, you will need to pass the --site
argument, set to the handle of the site you wish to resave the entries in.
That's done it! Thanks very much 😃
Sweet, glad to hear!
Description
When searching through entries, whether the view status is set to All or Expired, expired entries are never returned.
Steps to reproduce
Additional info