上一页 1 2 3 4 5 6 7 ··· 13 下一页
摘要: ES 手册 如何提高ES的性能 不要返回较大的结果集 ES是设计成一个搜索引擎的,只擅长返回匹配查询较少文档,如果需要返回非常多的文档需要使用Scroll。 避免稀疏 因为ES是基于Lucene来索引和存储数据的,所以对稠密的数据更有效。Lucene能够有效的确定文档是通过一个整数的文档id,无论有 阅读全文
posted @ 2016-12-01 15:54 蚂蚁都督 阅读(335) 评论(0) 推荐(0) 编辑
摘要: 一、Repositories 在elasticsearch.yml文件中增加path.repo路径配置: $ vim /etc/elasticsearch/elasticsearch.yml path.repo: ["/home/ccx/es/backups", "/mount/longterm_b 阅读全文
posted @ 2016-11-23 15:57 蚂蚁都督 阅读(2213) 评论(0) 推荐(0) 编辑
摘要: Elastic Search API Index。简单的介绍了使用Elastic Search 如何建立索引。 ElasticSearch API Index 索引创建API允许初始化一个索引。ElasticSearch对多重索引提供了支持,包括跨多个索引执行操作。每个索引在创建时可以让一个特定的设 阅读全文
posted @ 2016-11-23 14:41 蚂蚁都督 阅读(255) 评论(0) 推荐(0) 编辑
摘要: mysqldump wifi3 wifi3.sql mysqldump wifi3 阅读全文
posted @ 2016-11-21 15:06 蚂蚁都督 阅读(121) 评论(0) 推荐(0) 编辑
摘要: ``` body { margin: 0; padding: 0; overflow:scroll; width: 100%; background: #FFF; font-size: 1.05em; } var c = document.getElementById('canv'); var w = c.width = w... 阅读全文
posted @ 2016-11-20 20:57 蚂蚁都督 阅读(276) 评论(0) 推荐(0) 编辑
摘要: https://www.npmjs.com/package/needle 阅读全文
posted @ 2016-11-20 19:47 蚂蚁都督 阅读(351) 评论(0) 推荐(0) 编辑
摘要: http://guacamole.incubator.apache.org/ 阅读全文
posted @ 2016-11-20 19:20 蚂蚁都督 阅读(867) 评论(0) 推荐(0) 编辑
摘要: ``` @Test public void testScroll(){ JestClientFactory factory = new JestClientFactory(); factory.setHttpClientConfig(new HttpClientConfig.Builder(Constants.ElasticSearch_Server).multiThreaded(tru... 阅读全文
posted @ 2016-11-16 15:42 蚂蚁都督 阅读(2961) 评论(1) 推荐(0) 编辑
摘要: sed i '1d' a.txt删首行 sed i '$d' b.txt删尾行 sed i 's/[ ] //g' c.txt删空格 sed i '/^$/d' d.txt删空行 sed i ‘/^[0 9] $/d' a.txt删包含数字的行 sed i ‘1,2d’a.txt删2行 sed i 阅读全文
posted @ 2016-11-14 20:51 蚂蚁都督 阅读(183) 评论(0) 推荐(0) 编辑
摘要: awk F '|' '{print $3","$4","$5}' cred.ts | sed 's/ //g' 阅读全文
posted @ 2016-11-14 19:46 蚂蚁都督 阅读(84) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 13 下一页