# Using tika's html mapper in attachment plugin

**URL:** <https://discuss.elastic.co/t/using-tikas-html-mapper-in-attachment-plugin/13800>\
**Category:** Elasticsearch\
**Created:** [September 30, 2013, 7:30am UTC](https://discuss.elastic.co/t/using-tikas-html-mapper-in-attachment-plugin/13800 "2013-09-30T07:30:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![elyrank](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/elyrank/32/2072_2.png) [@elyrank](https://discuss.elastic.co/u/elyrank)\
**Post date:** [September 30, 2013, 7:30am UTC](https://discuss.elastic.co/t/using-tikas-html-mapper-in-attachment-plugin/13800/1 "2013-09-30T07:30:45Z")

</div>

Hi,

I read that Tika has an ability to discard some elements , by using:  
\*isDiscardElement[http://tika.apache.org/1.2/api/org/apache/tika/parser/html/HtmlMapper.html#isDiscardElement(java.lang.String)](http://tika.apache.org/1.2/api/org/apache/tika/parser/html/HtmlMapper.html#isDiscardElement(java.lang.String))  
\*  
in HtmlMapper

I was wondering if there is any way of adding this as a property to the  
attachment plugin to discard certain elements in html

for example - when indexing some html files that all have the same menu or  
headers

--  
Thanks,  
Elyran

--  
This message may contain confidential and/or privileged information.  
If you are not the addressee or authorized to receive this on behalf of the  
addressee you must not use, copy, disclose or take action based on this  
message or any information herein.  
If you have received this message in error, please advise the sender  
immediately by reply email and delete this message. Thank you.

--  
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:14am UTC](https://discuss.elastic.co/t/using-tikas-html-mapper-in-attachment-plugin/13800/2 "2017-07-06T02:14:17Z")

</div>

Closed on July 6, 2017, 2:14am UTC


