Hi, I use a Find query on few different page types to retrieves Episerver.Find.SearchResults<T> type data set. The results contain the pages that are 'Expired'. I simply need to remove the 'Expired' pages from the results.
1. Can we avoid indexing 'Expired' pages?
2. How to remove 'Expired' pages from the index? Or
3. How to remove 'Expired' pages from query results?
I tried 'SkipWhile' on the Results, but then it returned no values.
I also tried to add a query filter with 'page.CheckPublishedStatus(PagePublishedStatus.Published)', but it also returned no values.
I believe there must be ab simple easy way to do this. Please help.