![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
NoSQL
阿年110
任重道远
展开
-
Elasticsearch 搜索简单api请求
GET /bank/_search{ "query": { "match_all": {} }, "sort": [ { "account_number": "asc" } ]}返回:默认情况下,响应的hits部分包括匹配搜索条件的前10个文档{ "took" : 223, //Elasticsearch运行查询所需的时间(以毫秒为单位) "timed_out" : false, //搜索请求是否超时 "_shards" :原创 2020-08-14 15:50:52 · 206 阅读 · 0 评论 -
“Content-Type header [application/x-www-form-urlencoded] is not supported“,
报错信息curl -XPUT 'http://10.10.30.115:9200/get-together/group/1?pretty' -d '{"name":"Elasticsearch cpx","age":"2"}'{ "error" : "Content-Type header [application/x-www-form-urlencoded] is not supported", "status" : 406}报错原因没有指定请求头解决方法curl -H "Cont原创 2020-08-12 17:44:33 · 199 阅读 · 0 评论 -
Elasticsearch 安装遇到的问题总结
max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]解决办法:将当前用户的软硬限制调大。找到文件 /etc/security/limits.conf,编辑,在文件的最后追加如下配置:es soft nofile 65535es hard nofile 65537soft nofile表示软限制,hard nofile表示硬限制,上面两行语句表示,es用户的软限原创 2020-08-12 17:14:06 · 163 阅读 · 0 评论 -
elasticsearch 工作原理
原创 2020-07-28 10:15:33 · 99 阅读 · 0 评论