-
ik分詞器
查看全部 -
mysql、es數據同步
es提供的官方同步組件:logstash
使用條件:1.mysql中的id要和es中的_id對應
?????????????????2.mysql中要有創建時間或者更新時間字段,便于后續增量的同步
查看全部 -
GET _all? : 查看所有
GET /index名/_doc(默認的type,6版本以后可省略)/id : 根據id查
根據指定條件查詢:
should=or
must=and
match=like
查看全部 -
安裝es6.3.2要求jdk最低版本1.8
安裝步驟:
https://www.elastic.co/cn/
產品->Elasticsearch->Elasticsearch->下載->past releases
下載壓縮包->解壓->雙擊運行bin/elaticsearch.bat
瀏覽器輸入localhost:9200能看到json說明安裝成功
注意:所有和es相關的軟件或第三方插件都需要與es保持版本一致,啟動kibana之前一定要先啟動es。kibana默認端口號5601
查看全部 -
es6.x版本以后官方推崇在一個index里面盡量保持一個type。
row在mysql中對應一條一條的數據,在es中對應document。
使用舉例:
查看全部 -
es適用場景:單點和分布式均可;
???????????????????? 涉及到全文檢索(像博客系統,對標題和內容都需要檢索);
?????????????????????實時快速;
?????????????????????對外暴露Restful接口
查看全部 -
es屬于nosql數據庫,檢索效率非常高,集存儲、搜索、分析于一體。
查看全部 -
有表的數據嗎?
查看全部 -
yughyeerru查看全部
-
sdhgjsgahgjs查看全部
-
springboot? + ES
查看全部 -
springboot + es 思維導圖
查看全部 -
SpringBoot 前端跨域的配置
查看全部 -
#1
POST /person/_search
{
? "query": {
? ? "bool": {
? ? ? "should": [
? ? ? ? {
? ? ? ? ? "match": {
? ? ? ? ? ? "first_name": "Eric"
? ? ? ? ? }
? ? ? ? }
? ? ? ]
? ? }
? }
}
查看全部 -
input {
jdbc {
#jdbc驅動包位置
jdbc_driver_library => "/Volumes/機械/logstash-7.8.0/mysql-connector-java-5.1.49.jar"
#要使用的驅動包類型
jdbc_driver_class => "com.mysql.jdbc.Driver"
#mysql數據庫連接信息
jdbc_connection_string => "jdbc:mysql://127.0.0.1:3306/mzl-pay"
#mysql登陸用戶名
jdbc_user => "root"
#mysql登陸密碼
jdbc_password => "rootroot"
#定時任務,多久執行一次,默認一分鐘,如果自定義可以使用schedule => "* * * * *"
schedule => "* * * * *"
#清空上次的sql_last_value記錄
clean_run => true
#執行的語句
statement => "select * from test_user where updatetime > :sql_last_value and updatetime < NOW() order by updatetime desc"
}
}
output {
elasticsearch {
#ES的host:port
hosts => ["http://localhost:9200"]
#放在哪個索引下
index => "user"
#表達式上面sql查詢語句的id作為doc_id
document_id => "%{id}"
}
}
查看全部
舉報