小编man*_*nsi的帖子

仅返回匹配字段而不是返回整个文档

仅返回匹配的源,而不返回包含该文本的弹性搜索的整个文档

假设我有一个这种格式的数据,

POST /bookdb_index/book/_bulk
{ "index": { "_id": 1 }}
{ "title": "Elasticsearch: The Definitive Guide", "authors": ["clinton gormley", "zachary tong"], "summary" : "A distibuted real-time search and analytics engine", "publish_date" : "2015-02-07", "num_reviews": 20, "publisher": "oreilly" }
{ "index": { "_id": 2 }}
{ "title": "Taming Text: How to Find, Organize, and Manipulate It", "authors": ["grant ingersoll", "thomas morton", "drew farris"], "summary" : "organize text using approaches such as full-text search, proper name recognition, clustering, tagging, information extraction, and …
Run Code Online (Sandbox Code Playgroud)

elasticsearch kibana amazon-elastic-beanstalk elastic-stack elasticsearch-aggregation

6
推荐指数
1
解决办法
2498
查看次数