ContentSearchHandler vs IPageCriteriaQueryService

Vote:
 

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 

#181226
Edited, Aug 14, 2017 14:33
Vote:
 

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).

#181271
Aug 15, 2017 9:48
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.