GET _search
{
"query": {
"match_all": {}
}
}
#分词器测试 ik_smart ik_max_word standard whitespace
GET _analyze
{
"analyzer": "ik_smart",
"text": ["2021-7897%¥%¥……"]
}
#检索索引里全部数据
GET /indices/_search
#查看所有索引(图表)
GET /_cat/indices?v
#查看某一索引
GET /indices
#查询
POST /indices/_search
{
"query": {
"match": {
"content": "2021-短期-GDFL001-1"
}
},
"highlight": {
"pre_tags": ["
"post_tags": ["
"fields": {
"content": {}
}
}
}
POST /indices/_search
{
"from": 0,
"size": 10,
"query": {
"bool": {
"must": [
{"match_phrase": { "content": "2021-短期-GDFL001-1"} }
]
}
},
"_source": [
"archivesId",
"archivalDescriptionId",
"content"
]
}
POST /indices/_search
{
"query": {
"match": {
"content": {
"analyzer": "standard",
"query": "2021-7895"
}
}
},
"highlight": {
"pre_tags": ["
"post_tags": ["
"fields": {
"content": {}
}
}
}
待补充----



