1
나는 신축성 검색에 매우 익숙하다. 내 노드 프로그램에서 탄성 검색을 사용하고있다. 그에서 나는 "Index Template"
를 만들기 위해 노력하고 있어요하지만 난 오류가 발생하고있다 :탄성 검색 인덱스 템플릿 생성
쿼리 :
client.indices.putTemplate({
"name":"mfi1",
"template" : "te*"
}).then(function(res){
console.log(res);
}, function(error){
console.log(error);
});
하지만 난 수신하고 오류 :
{
"error": "ElasticsearchParseException[Failed to derive xcontent from [email protected]]",
"status": 400
}
하기에 this.Thanks를 해결하기 위해 도와주세요 전진.
나는 다음과 같은 내 쿼리를 재구성 :
{
name : "mfi3",
body:{
"template" : "te*",
"settings" : {
"number_of_shards" : 1
},
"mappings" : {
"type1" : {
"_source" : { "enabled" : false }
}
}
}
};
그 작업을 잘
나에게도이 문제가 해결되었으므로이 해답을 해결책으로 표시 할 수 있습니다. –