Я использую PHP API Elasticsearch и Advanced REST Client (ARC), оба для тестирования ES API. Когда я пытаюсь создать новый индекс с помощью специального анализатора, я получаю эту ошибку:
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "unknown setting [index.body.mappings.applications._all.enabled] please check that any required plugins are installed, or check the breaking changes documentation for removed settings"
}
],
"type": "illegal_argument_exception",
"reason": "unknown setting [index.body.mappings.applications._all.enabled] please check that any required plugins are installed, or check the breaking changes documentation for removed settings"
},
"status": 400
}
Я попытался удалить настройку анализа, и индекс был успешно создан. Также я попытался удалить фильтры из пользовательского анализатора, и я переустанавливал 2 раза ES.
{
"index": "ar",
"body": {
"settings": {
"analysis": {
"analyzer": {
"spanish": {
"type": "custom",
"tokenizer": "standard",
"filter": [
"lowercase",
"asciifolding"
]
}
},
"filter": {
"spanish_stemmer": {
"type": "stemmer",
"language": "light_spanish"
},
"spanish_stop": {
"type": "stop",
"stopwords": "_spanish_"
}
}
}
},
"mappings": {
"people": {
"_all": {
"enabled": "true"
},
"properties": {
"email": {
"type": "text",
"analyzer": "spanish",
"search_analyzer": "spanish"
},
"url": {
"type": "text",
"analyzer": "spanish",
"search_analyzer": "spanish"
},
"created_at": {
"type": "date"
},
"avatar64": {
"type": "text",
"analyzer": "spanish",
"search_analyzer": "spanish"
},
"description": {
"type": "text",
"analyzer": "spanish",
"search_analyzer": "spanish"
},
"first_name": {
"type": "text",
"analyzer": "spanish",
"search_analyzer": "spanish"
},
"last_name": {
"type": "text",
"analyzer": "spanish",
"search_analyzer": "spanish"
},
"nickname": {
"type": "text",
"analyzer": "spanish",
"search_analyzer": "spanish"
},
"phone": {
"type": "text",
"analyzer": "spanish",
"search_analyzer": "spanish"
},
"state": {
"type": "text",
"analyzer": "spanish",
"search_analyzer": "spanish"
},
"phone2": {
"type": "text",
"analyzer": "spanish",
"search_analyzer": "spanish"
},
"country": {
"type": "integer"
},
"headline": {
"type": "text",
"analyzer": "spanish",
"search_analyzer": "spanish"
},
"location": {
"type": "text",
"analyzer": "spanish",
"search_analyzer": "spanish"
},
"slug_url": {
"type": "text",
"analyzer": "spanish",
"search_analyzer": "spanish"
},
"zip_code": {
"type": "text",
"analyzer": "spanish",
"search_analyzer": "spanish"
},
"modified_at": {
"type": "date"
}
}
},
"applications": {
"_all": {
"enabled": "true"
},
"_parent": {
"type": "people"
},
"properties": {
"applicant_name": {
"type": "text",
"analyzer": "spanish",
"search_analyzer": "spanish"
},
"applied_at": {
"type": "date"
},
"email": {
"type": "keyword",
"analyzer": "spanish",
"search_analyzer": "spanish"
},
"job_id": {
"type": "integer"
},
"message": {
"type": "text",
"analyzer": "spanish",
"search_analyzer": "spanish"
},
"status": {
"type": "boolean"
}
}
},
"resume_details": {
"_all": {
"enabled": "true"
},
"_parent": {
"type": "people"
},
"properties": {
"type": {
"type": "integer"
},
"title": {
"type": "text",
"analyzer": "spanish",
"search_analyzer": "spanish"
},
"grantor": {
"type": "text",
"analyzer": "spanish",
"search_analyzer": "spanish"
},
"message": {
"type": "text",
"analyzer": "spanish",
"search_analyzer": "spanish"
}
}
}
}
}
}
Необходимо создать индекс с этим анализатором
Большое спасибо!