<p dir="auto"><strong>Elasticsearch version</strong>: 2.3.2</p>
<p dir="auto"><strong>Plugins installed</strong>: [mapper-attachments]</p>
<p dir="auto"><strong>JVM version</strong>: 1.8</p>
<p dir="auto"><strong>OS version</strong>: Windows</p>
<p dir="auto"><strong>Description of the problem including expected versus actual behavior</strong>:</p>
<p dir="auto"><strong>Steps to reproduce</strong>:<br>
Similar to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="154864658" data-permission-text="Title is private" data-url="https://github.com/elastic/elasticsearch-mapper-attachments/issues/216" data-hovercard-type="issue" data-hovercard-url="/elastic/elasticsearch-mapper-attachments/issues/216/hovercard" href="https://github.com/elastic/elasticsearch-mapper-attachments/issues/216">elastic/elasticsearch-mapper-attachments#216</a> and <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="118414556" data-permission-text="Title is private" data-url="https://github.com/elastic/elasticsearch/issues/14946" data-hovercard-type="issue" data-hovercard-url="/elastic/elasticsearch/issues/14946/hovercard" href="https://github.com/elastic/elasticsearch/issues/14946">#14946</a><br>
We couldn't find as to in which version this was fixed.<br>
If there is a document or references available, please do help us with the links leading to it</p>
<p dir="auto"><strong>Provide logs (if relevant)</strong>:</p>

<p dir="auto"><strong>Describe the feature</strong>:</p>
<p dir="auto"><strong>Elasticsearch version</strong>:<br>
2.3.2</p>
<p dir="auto"><strong>JVM version</strong>:<br>
1.7.0_101 x64</p>
<p dir="auto"><strong>OS version</strong>:<br>
Ubuntu 14.04</p>
<p dir="auto"><strong>Description of the problem including expected versus actual behavior</strong>:<br>
Hi,<br>
i am using Elasticsearch 2.3.2 with the Mapper Attachments Plugin. I try to copy the extracted content to another field, as described <a href="https://github.com/elastic/elasticsearch-mapper-attachments#copy-to-feature">here</a><br>
This is not working for me, though.</p>
<p dir="auto">I also found a closed bug here <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="118414556" data-permission-text="Title is private" data-url="https://github.com/elastic/elasticsearch/issues/14946" data-hovercard-type="issue" data-hovercard-url="/elastic/elasticsearch/issues/14946/hovercard" href="https://github.com/elastic/elasticsearch/issues/14946">#14946</a>. But the discussion does it not make clear, whether the bug has been resolved or not.</p>
<p dir="auto">Therefore i would be happy, if you could give me a definitive answer, whether this is possible or not.</p>
<p dir="auto"><strong>Steps to reproduce</strong>:<br>
curl -XPOST '<a href="http://localhost:9200/test" rel="nofollow">http://localhost:9200/test</a>' -d '{<br>
"entry": {<br>
"properties": {<br>
"file": {<br>
"type": "attachment",<br>
"fields": {<br>
"content": {<br>
"type": "string",<br>
"copy_to": "fulltext_en"<br>
}<br>
}<br>
},<br>
"fulltext_en": {<br>
"type": "string",<br>
"analyzer": "english"<br>
}<br>
}<br>
}<br>
}'</p>
<p dir="auto">curl -XPOST '<a href="http://localhost:9200/test/entry" rel="nofollow">http://localhost:9200/test/entry</a>' -d '{<br>
"file": "TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQ="<br>
}'<br>
// the base64 is "Lorem ipsum dolor sit amet"</p>
<p dir="auto">curl -XPOST '<a href="http://localhost:9200/test/_search" rel="nofollow">http://localhost:9200/test/_search</a>' -d '<br>
{<br>
"query": {<br>
"match": {<br>
"fulltext_en": "ipsum"<br>
}<br>
}<br>
}'</p>
<p dir="auto">the result of the search is then empty, which is wrong, as "ipsum" is contained in the base64.</p>