1.数据入库

PUT /my_index/user/1     
{
  "name":     "John Smith",
  "email":    "[email protected]",
  "dob":      "1970/10/24"
}

PUT /your_index/blogpost/2 
{
  "title":    "Relationships",
  "body":     "It's complicated...",
  "user":     1         
}

2.my_index库和your_index库一句查询语句查出

 GET /my_index,your_index/_search

elasticsearch多个索引的数据联查

相关文章:

  • 2021-12-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-01
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-31
  • 2021-11-19
  • 2022-01-21
  • 2021-08-21
  • 2022-12-23
  • 2022-01-01
  • 2021-06-23
相关资源
相似解决方案