Pagefiles indexed on unpublished page

Vote:
 

Trying to figure out how to limit Episerver Find to only index pagefiles under published pages. The problem is that when i pass a empty search string to the search client it redirects me to episervers login page becouse I dont have access to see unpublished pagefiles.

If i comment out the following row from SearchInitialization.cs it works:

ContentIndexer.Instance.Conventions.EnablePageFilesIndexing();

but then no pagefiles are indexed...

Any ideas?

#76026
Oct 15, 2013 17:29
Vote:
 

We are using the solution from Henrik Lindström

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

The only modifications I have made to it is to verify that this row does not throw an error

var publicationStatus content.PublishedInLanguage()[softLink.OwnerLanguage.Name];

It did it to for us since we have an upgraded Site Where OwnerLanguage was null.

 

#77530
Nov 20, 2013 17:40
* 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.