Hi Andrew,
In the docs you show how to filter:
$index->index([
Page::class => [
'ClassName:not' => ErrorPage::class,
],
File::class => [
'ClassName:not' => Folder::class,
],
]);
How would I filter to only get live versions of pages? Similar to:
$live_pages = Versioned::get_by_stage(Page::class, Versioned::LIVE);
Many thanks,
Barry