EpiServer FIND Indexing Published Documents

Vote:
 

HI,

Is it possible for EpiServer FIND to only index Documents that have been added to Published Composer elements?

I know that FIND can index the File Manager but the search brings back ALL items, most of which are not published on the site.

Many thanks

 

Jon

#72740
Jun 27, 2013 12:06
Vote:
 

I don't think you can set up this kind of restriction.  However you could try setting a client convention to restrict the path in which files are indexed.  This would be a convention where Composer uploaded files should be stored, for example a new ~/Composer/ starting point.

 

You would have a convention like the following:

FileIndexer.Instance.Conventions.ForInstancesOf<UnifiedFile>()

.ShouldIndex(x => x.VirtualPath.StartsWith("Composer"));

#73514
Jul 25, 2013 12:42
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.