Try our conversational search powered by Generative AI!

Indexing attachments/files not working

Vote:
 

Is the scheduled job supposed to also to indexing of all files in VPP? And is there any logging for that so I can see it really happened?

 

I have plenty of files, but when I just do a simple query like:

var res = SearchClient.Instance.Search<UnifiedFile>()
   .GetFilesResult();

 

result contains no files

happy coding!

Fredrik

#61649
Sep 26, 2012 13:26
Vote:
 

Hi Fredrik,

Files can be indexed in an eventdriven way as well as with the scheduled job, as with pages. However, this functionality isn't enabled by default as what files should be indexed varies from site to site. There's some documentation on how to enable it here under the VPP headline.

#61652
Sep 26, 2012 14:10
Vote:
 

Hi Joel,

thanks a lot, I don't know why I didn't see that documentation at first when I was searching for it.

I added the "FileIndexer.Instance.Conventions.ShouldIndexVPPConvention = new VisibleInFilemanagerVPPIndexingConvention();" to Application_Start in global asax and now I can watch the index job output about files being indexed.

#61653
Sep 26, 2012 14:24
Vote:
 

However there is still one thing that I can't figure out about this, is it possible to say explicitly what vpp folders to index? like "/global/stadgar/" ?

#61658
Edited, Sep 26, 2012 14:39
Vote:
 

Sure, in code (which means one could create code that checked a config file as well). I don't know the exact name of the interface but you can either create your own convention that implements the interface (look at the type of the ShouldIndexVPPConvention to see what interface it is) or inherit VisibleInFilemanagerVPPIndexingConvention and override the method.

#61659
Sep 26, 2012 14:42
Vote:
 

However, it seems like this row does not index all vpp files after all...

FileIndexer.Instance.Conventions.ShouldIndexVPPConvention = new VisibleInFilemanagerVPPIndexingConvention();

the vpp "Documents" section is missing, no files are indexed, is there anything I could do to enable this area? I think I have read through that page about VPP indexing now... can't find anything about this..

*UPDATE*
It is actually working, seems like it is ok, ignore this post totally :-)

#61766
Edited, Oct 01, 2012 15:48
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.