Elasticsearch mappings小结
来源:互联网 发布:ubuntu添加搜狗输入法 编辑:程序博客网 时间:2024/06/07 09:39
type为string类型的mapping的最重要的两个属性是index和analyzer.
index与三种可选项:
analyzed
First analyze the string and then index it. In other words, index this
field as full text.
not_analyzed
Index this field, so it is searchable, but index the value exactly as
specified. Do not analyze it.
no
Don’t index this field at all. This field will not be searchable
默认值是analyzed,因此如果我们想精确搜索时,需要改为not_analyzed.
对于analyzed的string field,可以使用analyzer 制定搜索和检索时使用的analyzer类型。默认使用standard类型,也可以使用whitespace, simple, 或english。值得注意的是,更新mappings时,可以添加新的fields,但是不能将analyzed改为not_analyzed.
.
0 0
- Elasticsearch mappings小结
- [ElasticSearch] mappings and type
- ElasticSearch(Settings,Mappings)
- Add mappings to an Elasticsearch index in realtime
- ElasticSearch-PHP:自定义分词规则 Mappings的创建
- solr和elasticsearch小结
- ElasticSearch使用小结
- ElasticSearch 查询小结之一
- 面试小结之Elasticsearch篇
- hibernate学习小结---hibernate的关联关系映射(Association Mappings)
- Nested Mappings
- Wildcard Mappings
- Servlet Mappings
- Handler mappings
- ES mappings
- [转]elasticsearch源码调试环境小结
- elasticsearch,spring boot,mybatis项目小结
- Using Data Table Mappings
- 字符串应用之最长公共子序列和最长公共子串
- 我们的专利在哪里?
- (Linux)IP地址配置
- JSON工具(org.json)
- JavaScript字符集编码与解码_1
- Elasticsearch mappings小结
- [CQOI2006] 简单题 - 线段树/树状数组
- driveddate的清除路径
- 求两个数组的最长公共子串长度(LCS)
- 未能正确加载“Microsoft.VisualStudio.Editor.Implementation.EditorPackage”包导致的此版本的应用程序不支持其项目类型(.vcproj)的解决办法
- 2.输入5个数(含负数、小数)将它们按由小到大的顺序排列起来
- 使用迅雷下载百度云盘大文件方法
- Discuz 门户列表页自动获取内容图片
- recyclerView多条目展示,ArgbEvaluator颜色渐变