es
2019-03-08 10:50:22 53 举报
AI智能生成
登录查看完整内容
为你推荐
查看更多
elasticsearch简单教程
作者其他创作
大纲/内容
映射(mappings)
确切值
string
number
float
boolean
date
full-text
映射处理
多值对象
要求各个值类型一致
空值字段
不处理
多层对象
映射为单对象
数组
扁平化(映射为单层)
空值
empty_vlaue
null_value
empty_array
array_with_null_value
分析(analysis)
分析器
字符过滤器(character filter)
分词器(tokenizer)
标记过滤(token filters)
index
analyzed
分析,索引
not-analyzed
索引,不分析字段
no
不索引,不能搜索
相关性
词频/逆向文档频率(TF/IDF)
分支主题
DSL
query
相关度查询(慢/结果精确)(匹配+相关度)
filter
精确查询(快/结果不精确)
集群
角色
主节点
node.master true
数据节点
node.data true
客户端节点
均为false
操作
超链接
新建
shard = hash(document_id) % (num_of_primary_shards)
更新/删除
查询
查询阶段
提取阶段
搜索相关性
查询语句
叶子语句
match
复合语句
bool
must(and)
must_not(not)
should(or)
分布式搜索
类似归并
禁止深分页
取回阶段
结果震荡(Bouncing Results)
相同查询 不同结果
scan(扫描)scroll(滚屏)
geo
采用盒模型缩小搜索范围
es
0 条评论
回复 删除
下一页