AI OnAI Off
There is a FilterForVisitor() function in the EPiServer.Find.Cms namespace. Not sure about the CMS 6 R2 version has this though. If not I guess you need to add a date filter yourself. http://world.episerver.com/Documentation/Items/Developers-Guide/EPiServer-Find/8/DotNET-Client-API/Searching/Filtering/DateTime/
Hi, thanks for this but the Filter only allows PublishDate and doesnt have StopPublishDate - which would have been ideal.
Hmm what if you cast the type in the function?
query = query.Filter(x => ((PageTYpeBase)x).StopPublish.LessThan(now));
Thank you very much for your help, this has helped resolved a long running issue. Many thanks :)
Hi,
We have a number of pages on the site that have a Stop Publish date yet these pages are still indexed by FIND. Is there anything that I can set up to detect this to prevent unwanted results when a user searches the site?
I am currently using Episerver 6 R2 - UnifiedSearch: