Я запускаю версию ES 6.4 на моем компьютере с Windows.Сам по себе ES работает нормально, но при создании индекса он выдает ошибку.Файл сопоставления, который я использовал, приведен ниже: -
{
"mappings": {
"household_customer": {
"properties": {
"phoneNumber": {
"type": "string",
"index": "analyzed",
"analyzer": "comma_analyzer"
},
"householdId": {
"type": "string",
"index": "not_analyzed"
},
"householdType": {
"type": "string",
"index": "not_analyzed"
},
"householdEligible": {
"type": "string",
"index": "not_analyzed"
},
"householdName": {
"type": "string",
"index": "not_analyzed"
},
"customerId": {
"type": "string",
"index": "not_analyzed"
},
"customerType": {
"type": "string",
"index": "not_analyzed"
},
"name": {
"type": "string",
"index": "not_analyzed"
},
"postalCode": {
"type": "string",
"index": "not_analyzed"
},
"houseNumber": {
"type": "string",
"index": "not_analyzed"
},
"houseNumberAddition": {
"type": "string",
"index": "not_analyzed"
},
"kvk": {
"type": "string",
"index": "not_analyzed"
},
"iban": {
"type": "string",
"index": "not_analyzed"
},
"benefitAssigned": {
"type": "boolean"
},
"benefitName": {
"type": "string",
"index": "not_analyzed"
},
"benefitStatus": {
"type": "string",
"index": "not_analyzed"
},
"benefitStatusDate": {
"type": "string",
"index": "not_analyzed"
},
"hasFixed": {
"type": "boolean"
},
"isFixedEligible": {
"type": "boolean"
},
"hasCable": {
"type": "boolean"
},
"isCableEligible": {
"type": "boolean"
},
"hasInternet": {
"type": "boolean"
},
"isInternetEligible": {
"type": "boolean"
},
"hasDigitalTV": {
"type": "boolean"
},
"isDigitalTVEligible": {
"type": "boolean"
},
"eligible": {
"type": "string",
"index": "not_analyzed"
},
"householdCustomerKey": {
"type": "string",
"index": "not_analyzed"
},
"activeInd": {
"type": "string",
"index": "not_analyzed"
},
"blacklistInd": {
"type": "boolean"
},
"blacklistCriteria": {
"type": "string",
"index": "not_analyzed"
}
}
},
"settings": {
"analysis": {
"analyzer": {
"comma_analyzer": {
"tokenizer": "comma_tokenizer"
}
},
"tokenizer": {
"comma_tokenizer": {
"type": "pattern",
"pattern": ","
}
}
}
}
}
}
Используемая команда: - http://localhost:9200/household_customer ..... Я выполнил команду через почтальона
Ошибка: -
{
"error": {
"root_cause": [
{
"type": "mapper_parsing_exception",
"reason": "Root mapping definition has unsupported parameters: [analysis : {analyzer={comma_analyzer={tokenizer=comma_tokenizer}}, tokenizer={comma_tokenizer={pattern=,, type=pattern}}}]"
}
],
"type": "mapper_parsing_exception",
"reason": "Failed to parse mapping [settings]: Root mapping definition has unsupported parameters: [analysis : {analyzer={comma_analyzer={tokenizer=comma_tokenizer}}, tokenizer={comma_tokenizer={pattern=,, type=pattern}}}]",
"caused_by": {
"type": "mapper_parsing_exception",
"reason": "Root mapping definition has unsupported parameters: [analysis : {analyzer={comma_analyzer={tokenizer=comma_tokenizer}}, tokenizer={comma_tokenizer={pattern=,, type=pattern}}}]"
}
},
"status": 400
}
Подобный вид создания индекса работает в ES2.x, но не работает для ES 6.4