新特性7.0.0 版本

2019年4月10日发布,重要特性:

  • 集群连接变化:TransportClient被废弃 以至于,es7的java代码,只能使用restclient。对于java编程,建议采用 High-level-rest-client方式操作ES集群
  • ES程序包默认打包jdk: 以至于7.x版本的程序包大小突然边300MB+ 对比6.x发现,包大了200MB+, 正是JDK的大小
  • Lucene9.0
  • 重大改进-正式废除单个索引下多Type的支持 es6时,官方就提到了es7会删除type,并且es6已经规定每一个index只能有一个type。在es7中使用默认的_doc作为type,在8.x版本会彻底移除type。 api请求方式也发送变化,如获得某索引的某ID的文档:GET index/_doc/id其中index和id为具体的值
  • 7.1开始,Security功能免费使用
  • ECK-ElasticSearch Operator on Kubernetes
  • 引入了真正的内存断路器,它可以更精准地检测出无法处理的请求,并防止它们使单个节点不稳定
  • Zen2 是 Elasticsearch 全新集群协调层,提高了可靠性、性能和用户体验,变得更快、更安全,并更易于使用
    新功能
    1.List item
    2.New Cluster coordination
    3.Feature - Complete High Level REST Client
    4.Script Score Query
  • 性能优化
    1.Weak-AND算法提高查询性能
    2.默认的Primary Shared数从5改为1,避免Over Sharding
    3.更快的前 k 个查询
    4.间隔查询(Intervals queries) 某些搜索用例(例如,法律和专利搜索)引入了查找单词或短语彼此相距一定距离的记录的需要。 Elasticsearch 7.0中的间隔查询引入了一种构建此类查询的全新方式,与之前的方法(跨度查询span queries)相比,使用和定义更加简单。 与跨度查询相比,间隔查询对边缘情况的适应性更强。

    7.0.0

    重大变化

    Aggregations

  • 删除对用于脚本化指标聚合不建议使用参数._agg/_aggs的支持 #32979 (issues: #29328, #31597)

  • Percentile/Ranks为空时应返回null而不是NaN #30460 (issue: #29066)
  • 如果统计汇总的计数为零,则将总和呈现为零 #27193 (issue: #26893)

Analysis

Audit

Authentication

Authorization

  • 启用安全性时,消除别名解析限制 #31952 (issue: #31516)
  • 删除隐式索引监视器特权 #37774

Circuit Breakers

  • Lower fielddata circuit breaker’s 默认限制 #27162 (issue: #27130)

CRUD

  • 版本冲突异常消息增强 #29432 (issue: #21278)
  • 在UpdateRequest中使用ObjectParser #29293 (issue: #28740)
  • 删除对内部版本控制的并发控制支持 #38254 (issue: #1078)

Distributed

Features/Features

Features/Indices APIs

  • 对于空通配符Indices Exists API应返回404 #34499
  • 默认1个分片 #30539
  • 限制嵌套文档的数量 #27405 (issue: #26962)

Features/Ingest

Features/Java Low Level REST Client

  • 放弃对JDK 7低级REST客户端的支持 #38540 (issue: #29607)

Features/Watcher

  • 删除 Watcher 账户 “unsecure” 设置 #36736 (issue: #36403)

Features/Stats

  • 从stats APIs中删除suggest metric #29635 (issue: #29589)
  • 将线程池信息和线程池配置对齐Align #29195 (issue: #29123)
  • Align thread pool info to thread pool configuration #29123 (issue: #29113)

Geo

  • 在geo_bounding_box中使用 geohash cell 而不仅仅是一个corner #30698 (issue: #25154)

Index APIs

Infra/Circuit Breakers

  • 介绍断路异常的耐用性 #34460 (issue: #31986)
  • 根据实际内存使用情况进行Circuit-break #31767

Infra/Core

  • 默认node.name为主机名 #33677
  • 删除写入线程池的批量fallback #29609
  • CCS: 从远程集群信息中删除http地址 #29568 (issue: #29207)
  • 删除索引线程池 #29556
  • 正常时,主要回应的状态不应为503 #29045 (issue: #8902)
  • 自动准备要分割的索引 #27451
  • 不要刷新 _flush _force_merge_upgrade #27000 (issue: #26972)

Infra/Logging

Infra/Packaging

  • 打包: 从tar发行版中删除Windows bin文件 #30596
  • 打包 ingest-user-agent作为一个模块 #36956
  • 打包 ingest-geoip作为一个模块 #36898

Infra/REST API

  • 移除对清理缓存索引的 GET支持 #29525
  • 移除Clear Indices Cache API中不建议使用的URL参数 #29068

Infra/Scripting

  • 删除对不建议使用的StoredScript contexts支持 #31394 (issues: #27612, #28939)
  • 删除ScriptDocValues中的getDate方法 #30690
  • 删除7.0.0中 ScriptDocValues#dateScriptDocValues#dates #30690 (issue: #23008)

Infra/Settings

  • 删除 config prompting for secrets and text #27216

Machine Learning

Mapping

  • 针对未索引字段的匹配词组查询应引发异常 #31060
  • 去掉旧版映射代码 #29224
  • 拒绝对 _default_ mapping的更新 #29165 (issues: #15613, #28248)
  • 去掉 update_all_types option. #28288
  • 去掉 _default_ mapping #28248
  • 拒绝数字字段的 index_options 参数 #26668 (issue: #21475)
  • 将include_type_name的默认值更新为false #37285
  • RestGetIndicesAction中支持 include_type_name #37149

Network

Percolator

  • 去掉不推荐使用的过滤器map_unmapped_fields_as_string设置 #28060

Ranking

  • 为custom/scripted相似性添加最少的完整性检查 #33564 (issue: #33309)
  • 要求重新评分的Scroll查询被视为无效 #32918 (issue: #31775)
  • function_score查询中禁止negative scores #35709 (issue: #33309)
  • analyzed查询中禁止negative field boosts #37930 (issue: #33309)

Scripting

  • 从ScriptDocValues删除不推荐使用的getValues #36183 (issue: #22919)

Search

  • 移除不推荐使用的url参数_source_include_source_exclude #35097 (issues: #22792, #33475)
  • 不允许 negative query boost #34486 (issue: #33309)
  • Score Query功能中禁止negative weight #33390 (issue: #31927)
  • 在field capabilities API, 删除对在请求正文中提供字段的支持 #30185
  • 删除query_string弃用的选项 #29203 (issue: #25551)
  • Fix Laplace scorer to multiply by alpha (and not add) #27125
  • 移除_primary和_replica 分片 preferences #26791 (issue: #26335)
  • 限制query_string和simple_query_string扩展字段的数量 #26541 (issue: #25105)
  • Make purely negative queries return scores of 0. #26015 (issue: #23449)
  • 移除不推荐使用的_termvector endpoint. #36131 (issues: #36098, #8484)
  • 移除不推荐使用的Graph endpoints #35956
  • _msearch 验证元数据#35938 (issue: #35869)
  • 使hits.total成为搜索响应中的一个对象 #35849 (issue: #33028)
  • 消除QueryBuilders中查询和过滤上下文之间的区别 #35354 (issue: #35293)
  • 在span_or查询中设置boost时引发解析异常 (#28390) #34112 (issue: #28390)
  • 默认情况下,跟踪总点击数达10,000 #37466 (issue: #33028)
  • 默认情况下,使用mappings来设置文档值字段的格式 #30831 (issues: #26948, #29639)

Security

  • 删除在试用许可证上启用安全性的启发式方法 #38075 (issue: #38009)

Snapshot/Restore

  • 在快照元数据中包括快照的大小 #30890 (issue: #18543)
  • 删除不推荐使用的azure设置 #26099 (issue: #23405)

Store

  • 删除7.0的elasticsearch-translog #33373 (issues: #31389, #32281)
  • 完全删除 index.shard.check_on_startup: fix for 7.0 #33194

Suggesters

  • 修复建议程序中的阈值频率计算 #34312 (issue: #34282)
  • 使Geo上下文Mapping更严格地解析 #32821 (issues: #32202, #32412)
  • 删除没有上下文的索引或查询的上下文建议功能 #31007 (issue: #30712)

ZenDiscovery

  • 如果未配置,Best-effort为集群的形成 #36215
  • 去掉 DiscoveryPlugin#getDiscoveryTypes #38414 (issue: #38410)

    Java 重大变化

    Aggregations

  • 改变 GeoHashGrid.Bucket#getKey() 返回String #31748 (issue: #30320)

Analysis

  • 移除不推荐使用的分析插件#requriesAnalysisSettings method #32037 (issue: #32025)

Features/Java High Level REST Client

  • 从Retry中删除不推荐使用的methods #33925
  • 群集运行状况默认为群集级别 #31268 (issue: #29331)
  • 移除不推荐使用的API methods #31200 (issue: #31069)

Features/Java Low Level REST Client

Geo

  • 从ShapeBuilders解耦geojson解析逻辑 #27212

Infra/Core

Infra/Transport API

ZenDiscovery

  • 将JoinRequest中的节点字段设为私有 #36405

    弃用

    Aggregations

  • 聚合名称中弃用 dots #31468 (issues: #17600, #19040)

Analysis

  • 使用unicode_set_filter参数替换unicodeSetFilter #29215 (issue: #22823)
  • 使用delimited_payload替换delimited_payload_filter #26625 (issue: #21978)
  • master弃用标准Html Strip分析器 #26719 (issue: #4704)
  • 去掉 nGramedgeNGram token过滤名称 (#38911) #39070 (issues: #30209, #38911)

Audit

Core

  • epoch time 解析中弃用科学计数法 #36691
  • 为joda时间格式添加backcompat #36531

Cluster Coordination

  • 弃用集群状态响应中的大小 #39951 (issue: #39806)

Features/Indices APIs

  • 默认复制设置为true,并在REST层弃用 #30598
  • 版本7.0.0后拒绝设置index.optimize_auto_genic_id #28895 (issue: #27600)

Features/Ingest

  • 模拟 pipeline 请求中弃用_type #37949 (issue: #37731)

Features/Java High Level REST Client

Features/Watcher

Graph

  • 弃用 _graph/explore calls中的类型 #40466

Infra/Core

  • 弃用 negative epoch timestamps #36793
  • 弃用 epoch time 解析中使用科学计数法 #36691

Infra/Packaging

  • 弃用 fallback to java on PATH #37990

Infra/Scripting

  • 将类型弃用添加到脚本上下文 #37554
  • 从LeafDocLookup中弃用_type #37491
  • 去掉不推荐使用的 params.ctx #36848 (issue: #34059)

Infra/Transport API

  • 不推荐使用 the transport client 而应该使用the high-level REST client #27085

Machine Learning

  • Deprecate X-Pack centric ML endpoints #36315 (issue: #35958)
  • Adding ml_settings entry to HLRC and Docs for deprecation_info #38118
  • Datafeed deprecation checks #38026 (issue: #37932)
  • Remove “8” prefixes from file structure finder timestamp formats #38016
  • Adjust structure finder for Joda to Java time migration #37306
  • Resolve 7.0.0 TODOs in ML code #36842 (issue: #29963)

Mapping

  • Deprecate type exists requests. #34663
  • index API弃用types #36575 (issues: #35190, #35790)
  • 弃用在查询中使用_type作为字段名称 #36503 (issue: #35190)
  • update_by_query和delete_by_query弃用types #36365 (issue: #35190)
  • 对于msearch模板,请确保使用正确的名称进行弃用日志记录 #36344
  • 弃用 termvector and mtermvector 请求中types #36182
  • 更新请求弃用types #36181
  • Deprecate types in document delete requests. #36087
  • Deprecate types in get, exists, and multi get. #35930
  • Deprecate types in search and multi search templates. #35669
  • Deprecate types in explain requests. #35611
  • Deprecate types in validate query requests. #35575
  • Deprecate types in count and msearch. #35421 (issue: #34041)
  • Deprecate types in rollover index API #38039 (issue: #35190)
  • Deprecate types in get field mapping API #37667 (issue: #35190)
  • Deprecate types in the put mapping API. #37280 (issues: #29453, #37285)
  • Support include_type_name in the field mapping and index template APIs. #37210
  • Deprecate types in create index requests. #37134 (issues: #29453, #37285)
  • Deprecate use of the _type field in aggregations. #37131 (issue: #36802)
  • Deprecate reference to _type in lookup queries #37016 (issue: #35190)
  • Deprecate the document create endpoint. #36863
  • Deprecate types in index API #36575 (issues: #35190, #35790)
  • Deprecate types in update APIs #36225

Migration

  • Deprecate X-Pack centric Migration endpoints #35976 (issue: #35958)

Monitoring

  • Deprecate /_xpack/monitoring/ in favor of /_monitoring/ #36130 (issue: #35958)

Rollup

  • Re-deprecate xpack rollup endpoints #36451 (issue: #36044)
  • Deprecate X-Pack centric rollup endpoints #35962 (issue: #35958)

Scripting

  • 将弃用日志记录添加到ScriptDocValues#getValues #34279 (issue: #22919)
  • 有条件地在脚本中使用Java Time API #31441

Search

  • 弃用过滤 _type. #29468 (issue: #15613)
  • 删除以X-Pack为中心的图形endpoints #36010 (issue: #35958)
  • 在reindex请求正文中弃用类型的使用 #36823
  • 为get _source添加无类型endpoints以及exist_source #36426

Security

  • 弃用以X-Pack为中心的许可证endpoints #35959 (issue: #35958)
  • 淘汰/ _xpack / security / ,改为使用/ _security / #36293 (issue: #35958)

SQL

  • 弃用X-Pack SQL translate endpoint #36030
  • 弃用X-Pack centric SQL endpoints #35964 (issue: #35958)

Watcher

Analysis

  • 放宽TermVectors API以使用TextFieldType以外的其他文本字段 #31915 (issue: #31902)
  • 在Nori中添加对内联用户词典的支持 #36123 (issue: #35842)
  • 添加预建的ICU分析器 #34958 (issue: #34285)

Authentication

Authorization

CCR

  • 将search.remote设置通用化为cluster.remote #33413
  • 添加 ccr follow info api #37408 (issue: #37127)

Distributed

Features/ILM

Features/Ingest

  • 还原 “引入哈希处理器(#31087)” #32178
  • 为每个文档的indexed_chars限制添加ingest-attachment支持 #28977 (issue: #28942)

Features/Java High Level REST Client

  • GraphClient用于高级REST客户端和相关测试 #32366

Features/Monitoring

  • 仅收集display_name(暂时) #35265 (issue: #8445)

Geo

  • Integrate Lucene’s LatLonShape (BKD Backed GeoShapes) as default geo_shape indexing approach #36751 (issue: #35320)
  • Integrate Lucene’s LatLonShape (BKD Backed GeoShapes) as default geo_shape indexing approach #35320 (issue: #32039)
  • geotile_grid implementation #37842 (issue: #30240)
  • Fork Lucene’s LatLonShape Classes to local lucene package #36794
  • Integrate Lucene’s LatLonShape (BKD Backed GeoShapes) as default geo_shape indexing approach #36751 (issue: #35320)
  • Integrate Lucene’s LatLonShape (BKD Backed GeoShapes) as default geo_shape indexing approach #35320 (issue: #32039)

Infra/Core

  • 如果分片处于search idle状态,则跳过分片刷新 #27500

Infra/Logging

  • 日志记录:统一索引/搜索慢日志的日志循环 #27298

Infra/Plugins

Infra/REST API

Java High Level REST Client

Java Low Level REST Client

  • 使警告行为可根据请求插入 #36345
  • 添加 PreferHasAttributeNodeSelector #36005

Machine Learning

  • 从更新作业日历操作中过滤未定义的作业组 #30757
  • 将延迟的数据检查添加到datafeed作业运行器 #35387 (issue: #35131)
  • 添加 set_upgrade_mode API endpoint #37837

Mapping

  • 添加一个 feature_vector 字段 #31102 (issue: #27552)
  • 公开 Lucene’s FeatureField #30618
  • 使无类型的API可用于类型名称不同于_doc的索引 #35790 (issue: #35190)
  • 将类型化模板与无类型索引创建混合时,优先创建索引,反之亦然 #37871 (issue: #37773)
  • 添加 nanosecond field mapper #37755 (issues: #27330, #32601)

Ranking

Recovery

  • Allow to trim all ops above a certain seq# with a term lower than X, … #31211 (issue: #10708)

SQL

Search

  • 向_msearch / template API的响应添加“获取”计时信息 #30961 (issue: #30957)
  • 添加allow_partial_search_results标志以使用默认设置true搜索请求 #28440 (issue: #27435)
  • 默认情况下启用自适应副本选择 #26522 (issue: #24915)
  • 添加间隔查询 #36135 (issues: #29636, #32406)
  • 添加了软限制以打开滚动上下文 #25244 #36009 (issue: #25244)
  • 引入最小化CCS往返行程的功能 #37828 (issues: #32125, #37566)
  • 将脚本过滤器添加到间隔 #36776
  • 添加了设置命中次数以准确跟踪的功能 #36357 (issue: #33028)
  • 添加最大搜索请求大小 #26423
  • 通过查询DSL使IntervalQuery可用 #36135 (issue: #29636)

Security

  • 将内部安全性索引切换为“ .security-7” #39337 (issue: #39284)

Suggesters

  • 将建议响应序列化为已命名的可写对象 #30284 (issue: #26585)**

    7.0.0增强功能

    7.1.0

    7.1.0发布重点

    传输层安全性(TLS),通常称为SSL,现已获得免费的Elastic Basic许可。 以前,此安全功能需要付费的金级订阅。 使用默认分发,您现在可以加密集群内以及跨远程集群的所有Elasticsearch通信。
    下载 Elasticsearch, configure TLS, 更多细节 https://www.elastic.co/subscriptions
    RBAC(基于角色的访问控制)现已获得免费的Elastic Basic许可。 以前,此安全功能需要付费的金级订阅。 使用默认分发,您可以利用RBAC从file realmnative realm为任何用户配置用户,组,角色和权限。 下载 Elasticsearch, configure RBAC, 高级安全功能(如单点登录以及对字段级和文档级安全性的Active Directory / LDAP身份验证)仍然是付费功能,更多细节 https://www.elastic.co/subscriptions

    重大变化

    本部分讨论将应用程序迁移到Elasticsearch 7.1时需要注意的更改
    也可以查看Release highlights以及Release notes.
    HTTP changes
    弃用http.tcp_no_delay,被替换为http.tcp.no_delay
    Network changes
    7.1. 弃用 network.tcp.connect_timeout 设置,要更改客户端连接的默认连接超时,请修改 transport.connect_timeout
    Transport changes
    7.1中不推荐使用以下设置,每个设置被有6.7中引入的设置替换。

  • transport.tcp.port 被替代 transport.port

  • transport.tcp.compress 被替代 transport.compress
  • transport.tcp.connect_timeout 被替代 transport.connect_timeout
  • transport.tcp_no_delay 被替代 transport.tcp.no_delay
  • transport.profiles.profile_name.tcp_no_delay 被替代transport.profiles.profile_name.tcp.no_delay
  • transport.profiles.profile_name.tcp_keep_alive 被替代 transport.profiles.profile_name.tcp.keep_alive
  • transport.profiles.profile_name.reuse_address 被替代transport.profiles.profile_name.tcp.reuse_address
  • transport.profiles.profile_name.send_buffer_size 被替代 transport.profiles.profile_name.tcp.send_buffer_size
  • transport.profiles.profile_name.receive_buffer_size被替代

    transport.profiles.profile_name.tcp.receive_buffer_size

Java 重大变化

弃用

新特性

7.1.0增强功能

7.2.0

7.2.0发布重点

重大变化

Discovery changes
每个主机只能指定一个端口,在早期版本中,可以在discovery.seed_hosts列表的条目中包含一系列端口,但是Elasticsearch仅使用范围内的第一个端口,而意外地忽略了其余端口。例如设置 discovery.seed_hosts: "10.11.12.13:9300-9310" 之后,Elasticsearch将只使用 10.11.12.13:9300 来发现,主机连接端口范围内的地址将被拒绝。
Cluster Coordination

  • Reject port ranges in discovery.seed_hosts #41404 (issue: #40786)

    Java 重大变化

    Infra/Plugins

  • 移除 IndexStore 和 DirectoryService #42446

    弃用

    Authorization

  • 弃用别名权限 #38059

Features/Features

  • 添加ILM轮询间隔<1s的弃用检查 #41096 (issue: #39163)

Mapping

Reindex

Search

  • 弃用 在 has_child 查询中使用 0 值 定义 min_children #41548 #41555 (issue: #41548)
  • 弃用 在msearch API支持第一行为空 #41442 (issue: #41011)

Security

  • 弃用native realm迁移工具 #42142

    新特性

    Authentication

  • 添加一个OpenID连接authentication realm #40674

Distributed

Infra/Scripting

  • 添加无痛字符串分割函数 (splitOnToken) #39772 (issue: #20952)
  • 添加无痛上下文REST API #39382

Machine Learning

Ranking

SQL

Snapshot/Restore

Suggesters

Features/Ingest

  • 添加HTML条形处理 #41888

Search

Data Frame

  • 移除date_histogram group_by中的格式支持 #43659

    Java 重大变化

    Mapping

  • 重构put mapping请求验证以进行重用 #43005 (issues: #37675, #41396)

Search

  • 重构IndexSearcherWrapper以禁止包装IndexSearcher #43645

    弃用

    Features/Java High Level REST Client

  • 弃用xpack info api中的native code #43297

Mapping

  • 弃用对chained multi-fields的支持 #41926 (issue: #41267)

Network

  • 弃用传输配置文件安全性类型设置 #43237

Search

  • 启用CommonTermsQuery和cutoff_frequency #42619 (issue: #37096)

    新特性

    Aggregations

  • 添加auto_date_histogram 最小间隔#42814 (issue: #41757)

  • 添加RareTerms聚合 #35718 (issue: #20586)

Audit

Data Frame

Infra/Settings

Machine Learning

  • 机器学习数据框架分析 #43544

Mapping

Ranking

  • 将density_vector和sparse_vector移至模块 #43280

SQL

Search

Machine Learning

  • 实现数据框分析进度报告 #45856

Ranking

  • 禁止vector函数文档值为空 #43944

Search

  • vectors查询使用float替代double #46004

Snapshot/Restore

  • 提供使用路径样式访问和S3存储库的选项 #41966 (issue: #41816)

Transforms

  • 在_stats中合并task_state和indexer_state #45276 (issue: #45201)
  • 改进transform stats endpoint响应形式 #44350 (issue: #43767)

    Java 重大变化

    Geo

  • 将“几何图形”中的参数顺序更改为lon,lat #45332 (issue: #45048)

Network

  • 停止在RestController中重新创建包装的处理程序 #44964

    弃用

    Geo

  • 将基于几何的查询构建器添加到QueryBuilders #45058 (issues: #44715, #45048)

Infra/Core

  • 捆绑采用OpenJDK 13 #46860
  • 添加pidfile设置的弃用检查 #45939 (issues: #45938, #45940)
  • 弃用pidfile设置 #45938
  • 添加node.processors设置以支持处理器 #45855
  • 设置处理器不推荐使用 #44889

Infra/Settings

Machine Learning

  • 仅在数据Feed的job_id发生实际更改时才发出弃用警告 #44755
  • 弃用更新datafeed的job_id的功能 #44691 (issue: #44615)

    新特性

    Aggregations

  • 直方图和日期直方图中的支持范围字段 #45395

  • 添加累积基数agg(和数据科学插件)#43661 (issue: #43550)

Analysis

  • 在Kuromoji插件中添加对内联用户词典的支持 #45489 (issue: #25343)

Authentication

Authorization

  • 为API密钥添加精细权限 #42020

Features/ILM

Features/Watcher

  • 通过foreach执行将max_iterations配置添加到watcher action #45715 (issues: #41997, #45169)

Geo

  • [SPATIAL] 新的ShapeQueryBuilder用于查询索引的笛卡尔几何 #45108 (issue: #44980)
  • [GEO] 新的ShapeFieldMapper用于索引笛卡尔几何 #44980
  • 添加Circle处理器 #43851 (issue: #43554)
  • 索引笛卡尔几何图形添加新的 shape 字段类型 #43644

Machine Learning

  • 允许用户在Evaluate Data Frame请求中指定查询 #45775 (issue: #45729)
  • 在data frame analytics _start上调用新的_estimate_memory_usage API endpoint #45536 (issues: #44699, #45544)
  • HLRC 估算内存使用率API #45531 (issues: #44699, #45188)
  • 改进 ml/data_frame/analytics/_estimate_memory_usage API endpoint #45188 (issue: #44699)

    7.4.0增强功能

    7.5.0

    7.5.0发布重点

    Enrich processor
    添加新的enrich ingest processor可以使用来自另一个索引的数据来丰富文档
    Shape support in SQL
    适用于geo_shape的SQL功能现在将适用于7.4中引入的 shape 字段类型
    Snapshot lifecycle management retention
    snapshot lifecycle management retention可以通过自定义策略的时间表自动删除较旧的快照
    Pause cross-cluster replication
    添加了用于cross-cluster replication新的pauseresume API endpoints,可以临时暂停自动跟随模式。
    Machine learning classification analysis
    Classification analysis是一种用于预测数据集中给定数据点的class或者category有监督的机器学习过程。例如,它可以确定电子邮件是否为垃圾邮件。与回归分析不同,分类用于预测离散的分类值,而回归分析可以预测连续的数值。 7.5.0引入了二进制分类,可以将数据点标记为两个可能的类别。

    重大变化

    Search

  • 添加在_index查询中支持别名 #46640 (issues: #23306, #34089)

    Java 重大变化

    弃用

    Aggregations

  • 弃用”index.max_adjacency_matrix_filters”设置 #46394 (issue: #46324)

Allocation

Mapping

Search

Features/Ingest

Machine Learning

  • 实现多类分类问题的evaluation API #47126 (issue: #46735)
  • 实现新的分析类型classification #46537 (issue: #46735)
  • 数据框架分析添加审核消息 #46521 (issue: #184)
  • 实现DataFrameAnalyticsAuditMessage和DataFrameAnalyticsAuditor #45967

SQL

  • SQL: 实现 DATEDIFF 函数 #47920 (issue: #47919)
  • SQL: 实现 DATEADD 函数 #47747 (issue: #47746)
  • SQL: 实现 DATE_PART 函数 #47206 (issue: #46372)
  • SQL: 添加 DATE_TRUNC 函数别名 DATETRUNC #47173 (issue: #46473)
  • SQL: 添加 PIVOT 支持 #46489
  • SQL: 实现 DATE_TRUNC 函数 #46473 (issue: #46319)

    7.5.0增强功能

    7.6.0

    7.6.0发布重点

    New histogram field type
    添加新的histogram field type 新的 histogram 字段接受预先聚合的直方图,这些直方图以后可以直接在percentilespercentile_ranks聚合中使用。用户可以在本地预聚合直方图数据,并且仅发送最终的数据结构,从而节省了存储空间和网络带宽,同时保留了像其他数据一样聚合数据的能力。
    Optimized sorting on long field types
    现在,在long上进行排序会在内部重写为Lucene DistanceFeatureQuery。 这样,Elasticsearch可以跳过非竞争性匹配,通常可以提高查询速度。 在基准测试中,这使长字段的排序速度提高了10倍。
    Simplifying and operationalizing machine learning
    在7.6版本中,Elastic Stack提供了一条端到端的机器学习管道,提供了从原始数据到构建,测试以及在生产中部署机器学习模型的路径。 到目前为止,Elastic Stack中的机器学习主要通过使用复杂的模式识别构建可用于异常检测的时间序列模型的无监督技术。 借助新的数据框架分析,可以使用标记的数据来训练和测试模型,将这些模型存储为Elasticsearch索引,并使用inference根据训练后的模型将预测值添加到索引中。

在7.6中发布的一种打包模型是language identification。 如果文档或来源使用多种语言,则可以使用语言识别来确定文本的语言,从而可以提高整体搜索的相关性。 语言识别是一种经过训练的模型,可以提供任何文本字段的语言预测。
Cross-cluster search in transforms
Transforms可以对源索引使用跨集群搜索(CCS)。 现在可以让单独的集群(例如,项目集群)针对主要集群构建以实体为中心或要素索引。

Learn more

Elasticsearch 7.6 release blog中获取有关这些功能的更多详细信息,有关增强功能和其他更改的完整列表,请查看Elasticsearch 7.6 release notes

重大变化

Mapping

  • 添加集群设置以禁止在_id字段上加载fielddata #49166 (issues: #26472, #43599)

    Java 重大变化

    Security

  • 在自定义Realms中支持Client和RoleMapping #50534 (issue: #48369)

    弃用

    Analysis

  • 弃用并删除camel-case nGram 和 edgeNGram tokenizers #50862 (issue: #50561)

Authorization

  • 弃用 kibana_user 和 kibana_dashboard_only_user roles #46456

Distributed

Features/Indices APIs

  • 当索引模板具有多个映射时发出警告 #50982
  • 确保在使用不赞成使用的模板字段时发出警告 #50831 (issue: #49460)

Infra/Core

Reindex

Search

  • 更新vector script 函数签名 #48604
  • 弃用sparse_vector字段类型 #48315
  • 在搜索请求中添加有关分配意识的弃用警告 #48351 (issue: #43453)

    新特性

    Aggregations

  • 新的直方图字段映射器支持百分位数聚合 #48580 (issue: #48578)

  • 实现string terms统计汇总 #47468

Analysis

  • 实现 Lucene EstonianAnalyzer, Stemmer #49149 (issue: #48895)

Authentication

  • 密码保护的密钥库(Feature Branch) #49210

Features/ILM+SLM

Features/Ingest

Machine Learning

  • 分类评估实现 precision and recall metrics #49671 (issue: #48759)
  • 解析数据框架分析API #49455
  • 机器学习模型推论摄取处理器 #49052
  • 实现多类别分类的准确性度量 #47772 (issue: #48759)
  • 将特征重要性值添加到分类和回归结果 (using tree SHapley Additive exPlanation, or SHAP) #857

Mapping

Search

Infra/Core

  • 移除DEBUG级别的actions默认日志记录 #51459 (issue: #51198)

Mapping

  • 在8.0及更高版本上创建的索引中的动态映射在映射更新时具有更严格的验证,并导致对在Elasticsearch 7.7.0及更高版本中创建的索引产生弃用警告。 (例如,错误分析器设置或未知的字段类型) #51233 (issues: #17411, #24419)

Search

  • 使范围查询舍入保持一致 #50237 (issue: #50009)
  • 用于返回HTTP 500s /内部服务器错误的管道聚合验证错误现在返回400 / Bad Request #53669 现在返回验证错误列表,而不是返回遇到的第一个错误。

    Java 重大变化

    Infra/Core

  • 修复ActionListener.map异常处理 #50886

Machine Learning

  • 将预期的输入字段类型添加到经过训练的模型配置中 #53083

Transform

  • 增强预览的输出以返回完整的目标索引详细信息 #53572

    弃用

    Allocation

  • 不再支持延迟状态恢复挂起的主节点 #53646 (issue: #51806)

Authentication

  • 为无效的realm顺序配置添加警告 (#51195) #51515
  • 弃用 timeout.tcp_read AD/LDAP realm 设置 #47305 (issue: #46028)

Engine

Features/Features

  • 弃用信息API添加 cluster.remote.connect #54142 (issue: #53924)

Infra/Core

  • 为侦听器线程池添加弃用检查 #53438 (issues: #53049, #53317)
  • 弃用logstash enabled 设置 #53367
  • 弃用listener thread pool #53266 (issue: #53049)
  • 弃用创建dot-prefixed索引名称(隐藏索引和系统索引除外)#49959

Infra/REST API

  • 弃用节点热线程API的中的undocumented alternatives (#52640) #52930 (issue: #52640)

Machine Learning

  • 重命名inference处理器字段field_mappings为field_map #53433

Search

  • 当TermsLookup包含类型时,发出弃用警告 #53731 (issue: #41059)
  • 弃用BoolQueryBuilder的mustNot字段 #53125

    新特性

    Aggregations

  • top_metrics保留metric类型 #53288

  • top_metrics agg中支持多种 metrics #52965 (issue: #51813)
  • top_metrics添加大小支持 #52662 (issue: #51813)
  • HLRC支持string_stats #52163
  • 添加Boxplot聚合 #51948 (issue: #33112)

Analysis

  • analysis-nori添加令牌过滤器nori_number #53583

Authentication

Geo

  • 添加对shape queries的distance queries支持 #53468
  • 添加对geo_shape queries的distance queries支持 #53466 (issues: #13351, #39237)
  • 添加多点形状查询支持 #52564 (issue: #52133)
  • 添加多点几何形状查询支持 #52133 (issue: #37318)

Infra/Core

Infra/Packaging

Machine Learning

  • 实现.ml-state *索引的ILM 策略 #52356 (issue: #29938)
  • 添加用于数据框架分析作业相关的报告统计信息的工具,例如进度,内存使用率等 #906
  • 多类别分类 #1037

Mapping

  • 引入 constant_keyword 字段 #49713

SQL

Search