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

Avoid indexing content in documents

Hi, 

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!

#174441
Jan 26, 2017 12:35

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

client.Conventions
    .ForInstancesOf<User>()
        .ExcludeField(x => x.Password);

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

#174545
Jan 30, 2017 8:12
Vote:

Thanks, Johan! This might have done the trick!

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