5.0.0-alpha2 Release Notes

edit

Also see Breaking changes in 5.0.

This is an alpha release and is intended for testing purposes only. Indices created in this version will not be compatible with Elasticsearch 5.0.0 GA. Upgrading 5.0.0-alpha2 to any other version is not supported.

Breaking changes

edit
Analysis
  • Analyze API : Rename filters/token_filters/char_filter in Analyze API in master #17843 (issue: #15189)
Cluster
  • Remove validation errors from cluster health response #17773 (issue: #16979)
Indexed Scripts/Templates
  • Store indexed scripts in the cluster state instead of the .scripts index #17650 (issue: #16651)
Packaging
Percolator
  • Remove .percolator type in favour of percolator field type #17560
REST
Settings

Breaking Java changes

edit
Settings
  • Remove Settings.settingsBuilder. #17619

Deprecations

edit
Query DSL
  • Deprecate Indices query #17710 (issue: #12017)
  • Deprecate mlt, in and geo_bbox query name shortcuts #17507
Query Refactoring
  • Splits phrase and phrase_prefix in match query into MatchPhraseQueryBuilder and MatchPhrasePrefixQueryBuilder #17508

New features

edit
Analysis
  • Add fingerprint token filter and fingerprint analyzer #17873 (issue: #13325)
Plugin Analysis ICU
  • Adding support for customizing the rule file in ICU tokenizer #13651 (issue: #13146)

Enhancements

edit
CAT API
Cache
  • Allow the query cache to be disabled. #16268 (issue: #15802)
Circuit Breakers
Cluster
Core
Geo
Index APIs
  • Fail hot_threads in a better way if unsupported by JDK #15909
Ingest
  • Streamline option naming for several processors #17892 (issue: #17835)
Internal
  • Makes Script type writeable #17908 (issue: #17753)
  • FiltersAggregatorBuilder: Don’t create new context for inner parsing #17851
  • Clean up serialization on some stats #17832 (issue: #17085)
  • Normalize registration for SignificanceHeuristics #17830 (issue: #17085)
  • Make (read|write)NamedWriteable public #17829 (issue: #17682)
  • Use try-with-resource when creating new parser instances where possible #17822
  • Don’t pass XContentParser to ParseFieldRegistry#lookup #17794
  • Internal: Remove threadlocal from document parser #17764
  • Cut range aggregations to registerAggregation #17757 (issue: #17085)
  • Remove ParseFieldMatcher from AbstractXContentParser #17756 (issue: #17417)
  • Remove parser argument from methods where we already pass in a parse context #17738
  • Switch SearchAfterBuilder to writeGenericValue #17735 (issue: #17085)
  • Remove StreamableReader #17729 (issue: #17085)
  • Cleanup nested, has_child & has_parent query builders for inner hits construction #17719 (issue: #11118)
  • Make AllocationCommands NamedWriteables #17661
  • Isolate StreamableReader #17656 (issue: #17085)
  • Create registration methods for aggregations similar to those for queries #17653 (issues: #17085, #17389)
  • Turn RestChannel into an interface #17643 (issue: #17133)
  • Remove PROTOTYPEs from QueryBuilders #17632 (issue: #17085)
  • Remove registerQueryParser #17608
  • ParseField#getAllNamesIncludedDeprecated to not return duplicate names #17504
  • Rework a query parser and improve registration #17458
  • Clean up QueryParseContext and don’t hold it inside QueryRewrite/ShardContext #17417
Mapping
  • Automatically upgrade analyzed strings with an analyzer to text. #17861
  • Support dots in field names when mapping already exists #17759 (issue: #15951)
  • Use the new points API to index numeric fields. #17746 (issues: #11513, #16751, #17007, #17700)
  • Simplify AllEntries, AllField and AllFieldMapper: #17613
Network
Packaging
  • Remove unnecessary sleep from init script restart #17966
  • Explicitly set packaging permissions #17912 (issue: #17634)
  • Allow configuring Windows service name, description and user #17312
  • rpm uses non-portable --system flag to useradd #14596 (issue: #14211)
Percolator
  • PercolatorQueryBuilder cleanup by using MemoryIndex#fromDocument(…​) helper #17669 (issue: #9386)
Plugins
  • Cli: Improve output for usage errors #17938
  • Cli: Add verbose output with zip url when installing plugin #17662 (issue: #17529)
Query DSL
  • Add MatchNoDocsQuery, a query that matches no documents and prints the reason why in the toString method. #17780
  • Adds ignore_unmapped option to geo queries #17751
  • Adds ignore_unmapped option to nested and P/C queries #17748
  • SimpleQueryParser should call MappedFieldType.termQuery when appropriate. #17678
REST
  • Allow JSON with unquoted field names by enabling system property #17801 (issue: #17674)
Recovery
  • TransportNodesListGatewayStartedShards should fall back to disk based index metadata if not found in cluster state #17663 (issue: #17630)
Reindex API
  • Properly mark reindex’s child tasks as child tasks #17770
Search
  • Fail query if it contains very large rescores #17917 (issue: #17522)
Settings
  • Switch to registered Settings for all IndexingMemoryController settings #17778 (issue: #17442)
Stats
  • Add points to SegmentStats. #17775 (issue: #16974)
  • Remove FieldStats.Float. #17749
  • Show configured and remaining delay for an unassigned shard. #17515 (issue: #17372)
Store
Suggesters
  • Add bwc support for reading pre-5.0 completion index #17602
Task Manager
  • Move parentTaskId into TransportRequest #17872
  • Shorten the serialization of the empty TaskId #17870
  • Expose whether a task is cancellable in the _tasks list API #17464 (issue: #17369)

Bug fixes

edit
Aggregations
  • Adds serialisation of sigma to extended_stats_bucket pipeline aggregation #17703 (issue: #17701)
  • Fixes NPE when no window is specified in moving average request #17556 (issue: #17516)
  • Fixes Filter and FiltersAggregation to work with empty query #17542 (issue: #17518)
  • ExtendedStatsAggregator should also pass sigma to emtpy aggs. #17388 (issue: #17362)
Allocation
  • Rebalancing policy shouldn’t prevent hard allocation decisions #17698 (issues: #14057, #14259)
  • When considering the size of shadow replica shards, set size to 0 #17509 (issue: #17460)
Core
  • Refactor UUID-generating methods out of Strings #17837 (issue: #17819)
  • Node names cleanup #17723 (issue: #17718)
  • NullPointerException from IndexingMemoryController when a version conflict happens during recovery #17569
Ingest
  • Ingest does not close its factories #17626 (issue: #17625)
Internal
  • Fix BulkItemResponse.Failure.toString #17871
Logging
  • Add missing index name to search slow log. #17818 (issue: #17025)
Mapping
  • Fix cross type mapping updates for boolean fields. #17882 (issue: #17879)
  • Fix dynamic check to properly handle parents #17864 (issues: #17644, #17854)
  • Fix array parsing to remove its context when finished parsing #17768
  • Disallow fielddata loading on text fields that are not indexed. #17747
  • Fail if an object is added after a field with the same name. #17568 (issue: #17567)
Packaging
Plugin Discovery EC2
Plugins
Query DSL
  • Apply the default operator on analyzed wildcard in simple_query_string builder #17776
  • Apply the default operator on analyzed wildcard in query_string builder: #17711 (issue: #2183)
REST
  • Fixes reading of CORS pre-flight headers and methods #17523 (issue: #17483)
  • index is a required url part for update by query #17503
Reindex API
  • Reindex should never report negative throttled_until #17799 (issue: #17783)
  • Reindex should gracefully handle when _source is disabled #17667 (issue: #17666)
Settings
  • convert settings for ResourceWatcherService to new infrastructure #17948
Snapshot/Restore
  • Fix the semantics for the BlobContainer interface #17878 (issues: #15579, #15580)
  • On restore, selecting concrete indices can select wrong index #17715
Task Manager
  • Shard level tasks in Bulk Action lose reference to their parent tasks #17743
Term Vectors
  • Fix calculation of took time of term vectors request #17817 (issue: #12565)

Upgrades

edit
Core
  • Upgrade to lucene 6 release #17657