# Questions around Mapper Attachments 3.1.1 / ES 2.1.1

**URL:** <https://discuss.elastic.co/t/questions-around-mapper-attachments-3-1-1-es-2-1-1/38481>\
**Category:** Elasticsearch\
**Created:** [January 6, 2016, 9:12am UTC](https://discuss.elastic.co/t/questions-around-mapper-attachments-3-1-1-es-2-1-1/38481 "2016-01-06T09:12:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![drixen](https://avatars.discourse-cdn.com/v4/letter/d/e47774/32.png) [@drixen](https://discuss.elastic.co/u/drixen)\
**Post date:** [January 6, 2016, 9:12am UTC](https://discuss.elastic.co/t/questions-around-mapper-attachments-3-1-1-es-2-1-1/38481/1 "2016-01-06T09:12:51Z")

</div>

Hello,

I am testing the plugin Mapper Attachments 3.1.1 with ES 2.1.1, and using a set of xml files.

After indexing my files as base64 encoded, i query the cluster like this :

```
POST /test/divers/_search
{
     "fields": ["file.name"],
      "size" : 50,
      "query": {
               "match": {
               "file.content": "DEPOT"
               }
       }
}

```

I got 7 hits files in return. When searching the same occurrence using notepad++, i got 10 hits files.  
What can explain the difference ?

I also tried to use the keywords metadata. So, i stored information into that field but i don't know how to use it?  
Can you help on this please ?

Antoine

---

<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:** [January 8, 2016, 9:38am UTC](https://discuss.elastic.co/t/questions-around-mapper-attachments-3-1-1-es-2-1-1/38481/2 "2016-01-08T09:38:16Z")

</div>

I can't explain without a complete example. Do you think you could share a gist on [https://gist.github.com](https://gist.github.com)?

Out of curiosity, why are you using this plugin for xml files? Do you have other files to index than xml?

---

<div class="post-metadata">

**Author:** ![drixen](https://avatars.discourse-cdn.com/v4/letter/d/e47774/32.png) [@drixen](https://discuss.elastic.co/u/drixen)\
**Post date:** [January 8, 2016, 3:19pm UTC](https://discuss.elastic.co/t/questions-around-mapper-attachments-3-1-1-es-2-1-1/38481/3 "2016-01-08T15:19:38Z")

</div>

I am just testing this plugin for future purposes.  
And yes, i use several types in my set of files : csv, pdf, docx, xml, ppt, vsd ans xlsm.

For the moment, i only noticed different results (as i said above) with the xml files. I see if i can push a gist.

Is there a doc about how to use the keywords ?

Antoine

---

<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:** [January 8, 2016, 3:45pm UTC](https://discuss.elastic.co/t/questions-around-mapper-attachments-3-1-1-es-2-1-1/38481/4 "2016-01-08T15:45:52Z")

</div>

May be something in your XML / Mapping makes that happening?

> [@drixen](#):
>
> Is there a doc about how to use the keywords ?

[GitHub - elastic/elasticsearch-mapper-attachments: Mapper Attachments Type plugin for Elasticsearch](https://github.com/elastic/elasticsearch-mapper-attachments#querying-or-accessing-metadata) ?

---

<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 5, 2017, 11:25pm UTC](https://discuss.elastic.co/t/questions-around-mapper-attachments-3-1-1-es-2-1-1/38481/5 "2017-07-05T23:25:56Z")

</div>


