简易查询
GET http://es-test.langtubi.cn:9200/{index}/{type}/{id}/
简易插入
PUT http://es-test.langtubi.cn:9200/{index}/{type}/{id}/
简易删除
DELETE http://es-test.langtubi.cn:9200/{index}/{type}/{id}/
高级查询
POST http://es-test.langtubi.cn:9200/file_folders_20/_doc/_search/
PARAM
{
"query": {
"bool": {
"must": [
{
"match_all": {}
}
],
"filter": {
"range": {
"id": {
"gt": 1,
"lte": 11
}
}
}
}
},
"from": 0,
"size": 10
}
查看索引的mapping
GET http://es-test.langtubi.cn:9200/{index}/_mapping/
使用索引分词器测试分词结果
POST http://es-test.langtubi.cn:9200/file_folders_20/_analyze/
使用全局分词器
POST
http://es-test.langtubi.cn:9200/_analyze/
给索引创建分词器
POST
http://es-test.langtubi.cn:9200/{index}/{type}/
param
{
"settings": {
"analysis": {
"analyzer": {
"douhao": {
"type": "pattern",
"pattern": ","
}
}
}
}
}
给索引添加别名
POST http://es-test.langtubi.cn:9200/_aliases
指定字段分词结果查询
http://es-test.langtubi.cn:9200/file_folders_20/_doc/472/_termvectors?fields=allow_read_department_ids