上一页 1 2 3 4 5 6 7 8 9 ··· 11 下一页
摘要: FROM:http://blog.csdn.net/jj12345jj198999/article/details/11891701在实际项目中,JAVA有时候需要调用C写出来的东西,除了JNI以外,我认为一种比较好的方法是JAVA调用Shell。先把C写出来的make成可执行文件,然后再写一个sh... 阅读全文
posted @ 2014-12-01 15:27 wmx3ng 阅读(475) 评论(0) 推荐(0) 编辑
摘要: FROM: http://cqfish.blog.51cto.com/622299/197230linux 清除系统cachedtop查看系统内存使用情况Mem:16432180k total, 13737848k used,2694332k free, 945396k buffersfreem -... 阅读全文
posted @ 2014-11-28 13:26 wmx3ng 阅读(1195) 评论(0) 推荐(0) 编辑
摘要: 项目地址:https://github.com/4onni/elasticsearch-analysis-ansjhttps://github.com/laigood/elasticsearch-analysis-ansj安装步骤基本上是按照第一个网页的要求安装的,通过插件的形式. 阅读全文
posted @ 2014-11-27 18:09 wmx3ng 阅读(503) 评论(0) 推荐(0) 编辑
摘要: ES从1.2.1升级到1.4.0升级步骤,基本上是按照官网的叙述来完成的,链接是:http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/setup-upgrade.html#_1_0_and_later,参考的内容... 阅读全文
posted @ 2014-11-26 18:20 wmx3ng 阅读(1446) 评论(1) 推荐(0) 编辑
摘要: From:http://blog.csdn.net/changong28/article/details/38491185索引重建(Rebuild) 索引创建后,你可以在索引当中添加新的类型,在类型中添加新的字段。但是如果想修改已存在字段的属性(修改分词器、类型等),目前ES是做不到的。如果确实存在... 阅读全文
posted @ 2014-11-21 15:09 wmx3ng 阅读(10237) 评论(1) 推荐(0) 编辑
摘要: from:http://blog.csdn.net/changong28/article/details/38445805#comments3.1 集群的连接3.1.1 作为Elasticsearch节点import static org.elasticsearch.node.NodeBuilder... 阅读全文
posted @ 2014-11-17 12:03 wmx3ng 阅读(8529) 评论(0) 推荐(3) 编辑
摘要: 这段代码是关于多层聚合和嵌套域的聚合,来源:https://github.com/elasticsearch/elasticsearch/blob/master/src/test/java/org/elasticsearch/search/aggregations/bucket/NestedTest... 阅读全文
posted @ 2014-11-14 10:34 wmx3ng 阅读(11654) 评论(0) 推荐(0) 编辑
摘要: 有用的链接:http://stackoverflow.com/questions/12215380/sorting-on-several-fields-in-elasticsearch有的时候,需要自己设定排序,java的一个接口如下: String time1 = ConstValu... 阅读全文
posted @ 2014-11-14 10:11 wmx3ng 阅读(13235) 评论(0) 推荐(1) 编辑
摘要: ElasticSearch(ES)检索后需要结果时,可能通过source接口读出.但是这样的话,返回的结果会很多.在调用search方法时,我们可以添加addfield或addfields方法,仅仅读取需要的域.接口示例如下:1 SearchResponse response = c... 阅读全文
posted @ 2014-11-14 10:05 wmx3ng 阅读(4183) 评论(0) 推荐(0) 编辑
摘要: 博客来源:http://blog.csdn.net/dawn_moon/article/details/6977388git stash 的几种使用方法 :1 git stash2 git stash list3 git stash clear4 git stash applyView Codegi... 阅读全文
posted @ 2014-11-11 10:25 wmx3ng 阅读(317) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 11 下一页