episerver / Foundation

Foundation offers a starting point that is intuitive, well-structured and modular allowing developers to explore CMS, Commerce, Personalization, Search and Navigation, Data Platform and Experimentation.
https://docs.developers.optimizely.com/digital-experience-platform/docs/optimizely-foundation-demo-sites
Apache License 2.0
132 stars 136 forks source link

Search show pdf #857

Closed RuiRayWang closed 2 years ago

RuiRayWang commented 2 years ago

This is to enable PDF search for V12. In SearchService.cs, I had to add both FoundationPdfFile and PdfFile type into the filter to make sure the search works depending on which type is registered first by the system. .Filter(x => x.MatchTypeHierarchy(typeof(FoundationPdfFile)) | x.MatchTypeHierarchy(typeof(EPiServer.PdfPreview.Models.PdfFile)))