![](https://img-blog.csdnimg.cn/20190927151132530.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
Mysql、缓存
Mysql、缓存
真理剑客
认知你自己
展开
-
ElasticSearch {"error":"Content-Type header [application/x-www-form-urlencoded] is not supported
es查询报错{“error”:”Content-Type header [application/x-www-form-urlencoded] is not supported”,”status”:406}# 解决curl -H “Content-Type: application/json” ‘localhost:9200/accounts/person/_search’ 加上...原创 2018-07-26 11:02:20 · 3414 阅读 · 1 评论 -
Elasticsearch: 布尔(bool)过滤器--AND、OR、NOT查询、设置多个查询字段
概念 bool (布尔)过滤器。 这是个 复合过滤器(compound filter) ,它可以接受多个其他过滤器作为参数,并将这些过滤器结合成各式各样的布尔(逻辑)组合。 格式 一个 bool 过滤器由三部分组成:{ "bool" : { "must" : [], "should" : [],原创 2018-07-26 11:22:15 · 30928 阅读 · 4 评论 -
ElasticSearch 、 Kibana 允许外网访问
find / -name elasticsearch.yml vim /etc/elasticsearch/elasticsearch.yml network.host: 192.168.66.100原创 2018-07-26 14:11:06 · 5148 阅读 · 2 评论 -
ElasticSearch head插件安装
在V5.6版本中去除了plugin命令 改名为elasticsearch-plugin使用node安装 yum install -y nodejs node -v npm -v npm install -g cnpm –registry=https://registry.npm.taobao.org使用npm安装grunt npm install -g grunt npm i...原创 2018-08-14 15:10:19 · 154 阅读 · 0 评论 -
ElasticSearch 内存分配
Lucene 被设计为可以利用操作系统底层机制来缓存内存数据结构。 Lucene 的段是分别存储到单个文件中的。因为段是不可变的,这些文件也都不会变化,这是对缓存友好的,同时操作系统也会把这些段文件缓存起来,以便更快的访问。Lucene 的性能取决于和操作系统的相互作用。如果你把所有的内存都分配给 Elasticsearch 的堆内存,那将不会有剩余的内存交给 Lucene。 这将严重地影响全...转载 2018-08-13 16:06:43 · 822 阅读 · 0 评论 -
ElasticSearch scan、scrollid简单使用,超过10000条数量限制
版本 : spring-data-elasticsearch-2.1.8.RELEASE.jarpublic List<Long> searchIds(Param requestPageParam, Pageable pageRequest) { SearchQuery searchQuery = new NativeSearchQueryBuilder() ...原创 2018-09-19 18:12:20 · 5388 阅读 · 1 评论