Quantcast
Channel: Using Optimizely Platforms
Viewing all articles
Browse latest Browse all 8020

The proper way to exclude data that episerver search shows the user

$
0
0

I'm fairly new to episerver and this is also my first question in the forum! So any and all pointers are appriciated.

As the title implies I'd like to exclude certain files from the search. Specifically different media files (.jpg, .png, .svg, .gif). I've followed these resources (create project, basic search) to index and implement the search page in my epi cms project. The search works. Although, all of the resources in my cms have been indexed which means that they turn up as search results. I'd like to change that. In my mind I have two options:

1) Exlude the files from being indexed in the first place

OR

2) Filter the data returned from the search (either by whitelisting och blacklisting certain file types) inside of my controller

Personally I would like to go with the first approach but the indexing is a black box to me. Is there any "best" practice here? Am I missing a third or fourth solution?

My code is identical to the example code in the links above btw.

Happy new year to everybody!


Viewing all articles
Browse latest Browse all 8020

Trending Articles