How to add attachments to index and how to apply auto complete feature on it


Can some one suggest me how to achieve adding index to the attachments and searching functionality in c#.

If some one shares the code snippet on top of latest elastic search it will be really helpful to me, thanks in advance.

Siva A.