# Mapper-attachment plugin not parsing binary files

**URL:** <https://discuss.elastic.co/t/mapper-attachment-plugin-not-parsing-binary-files/11097>\
**Category:** Elasticsearch\
**Created:** [March 11, 2013, 2:14pm UTC](https://discuss.elastic.co/t/mapper-attachment-plugin-not-parsing-binary-files/11097 "2013-03-11T14:14:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michel\_Behlok](https://avatars.discourse-cdn.com/v4/letter/m/839c29/32.png) [@Michel\_Behlok](https://discuss.elastic.co/u/Michel_Behlok)\
**Post date:** [March 11, 2013, 2:14pm UTC](https://discuss.elastic.co/t/mapper-attachment-plugin-not-parsing-binary-files/11097/1 "2013-03-11T14:14:00Z")

</div>

Hello, having a bit of trouble with mapper-attachments. Elasticsearch.logs  
shows plugin loading correctly:  
[2013-03-11 09:07:58,407][INFO][plugins] [Modred the Mystic] loaded  
[mapper-attachments], sites []

However, when indexing a binary file with this script:  
[https://gist.github.com/lukas-vlcek/1075067](https://gist.github.com/lukas-vlcek/1075067) (posted in tutorial) nothing  
shows up, and when querying by ID, only Base64 data is shown instead of  
Tika plain text extraction.

Currently on ES 0.20.5 using .deb installation on debian.

Thanks for your help.

Mitch.

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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:** [March 11, 2013, 3:01pm UTC](https://discuss.elastic.co/t/mapper-attachment-plugin-not-parsing-binary-files/11097/2 "2013-03-11T15:01:02Z")

</div>

I tested it some time ago against 0.20 and it was working fine. What version of attachment plugin do you use?  
Can you provide a Gist with what you tried so far?

--  
David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
@dadoonet | @elasticsearchfr | @scrutmydocs

Le 11 mars 2013 à 15:14, Michel Behlok [mbehlok@gmail.com](mailto:mbehlok@gmail.com) a écrit :

> Hello, having a bit of trouble with mapper-attachments. Elasticsearch.logs shows plugin loading correctly:  
> [2013-03-11 09:07:58,407][INFO][plugins] [Modred the Mystic] loaded [mapper-attachments], sites
> 
> However, when indexing a binary file with this script: [Test of attachments plugin · GitHub](https://gist.github.com/lukas-vlcek/1075067) (posted in tutorial) nothing shows up, and when querying by ID, only Base64 data is shown instead of Tika plain text extraction.
> 
> Currently on ES 0.20.5 using .deb installation on debian.
> 
> Thanks for your help.
> 
> Mitch.
> 
> --  
> 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).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Michel\_Behlok](https://avatars.discourse-cdn.com/v4/letter/m/839c29/32.png) [@Michel\_Behlok](https://discuss.elastic.co/u/Michel_Behlok)\
**Post date:** [March 11, 2013, 3:45pm UTC](https://discuss.elastic.co/t/mapper-attachment-plugin-not-parsing-binary-files/11097/3 "2013-03-11T15:45:20Z")

</div>

Hello David thanks for fast replay. Tried downgrading to 0.20 witch  
mapper-attachments 1.7.0 with no luck. Also tried 0.20.5 with MA 1.7-4.0  
also with no luck. Here is a Gist as requested:

> <https://gist.github.com/BeWilled/5134964>

Mitch

El lunes, 11 de marzo de 2013 10:01:02 UTC-5, David Pilato escribió:

> I tested it some time ago against 0.20 and it was working fine. What  
> version of attachment plugin do you use?  
> Can you provide a Gist with what you tried so far?
> 
> --  
> _David Pilato_ | _Technical Advocate_ | _[Elasticsearch.com](http://Elasticsearch.com)_  
> @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)  
> | @scrutmydocs [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)
> 
> Le 11 mars 2013 à 15:14, Michel Behlok \<[mbe...@gmail.com](mailto:mbe...@gmail.com) \<javascript:\>\> a  
> écrit :
> 
> Hello, having a bit of trouble with mapper-attachments. Elasticsearch.logs  
> shows plugin loading correctly:  
> [2013-03-11 09:07:58,407][INFO][plugins] [Modred the Mystic] loaded  
> [mapper-attachments], sites
> 
> However, when indexing a binary file with this script:  
> [Test of attachments plugin · GitHub](https://gist.github.com/lukas-vlcek/1075067) (posted in tutorial) nothing  
> shows up, and when querying by ID, only Base64 data is shown instead of  
> Tika plain text extraction.
> 
> Currently on ES 0.20.5 using .deb installation on debian.
> 
> Thanks for your help.
> 
> Mitch.
> 
> --  
> 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Michel\_Behlok](https://avatars.discourse-cdn.com/v4/letter/m/839c29/32.png) [@Michel\_Behlok](https://discuss.elastic.co/u/Michel_Behlok)\
**Post date:** [March 13, 2013, 7:54pm UTC](https://discuss.elastic.co/t/mapper-attachment-plugin-not-parsing-binary-files/11097/4 "2013-03-13T19:54:37Z")

</div>

also, on 0.20.0 installing plugin directly from .zip local file outputs  
this error:

root@debian:/usr/share/elasticsearch/bin# ./plugin -url  
file://home/mbehlok/Downloads/elasticsearch-mapper-attachments-1.6.0.zip  
-install elasticsearch/elasticsearch-mapper-attachments/1.6.0  
-\> Installing elasticsearch/elasticsearch-mapper-attachments/1.6.0...  
Trying  
file://home/mbehlok/Downloads/elasticsearch-mapper-attachments-1.6.0.zip...  
Trying  
[https://github.com/downloads/elasticsearch/elasticsearch-mapper-attachments/elasticsearch-mapper-attachments-1.6.0.zip](https://github.com/downloads/elasticsearch/elasticsearch-mapper-attachments/elasticsearch-mapper-attachments-1.6.0.zip)...  
Trying  
[https://github.com/elasticsearch/elasticsearch-mapper-attachments/zipball/v1.6.0](https://github.com/elasticsearch/elasticsearch-mapper-attachments/zipball/v1.6.0)...  
Failed to install elasticsearch/elasticsearch-mapper-attachments/1.6.0,  
reason: failed to download

El lunes, 11 de marzo de 2013 10:45:20 UTC-5, Michel Behlok escribió:

> Hello David thanks for fast replay. Tried downgrading to 0.20 witch  
> mapper-attachments 1.7.0 with no luck. Also tried 0.20.5 with MA 1.7-4.0  
> also with no luck. Here is a Gist as requested:
> 
> [Mapper-attachment plugin not parsing binary files. · GitHub](https://gist.github.com/BeWilled/5134964)
> 
> Mitch
> 
> El lunes, 11 de marzo de 2013 10:01:02 UTC-5, David Pilato escribió:
> 
> > I tested it some time ago against 0.20 and it was working fine. What  
> > version of attachment plugin do you use?  
> > Can you provide a Gist with what you tried so far?
> > 
> > --  
> > _David Pilato_ | _Technical Advocate_ | _[Elasticsearch.com](http://Elasticsearch.com)_  
> > @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)  
> > | @scrutmydocs [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)
> > 
> > Le 11 mars 2013 à 15:14, Michel Behlok [mbe...@gmail.com](mailto:mbe...@gmail.com) a écrit :
> > 
> > Hello, having a bit of trouble with mapper-attachments.  
> > Elasticsearch.logs shows plugin loading correctly:  
> > [2013-03-11 09:07:58,407][INFO][plugins] [Modred the Mystic] loaded  
> > [mapper-attachments], sites
> > 
> > However, when indexing a binary file with this script:  
> > [Test of attachments plugin · GitHub](https://gist.github.com/lukas-vlcek/1075067) (posted in tutorial) nothing  
> > shows up, and when querying by ID, only Base64 data is shown instead of  
> > Tika plain text extraction.
> > 
> > Currently on ES 0.20.5 using .deb installation on debian.
> > 
> > Thanks for your help.
> > 
> > Mitch.
> > 
> > --  
> > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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:** [March 14, 2013, 9:02am UTC](https://discuss.elastic.co/t/mapper-attachment-plugin-not-parsing-binary-files/11097/5 "2013-03-14T09:02:09Z")

</div>

URL for file is invalid. Just try to open your PDF and you will see an html page.

curl -C - -O [Renesas Electronics Corporation](http://www.intersil.com/content/dam/Intersil/documents/fn67/fn6742.pdf)

Is the new URL.

I have updated Lukas's script some months ago: [Test of attachments plugin · GitHub](https://gist.github.com/dadoonet/3907010)

HTH

Note : rm your previous pdf file before running the new gist

--  
David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
@dadoonet | @elasticsearchfr | @scrutmydocs

Le 13 mars 2013 à 20:54, Michel Behlok [mbehlok@gmail.com](mailto:mbehlok@gmail.com) a écrit :

> also, on 0.20.0 installing plugin directly from .zip local file outputs this error:
> 
> root@debian:/usr/share/elasticsearch/bin# ./plugin -url file://home/mbehlok/Downloads/elasticsearch-mapper-attachments-1.6.0.zip -install elasticsearch/elasticsearch-mapper-attachments/1.6.0  
> -\> Installing elasticsearch/elasticsearch-mapper-attachments/1.6.0...  
> Trying file://home/mbehlok/Downloads/elasticsearch-mapper-attachments-1.6.0.zip...  
> Trying [https://github.com/downloads/elasticsearch/elasticsearch-mapper-attachments/elasticsearch-mapper-attachments-1.6.0.zip](https://github.com/downloads/elasticsearch/elasticsearch-mapper-attachments/elasticsearch-mapper-attachments-1.6.0.zip)...  
> Trying [https://github.com/elasticsearch/elasticsearch-mapper-attachments/zipball/v1.6.0](https://github.com/elasticsearch/elasticsearch-mapper-attachments/zipball/v1.6.0)...  
> Failed to install elasticsearch/elasticsearch-mapper-attachments/1.6.0, reason: failed to download
> 
> El lunes, 11 de marzo de 2013 10:45:20 UTC-5, Michel Behlok escribió:  
> Hello David thanks for fast replay. Tried downgrading to 0.20 witch mapper-attachments 1.7.0 with no luck. Also tried 0.20.5 with MA 1.7-4.0 also with no luck. Here is a Gist as requested:
> 
> [Mapper-attachment plugin not parsing binary files. · GitHub](https://gist.github.com/BeWilled/5134964)
> 
> Mitch
> 
> El lunes, 11 de marzo de 2013 10:01:02 UTC-5, David Pilato escribió:  
> I tested it some time ago against 0.20 and it was working fine. What version of attachment plugin do you use?  
> Can you provide a Gist with what you tried so far?
> 
> --  
> David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
> @dadoonet | @elasticsearchfr | @scrutmydocs
> 
> Le 11 mars 2013 à 15:14, Michel Behlok [mbe...@gmail.com](mailto:mbe...@gmail.com) a écrit :
> 
> > Hello, having a bit of trouble with mapper-attachments. Elasticsearch.logs shows plugin loading correctly:  
> > [2013-03-11 09:07:58,407][INFO][plugins] [Modred the Mystic] loaded [mapper-attachments], sites
> > 
> > However, when indexing a binary file with this script: [Test of attachments plugin · GitHub](https://gist.github.com/lukas-vlcek/1075067) (posted in tutorial) nothing shows up, and when querying by ID, only Base64 data is shown instead of Tika plain text extraction.
> > 
> > Currently on ES 0.20.5 using .deb installation on debian.
> > 
> > Thanks for your help.
> > 
> > Mitch.
> > 
> > --  
> > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> 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).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:46am UTC](https://discuss.elastic.co/t/mapper-attachment-plugin-not-parsing-binary-files/11097/6 "2017-07-06T02:46:34Z")

</div>


