juanito
(Juan Munoz)
November 24, 2017, 9:24am
1
Hi
I am migrating from 2.4.6 to 5.x, and I am using the migration tool (https://github.com/elastic/elasticsearch-migration/tree/2.x ), but when i using the Reindex Helper, its throw a error, see below:
“PUT http://localhost:9200/index_name failed with [400] Mapping definition for [SearchTab] has unsupported parameters: [enabled : false]: {} “
I am guessing that "enable" is not supported in 5,
Do anyone know what is the right syntax then?
Thanks!
dadoonet
(David Pilato)
November 24, 2017, 9:44am
2
What is the mapping you are trying to apply?
juanito
(Juan Munoz)
November 24, 2017, 10:00am
3
Hi @dadoonet
Here is the mapping:
"Page": {
"dynamic": "false",
"properties": {
"PageId": {
"include_in_all": false,
"index": "not_analyzed",
"type": "string"
},
"SearchTab": {
"type": "integer",
----> "enabled": false <----
},
"PageName": {
"search_analyzer": "language_analyzer",
"index_analyzer": "ngram_analyzer",
"type": "string"
},
"Indexed": {
"include_in_all": false,
"index": "not_analyzed",
"type": "date"
}
}
}
this mapping is in the template.
Thanks
dadoonet
(David Pilato)
November 24, 2017, 1:57pm
4
I think that this field was previously ignored.
Anyway, here is what you should do now IMO. This version is compatible with 6.0:
DELETE test
PUT test
{
"mappings": {
"Page": {
"dynamic": "false",
"properties": {
"PageId": {
"type": "keyword"
},
"SearchTab": {
"type": "integer"
},
"PageName": {
"search_analyzer": "language_analyzer",
"analyzer": "ngram_analyzer",
"type": "text"
},
"Indexed": {
"type": "date"
}
}
}
}
}
juanito
(Juan Munoz)
November 27, 2017, 12:40pm
5
Thanks @dadoonet
You where right, the field wasn't use.
system
(system)
Closed
December 25, 2017, 12:40pm
6
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.