Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
Hi,
FindPagesWithCriteria makes requests to database (https://world.episerver.com/documentation/Items/Developers-Guide/Episerver-CMS/9/Search/Searching-for-pages-based-on-page-type/).
ContentSearchHandler works with index (https://world.episerver.com/SdkDocuments/Developers-Guide/EPiServer-CMS/75/Search/SearchImplementOptions.PNG).
Hi!
I can't understand the difference between ContentSearchHandler and IPageCriteriaQueryService. Their usage is quite similar, but with IPageCriteriaQueryService I can search in particular custom fields of page, while with ContentSearchHandler it seems impossible. But what is the real difference? When should I use ContentSearchHandler and when IPageCriteriaQueryService? What is the difference under hood?
There is no mentions of IPageCriteriaQueryService in Search documentation: https://world.episerver.com/documentation/Items/Developers-Guide/Episerver-CMS/9/Search/Search/
Also information about IPageCriteriaQueryService looks really poor: https://world.episerver.com/documentation/class-library/?documentId=cms/7/0ddfb696-31e8-03ca-b4b0-4f1644f04118