Skip to content

Latest commit

 

History

History
843 lines (614 loc) · 41.3 KB

File metadata and controls

843 lines (614 loc) · 41.3 KB

UPGRADING

Upgrading from 2.x to 3.0

URL Path Encoding

  • The default URL path encoding has been changed to be more conservative. Previously the !, $, &, ', (, ), *, +, ,, ;, =, @ and : characters were left un-encoded, they will now be percent-encoded. If you require the previous behavior you can specify the org.opensearch.path.encoding=HTTP_CLIENT_V4_EQUIV system property.

OpenSearchClient & OpenSearchAsyncClient

  • The listAllPit operation has been replaced by getAllPits.

SearchAfter of SearchRequest type

  • Changed SearchAfter of SearchRequest type to FieldValue instead of String (#769)
  • Consider using FieldValue.of to make string type values compatible.

Before:

.searchAfter("string")
.searchAfter("string1", "string2")
.searchAfter(List.of("String"))

After:

.searchAfter(FieldValue.of("string"))
.searchAfter(FieldValue.of("string1"), FieldValue.of("string2"))
.searchAfter(List.of(FieldValue.of("String")))

DanglingIndex creationDateMillis type

  • The type of DanglingIndex's creationDateMillis field has been corrected from a String to a long.

ShardStatistics properties types

  • The type of the total, successful and failed fields has been corrected from Number to int.
  • The type of the skipped field has been corrected from Number to Integer.

Unified tasks.Info & tasks.State classes into tasks.TaskInfo

  • The tasks.Info and tasks.State classes have been unified into tasks.TaskInfo, this affects:
    • TaskExecutingNode's tasks field.
    • GetTasksResponse's task field.
    • core.update_by_query_rethrottle.UpdateByQueryRethrottleNode's tasks field.
  • The headers field is now a Map<String, String> instead of a Map<String, List<String>>.

tasks.ListResponse properties lifted to tasks.TaskListResponseBase

  • All fields previously defined on tasks.ListResponse have been lifted to tasks.TaskListResponseBase.
  • DeleteByQueryRethrottleResponse now extends tasks.TaskListResponseBase instead of tasks.ListResponse.
  • The tasks field is now a TaskInfos union type instead of a Map<String, Info> to correctly handle groupBy parents or none.

GetTasksResponse response type

  • The type of GetTasksResponse's response field has been changed from tasks.Status to tasks.TaskResponse.

VerifyRepositoryRequest property naming

  • The name field, getter and builder method have been renamed to repository.

CleanupRepositoryRequest property naming

  • The name field, getter and builder method have been renamed to repository.

CloneSnapshotRequest timeout removal

  • The timeout field, getter and builder method have been removed from CloneSnapshotRequest as it is not supported by OpenSearch.

DynamicMapping

  • Removed the Runtime variant from the DynamicMapping enum as it is not supported by OpenSearch.

TypeMapping

  • Removed the runtime field, getter and builder methods from TypeMapping as it is not supported by OpenSearch.

InlineScript

  • The lang property now accepts a ScriptLanguage enum instead of a String.

IcuCollationDecomposition enum variants

  • The IcuCollationDecomposition.Identical variant has been corrected to be IcuCollationDecomposition.Canonical.

IcuCollationTokenFilter property name casing

  • The following fields, getters and builder methods on IcuCollationTokenFilter have had their casing corrected:
    • casefirst -> caseFirst
    • caselevel -> caseLevel
    • hiraganaquaternarymode -> hiraganaQuaternaryMode
    • variabletop -> variableTop

ShingleTokenFilter

  • The maxShingleSize and minShingleSize properties have been corrected to be of type Integer instead of String.

TokenFilterDefinition

  • The smartcn_stop Builder method has been renamed to smartcnStop.

TokenizerDefinition

  • The smartcn Builder method has been renamed to smartcnTokenizer.

PointProperty

  • PointProperty has been removed and is replaced by XyPointProperty.

PropertyBase

  • The name and localMetadata fields, getters and builder methods have been removed from PropertyBase as they are not supported by OpenSearch.

IndexTemplate

  • IndexTemplate has been moved from the org.opensearch.client.opensearch.indices.get_index_template package to the org.opensearch.client.opensearch.indices package.
  • The dataStream property is now of type IndexTemplateDataStreamConfiguration instead of Map<String, JsonData>.

IndexTemplateSummary

  • IndexTemplateSummary has been moved from the org.opensearch.client.opensearch.indices.get_index_template package to the org.opensearch.client.opensearch.indices package.
  • The settings property is now of type IndexSettings instead of Map<String, JsonData>.

DataStream renamed to IndexTemplateDataStreamConfiguration

  • The DataStream class has been renamed to IndexTemplateDataStreamConfiguration, this affects:
    • PutIndexTemplateRequest's dataStream field.
    • SimulateIndexTemplateRequest's dataStream field.

Translog

  • The durability property now accepts a TranslogDurability enum instead of a String.

IndexSettingsMapping

  • The mapping limit fields now have specialized types instead of a generic IndexSettingsMappingLimit type:
    • depth is now of type IndexSettingsMappingLimitDepth.
    • fieldNameLength is now of type IndexSettingsMappingLimitFieldNameLength.
    • nestedFields is now of type IndexSettingsMappingLimitNestedFields.
    • nestedObjects is now of type IndexSettingsMappingLimitNestedObjects.
    • totalFields is now of type IndexSettingsMappingLimitTotalFields.

IndexSettings

  • The creationDate property is now of type Long instead of String.
  • The translogDurability property now accepts a TranslogDurability enum instead of a String.
  • The numberOfReplicas property is now of type Integer instead of String.
  • The numberOfShards property is now of type Integer instead of String.
  • The format property is now of type Integer instead of String.
  • The priority property is now of type Integer instead of String.

IndexSettingsStore

  • The type property now accepts a StorageType union of a BuiltinStorageType enum or a String instead of a String.

BoostingQuery

  • The negativeBoost property has been corrected to be of type float instead of double.

DisMaxQuery

  • The tieBreaker property has been corrected to be of type Float instead of Double.

DistanceFeatureQuery

  • The pivot property has been corrected to be of type String instead of JsonData.

FunctionScoreQuery

  • The maxBoost property has been corrected to be of type Float instead of Double.
  • The minScore property has been corrected to be of type Float instead of Double.

KnnQuery

  • The vector property is now of type List<Float> instead of float[].

LikeDocument

  • The type property has been removed as it is not supported by OpenSearch as of version 2.0.0.

MatchQuery

  • The cutoffFrequency property has been corrected to be of type Float instead of Double.

MoreLikeThisQuery

  • The boostTerms property has been corrected to be of type Float instead of Double.

MultiMatchQuery

  • The cutoffFrequency property has been corrected to be of type Float instead of Double.
  • The tieBreaker property has been corrected to be of type Float instead of Double.

QueryStringQuery

  • The phraseSlop property has been corrected to be of type Integer instead of Double.
  • The tieBreaker property has been corrected to be of type Float instead of Double.

simulate_template.Template

  • The settings property is now of type IndexSettings instead of Map<String, JsonData>.
  • The overlapping property has been moved to SimulateTemplateResponse.

PutTemplateRequest

  • The flatSettings property has been removed as it is not supported by OpenSearch.
  • The timeout property has been removed as it is not supported by OpenSearch.

DataStreamInfo renamed to DataStream

  • The DataStreamInfo class has been renamed to DataStream, this affects:
    • GetDataStreamResponse's dataStreams field.
  • The generation property is now of type long instead of int.

DataStreamIndexInfo renamed to DataStreamIndex

  • The DataStreamIndexInfo class has been renamed to DataStreamIndex, this affects:
    • DataStream's (previously DataStreamInfo) indices field.

RepositorySettings

  • The concurrentStreams property is now of type Integer instead of String.

snapshot.RestoreRequest renamed to snapshot.RestoreSnapshotRequest

  • The snapshot.RestoreRequest class has been renamed to snapshot.RestoreSnapshotRequest.
  • The indexSettings property has been corrected to be of type IndexSettings instead of PutIndicesSettingsRequest.

snapshot.RestoreResponse renamed to snapshot.RestoreSnapshotResponse

  • The snapshot.RestoreResponse class has been renamed to snapshot.RestoreSnapshotResponse.

snapshot.Status renamed to snapshot.SnapshotStatus

  • The snapshot.Status class has been renamed to snapshot.SnapshotStatus, this affects:
    • snapshot.SnapshotStatusResponse's snapshots field.

snapshot.ShardStats renamed to snapshot.SnapshotShardStats

  • The snapshot.ShardStats class has been renamed to snapshot.SnapshotShardStats, this affects:
    • snapshot.SnapshotStatus's (previous snapshot.Status) shardsStats field.
    • snapshot.SnapshotIndexStats's shardsStats field.

snapshot.ShardsStatsStage renamed to snapshot.SnapshotShardsStatsStage

  • The snapshot.ShardsStatsStage class has been renamed to snapshot.SnapshotShardsStatsStage, this affects:
    • snapshot.SnapshotShardsStatus's stage field.

snapshot.ShardsStatsSummary renamed to snapshot.SnapshotShardsStatsSummary

  • The snapshot.ShardsStatsSummary class has been renamed to snapshot.SnapshotShardsStatsSummary, this affects:
    • snapshot.SnapshotShardsStatus's summary field.

snapshot.ShardsStatsSummaryItem renamed to snapshot.SnapshotShardsStatsSummaryItem

  • The snapshot.ShardsStatsSummaryItem class has been renamed to snapshot.SnapshotShardsStatsSummaryItem, this affects:
    • snapshot.SnapshotShardsStatsSummary's (previously snapshot.ShardsStatsSummary) incremental and total fields.

AnalyzeToken

  • The endOffset, position, positionLength and startOffset properties have been corrected to be of type int instead of long.

ExplainAnalyzeToken

  • The endOffset, position, positionLength, startOffset and termFrequency properties have been corrected to be of type int instead of long.
  • The positionlength and termfrequency properties have had their casing corrected to positionLength and termFrequency respectively.

RecoveryBytes

  • The recoveredFromSnapshotInBytes, recoveredInBytes, reusedInBytes and totalInBytes properties have been corrected to be of type long instead of String.

RecoveryIndexStatus

  • The sourceThrottleTimeInMillis, targetThrottleTimeInMillis and totalTimeInMillis properties have been corrected to be of type long instead of String.

RecoveryOrigin

  • The restoreuuid property has had its casing corrected to restoreUuid.

RecoveryStartStatus

  • The checkIndexTime property has been corrected to be of type Time instead of long.
  • The totalTimeInMillis property has been corrected to be of type long instead of String.

ShardRecovery

  • The id property has been corrected to be of type int instead of long.
  • The startTimeInMillis, stopTimeInMillis and totalTimeInMillis properties have been corrected to be of type long instead of String.
  • The totalTime property has been corrected to be of type Time instead of String.

indices.recovery.TranslogStatus

  • The recovered, total and totalOnStart properties have been corrected to be of type int instead of long.
  • The totalTime property has been corrected to be of type Time instead of String.
  • The totalTimeInMillis property has been corrected to be of type long instead of String.

indices.recovery.VerifyIndex

  • The checkIndexTimeInMillis and totalTimeInMillis properties have been corrected to be of type long instead of String.

RolloverRequest

  • The mappings property is now of type TypeMapping instead of IndexRolloverMapping.

IndexRolloverMapping

  • The IndexRolloverMapping class has been removed.

Segment

  • The deletedDocs and numDocs properties have been corrected to be of type int instead of long.
  • The memoryInBytes and sizeInBytes properties have been corrected to be of type long instead of double.

ShardStore

  • The attributes, id, legacyVersion, name and transportAddress properties have been removed and are now correctly nested within the NodeAttributes under the nodes property map.

FlushStats

  • The totalTime property has been corrected to be of type Time instead of String.

GetStats

  • The existsTime, missingTime and time properties have been corrected to be of type Time instead of String.

IndexingStats

  • The deleteTime, indexTime and throttleTime properties have been corrected to be of type Time instead of String.
  • The types property has been removed as it is no longer supported by OpenSearch as of version 2.0.0.

MergesStats

  • The totalStoppedTime, totalThrottledTime and totalTime properties have been corrected to be of type Time instead of String.

RecoveryStats

  • The throttleTime property has been corrected to be of type Time instead of String.

RefreshStats

  • The totalTime property has been corrected to be of type Time instead of String.

SegmentsStats

  • The storedMemory property has been renamed to storedFieldsMemory to match the OpenSearch response.

StoreStats

  • The totalDataSetSize and totalDataSetSizeInBytes properties have been removed as they are not returned by OpenSearch.

TranslogStats

  • The operations property has been corrected to be of type int instead of long.

WarmerStats

  • The totalTime property has been corrected to be of type Time instead of String.

IndicesStatsRequest

  • The metric property is now of type List<IndicesStatsMetric> instead of List<String>.
  • The types property has been removed as it is no longer supported by OpenSearch as of version 2.0.0.

IndicesStatsResponse

  • The all property is now of type AllIndicesStats instead of IndicesStats.

ShardStats renamed to IndexShardStats

  • The ShardStats class has been renamed to IndexShardStats, this affects:
    • IndicesStats's shards field.

AllocationExplainResponse

  • The allocationDelay, configuredDelay and remainingDelay properties have been corrected to be of type Time instead of String.

PutComponentTemplateRequest

  • The aliases, mappings and settings properties have been removed as they should be set within the template property.

HealthRequest

  • The level property is now of type ClusterHealthLevel instead of Level.
  • The waitForNodes property is now of type WaitForNodes instead of String.

HealthResponse

  • The activeShardsPercentAsNumber property has been corrected to be of type double instead of String.
  • The taskMaxWaitingInQueueMillis property has been corrected to be of type long instead of String.

PendingTask

  • The timeInQueue property has been corrected to be of type Time instead of String.
  • The timeInQueueMillis property has been corrected to be of type long instead of int.

RerouteRequest

  • The metric property is now of type List<ClusterRerouteMetric> instead of List<String>.

StateRequest

  • The metric property is now of type List<ClusterStateMetric> instead of List<String>.

ClusterIndicesShards

  • The primaries, replication and total properties have been corrected to be of type Integer instead of Double.

ClusterProcessCpu

  • The percent property has been corrected to be of type double instead of int.

FieldTypes

  • The scriptCount property has been removed as it is not supported by OpenSearch.

FieldTypesMappings

  • The runtimeFieldTypes property has been removed as it is not supported by OpenSearch.

OperatingSystemMemoryInfo

  • The freePercent and usedPercent properties have been corrected to be of type double instead of int.

NodeInfo

  • The totalIndexingBuffer and totalIndexingBufferInBytes properties are now of type JsonData to handle OpenSearch 3.0 where they've correctly as previously their values were swapped.

NodeInfoSettingsHttpType

  • The NodeInfoSettingsHttpType class is now an untagged union between String and NodeInfoSettingsHttpTypeConfig.

NodeInfoSettingsTransportType

  • The NodeInfoSettingsHttpType class is now an untagged union between String and NodeInfoSettingsHttpTypeConfig.

NodeThreadPoolInfo

  • The keepAlive property has been corrected to be of type Time instead of String.

NodesInfoRequest

  • The metric property is now of type List<NodesInfoMetric> instead of List<String>.
  • The clusterManagerTimeout and masterTimeout properties have been removed as they are not supported by OpenSearch.

NodeReloadResult

  • The NodeReloadResult class has been corrected to be an object with an optional reloadException instead of a union of stats and error.

NodesStatsRequest

  • The groups property has been corrected to be of type List<String> instead of Boolean.
  • The indexMetric property is now of type List<NodesStatsIndexMetric> instead of List<String>.
  • The metric property is now of type List<NodesStatsMetric> instead of List<String>.
  • The includeUnloadedSegments, masterTimeout and clusterManagerTimeout properties have been removed as they are not supported by OpenSearch.

nodes.AdaptiveSelection

  • The AdaptiveSelection class has been moved from the org.opensearch.client.opensearch.nodes package to the org.opensearch.client.opensearch.nodes.stats package.

nodes.Breaker

  • The Breaker class has been moved from the org.opensearch.client.opensearch.nodes package to the org.opensearch.client.opensearch.nodes.stats package.
  • The overhead property has been corrected to be of type double instead of float.
  • The tripped property has been corrected to be of type long instead of float.

nodes.DataPathStats

  • The DataPathStats class has been moved from the org.opensearch.client.opensearch.nodes package to the org.opensearch.client.opensearch.nodes.stats package.

nodes.ExtendedMemoryStats

  • The ExtendedMemoryStats class has been moved from the org.opensearch.client.opensearch.nodes package to the org.opensearch.client.opensearch.nodes.stats package.
  • The freePercent and usedPercent properties have been corrected to be of type double instead of int.

nodes.FileSystem

  • The FileSystem class has been moved from the org.opensearch.client.opensearch.nodes package to the org.opensearch.client.opensearch.nodes.stats package.

nodes.FileSystemTotal

  • The FileSystemTotal class has been moved from the org.opensearch.client.opensearch.nodes package to the org.opensearch.client.opensearch.nodes.stats package.

nodes.GarbageCollector

  • The GarbageCollector class has been moved from the org.opensearch.client.opensearch.nodes package to the org.opensearch.client.opensearch.nodes.stats package.

nodes.GarbageCollectorTotal

  • The GarbageCollectorTotal class has been moved from the org.opensearch.client.opensearch.nodes package to the org.opensearch.client.opensearch.nodes.stats package.

nodes.Http

  • The Http class has been moved from the org.opensearch.client.opensearch.nodes package to the org.opensearch.client.opensearch.nodes.stats package.
  • The currentOpen property has been corrected to be of type long instead of int.

nodes.Ingest

  • The Ingest class has been moved from the org.opensearch.client.opensearch.nodes package to the org.opensearch.client.opensearch.nodes.stats package.

nodes.IngestTotal

  • The IngestTotal class has been moved from the org.opensearch.client.opensearch.nodes package to the org.opensearch.client.opensearch.nodes.stats package.

nodes.Jvm

  • The Jvm class has been moved from the org.opensearch.client.opensearch.nodes package to the org.opensearch.client.opensearch.nodes.stats package.
  • The mem property is now of type JvmMemoryStats instead of MemoryStats.

nodes.JvmClasses

  • The JvmClasses class has been moved from the org.opensearch.client.opensearch.nodes package to the org.opensearch.client.opensearch.nodes.stats package.

nodes.JvmThreads

  • The JvmThreads class has been moved from the org.opensearch.client.opensearch.nodes package to the org.opensearch.client.opensearch.nodes.stats package.

nodes.KeyedProcessor

  • The KeyedProcessor class has been moved from the org.opensearch.client.opensearch.nodes package to the org.opensearch.client.opensearch.nodes.stats package.
  • The statistics property has had its naming corrected to stats and its type corrected to Processor.

nodes.MemoryStats

  • The MemoryStats class has been moved from the org.opensearch.client.opensearch.nodes package to the org.opensearch.client.opensearch.nodes.stats package.
  • The resident, residentInBytes, share, shareInBytes, totalVirtual and totalVirtualInBytes properties have been removed as they are not returned by OpenSearch.

nodes.NodeBufferPool

  • The NodeBufferPool class has been moved from the org.opensearch.client.opensearch.nodes package to the org.opensearch.client.opensearch.nodes.stats package.

nodes.OperatingSystem

  • The OperatingSystem class has been moved from the org.opensearch.client.opensearch.nodes package to the org.opensearch.client.opensearch.nodes.stats package.
  • The cpu property is now of type OperatingSystemCpuStats instead of Cpu.

nodes.Process

  • The Process class has been moved from the org.opensearch.client.opensearch.nodes package to the org.opensearch.client.opensearch.nodes.stats package.
  • The cpu property is now of type ProcessCpuStats instead of Cpu.
  • The mem property is now of type ProcessMemoryStats instead of MemoryStats.
  • The openFileDescriptors property has been corrected to be of type long instead of int.

nodes.Stats

  • The Stats class has been moved from the org.opensearch.client.opensearch.nodes package to the org.opensearch.client.opensearch.nodes.stats package.
  • The indices property is now of type NodesIndicesStats instead of IndexStats.
  • The script property is now of type ScriptStats instead of Scripting.

nodes.ThreadCount

  • The ThreadCount class has been moved from the org.opensearch.client.opensearch.nodes package to the org.opensearch.client.opensearch.nodes.stats package.

nodes.Transport

  • The Transport class has been moved from the org.opensearch.client.opensearch.nodes package to the org.opensearch.client.opensearch.nodes.stats package.
  • The serverOpen property has been corrected to be of type long instead of int.

NodesUsageRequest

  • The metric property is now of type List<NodesUsageMetric> instead of List<String>.

NodeUsage

  • The restActions property has been corrected to be of type Map<String, Long> instead of Map<String, Integer>.
  • The since and timestamp properties have been corrected to be of type long instead of String.

GetPipelineRequest

  • The summary property has been removed as it is not supported by OpenSearch.

InferenceProcessor

  • The InferenceProcessor class has been removed as it is not supported by OpenSearch.
    • This also affects the associated InferenceConfig and InferenceConfigRegression classes.

DocumentSimulation

  • The type property has been removed as it is no longer supported by OpenSearch.
  • The _version property has been corrected to be of type Long instead of String.

CountRequest

  • The minScore property has been corrected to be of type Float instead of Double.
  • The routing property is now of type List<String> instead of String.
  • The terminateAfter property is now of type Integer instead of Long.

CreatePitRequest

  • The CreatePitRequest class has been moved from the org.opensearch.client.opensearch.core.pit package to the org.opensearch.client.opensearch.core package.
  • The targetIndexes property has been renamed to index.
  • The routing property is now of type List<String> instead of String.

CreatePitResponse

  • The CreatePitResponse class has been moved from the org.opensearch.client.opensearch.core.pit package to the org.opensearch.client.opensearch.core package.

DeleteRequest

  • The routing property is now of type List<String> instead of String.

DeletePitRequest

  • The DeletePitRequest class has been moved from the org.opensearch.client.opensearch.core.pit package to the org.opensearch.client.opensearch.core package.

DeletePitResponse

  • The DeletePitResponse class has been moved from the org.opensearch.client.opensearch.core.pit package to the org.opensearch.client.opensearch.core package.

DeletePitRecord renamed to DeletedPit

  • The DeletePitRecord class has been renamed to DeletedPit, this affects:
    • DeletePitResponse's pits field.

DeleteByQueryRequest

  • The from property has been corrected to be of type Integer instead of Long.
  • The maxDocs property has been corrected to be of type Integer instead of Long.
  • The refresh property has been corrected to be of type Refresh instead of Boolean.
  • The requestsPerSecond property has been corrected to be of type Float instead of Long.
  • The routing property is now of type List<String> instead of String.
  • The scrollSize property has been corrected to be of type Integer instead of Long.
  • The size property has been corrected to be of type Integer instead of Long.
  • The slices property now accepts a Slices union type instead of a Long.
  • The terminateAfter property is now of type Integer instead of Long.

DeleteByQueryResponse

  • The batches property has been corrected to be of type Integer instead of Long.

BulkIndexByScrollFailure renamed to BulkByScrollFailure

  • The BulkIndexByScrollFailure class has been renamed to BulkByScrollFailure, this affects:
    • DeleteByQueryResponse's failures field.
    • ReindexResponse's failures field.
    • UpdateByQueryResponse's failures field.

core.reindex.Source

  • The runtimeMappings property has been removed as it is not supported by OpenSearch.

ReindexRequest

  • The maxDocs property has been corrected to be of type Integer instead of Long.
  • The refresh property has been corrected to be of type Refresh instead of Boolean.
  • The requestsPerSecond property has been corrected to be of type Float instead of Long.
  • The size property has been corrected to be of type Integer instead of Long.
  • The slices property now accepts a Slices union type instead of a Long.

ReindexResponse

  • The batches property has been corrected to be of type Integer instead of Long.
  • The requestsPerSecond property has been corrected to be of type Float instead of Long.
  • The throttledMillis and throttledUntilMillis properties have been corrected to be of type Long instead of String.
  • The took property has been corrected to be of type Long instead of Time.

UpdateByQueryRequest

  • The from property has been corrected to be of type Integer instead of Long.
  • The maxDocs property has been corrected to be of type Integer instead of Long.
  • The refresh property has been corrected to be of type Refresh instead of Boolean.
  • The requestsPerSecond property has been corrected to be of type Float instead of Long.
  • The routing property is now of type List<String> instead of String.
  • The scrollSize property has been corrected to be of type Integer instead of Long.
  • The size property has been corrected to be of type Integer instead of Long.
  • The slices property now accepts a Slices union type instead of a Long.
  • The terminateAfter property is now of type Integer instead of Long.
  • The versionType property has been removed as it is not supported by OpenSearch.

UpdateByQueryResponse

  • The batches property has been corrected to be of type Integer instead of Long.
  • The throttledMillis and throttledUntilMillis properties have been corrected to be of type Long instead of Number.

DeleteByQueryRethrottleRequest

  • The requestsPerSecond property has been corrected to be of type Float instead of Long.

ReindexRethrottleRequest

  • The requestsPerSecond property has been corrected to be of type Float instead of Long.

UpdateByQueryRethrottleRequest

  • The requestsPerSecond property has been corrected to be of type Float instead of Long.

StoredScript

  • The lang property now accepts a ScriptLanguage enum instead of a String.

get_script_languages.LanguageContext

  • The language property now accepts a ScriptLanguage enum instead of a String.

ExistsRequest

  • The refresh property has been corrected to be of type Refresh instead of Boolean.
  • The routing property is now of type List<String> instead of String.

ExistsSourceRequest

  • The refresh property has been corrected to be of type Refresh instead of Boolean.
  • The routing property is now of type List<String> instead of String.

FieldCapsRequest

  • The runtimeMappings property has been removed as it is not supported by OpenSearch.

MtermvectorsRequest

  • The routing property is now of type List<String> instead of String.

RankEvalHitItem

  • The rating property has been corrected to be of type Integer instead of Double.

RankEvalMetricRatingTreshold renamed to RankEvalMetricRatingThreshold

  • The RankEvalMetricRatingTreshold class has been renamed to RankEvalMetricRatingThreshold.:

RankEvalRequest

  • The searchType property is now of type SearchType instead of String.

RenderSearchTemplateRequest

  • The file property has been removed as it is not supported by OpenSearch.

SearchShardsRequest

  • The routing property is now of type List<String> instead of String.

CompositeAggregation

  • The after property is now of type Map<String, FieldValue> instead of Map<String, String>.

CompositeDateHistogramAggregationSource

  • The offset property has been corrected to be of type Time instead of Long.

CompositeValuesSource

  • The format property has been removed as it only applies to certain subclasses.

SignificantTermsAggregation

  • The include property is now of type TermsInclude instead of List<String>.

SignificantTextAggregation

  • The include property is now of type TermsInclude instead of List<String>.

XyShapeFieldQuery renamed to XyShapeQueryField

  • The XyShapeFieldQuery class has been renamed to XyShapeQueryField, this affects:
    • XyShapeQuery's xyShape field.
  • The xyShape property has been renamed to shape and is now of type XyShape instead of JsonData.

GeoShapeFieldQuery renamed to GeoShapeQueryField

  • The GeoShapeFieldQuery class has been renamed to GeoShapeQueryField, this affects:
    • GeoShapeQuery's shape field.
  • The shape property is now of type GeoShape instead of JsonData.

RescoreQuery

  • The queryWeight and rescoreQueryWeight properties have been corrected to be of type Float instead of Double.
  • The query property has been renamed to rescoreQuery to match the JSON property naming.

ShardCacheStats renamed to CacheStats

  • The ShardCacheStats class has been renamed to CacheStats, this affects:
    • nodes.stats.Stats's caches field.

Explanation

  • The details property has been changed to be of type List<Explanation> instead of List<ExplanationDetail>.
  • The value property has been corrected to be of type Number instead of float.

ExplanationDetail

  • The ExplanationDetail class has been removed as it has been replaced by the Explanation class.

Aggregate

  • The GeoLine aggregation has been removed as it is not supported by OpenSearch.
  • The Inference aggregation has been removed as it is not supported by OpenSearch.
  • The StringStats aggregation has been removed as it is not supported by OpenSearch.
  • The TopMetrics aggregation has been removed as it is not supported by OpenSearch.

Aggregation

  • The GeoLine aggregation has been removed as it is not supported by OpenSearch.
  • The Inference aggregation has been removed as it is not supported by OpenSearch.
  • The StringStats aggregation has been removed as it is not supported by OpenSearch.
  • The TopMetrics aggregation has been removed as it is not supported by OpenSearch.

SuggestContext

  • The precision property has been corrected to be of type JsonData instead of String.

RandomScoreFunction

  • The seed property has been corrected to be of type JsonData instead of String.

CountRecord

  • The epoch property has been corrected to be of type Long instead of String.

HealthRecord

  • The epoch property has been corrected to be of type Long instead of String.

SnapshotsRecord

  • The endEpoch and startEpoch properties have been corrected to be of type Long instead of String.

ClusterInfo

  • The shardSizes property has been corrected to be of type Map<String, JsonData> instead of Map<String, String>.

IndexingPressureMemory

  • The limit property has been corrected to be of type JsonData instead of String.

HitsMetadata

  • The maxScore property has been corrected to be of type Float instead of Double.
  • The tSerializer property has been removed as it is unused.

AggregationRange

  • The from and to properties have been corrected to be of type JsonData instead of String.

ArrayPercentilesItem

  • The value property no longer defaults 0 when null, instead it is now an optional field.

AutoDateHistogramAggregate

  • The interval property has been corrected to be of type Time instead of String.

CompositeAggregate

  • The afterKey property is now of type Map<String, FieldValue> instead of Map<String, JsonData>.

CompositeBucket

  • The key property is now of type Map<String, FieldValue> instead of Map<String, JsonData>.

DateHistogramBucket

  • The key property is now of type long instead of String.

ExtendedStatsAggregate

  • The stdDeviation, sumOfSquares, variance, variancePopulation and varianceSampling properties no longer default 0 when null, instead they are now optional fields.

LongTermsBucket

  • The key property is now a union to handle long and String instead of just String.

MultiTermsBucket

  • The key property is now of type List<FieldValue> instead of List<String>.

Percentiles

  • The keyed variant has been corrected to be of type Map<String, JsonData> instead of Map<String, String>.

SingleMetricAggregateBase

  • The value property no longer defaults 0 when null, instead it is now an optional field.

StandardDeviationBounds

  • All properties no longer default 0 when null, instead they are now optional fields.

StatsAggregate

  • The avg, max and min properties no longer default 0/Double.NEGATIVE_INFINITY/Double.POSITIVE_INFINITY when null, instead they are now optional fields.

TTestAggregate

  • The value property no longer defaults 0 when null, instead it is now an optional field.

ScoreCombination

  • The parameters property has been corrected to be of type ScoreCombinationParameters instead of List<Float>.

MultiBucketAggregateBase

  • The tBucketSerializer property has been removed as it is unused.

ExplainResponse

  • The explanation property is now of type Explanation instead of ExplanationDetail.

Upgrading from 3.x to UNRELEASED

ExplainRequest

  • The routing property is now of type List<String> instead of String.

ExplainResponse

  • The tDocumentSerializer property has been removed as it is unused.

GetRequest

  • The refresh property has been corrected to be of type Refresh instead of Boolean.
  • The routing property is now of type List<String> instead of String.

GetResponse

  • The GetResponse class now extends a GetResultBase class instead of GetResult.

GetSourceRequest

  • The refresh property has been corrected to be of type Refresh instead of Boolean.
  • The routing property is now of type List<String> instead of String.
  • The storedFields property has been removed as it is not supported by OpenSearch.

ScrollResponse

  • The ScrollResponse class now extends SearchResult directly instead of via SearchResponse.

SearchResult

  • The documents property has been removed as it is not supported by OpenSearch.
  • The maxScore property has been removed as it is not supported by OpenSearch.
  • The numReducePhases property has been corrected to be of type Integer instead of Long.
  • The tDocumentSerializer property has been removed as it is unused.

CompletionSuggestOption

  • The score property has been corrected to be of type Float instead of Double.

SuggestVariant

  • The _suggestionKind method's naming has been corrected to _suggestKind.
  • The _toSuggestion method's naming has been corrected to toSuggest.

SuggestOptionBuilders

  • The SuggestOptionBuilders class has been removed.

SearchRequest

  • The batchedReduceSize property has been corrected to be of type Integer instead of Long.
  • The indicesBoost property is now of type List<Map<String, Float>> instead of List<Map<String, Double>>.
  • The maxConcurrentShardRequests property has been corrected to be of type Integer instead of Long.
  • The minCompatibleShardNode property has been removed as it is not supported by OpenSearch.
  • The minScore property has been corrected to be of type Float instead of Double.
  • The preFilterShardSize property has been corrected to be of type Integer instead of Long.
  • The routing property is now of type List<String> instead of String.
  • The runtimeMappings property has been removed as it is not supported by OpenSearch.
  • The terminateAfter property has been corrected to be of type Integer instead of Long.

core.search.Pit renamed to PointInTimeReference

  • The Pit class has been renamed to PointInTimeReference, this affects:
    • SearchRequest's pit field.
  • The keepAlive property has been corrected to be of type Time instead of String.

SearchTemplateRequest

  • The routing property is now of type List<String> instead of String.

LifecycleOperationMode

  • The LifecycleOperationMode enum has been removed as it is no longer used.

RuntimeField

  • The RuntimeField class has been removed as it is not supported by OpenSearch.

RuntimeFieldType

  • The RuntimeFieldType class has been removed as it is not supported by OpenSearch.

MultiSearchItem

  • The MultiSearchItem class now extends SearchResult directly instead of via SearchResponse.

ml.ByteBuffer

  • The order property is now of type ByteOrder instead of String.

ml.ColumnMeta

  • The columnType property is now of type ColumnType instead of String.

ml.CreateConnectorRequest

  • The protocol property is now of type ConnectorProtocol instead of String.

ml.GetAgentResponse

  • The type property is now of type AgentType instead of String.

ml.GetConnectorResponse

  • The protocol property is now of type ConnectorProtocol instead of String.

ml.GetModelGroupResponse

  • The access property is now of type ModelGroupAccessMode instead of String.

ml.GetModelResponse

  • The modelState property is now of type ModelState instead of String.

ml.GetStatsRequest

  • The stat property is now of type List<MlStatName> instead of String.

ml.GetStatsResponse

  • The mlConfigIndexStatus, mlConnectorIndexStatus, mlControllerIndexStatus, mlModelIndexStatus & mlTaskIndexStatus properties are now of type MlIndexStatus instead of String.

ml.GetTaskResponse

  • The state property is now of type TaskState instead of String.
  • The taskType property is now of type MlTaskType instead of String.

ml.GetToolRequest

  • The toolName property is now of type ToolName instead of String.

ml.Guardrails

  • The type property is now of type GuardrailsType instead of String.

ml.LoadModelResponse

  • The taskType property is now of type MlTaskType instead of String.

ml.ModelProfile

  • The modelState property is now of type ModelState instead of String.

ml.Output

  • The dataType property is now of type MlResultDataType instead of String.

ml.RateLimiter

  • The unit property is now of type RateLimiterUnit instead of String.

ml.RegisterModelGroupRequest

  • The accessMode property is now of type ModelGroupAccessMode instead of String.

ml.Task

  • The state property is now of type TaskState instead of String.
  • The taskType property is now of type MlTaskType instead of String.

ml.UpdateConnectorRequest

  • The accessMode property is now of type ModelGroupAccessMode instead of String.
  • The protocol property is now of type ConnectorProtocol instead of String.

ml.Values

  • The columnType property is now of type ColumnType instead of String.