# Elasticsearch \[6.2\] doesn't find ampersand

**URL:** https://discuss.elastic.co/t/elasticsearch-6-2-doesnt-find-ampersand/151098
**Category:** Elasticsearch
**Created:** [October 4, 2018, 6:45pm UTC](https://discuss.elastic.co/t/elasticsearch-6-2-doesnt-find-ampersand/151098 "2018-10-04T18:45:58Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![xlbrlx](https://avatars.discourse-cdn.com/v4/letter/x/7ab992/32.png) [@xlbrlx](https://discuss.elastic.co/u/xlbrlx)
#### Post date: [October 4, 2018, 6:45pm UTC](https://discuss.elastic.co/t/elasticsearch-6-2-doesnt-find-ampersand/151098/1 "2018-10-04T18:45:58Z")

</div>

Hi there,

I just upgraded my elasticsearch 1.7 to 6.2.  
Mapping is the same but query doesn't work anymore.

Here is my old mapping:  
"myField": {  
"type": "string",  
"index\_options": "offsets",  
"term\_vector": "with\_positions\_offsets",  
"null\_value": "",  
"boost": 2,  
"fields": {  
"raw": {  
"type": "string",  
"index": "not\_analyzed",  
"null\_value": "",  
"doc\_values": true  
}  
}  
}

And here is the new mapping:  
"myField": {  
"type": "text",  
"index\_options": "offsets",  
"term\_vector": "with\_positions\_offsets",  
"boost": 2,  
"copy\_to": "all",  
"fields": {  
"raw": {  
"type": "keyword",  
"index": true,  
"null\_value": "",  
"doc\_values": true  
}  
}  
}

It used to return results for " Angels AND & AND Devil", not anymore.  
Am I missing something?

---

<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: [November 1, 2018, 6:46pm UTC](https://discuss.elastic.co/t/elasticsearch-6-2-doesnt-find-ampersand/151098/2 "2018-11-01T18:46:15Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
