Index file content in elasticsearch without storing the actual content in base64

I am using .net Nest libraby, with mapper-attachment. I successfully indexed the file contnet and my documents stored on my machine. But by default elasticsearch index stores the whole file content as base64 encoded. Is there a way or alternative to index the documents store in file system without storing the actual file content in index.
Also the file content be searchable.
The file i want to index is already stored on system so i don't want to duplicate the file content for indexing.

Upgrade to 5.0 and use ingest-attachment plugin instead so you will have a much better control of all that.

Also read:

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.