SaaS CMS has officially launched! Learn more now.

Find exluding Document Content from being indexed.



I have some issues figuring out how to exclude document content (such as pdfs and docx) from being indexed, i still want the files metadata to be indexed but no the content it self.
If some one has some suggestions or ideas that would be highly appricatated.
Using find:

Feb 12, 2021 9:47

Haven't tried myself, but I think what you can do is to implement IAttachementHelper, register it to override the default one. In GetSupportedFiletypes you can just return an empty list, and the content will not be indexed.

In case you need help with registering your implementation 

Feb 12, 2021 10:04

I usually use this:

    .ExcludeField(x => x.SearchAttachment())
    .ExcludeField(x => x.SearchAttachmentText());
Feb 19, 2021 3:42
* 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.