Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

EPiServer Search - How to filter files from pages?

Vote:
 

Dear all,

I am trying to implement a search page and I was able to get a list of "IndexResponseItem".

The problem is that beside the pages I am also getting images, documents etc. and I would like to be able to exclude some folders and select some folder for the search but I have no idea how to do it? Any idea?

Best regards,

Daniel

#65871
Feb 12, 2013 20:47
Vote:
 

I can't answer this off hand, but if you look at how the search page is implemented in the MVC templates, along with the classes that it uses for searching, you should be able to figure this out. Amongst other things, the templates contain code for checking if a response item is a file.

#65873
Feb 13, 2013 9:05
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* 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.