https://blog.csdn.net/qq834024958/article/details/81902963
检查集群的监控状况
GET _cluster/health?v
查看集群中有哪些索引
GET/_cat/indices?v
更改某一个属性的document
POST /ecommerce/product/1/_update
{
“doc”{
“name”:“jiaqiangban gaolujie yagao”
}
}
bool查询 相当于全文检索的一种形式
GET /tgdsm/fileinfo/_search
{
“query”: {
“bool”: {
“should”: [
{“term”: {
“FileName”: {
“value”: “辽宁”
}
}},
{“term”: {
“file-contents”: {
“value”: “辽宁”
}
}}
]
}
}
}
这是全文检索的另一种形式
GET /tgdsm/fileinfo/_search
{
“query”: {
“multi_match”: {
“query”: “这是”,
“fields”: [“FileName”,“file-contents”]
}
}
}