I am implementing Examine in my Umbraco site. The site has a template page where I upload multiple documents using multi media picker.
I was able to implement a search where it searches all medias of Node type: File. My plan is not to search all files but only to search uploaded and published to a page. When displaying the result, I would like to group page and files. This means displaying the page and all the uploaded files within that page that fits the search criteria. Any suggestion is highly appreciated.
The only way I thought of doing this is to implement the GatheringNodeData and create a field that relates the files from the media to the page. In search then filter through the field. I'll see if I can make a pseudo code to show you how it might work.
Thanks Marcio for your feedback. It looks like, there is a lot of customization needed. To make it simpler, I want to search only the documents uploaded in that node.
As a follow up question, is it possible to set up ExamineIndex so that it only indexes the files uploaded in that specific page (node type)?
Examine -Search uploaded media in specific pages
Hello Umbraco experts,
I am implementing Examine in my Umbraco site. The site has a template page where I upload multiple documents using multi media picker.
I was able to implement a search where it searches all medias of Node type: File. My plan is not to search all files but only to search uploaded and published to a page. When displaying the result, I would like to group page and files. This means displaying the page and all the uploaded files within that page that fits the search criteria. Any suggestion is highly appreciated.
The only way I thought of doing this is to implement the GatheringNodeData and create a field that relates the files from the media to the page. In search then filter through the field. I'll see if I can make a pseudo code to show you how it might work.
But it would look something like this:
https://our.umbraco.com/forum/developers/extending-umbraco/38739-Indexing-Relationships-with-a-Examine-Extension#comment-142490
This example ignores legacy code and think about replacing
Thanks Marcio for your feedback. It looks like, there is a lot of customization needed. To make it simpler, I want to search only the documents uploaded in that node.
As a follow up question, is it possible to set up ExamineIndex so that it only indexes the files uploaded in that specific page (node type)?
is working on a reply...