# ElasticSearch mapper-attachments 2.2

**URL:** <https://discuss.elastic.co/t/elasticsearch-mapper-attachments-2-2/47976>\
**Category:** Elasticsearch\
**Created:** [April 20, 2016, 11:09pm UTC](https://discuss.elastic.co/t/elasticsearch-mapper-attachments-2-2/47976 "2016-04-20T23:09:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chris\_Broll](https://avatars.discourse-cdn.com/v4/letter/c/58956e/32.png) [@Chris\_Broll](https://discuss.elastic.co/u/Chris_Broll)\
**Post date:** [April 20, 2016, 11:09pm UTC](https://discuss.elastic.co/t/elasticsearch-mapper-attachments-2-2/47976/1 "2016-04-20T23:09:08Z")

</div>

I was looking to use Apache-Tika via the mapper-attachments plugin to import some data from some Microsoft Word documents so i started following the documents here:

```
https://www.elastic.co/guide/en/elasticsearch/plugins/2.2/mapper-attachments-helloworld.html

```

I PUT the base64 string into elasticsearch thinking the plugin would convert it as it indexes it but when I perform a search afterwards the data is still in base64.

Any idea what is happening?

Output looks like this:

```
{
  "took": 3,
  "timed_out": false,
  "_shards": {
  "total": 5,
  "successful": 5,
  "failed": 0
},
  "hits": {
  "total": 1,
  "max_score": 0.095891505,
  "hits": [
    {
      "_index": "trying-out-mapper-attachments",
      "_type": "person",
      "_id": "1",
      "_score": 0.095891505,
      "_source": {
      "cv": "e1xydGYxXGFuc2kNCkxvcmVtIGlwc3VtIGRvbG9yIHNpdCBhbWV0DQpccGFyIH0="
      }
    }
  ]
 }
}

```

I was expecting to see something like this:

```
echo e1xydGYxXGFuc2kNCkxvcmVtIGlwc3VtIGRvbG9yIHNpdCBhbWV0DQpccGFyIH0= | base64 --decode

{\rtf1\ansi
Lorem ipsum dolor sit amet
\par }
```

---

<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:** [April 21, 2016, 2:41am UTC](https://discuss.elastic.co/t/elasticsearch-mapper-attachments-2-2/47976/2 "2016-04-21T02:41:24Z")

</div>

We never modify the source. So it's stored as you sent it.

But the content has been extracted, indexed behind the scene so you can probably search for it.

---

<div class="post-metadata">

**Author:** ![Chris\_Broll](https://avatars.discourse-cdn.com/v4/letter/c/58956e/32.png) [@Chris\_Broll](https://discuss.elastic.co/u/Chris_Broll)\
**Post date:** [April 21, 2016, 8:26am UTC](https://discuss.elastic.co/t/elasticsearch-mapper-attachments-2-2/47976/3 "2016-04-21T08:26:40Z")

</div>

Thanks David, I suspected the source would not be modified but the output from this example search in the documentation returns the unmodified source which suggest that it is matching. How do I get to see the data that has been extracted?

```
POST /trying-out-mapper-attachments/person/_search
{
  "query": {
     "query_string": {
        "query": "ipsum"
}}}
```

---

<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, 10:57pm UTC](https://discuss.elastic.co/t/elasticsearch-mapper-attachments-2-2/47976/4 "2017-07-05T22:57:26Z")

</div>


