# Elasticsearch index on blob

**URL:** <https://discuss.elastic.co/t/elasticsearch-index-on-blob/306951>\
**Category:** Elasticsearch\
**Created:** [June 12, 2022, 2:36am UTC](https://discuss.elastic.co/t/elasticsearch-index-on-blob/306951 "2022-06-12T02:36:05Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Harsh\_Agarwal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/harsh_agarwal/32/106225_2.png) [@Harsh\_Agarwal](https://discuss.elastic.co/u/Harsh_Agarwal)\
**Post date:** [June 12, 2022, 2:36am UTC](https://discuss.elastic.co/t/elasticsearch-index-on-blob/306951/1 "2022-06-12T02:36:05Z")

</div>

Is it possible to make a blob which is a compressed binary representation of a string, searchable?

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [June 12, 2022, 10:04am UTC](https://discuss.elastic.co/t/elasticsearch-index-on-blob/306951/2 "2022-06-12T10:04:55Z")

</div>

No. You would need to extract the text and store this on the document. This is what e.g. the [ingest attachement plugin](https://www.elastic.co/guide/en/elasticsearch/plugins/8.2/ingest-attachment.html) does when indexing binary documents and files.

---

<div class="post-metadata">

**Author:** ![Harsh\_Agarwal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/harsh_agarwal/32/106225_2.png) [@Harsh\_Agarwal](https://discuss.elastic.co/u/Harsh_Agarwal)\
**Post date:** [June 12, 2022, 10:20am UTC](https://discuss.elastic.co/t/elasticsearch-index-on-blob/306951/3 "2022-06-12T10:20:17Z")

</div>

I have compressed data into blob using: [Erlang -- External Term Format](https://www.erlang.org/doc/apps/erts/erl_ext_dist.html)  
Will this also be retrievable by the plugin ?

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [June 12, 2022, 10:44am UTC](https://discuss.elastic.co/t/elasticsearch-index-on-blob/306951/4 "2022-06-12T10:44:33Z")

</div>

I do not believe that is supported.

---

<div class="post-metadata">

**Author:** ![Harsh\_Agarwal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/harsh_agarwal/32/106225_2.png) [@Harsh\_Agarwal](https://discuss.elastic.co/u/Harsh_Agarwal)\
**Post date:** [June 12, 2022, 10:56am UTC](https://discuss.elastic.co/t/elasticsearch-index-on-blob/306951/5 "2022-06-12T10:56:05Z")

</div>

Thanks 🙂 im glad was able to get to a conclusion, will think of some other way 🙂

---

<div class="post-metadata">

**Author:** ![Harsh\_Agarwal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/harsh_agarwal/32/106225_2.png) [@Harsh\_Agarwal](https://discuss.elastic.co/u/Harsh_Agarwal)\
**Post date:** [June 19, 2022, 11:48am UTC](https://discuss.elastic.co/t/elasticsearch-index-on-blob/306951/6 "2022-06-19T11:48:11Z")

</div>

Hey @Christian I read that Tika supports:

"Tar, AR, ARJ, CPIO, Dump, Zip, 7Zip, Gzip, BZip2, XZ, LZMA, Z and Pack200"

In [Apache Tika – Supported Document Formats](https://tika.apache.org/1.17/formats.html) under section ' Compression and packaging formats'.

But I understand for Elasticsearch we cannot index on compressed formats.. and need to uncompress and only then store documents or string using ingest attachment plugin ?

---

<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 17, 2022, 11:49am UTC](https://discuss.elastic.co/t/elasticsearch-index-on-blob/306951/7 "2022-07-17T11:49:05Z")

</div>

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