# Elasticsearch is not able to search for NonEnglish text present in PDF type of attachment

**URL:** https://discuss.elastic.co/t/elasticsearch-is-not-able-to-search-for-nonenglish-text-present-in-pdf-type-of-attachment/539
**Category:** Elasticsearch
**Created:** [May 12, 2015, 9:24am UTC](https://discuss.elastic.co/t/elasticsearch-is-not-able-to-search-for-nonenglish-text-present-in-pdf-type-of-attachment/539 "2015-05-12T09:24:43Z")
**Posts on this page:** 5
**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 12, 2015, 9:24am UTC](https://discuss.elastic.co/t/elasticsearch-is-not-able-to-search-for-nonenglish-text-present-in-pdf-type-of-attachment/539/1 "2015-05-12T09:24:44Z")

</div>

Hi Team,

We are facing an issue while searching the Non English text indexed as PDF type of document. Below are the complete details.

1. I am having a pdf document as New\_Pdf\_issue.pdf which is attached in this mail.
2. Created an indexing request alongwith mapping as well which is attached as pdf\_index\_issue.sh
3. Now if you will look onto pdf attachment you will find keywords such as "अधिकार", so if i am searching as "अधिकार" I am not able to get any matching documents for the same.

Note : What we observed is like when we perform search query as

```
{ 
  "fields": [ 
    "SessionAtt.content_type", 
    "SessionAtt" 
  ], 
  "query": { 
    "bool": { 
      "must": [ 
        { 
          "query_string": { 
            "fields": [ 
              "Content", 
              "SessionAtt" http://elasticsearch-users.115913.n3.nabble.com/file/n4074717/pdf_index_issue.sh
            ], 
            "query": "*" 
          } 
        } 
      ] 
    } 
  } 
} 

```

We are observing as "अधिकार" words has been indexed as "अधधकार".

So can anyone let me know what could be the issue for the same.

Note : As I am not able to upload PDF docs and script file so please have a look onto same from below post-link as well.  
[http://elasticsearch-users.115913.n3.nabble.com/Elasticsearch-is-not-able-to-search-for-Nonnglish-text-present-in-PDF-type-of-attachment-td4074717.html](http://elasticsearch-users.115913.n3.nabble.com/Elasticsearch-is-not-able-to-search-for-Nonnglish-text-present-in-PDF-type-of-attachment-td4074717.html)  
~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: [May 18, 2015, 4:52am UTC](https://discuss.elastic.co/t/elasticsearch-is-not-able-to-search-for-nonenglish-text-present-in-pdf-type-of-attachment/539/2 "2015-05-18T04:52:57Z")

</div>

Hi All,

Any solution or suggestion for 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: [May 27, 2015, 9:14am UTC](https://discuss.elastic.co/t/elasticsearch-is-not-able-to-search-for-nonenglish-text-present-in-pdf-type-of-attachment/539/3 "2015-05-27T09:14:45Z")

</div>

Hi All,

Is there any solution or work around for the above mentioned query.

~Prashant

---

<div class="post-metadata">

### Author: ![Sarwar](https://avatars.discourse-cdn.com/v4/letter/s/7c8e57/32.png) [@Sarwar](https://discuss.elastic.co/u/Sarwar)
#### Post date: [May 27, 2015, 5:10pm UTC](https://discuss.elastic.co/t/elasticsearch-is-not-able-to-search-for-nonenglish-text-present-in-pdf-type-of-attachment/539/4 "2015-05-27T17:10:22Z")

</div>

This might help:  
[http://gibrown.com/2013/05/01/three-principles-for-multilingal-indexing-in-elasticsearch/](http://gibrown.com/2013/05/01/three-principles-for-multilingal-indexing-in-elasticsearch/)

Look at the section regarding the stop words and analyzers. There is a hindi one there which you might want to use in your mapping.

Sarwar

---

<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:11am UTC](https://discuss.elastic.co/t/elasticsearch-is-not-able-to-search-for-nonenglish-text-present-in-pdf-type-of-attachment/539/5 "2017-07-06T00:11:32Z")

</div>


