【发布时间】:2020-11-27 04:54:52
【问题描述】:
我有以下文档:
export class CustomerServiceResultType{
id: string;
body:{customerRelation: string};
}
export class CustomerType{
id: string;
body:{name: string};
}
我希望 CustomerServiceResultType 与 CustomerType 的字段相关:customerRelation。
这是我的映射:
await this.elasticsearchService.indices.putMapping({
"index": "db",
"type": "CustomerServiceResultType",
"body" : {
"properties": {
"customerRelation": {
"type": "join",
"relations": {
"CustomerServiceResultType": "CustomerType"
}
}
}
}
});
这是我得到的错误:
[Nest] 421512 - 11/21/2020, 6:40:42 PM [ExceptionsHandler] illegal_argument_exception +96414ms
ResponseError: illegal_argument_exception
没有关于此错误的详细信息...
谢谢
【问题讨论】:
标签: node.js elasticsearch