Я пытаюсь создать индекс elasticsearch с сопоставлениями с использованием официального javascript-клиента.
Мой код выглядит следующим образом:
client.indices.create({
index: "aName",
"mappings": {
"aType": {
"properties": {
"aProp1": { "type": "string", "index": "not_analyzed" },
"aProp2": { "type": "string", "index": "not_analyzed" },
"aProp3": { "type": "string", "index": "not_analyzed" },
"aProp4": { "type": "string", "index": "not_analyzed" }
}
}
}
}, function(err,resp,respcode){
console.log(err,resp,respcode);
});
Однако... индекс создается, но без отображений.... Выход:
undefined { ok: true, acknowledged: true } 200
Что я делаю неправильно?