# Attachment Indexing search

**URL:** <https://discuss.elastic.co/t/attachment-indexing-search/222873>\
**Category:** Elasticsearch\
**Created:** [March 10, 2020, 7:06am UTC](https://discuss.elastic.co/t/attachment-indexing-search/222873 "2020-03-10T07:06:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vaibhav8600](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vaibhav8600/32/64132_2.png) [@vaibhav8600](https://discuss.elastic.co/u/vaibhav8600)\
**Post date:** [March 10, 2020, 7:06am UTC](https://discuss.elastic.co/t/attachment-indexing-search/222873/1 "2020-03-10T07:06:37Z")

</div>

i have indexed attachments using ingest-attachment processor and in search i want only mail nested Attachment but when i'm trying to search on attachment content it returns complete Document

/---------------------------------------------  
Class Mail  
{  
String MailId {get;set;}  
String DataBase64 {get;set}  
[nested]  
List{get;set;}

}

Class Attachments  
{  
public Nest.Attachment attachment { get; set; }  
}  
/----------------------------------------------------------------------------------

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 7, 2020, 7:06am UTC](https://discuss.elastic.co/t/attachment-indexing-search/222873/2 "2020-04-07T07:06:41Z")

</div>

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