‘壹’ 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"
}