# Ingest-Attachment: Enabling OCR

**URL:** <https://discuss.elastic.co/t/ingest-attachment-enabling-ocr/248527>\
**Category:** Elasticsearch\
**Created:** [September 14, 2020, 12:17pm UTC](https://discuss.elastic.co/t/ingest-attachment-enabling-ocr/248527 "2020-09-14T12:17:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![roelandw](https://avatars.discourse-cdn.com/v4/letter/r/b5e925/32.png) [@roelandw](https://discuss.elastic.co/u/roelandw)\
**Post date:** [September 14, 2020, 12:17pm UTC](https://discuss.elastic.co/t/ingest-attachment-enabling-ocr/248527/1 "2020-09-14T12:17:36Z")

</div>

Hi there,

I'm trying to index some various documents using the Ingest-Attachment plugin. Some of these documents are image-based pdf documents that require OCR processing.

According to [this](https://stackoverflow.com/a/46451163) page on StackOverflow, Ingest-Attchment (or rather the contained Tika implementation) can be configured to execute Tesseract by pointing to the correct directory where Tesseract is installed. In my case, I would have to include `tesseractPath=C:\Program Files (x86)\Tesseract-OCR` to the Tika properties file.

I'm having difficulty, however, finding the properties file to update with the Tesseract path. There is a properties file in the elasticsearch/plugins/ingest-attachment folder, but simply adding to that file does not seem to do the trick. Starting Elasticsearch with this line included fails, showing the following error message:

`java.lang.IllegalArgumentException: Unknown properties in plugin descriptor: [tesseractPath]`

The tesseract installation works just fine standalone (has been tested). Does anyone know what I'm doing wrong and how to fix it?

Cheers!

---

<div class="post-metadata">

**Author:** ![aaron-nimocks](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aaron-nimocks/32/73965_2.png) [@aaron-nimocks](https://discuss.elastic.co/u/aaron-nimocks)\
**Post date:** [September 14, 2020, 12:52pm UTC](https://discuss.elastic.co/t/ingest-attachment-enabling-ocr/248527/2 "2020-09-14T12:52:57Z")

</div>

Think [this](https://discuss.elastic.co/t/image-tif-is-supported-by-ingest-attachment-plugin-ocr-for-images/243780) has your answer which supports the error you are seeing.

---

<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:** [October 12, 2020, 12:53pm UTC](https://discuss.elastic.co/t/ingest-attachment-enabling-ocr/248527/3 "2020-10-12T12:53:00Z")

</div>

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