# Does Elasticsearch/MapperPlugin supports searching and retrieval of password protected attachment say PDF

**URL:** <https://discuss.elastic.co/t/does-elasticsearch-mapperplugin-supports-searching-and-retrieval-of-password-protected-attachment-say-pdf/23719>\
**Category:** Elasticsearch\
**Created:** [May 29, 2015, 6:59am UTC](https://discuss.elastic.co/t/does-elasticsearch-mapperplugin-supports-searching-and-retrieval-of-password-protected-attachment-say-pdf/23719 "2015-05-29T06:59:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Prashant\_Pal](https://avatars.discourse-cdn.com/v4/letter/p/b77776/32.png) [@Prashant\_Pal](https://discuss.elastic.co/u/Prashant_Pal)\
**Post date:** [May 29, 2015, 6:59am UTC](https://discuss.elastic.co/t/does-elasticsearch-mapperplugin-supports-searching-and-retrieval-of-password-protected-attachment-say-pdf/23719/1 "2015-05-29T06:59:58Z")

</div>

Hi Team,

While indexing a password protected att say PDF, I was able to index properly, But while searching the same even with \* as keyword it is neither returning the content\_type nor content of an attachment.

So does ES supports searching and retrieval of pwd protected att.

Attached is the indexing request and searching request as well.

Index Query:  
Attached as:  
\<nabble\_a href="pdf\_index\_issue\_Proper\_protected.sh"\>pdf\_index\_issue\_Proper\_protected.sh\</nabble\_a\>

Search Query 1:  
{  
"fields": [  
"SessionAtt.content\_type"  
]  
}

So here after searching the same I am not able to get any result either content or content type.

Search Query 2:  
{  
"fields": [  
"\_source",  
"SessionAtt.content\_type"  
]  
}

With this the query goes on to hang and does not give any results.

Let me know if any more input is required to assess the same.

~Prashant

---

<div class="post-metadata">

**Author:** ![Prashant\_Pal](https://avatars.discourse-cdn.com/v4/letter/p/b77776/32.png) [@Prashant\_Pal](https://discuss.elastic.co/u/Prashant_Pal)\
**Post date:** [June 4, 2015, 9:56am UTC](https://discuss.elastic.co/t/does-elasticsearch-mapperplugin-supports-searching-and-retrieval-of-password-protected-attachment-say-pdf/23719/2 "2015-06-04T09:56:09Z")

</div>

Hi All,

Any comments on the above query?

~Prashant

---

<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:** [July 6, 2017, 12:09am UTC](https://discuss.elastic.co/t/does-elasticsearch-mapperplugin-supports-searching-and-retrieval-of-password-protected-attachment-say-pdf/23719/3 "2017-07-06T00:09:41Z")

</div>

Closed on July 6, 2017, 12:09am UTC


