『壹』 es 常用命令總結
fielddata是全載入進入內存,主要用處在排序和聚合欄位
fielddata與doc values區別:
4.1 相同點
4.2 不同點
fielddata: 內存存儲;doc_values: OS Cache+磁碟存儲
fielddata: 對應的欄位類型是text; doc_values:對應的欄位類型是keyword
field_data主要針對的是分詞欄位;doc_values針對大是不分詞欄位
fielddata默認不開啟;doc_values默認是開啟
7 bm2.5文檔 The Probabilistic Relevance Framework: BM25 and Beyond.
https://blog.mimacom.com/bm25-got/
GET _tasks?detailed=true&actions=*indices:data/read/search
POST _tasks/CdoilmnzRVyllc0PbRbB2w:7280/_cancel
16 查看節點所佔內存
/_cat/nodes?v&format=json&h=ip,port,v,m,fdp,mc,mcs,sc,sm,qcm,fm,im,siwm,svmm
獲取二進制的head mp文件 jmap -mp:format=b,file=/tmp/es_heap.bin <pid> 其中pid是ES JAVA進程的進程號。
PUT /索引名稱/_settings
{
"index.search.slowlog.threshold.query.warn": "1s",
"index.search.slowlog.threshold.query.info": "500ms",
"index.search.slowlog.threshold.query.debug": "300ms",
"index.search.slowlog.threshold.query.trace": "100ms",
"index.search.slowlog.threshold.fetch.warn": "1s",
"index.search.slowlog.threshold.fetch.info": "500ms",
"index.search.slowlog.threshold.fetch.debug": "300ms",
"index.search.slowlog.threshold.fetch.trace": "100ms",
"index.search.slowlog.level": "info"
}