Hi Robert,
What type of searching are you implementing unified search, multi-search, typed search? Depending upon this you will basis how you get the document.
Are you trying to search the document? or more just have a query that returns the content and the file?
Would be good to look at https://docs.developers.optimizely.com/digital-experience-platform/v1.1.0-search-and-navigation/docs/searching to get a basis of what you want.
Paul
Hi!
I found a solution that is working for me: https://optimizely.blog/2018/11/associating-documents-pdf-to-a-page-pagetype-in-episerver-find/
Hi Robet,
Glad you found a solution that works.
I see that this solution uses conventions to index the document as part of the page model in the index.
You can read more about customizing the indexing behaviour here https://docs.developers.optimizely.com/digital-experience-platform/v1.1.0-search-and-navigation/docs/indexing#conventions.
Thanks
Paul
I am having a specific page type with a property that is holding a file as this:
How can I include the content of that file to the page in the find index?
How should I write the search query for finding pages (with attached file) that are matching the search query?