Elasticsearch [6.2] doesn't find ampersand


(xlbrlx) #1

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?


(system) #2

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