# Elastic search and fscrawler

**URL:** <https://discuss.elastic.co/t/elastic-search-and-fscrawler/156665>\
**Category:** Elasticsearch\
**Created:** [November 14, 2018, 1:10pm UTC](https://discuss.elastic.co/t/elastic-search-and-fscrawler/156665 "2018-11-14T13:10:50Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rahul\_Shendge](https://avatars.discourse-cdn.com/v4/letter/r/4491bb/32.png) [@Rahul\_Shendge](https://discuss.elastic.co/u/Rahul_Shendge)\
**Post date:** [November 14, 2018, 1:10pm UTC](https://discuss.elastic.co/t/elastic-search-and-fscrawler/156665/1 "2018-11-14T13:10:50Z")

</div>

I am working on elastic search and fscrawler. I am trying to index pdf, docx, jpeg file on elsatic search using fscrawlers. On my local jpeg file text content read successfully but on my server it not read text content. My local machine is ubuntu and server is centos. Please help me.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [November 14, 2018, 1:34pm UTC](https://discuss.elastic.co/t/elastic-search-and-fscrawler/156665/2 "2018-11-14T13:34:20Z")

</div>

So you are indexing an image which contains text, that's right?  
Did you install Tesseract for OCR?

---

<div class="post-metadata">

**Author:** ![Rahul\_Shendge](https://avatars.discourse-cdn.com/v4/letter/r/4491bb/32.png) [@Rahul\_Shendge](https://discuss.elastic.co/u/Rahul_Shendge)\
**Post date:** [November 14, 2018, 2:15pm UTC](https://discuss.elastic.co/t/elastic-search-and-fscrawler/156665/3 "2018-11-14T14:15:15Z")

</div>

Yes I indexing an image which contains text and I installed Tesseract.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [November 14, 2018, 2:28pm UTC](https://discuss.elastic.co/t/elastic-search-and-fscrawler/156665/4 "2018-11-14T14:28:32Z")

</div>

Could you make sure that tesseract is available on the default PATH of your machine?  
Otherwise configure [https://fscrawler.readthedocs.io/en/latest/user/tips.html#ocr-path](https://fscrawler.readthedocs.io/en/latest/user/tips.html#ocr-path)

---

<div class="post-metadata">

**Author:** ![Rahul\_Shendge](https://avatars.discourse-cdn.com/v4/letter/r/4491bb/32.png) [@Rahul\_Shendge](https://discuss.elastic.co/u/Rahul_Shendge)\
**Post date:** [November 14, 2018, 4:16pm UTC](https://discuss.elastic.co/t/elastic-search-and-fscrawler/156665/5 "2018-11-14T16:16:22Z")

</div>

Resolved issue. Below libs are missing:

```auto
libjpeg-dev libpng-dev libtiff4-dev

```

Thanks.

---

<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:** [December 12, 2018, 4:16pm UTC](https://discuss.elastic.co/t/elastic-search-and-fscrawler/156665/6 "2018-12-12T16:16:22Z")

</div>

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