示例数据文件document.json(index表示在索引中增加或替换现有文档,create表示如果文档不存在则添加文档,delete表示删除文档):{ "index": { "_index": "addr", "_type": "contact", "_id": 1 }}{ "name":...
分类:
其他好文 时间:
2015-09-30 12:38:50
阅读次数:
168
需求:我们搜索文章范围在近一年之内。这时候我们就用到elasticsearch RangeFilter了 具体例子如下: long?current=System.currentTimeMillis()/1000l;
????Calendar?ca?=?Calendar.getInstance();//得到...
分类:
其他好文 时间:
2015-09-30 11:22:54
阅读次数:
4380
Mapping Mapping is the process of defining how a document should be mapped to the Search Engine, including its searchable characteristics such as which fields are searchable and if/how they are tok...
分类:
移动开发 时间:
2015-09-28 13:23:26
阅读次数:
364
倒排索引 inverted index,第一次接触是在elasticsearch里面,里面的索引就是用的这个,其实es也是使用的Lucene作底层,inverted index是Lucene的核心算法。网上说,“倒排索引”是实现单词到文档映射关系的最佳实现方式。为什么叫做倒排索引呢?其实我认为中文翻...
分类:
编程语言 时间:
2015-09-27 13:43:52
阅读次数:
306
ELKstack是Elasticsearch、Logstash、Kibana三个开源软件的组合。目前都在Elastic.co公司名下。
ELK是一套常用的开源日志监控和分析系统,包括一个分布式索引与搜索服务Elasticsearch,
一个管理日志和事件的工具logstash,和一个数据可视化服务Kibana
logstash_1.5.3负责日志..
分类:
其他好文 时间:
2015-09-23 10:38:46
阅读次数:
334
1、找出每天的独立IP访问来源 使用nested aggregation,在一个date histogram aggregation做按照天分组后,再对每天的结果用cardinality aggregation计数 POST?/access/search/_search
{
????"size"?:?0,
...
ES默认是动态创建索引和索引类型的mapping的。这就相当于无需定义Solr中的Schema,无需指定各个字段的索引规则就可以索引文件,很方便。但有时方便就代表着不灵活。比如,ES默认一个字段是要做分词的,但我们有时...
分类:
移动开发 时间:
2015-09-18 23:33:04
阅读次数:
780
转自:http://blog.csdn.net/cnweike/article/details/33736429基础概念 Elasticsearch有几个核心概念。从一开始理解这些概念会对整个学习过程有莫大的帮助。 接近实时(NRT) Elasticsearch是一个接近实时的搜索平台。这...
分类:
其他好文 时间:
2015-09-18 13:43:48
阅读次数:
193
ELK日志管理·1.简介·2.依赖组件·3.下载·4.安装步骤o4.1安装rediso4.2ElasticSearch安装o4.3LogStash安装o4.4Kibana安装·5.使用说明o5.1ElasticSearcho5.2Kibana1.简介ELK日志管理系统主要功能:应用系统日志的分析和监控。ELK组成:ElasticSearch,LogStash,Kibana,RedisEL..
分类:
其他好文 时间:
2015-09-18 12:11:45
阅读次数:
441