JNA据说比jni简单很多,这里有一篇介绍,用法简单、但性能比jni有所下降(基于jni):
http://blog.csdn.net/shendl/article/details/3589676/
es中用得更简单:
package org.elasticsearch.common.jna;
import com.sun.jna.Native;
import org.e...
分类:
其他好文 时间:
2015-04-18 10:07:56
阅读次数:
122
(这是一个小系列:请戳:Elasticsearch之Nested(嵌套)系列,查看其他nested相关文章)
In the same way as we need to use the special nested query to gain access to nested objects at search time, the dedicated nested...
分类:
其他好文 时间:
2015-04-16 21:57:38
阅读次数:
155
(这是一个小系列:请戳:Elasticsearch之Nested(嵌套)系列,查看其他nested相关文章)
It is possible to sort by the value of a nested field, even though the value exists in a separate nested document. To make the re...
分类:
其他好文 时间:
2015-04-16 20:01:26
阅读次数:
141
Setting up a nested field is simple—where you would normally specify type object, make it type nested instead:
创建一个nested 字段很简单——只要在你通常指定object类型的地方,改成nested类型就行:
curl -XPUT 'localhost:9200/my_in...
分类:
移动开发 时间:
2015-04-15 14:54:06
阅读次数:
147
Given the fact that creating, deleting, and updating a single document in Elasticsearch is atomic, it makes sense to store closely related entities within the same document.
考虑到在ES里面建立,删除和更新一个单一文本是原子...
分类:
其他好文 时间:
2015-04-14 18:09:20
阅读次数:
810
工作需要,专门花了一下午研究了Elasticsearch里面的nested。最好的材料还是官网上面的Elasticsearch: The Definitive Guide,
所以直接将里面涉及到nested的文章找来看了看,顺便把它们翻译了,贴出来和大家分享。同时综合考虑了一下,把英语大体的
英文原文也一起贴
出来了。希望这样能够适应不同读者的口味。
文章都顺手翻译了,每天贴出来一...
分类:
其他好文 时间:
2015-04-14 18:07:33
阅读次数:
622
elasticsearch中的mapping映射配置示例比如要搭建个中文新闻信息的搜索引擎,新闻有"标题"、"内容"、"作者"、"类型"、"发布时间"这五个字段;我们要提供"标题和内容的检索"、"排序"、"高亮"、"统计"、"过滤"等一些基本功能。ES提供了smartcn的中文分词插件,测试的话建议...
分类:
移动开发 时间:
2015-04-14 09:52:46
阅读次数:
135
elasticseach的数据分片shard,在创建索引之后,在生命周期内就不可改变了,所以在索引开始创建的时候,要根据预估的数据规模合理的设置shard数目。在集群中让shard分布均匀,可以有效的均衡集群负载,所以我们要尽量保证shard的在集群中分布均匀。...
分类:
其他好文 时间:
2015-04-10 20:16:04
阅读次数:
209
1、 开机自动启动Redis 1),拷贝redis目录utils下的redis_init_script文件到/etc/init.d,并将其重命名为redisd,再运行chmod u+x redisd 2),修改redis根目录下的redis.conf,将daemonize修改为yes,将pidfile,...
分类:
其他好文 时间:
2015-04-10 11:46:05
阅读次数:
197
最近做日志分析,发现logstash较符合自己的需求,Logstash:做系统log收集,转载的工具。同时集成各类日志插件,对日志查询和分析的效率有很大的帮助。一般使用shipper作为log收集、indexer作为log转载。Logstashshipper收集log并将log转发给redis存储Logstashindexer从redis中读..
分类:
其他好文 时间:
2015-04-09 17:52:55
阅读次数:
524