I installed ES 7.0 recently, but I find that it's different from old versions. I tried official tutorials, but failed, I don't know why.
This is official tutorial link:
https://www.elastic.co/guide/en/elasticsearch/reference/current/removal-of-types.html#
This is my code:
PUT test
{
"settings": {
"analysis": {
"filter": {
"synonym_filter":{
"type":"synonym",
"synonyms_path":"yxws_synonyms.txt",
"ignore_case":"True"
}
}
}
,"similarity":{
"qa_bm25":{
"type":"BM25",
"b":"0.75",
"k1":"1.2"
}
},
"index.mapping.single_type": true
}
, "mappings": {
"qa":{
"properties":{
"id":{"type":"integer"},
"department":{"type":"text"},
"disease":{"type":"text"},
"question":{"type":"text","similarity":"qa_bm25"},
"wordsDict":{"type":"text"},
"answer":{"type":"text"}
}
}
}
}
This is errors:
{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "unknown setting [index.mapping.single_type] 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.mapping.single_type] please check that any required plugins are installed, or check the breaking changes documentation for removed settings"
},
"status": 400
}