1.查询所有索引库:GET /_cat/indices
2.查询映射:GET /my_index/_mapping
3.查询文档内容
GET /summary_index/_search
{
"query": {
"dis_max": {
"queries": [
{ "match": { "title": "车辆识别" }},
{ "match": { "summary": "车辆识别" }}
],
"tie_breaker": 0.3
}
}
}
4.具体分词器查询文本的分词结果
GET /my_index/_analyze
{
"analyzer": "my_analyzer",
"text": "The quick & brown fox"
}