Error when Reindex from 2.4.6 to 5.x (enabled) - Reindex helper

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!

What is the mapping you are trying to apply?

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

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"
        }
      }
    }
  }
}

Thanks @dadoonet
You where right, the field wasn't use.

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