huangfox

冰冻三尺,非一日之寒!

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

随笔分类 -  3-搜索引擎_ES

1 2 下一页

摘要:1、TooManyClause 我们在使用terms query、prefix query、fuzzy query、wildcard query、range query的时候,一不小心就会遇到TooManyClause异常。这个异常是提醒我们查询子句太多了(超过默认阈值1024),而上面这类查询最终 阅读全文
posted @ 2018-08-21 14:51 huangfox 阅读(545) 评论(0) 推荐(0) 编辑

摘要:1、Index Templates 之前我们聊过Dynamic template,它作用范围是特定的Index,如果我们想针对全局Index进行设置该如何操作呢? Index Templates 可以定义一些模板,新创建index的时候会自动应用相应的模板。 Index templates allo 阅读全文
posted @ 2018-08-14 14:12 huangfox 阅读(976) 评论(0) 推荐(0) 编辑

摘要:1、ES Mapping 在lucene中,索引中每个字段都需要指定很多属性,例如:是否分词、采用哪个分词器、是否存储等。 在ES中,其实索引中每个字段也需要指定这些属性,我们有时候并没有对这些属性进行设置,这得益于ES的动态映射(Dynamic Mapping)。 参考:Dynamic Mappi 阅读全文
posted @ 2018-08-13 16:32 huangfox 阅读(9392) 评论(0) 推荐(0) 编辑

摘要:1、index、type的初衷 之前es将index、type类比于关系型数据库(例如mysql)中database、table,这么考虑的目的是“方便管理数据之间的关系”。 2、为什么现在要移除type? 2.1 在关系型数据库中table是独立的(独立存储),但es中同一个index中不同typ 阅读全文
posted @ 2018-08-11 17:14 huangfox 阅读(10993) 评论(0) 推荐(2) 编辑

摘要:Dynamic field mapping 1、我们向es提交一个json对象进行索引,es会对json字段和索引字段进行字段类型适配。 规则如下: 2、string字段的转换规则 当date detection、numeric detection开启后,string类型可能转换成:date、num 阅读全文
posted @ 2018-08-10 17:13 huangfox 阅读(680) 评论(0) 推荐(0) 编辑

摘要:The delete-by-query plugin adds support for deleteing all of the documents which match the specified query. It is a replacement for the problematic de 阅读全文
posted @ 2017-05-04 17:40 huangfox 阅读(572) 评论(0) 推荐(0) 编辑

摘要:Kibi extends Kibana 4.6.4 with data intelligence features. The core feature of Kibi is the capability to join and filter data from multiple Elasticsea 阅读全文
posted @ 2017-04-20 15:31 huangfox 阅读(443) 评论(0) 推荐(0) 编辑

摘要:ElasticSearch+Kibana 数据分析、可视化 阅读全文
posted @ 2016-05-09 10:27 huangfox 阅读(599) 评论(0) 推荐(0) 编辑

摘要:elasticSearch node 的配置如下:# Every node can be configured to allow or deny being eligible as the master,# and to allow or deny to store the data.## Allo... 阅读全文
posted @ 2014-07-10 14:41 huangfox 阅读(3337) 评论(0) 推荐(0) 编辑

摘要:This article introduces the networking part of Elasticsearch. We look at the network topology of an Elasticsearch cluster, which connections are estab... 阅读全文
posted @ 2014-07-04 17:02 huangfox 阅读(1210) 评论(0) 推荐(0) 编辑

摘要:FACET1)Terms Facet{ "query" : { "match_all" : { } }, "facets" : { "tag" : { "terms" : { "field" : "tag", "size" : 10 } } }}被统计(facet)的字段一般不分词(例如商品的类目字段——类目唯一),但也支持分词后term不多的字段(例如商品的标签字段)。 对应这种facet我们主要关注几点:facet的字... 阅读全文
posted @ 2014-03-31 18:48 huangfox 阅读(11502) 评论(0) 推荐(0) 编辑

摘要:curl -XPUT localhost:9200/local -d '{ "settings" : { "analysis" : { "analyzer" : { "stem" : { "tokenizer" : "standard", "filter" : ["standard", "lowercase", "stop", "porter_stem"] } } } 阅读全文
posted @ 2014-03-27 21:50 huangfox 阅读(4838) 评论(1) 推荐(1) 编辑

摘要:先来一个标准分词(standard),配置如下:curl -XPUT localhost:9200/local -d '{ "settings" : { "analysis" : { "analyzer" : { "stem" : { "tokenizer" : "standard", "filter" : ["standard", "lowercase", "stop", "p 阅读全文
posted @ 2014-03-27 21:39 huangfox 阅读(19776) 评论(1) 推荐(0) 编辑

摘要:This article is from an interview withZuhaib Siddique, a production engineer atHipChat, makers ofgroup chat and IM for teams.HipChat started in an unusual space, one you might not think would have much promise, enterprise group messaging, but as we are learning there is gold in them thereenterprise 阅读全文
posted @ 2014-03-26 10:43 huangfox 阅读(1025) 评论(0) 推荐(0) 编辑

摘要:ES源码可以直接从svn下载https://github.com/elasticsearch/elasticsearch下载后,用Maven导入(import——》Existing Maven Projects)待Maven下载完响应的jar包即可。如图:--------------------------------运行方式一:bin/elasticsearch.bat 启动修改elasticsearch.bat中的参数:set ES_CLASSPATH=%ES_CLASSPATH%;%ES_HOME%/lib/${project.build.finalName}.jar;%ES_HOME% 阅读全文
posted @ 2014-03-12 23:48 huangfox 阅读(6800) 评论(1) 推荐(0) 编辑

摘要:前面我们感觉ES就想是一个nosql数据库,支持Free Schema。接触过Lucene、solr的同学这时可能会思考一个问题——怎么定义document中的field?store、index、analyzer等属性如何配置?这时可以了解下ES中的Mapping。[reference]http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/mapping.html#mappingMapping is the process of defining how a document should be mapped 阅读全文
posted @ 2014-02-11 18:15 huangfox 阅读(57878) 评论(1) 推荐(0) 编辑

摘要:es有很多特性,分布式、副本集、负载均衡、容灾等。我们先搭建一个很简单的分布式集群(伪),在同一机器上配置三个es,配置分别如下:cluster.name: foxClusternode.name: "fox"cluster.name: foxClusternode.name: "fox2"transport.tcp.port: 9302http.port: 9202cluster.name: foxClusternode.name: "fox3"transport.tcp.port: 9303http.port: 9203加入一些数 阅读全文
posted @ 2014-02-10 18:11 huangfox 阅读(32249) 评论(6) 推荐(4) 编辑

摘要:上一篇(elasticsearch 口水篇(3)java客户端 - Jest)Jest是第三方客户端,基于REST Api进行调用(httpClient),本篇简单介绍下elasticsearch原生的java客户端。具体参考:http://www.elasticsearch.org/guide/e... 阅读全文
posted @ 2014-02-10 16:23 huangfox 阅读(36491) 评论(3) 推荐(2) 编辑

摘要:elasticsearch有丰富的客户端,java客户端有Jest。其原文介绍如下:Jestis a Java HTTP Rest client for ElasticSearch.It is actively developed and tested by Searchly.A sample Java application using Jest can be found on GitHubhttps://github.com/searchbox-io/java-jest-sample.[http://www.searchly.com/documentation/developer-api- 阅读全文
posted @ 2014-02-10 14:37 huangfox 阅读(22353) 评论(0) 推荐(2) 编辑

摘要:Sense为了方便、直观的使用es的REST Api,我们可以使用sense。Sense是Chrome浏览器的一个插件,使用简单。如图:Sense安装:https://chrome.google.com/webstore/detail/sense/doinijnbnggojdlcjifpdckfokbbfpbo或者直接去chrome网上应用店搜索安装。CRUDURL的格式:http://localhost:9200///[]其中index、type是必须提供的。id是可选的,不提供es会自动生成。index、type将信息进行分层,利于管理。index可以理解为数据库,type理解为数据表。补 阅读全文
posted @ 2014-02-09 17:34 huangfox 阅读(12917) 评论(0) 推荐(1) 编辑

1 2 下一页