原创 ES學習筆記八-聚合搜索
ES中的聚合搜索可以理解爲關係型數據庫中的group by,將具有相同條件的數據分組,並分析每一組數據的不同表現。 high-level concepts 要理解什麼是聚合查詢(統計) 需要了解下邊的兩個重要的概念。 Bucket
原创 ES學習筆記七-多字段搜索
multifield search 好吧,讓我們來複習下filter,有個重要的filter叫term,term又可以同時搜索多個值。多值搜索不是多字段搜索 { “query”:{ "filtered":{ "fil
原创 ES學習筆記五-搜索相關性
By default, results are returned sorted by relevance—with the most relevant docs first。 首先來了解一下排序: {query:{ }, "from":
原创 ES學習筆記六-分佈式搜索執行解析
分佈式搜索被分爲兩個階段:query and fetch。查詢和取回。 query phase 查詢階段 During the initial query phase, the query is broadcast to a s
原创 Ubuntu --- 小米2s usb調試
1.51-android.rules : SUBSYSTEM=='usb',SYSFS{idVendor}=='2717',MODE='0666' 2.sudo chomd a+rx 51-android.rules 3.*#*#7177
原创 ES學習筆記1-基本操作篇
1.add an index 創建index的primary shards 和 複製shards primary shards 只能在index創建之前設置 原因是因爲 document route 通過id可以計算出此document存
原创 ES學習筆記九-地理位置(geolocation)
geolocation Elasticsearch offers two ways of representing geolocations: latitude-longitude points using the geo_poi
原创 ES學習筆記3-檢索基礎篇
Every field in a document is indexed and can be queried. 搜索可以分爲以下類型 structured query on concrete fields like gender o
原创 nginx+tomcat+memcached 搭建
1.集羣存在問題:Session共享問題 解決方案1:tomcat自帶的session複製方式,節點變多時,不推薦 2.cookie加密存儲信息,使用一臺服務器(or 集羣)用來存儲session,存儲session的方式可以用數據庫等各
原创 elasticsearch 配置ik分詞器
1.核心內容 elasticsearch-analysis-ik-1.2.9.jar 你可以選擇編譯好release的jar也可以自行編譯 2.源碼編譯 下載analysis-ik源碼 https://github.com/medcl/e
原创 config Tomcat service on ubuntu14 server as daemon thread
在部署tomcat的時候發現一個問題,當啓動此tomcat的用戶全部退出之後tomcat服務竟然掛掉了。ssh連上又自動開始運行了。經查是進程被kill子進程也被kill了。(深層次原因我也不懂,菜雞一枚。。。) 解決辦法。https:/
原创 android 常用知識點
Android常用知識點總彙 一、系統上安裝了多種瀏覽器,能否指定某瀏覽器訪問指定頁面?請說明原由。 如果在你的android系統上安裝了多種瀏覽器,能否指定某瀏覽器訪問指定頁面?答案當然是:肯定的。 具體方法如下: Int
原创 tomcat7遠程調試
在catalina.sh 加入JAVA_OPTS="$JAVA_OPTS -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=8787,suspend=y" address是端口
原创 ubuntu13.10 x64 運行adb 報錯
"You need library ncurses 32 bit version installed in your system sudo apt-get install libncurses5:i386 In addition
原创 android 讀取短信
Android中讀取的短信文件有 01 /** 02 * 所有的短信 03 */ 04 public static final String SMS_URI_ALL = "content://sms/"; 05