curl -XPOST http://10.0.1.122:9200/user/userentity
ES 重启后,建立用户分词
命令1:
curl -XPOST http://10.0.1.122:9200/user
curl -XPUT http://10.0.1.122:9200/user
查看所有索引 curl '10.0.1.122:9200/_cat/indices?v'
删除索引 curl -X DELETE '10.0.1.122:9200/index' curl -X DELETE '10.0.1.122:9200/user'
curl --location --request GET 'http://10.0.1.122:9200/user/userentity/281551547924480' \ --header 'Content-Type: application/json' \ --data-raw '{ "query": { "match": { "title": "QUICK!" } } }'