HiI 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: 18.104.22.168
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 https://vimvq1987.com/register-your-custom-implementation-the-sure-way/
I usually use this:
.ExcludeField(x => x.SearchAttachment())
.ExcludeField(x => x.SearchAttachmentText());