Exclude indexing of images

Vote:
 

Hi ,

Our website is running on episerver 6 R2. Is it possible to exclude indexing of images/ VPP folder.  Is there an equivalent method in episerver find for restricting VPP resources, 1.x as below:

ContentIndexer.Instance.Conventions.ForInstancesOf.ShouldIndex()

Many thanks in advance.

#150642
Jun 26, 2016 23:21
Vote:
 

You can work with PageIndexer and FileIndexer and conventions on those.

PageIndexer.Instance.Conventions
  .ForInstancesOf<PageData>()
  .ShouldIndex(x => true);

You can read more here 

#150643
Edited, Jun 27, 2016 8:27
Vote:
 

I will suggest you to look into this blog post and change the logic to just look at file extensions intstead of if the file are related to a page.

http://www.lindstromhenrik.com/indexing-only-referenced-vpp-files-with-episerver-find/

#150650
Jun 27, 2016 11:12
Vote:
 

Thank you Daniel and Henrik,

Both the links were useful. I am able to exclude the content using FilIndexer. Many thanks.

regards,

senthil.

#150716
Jun 28, 2016 13:25
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* 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.