優秀的博客地址-冰凍三尺非一日之寒

MR-fox

冰凍三尺,非一日之寒!

  博客園 :: 首頁 :: 博問 :: 閃存 :: 新隨筆 :: 聯繫 :: 訂閱 訂閱 :: 管理 ::
  183 隨筆 :: 5 文章 :: 76 評論 :: 0 引用

隨筆分類 - 94-搜索引擎_elasticSearch

摘要: 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 MR-fox 閱讀(1194) | 評論 (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 MR-fox 閱讀(589) | 評論 (0) 編輯

摘要: FACET1)Terms Facet{ "query" : { "match_all" : { } }, "facets" : { "tag" : { "terms" : { "field" : "tag", "size" : 10 } } }}被統計(facet)的字段一般不分詞(例如商品的類目字段——類目唯一),但也支持分詞後term不多的字段(例如商品的標籤字段)。 對應這種facet我們主要關注幾點:facet的字...閱讀全文
posted @ 2014-03-31 18:48 MR-fox 閱讀(3944) | 評論 (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 MR-fox 閱讀(1983) | 評論 (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 MR-fox 閱讀(7243) | 評論 (1) 編輯

摘要: 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 MR-fox 閱讀(377) | 評論 (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 MR-fox 閱讀(2466) | 評論 (1) 編輯

摘要: 前面我們感覺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 MR-fox 閱讀(9195) | 評論 (1) 編輯

摘要: 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 MR-fox 閱讀(5184) | 評論 (3) 編輯

摘要: 上一篇(elasticsearch 口水篇(3)java客戶端 - Jest)Jest是第三方客戶端,基於REST Api進行調用(httpClient),本篇簡單介紹下elasticsearch原生的java客戶端。具體參考:http://www.elasticsearch.org/guide/e...閱讀全文
posted @ 2014-02-10 16:23 MR-fox 閱讀(13480) | 評論 (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 MR-fox 閱讀(6833) | 評論 (0) 編輯

摘要: 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 MR-fox 閱讀(4212) | 評論 (0) 編輯

摘要: 一)安裝elasticsearch1)下載elasticsearch-0.90.10,解壓,運行\bin\elasticsearch.bat (windwos)2)進入http://localhost:9200/如下圖安裝成功!二)插件——headelasticsearch-head是一個elasticsearch的集羣管理工具,它是完全由html5編寫的獨立網頁程序,你可以通過插件把它集成到es。安裝命令:\bin>plugin -install mobz/elasticsearch-head安裝完成後\plugins目錄下會有head的文件夾。進入http://localhost:9閱讀全文
posted @ 2014-02-09 11:11 MR-fox 閱讀(17414) | 評論 (4) 編輯

摘要: 2014年,開始對ES邊學邊記錄。一)口水篇elasticsearch 口水篇(1) 安裝、插件elasticsearch 口水篇(2)CRUDelasticsearch 口水篇(3)java客戶端 - Jestelasticsearch 口水篇(4)java客戶端 - 原生esClientelasticsearch 口水篇(5)es分佈式集羣初探二)原理三)源碼四)優化五)經驗總結閱讀全文
posted @ 2014-02-09 10:52 MR-fox 閱讀(1576) | 評論 (0) 編輯

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章