Vulnerability in EPiServer.Forms

Try our conversational search powered by Generative AI!

Avoid indexing content in documents



My client have a pretty straight forward Cms solution with Find and would like to stop indexing the content of an pdf itself, which means that only metadata about a file should exist in index. Data in the document is indexed in some kind of encoded way by default and it is that I want to not happen. 

Thankful for input!

Jan 26, 2017 12:35

I think you should be able to exclude that from your conventions. Something like this from the docs:

        .ExcludeField(x => x.Password);

Maybe you also need to return something empty from SearchAttachment() extension/prop method if it's a PDF.

Jan 30, 2017 8:12

Thanks, Johan! This might have done the trick!

Feb 05, 2017 13:21
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.