ES5.0——新特性
来源:互联网 发布:java中map的用法详解 编辑:程序博客网 时间:2024/06/13 17:15
DSL Changes
search_type=count 去除(removed)。替换为设置size=0
search_type=scan 去除(removed)。替换为 {"sort":["_doc"]}
shard count limit <1000, 但是也可以通过设置忽略该限制,通过设置 action.search.shard_count.limit 大于1000,但是不鼓励这么做
search exists 去除(removed)。替换为{"size":0,"terminate_after":1}
Mapping Changes
string =>text/keywords 。text 对内容分词;keyword 不分词
一个字段默认的设置,两种类型都会设定如下:
"b:contributor": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
}
This allows to perform full-text search on the original field name and to sort and run aggregations on the sub keyword field.
这就允许在原始字段上进行全文搜索,在子字段上进行排序和聚合。
On all field datatypes (except for the deprecated string field)the index property now only accepts true/false instead of not_analyzed/no. The string field still accepts analyzed/not_analyzed/no
除了废弃的string字段,其他类型字段的Index属性只接受true 和 false
一个Index最多只能有1000个字段
一个字段的深度最多20级
一个index的nested字段最多50
REST API Changes
2.0之前只能 delete指定id的文档
2.0之后添加了Delete-By-Query 插件
5.0 替代为使用 Delete By Query API ,无需安装插件,可直接查询进行批量删除
待续……
0 0
- ES5.0——新特性
- ES5新特性—严格模式
- ES5新特性
- Atitit js版本es5 es6新特性
- ES5-ES6的部分新特性
- Atitit js es5 es6新特性 attilax总结
- ES5.0 新版本的特性与改进
- ES5.0——Update API
- H5—新特性
- Android7.0新特性——牛轧糖
- @WebServlet——Servlet3.0新特性
- JDK7新特性—FileVisitor
- java新特性—泛型
- java新特性—枚举
- java新特性—Annotation
- ES6和ES5特性对比
- Jdk5.0新特性——Generic Types (泛型)
- Jdk5.0新特性——Generic Types (泛型)
- linux 安装imagick
- ANT批量执行Jmeter脚本
- 利用itextsharp生成pdf并生成zip文件及其邮件发送
- Bootstrap+AngularJS实现对话框、表单和表格
- linux(CentOs)安装jdk
- ES5.0——新特性
- Android Studio 错误 com.android.dex.DexIndexOverflowException: method ID not in [0, 0xffff]: 65536
- 工作备忘命令
- Web接口测试工具---Poster
- c#基础——委托
- 编程书籍推荐
- SVN冲突解决
- 被苹果驳回,We discovered one or more bugs in your app when reviewed on iPhone......
- 1104