簡易查詢
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/
使用索引分詞器測試分詞結(jié)果
POST http://es-test.langtubi.cn:9200/file_folders_20/_analyze/
使用全局分詞器
POST
http://es-test.langtubi.cn:9200/_analyze/
給索引創(chuàng)建分詞器
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
指定字段分詞結(jié)果查詢
http://es-test.langtubi.cn:9200/file_folders_20/_doc/472/_termvectors?fields=allow_read_department_ids