# Can 2 ElasticSearch plugins interact?

**URL:** <https://discuss.elastic.co/t/can-2-elasticsearch-plugins-interact/22990>\
**Category:** Elasticsearch\
**Created:** [March 30, 2015, 7:07pm UTC](https://discuss.elastic.co/t/can-2-elasticsearch-plugins-interact/22990 "2015-03-30T19:07:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kiran\_Koirala](https://avatars.discourse-cdn.com/v4/letter/k/ac8455/32.png) [@Kiran\_Koirala](https://discuss.elastic.co/u/Kiran_Koirala)\
**Post date:** [March 30, 2015, 7:07pm UTC](https://discuss.elastic.co/t/can-2-elasticsearch-plugins-interact/22990/1 "2015-03-30T19:07:17Z")

</div>

I have a situation where we need to index a contents of a PDF file in  
Elastic Search. This can be easily achieved using a FS river plugin but the  
pdf file is stored as a BLOB object in a database, this means a JDBC river  
plugin is also in picture now.

Please let me know your thoughts on this. I will have a look on Attachments  
Mapper plugin to see if it can replace a FS river plugin and read a BLOB  
directly.

Thanks in Advance..!!

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/906f07be-50d9-4307-abf7-2d46f096f7f3%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/906f07be-50d9-4307-abf7-2d46f096f7f3%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [March 30, 2015, 8:10pm UTC](https://discuss.elastic.co/t/can-2-elasticsearch-plugins-interact/22990/2 "2015-03-30T20:10:10Z")

</div>

You can combine JDBC plugin and attachment mapper if your database can  
convert the blob to base64 string.

Jörg

On Mon, Mar 30, 2015 at 9:07 PM, Kiran Koirala [kkoirala@manageforce.com](mailto:kkoirala@manageforce.com)  
wrote:

> I have a situation where we need to index a contents of a PDF file in  
> Elastic Search. This can be easily achieved using a FS river plugin but the  
> pdf file is stored as a BLOB object in a database, this means a JDBC river  
> plugin is also in picture now.
> 
> Please let me know your thoughts on this. I will have a look on  
> Attachments Mapper plugin to see if it can replace a FS river plugin and  
> read a BLOB directly.
> 
> Thanks in Advance..!!
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/906f07be-50d9-4307-abf7-2d46f096f7f3%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/906f07be-50d9-4307-abf7-2d46f096f7f3%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/906f07be-50d9-4307-abf7-2d46f096f7f3%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/906f07be-50d9-4307-abf7-2d46f096f7f3%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAKdsXoEttxJZmR-oegFFTtCrDQuB0NyWY9Y-0Azm7OX%3DgUi37w%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoEttxJZmR-oegFFTtCrDQuB0NyWY9Y-0Azm7OX%3DgUi37w%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [March 30, 2015, 9:25pm UTC](https://discuss.elastic.co/t/can-2-elasticsearch-plugins-interact/22990/3 "2015-03-30T21:25:50Z")

</div>

With MySQL blob, you do not need base64 conversion by DB, because JDBC  
driver works correct. The base64 conversion is performed by JDBC river when  
indexing. Maybe other DB work like MySQL too.

Demo:

> <https://gist.github.com/jprante/22c28851bed9aff8d9da>

Jörg

On Mon, Mar 30, 2015 at 10:10 PM, [joergprante@gmail.com](mailto:joergprante@gmail.com) \<  
[joergprante@gmail.com](mailto:joergprante@gmail.com)\> wrote:

> You can combine JDBC plugin and attachment mapper if your database can  
> convert the blob to base64 string.
> 
> Jörg
> 
> On Mon, Mar 30, 2015 at 9:07 PM, Kiran Koirala [kkoirala@manageforce.com](mailto:kkoirala@manageforce.com)  
> wrote:
> 
> > I have a situation where we need to index a contents of a PDF file in  
> > Elastic Search. This can be easily achieved using a FS river plugin but the  
> > pdf file is stored as a BLOB object in a database, this means a JDBC river  
> > plugin is also in picture now.
> > 
> > Please let me know your thoughts on this. I will have a look on  
> > Attachments Mapper plugin to see if it can replace a FS river plugin and  
> > read a BLOB directly.
> > 
> > Thanks in Advance..!!
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/906f07be-50d9-4307-abf7-2d46f096f7f3%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/906f07be-50d9-4307-abf7-2d46f096f7f3%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/906f07be-50d9-4307-abf7-2d46f096f7f3%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/906f07be-50d9-4307-abf7-2d46f096f7f3%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAKdsXoH3eBz%3Dp\_T-3rjPV0q7qGYTNrhr4\_Fv5yMxeVmAnpUf-w%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoH3eBz%3Dp_T-3rjPV0q7qGYTNrhr4_Fv5yMxeVmAnpUf-w%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:23am UTC](https://discuss.elastic.co/t/can-2-elasticsearch-plugins-interact/22990/4 "2017-07-06T00:23:01Z")

</div>


