volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

EpiServer FIND Indexing Published Documents

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

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
error 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.