查看es结构,es _search查询基础语法

2024-10-09 11:00:14 浏览数 (1)

查看es结构,es _search查询基础语法

代码语言:javascript复制
http://xx.xx.xx.xx:9200/	 ES地址
car_info/_search    POST
{}

POST
{
  "query": {
    "match": {
      "carNo":"573702440"
    }
  }
}

{	
  "query": {
    "term": {
      "carNo":"573702440"
    }
  }
}


car_info/			GET(全部的,包含以下3个)
car_info/_aliases	GET
car_info/_settings	GET
car_info/_mappings	GET

car_info/_search	POST 不带条件的查询

格式
"_index": "my_info",
"_type": "myinfobo",
"_id": "419885776",

改成 GET  /_index/_type/_id 
my_info/myinfobo/419885776	GET

0 人点赞