悟空,拿我的打狗棒来

es返回特定字段

Elasticsearch | 作者 zengercool | 发布于2018年05月24日 | 阅读数:9022

比如一个主商品(包含主货号(itemNo)、id、子商品(itemList)集合等信息),而itemList也有货号(itemNo)、id等信息,想要通过es,条件是itemList.itemNo查询itemList指定的子商品,并返回子商品信息,这个es可以实现吗?目前我根据itemList.itemNo查询返回的数据,总是整个一个主商品(就是多个子商品都返回了)
已邀请:

laoyang360 - 《一本书讲透Elasticsearch》作者,Elastic认证工程师 [死磕Elasitcsearch]知识星球地址:http://t.cn/RmwM3N9;微信公众号:铭毅天下; 博客:https://elastic.blog.csdn.net

赞同来自:

要回复问题请先登录注册