types
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Index¶
- type Access
- type AcknowledgeState
- type Acknowledgement
- type ActionStatus
- type ActivationState
- type ActivationStatus
- type AdaptiveAllocations
- type AdaptiveAllocationsSettings
- type AdaptiveSelection
- type AddAction
- type AdjacencyMatrixAggregate
- type AdjacencyMatrixAggregation
- type AdjacencyMatrixBucket
- type Aggregate
- type AggregateMetricDoubleProperty
- type AggregateOrder
- type AggregateOutput
- type AggregationBreakdown
- type AggregationProfile
- type AggregationProfileDebug
- type AggregationProfileDelegateDebugFilter
- type AggregationRange
- type Aggregations
- type Alias
- type AliasDefinition
- type AliasesRecord
- type AlibabaCloudServiceSettings
- type AlibabaCloudTaskSettings
- type AllField
- type AllocateAction
- type AllocationDecision
- type AllocationRecord
- type AllocationStore
- type AlwaysCondition
- type AmazonBedrockServiceSettings
- type AmazonBedrockTaskSettings
- type AmazonSageMakerServiceSettings
- type AmazonSageMakerTaskSettings
- type AnalysisConfig
- type AnalysisConfigRead
- type AnalysisLimits
- type AnalysisMemoryLimit
- type Analytics
- type AnalyticsCollection
- type AnalyticsStatistics
- type AnalyzeDetail
- type AnalyzeToken
- type Analyzer
- type AnalyzerDetail
- type Anomaly
- type AnomalyCause
- type AnomalyDetectors
- type AnomalyExplanation
- type AnthropicServiceSettings
- type AnthropicTaskSettings
- type ApiKey
- type ApiKeyAggregate
- type ApiKeyAggregationContainer
- type ApiKeyAuthorization
- type ApiKeyFiltersAggregation
- type ApiKeyQueryContainer
- type ApostropheTokenFilter
- type AppendProcessor
- type ApplicationGlobalUserPrivileges
- type ApplicationPrivileges
- type ApplicationPrivilegesCheck
- type ApplicationsPrivileges
- type ArabicAnalyzer
- type ArabicNormalizationTokenFilter
- type ArabicStemTokenFilter
- type Archive
- type ArmenianAnalyzer
- type ArrayCompareCondition
- type ArrayCompareOpParams
- type ArrayPercentilesItem
- type AsciiFoldingTokenFilter
- type AsyncSearch
- type AttachmentProcessor
- type Audit
- type AuthenticateApiKey
- type AuthenticateToken
- type AuthenticatedUser
- type Authentication
- type AuthenticationProvider
- type AuthenticationRealm
- type AutoDateHistogramAggregate
- type AutoDateHistogramAggregation
- type AutoFollowPattern
- type AutoFollowPatternSummary
- type AutoFollowStats
- type AutoFollowedCluster
- type AutoscalingCapacity
- type AutoscalingDecider
- type AutoscalingDeciders
- type AutoscalingNode
- type AutoscalingPolicy
- type AutoscalingResources
- type AverageAggregation
- type AverageBucketAggregation
- type AvgAggregate
- type AzureAiStudioServiceSettings
- type AzureAiStudioTaskSettings
- type AzureOpenAIServiceSettings
- type AzureOpenAITaskSettings
- type AzureRepository
- type AzureRepositorySettings
- type Base
- type BasqueAnalyzer
- type BengaliAnalyzer
- type BengaliNormalizationTokenFilter
- type BinaryProperty
- type BlobDetails
- type BoolQuery
- type BooleanProperty
- type BoostingQuery
- type BoxPlotAggregate
- type BoxplotAggregation
- type BrazilianAnalyzer
- type BrazilianStemTokenFilter
- type Breaker
- type BucketCorrelationAggregation
- type BucketCorrelationFunction
- type BucketCorrelationFunctionCountCorrelation
- type BucketCorrelationFunctionCountCorrelationIndicator
- type BucketInfluencer
- type BucketKsAggregation
- type BucketMetricValueAggregate
- type BucketScriptAggregation
- type BucketSelectorAggregation
- type BucketSortAggregation
- type BucketSummary
- type BucketsAdjacencyMatrixBucket
- type BucketsApiKeyQueryContainer
- type BucketsCompositeBucket
- type BucketsDateHistogramBucket
- type BucketsDoubleTermsBucket
- type BucketsFiltersBucket
- type BucketsFrequentItemSetsBucket
- type BucketsGeoHashGridBucket
- type BucketsGeoHexGridBucket
- type BucketsGeoTileGridBucket
- type BucketsHistogramBucket
- type BucketsIpPrefixBucket
- type BucketsIpRangeBucket
- type BucketsLongRareTermsBucket
- type BucketsLongTermsBucket
- type BucketsMultiTermsBucket
- type BucketsPath
- type BucketsQuery
- type BucketsRangeBucket
- type BucketsSignificantLongTermsBucket
- type BucketsSignificantStringTermsBucket
- type BucketsStringRareTermsBucket
- type BucketsStringTermsBucket
- type BucketsTimeSeriesBucket
- type BucketsVariableWidthHistogramBucket
- type BucketsVoid
- type BuildInformation
- type BulgarianAnalyzer
- type BulkError
- type BulkIndexByScrollFailure
- type BulkStats
- type ByteNumberProperty
- type ByteSize
- type BytesProcessor
- type CCSStats
- type CCSUsageClusterStats
- type CCSUsageStats
- type CCSUsageTimeValue
- type CacheQueries
- type CacheStats
- type Calendar
- type CalendarEvent
- type CardinalityAggregate
- type CardinalityAggregation
- type CatAnonalyDetectorColumns
- type CatComponentTemplate
- type CatDatafeedColumns
- type CatDfaColumns
- type CatNodeColumns
- type CatRecoveryColumns
- type CatSegmentsColumns
- type CatShardColumns
- type CatSnapshotsColumns
- type CatThreadPoolColumns
- type CatTrainedModelsColumns
- type CatTransformColumns
- type CatalanAnalyzer
- type CategorizationAnalyzer
- type CategorizationAnalyzerDefinition
- type CategorizeTextAggregation
- type CategorizeTextAnalyzer
- type Category
- type Ccr
- type CcrShardStats
- type CertificateInformation
- type Cgroup
- type CgroupCpu
- type CgroupCpuStat
- type CgroupMemory
- type ChainInput
- type CharFilter
- type CharFilterDefinition
- type CharFilterDetail
- type CharFilterTypes
- type CharGroupTokenizer
- type CheckpointStats
- type Checkpointing
- type ChiSquareHeuristic
- type ChildrenAggregate
- type ChildrenAggregation
- type ChineseAnalyzer
- type ChunkingConfig
- type ChunkingSettings
- type CircleProcessor
- type CjkAnalyzer
- type CjkBigramTokenFilter
- type CjkWidthTokenFilter
- type ClassicTokenFilter
- type ClassicTokenizer
- type ClassificationInferenceOptions
- type CleanupRepositoryResults
- type Client
- type CloseIndexResult
- type CloseShardResult
- type ClusterAppliedStats
- type ClusterComponentTemplate
- type ClusterDetails
- type ClusterFileSystem
- type ClusterIndexingPressure
- type ClusterIndices
- type ClusterIndicesShards
- type ClusterIndicesShardsIndex
- type ClusterInfo
- type ClusterInfoTargets
- type ClusterIngest
- type ClusterJvm
- type ClusterJvmMemory
- type ClusterJvmVersion
- type ClusterNetworkTypes
- type ClusterNode
- type ClusterNodeCount
- type ClusterNodes
- type ClusterOperatingSystem
- type ClusterOperatingSystemArchitecture
- type ClusterOperatingSystemName
- type ClusterOperatingSystemPrettyName
- type ClusterProcess
- type ClusterProcessCpu
- type ClusterProcessOpenFileDescriptors
- type ClusterProcessor
- type ClusterRemoteInfo
- type ClusterRemoteProxyInfo
- type ClusterRemoteSniffInfo
- type ClusterRuntimeFieldTypes
- type ClusterShardMetrics
- type ClusterSnapshotStats
- type ClusterStateQueue
- type ClusterStateUpdate
- type ClusterStatistics
- type CohereServiceSettings
- type CohereTaskSettings
- type Collector
- type Column
- type CombinedFieldsQuery
- type Command
- type CommandAllocatePrimaryAction
- type CommandAllocateReplicaAction
- type CommandCancelAction
- type CommandMoveAction
- type CommonGramsTokenFilter
- type CommonTermsQuery
- type CommunityIDProcessor
- type CompactNodeInfo
- type CompletionContext
- type CompletionProperty
- type CompletionResult
- type CompletionStats
- type CompletionSuggest
- type CompletionSuggestOption
- type CompletionSuggester
- type CompletionTool
- type CompletionToolChoice
- type CompletionToolChoiceFunction
- type CompletionToolFunction
- type CompletionToolType
- type ComponentTemplateNode
- type ComponentTemplateSummary
- type CompositeAggregate
- type CompositeAggregateKey
- type CompositeAggregation
- type CompositeAggregationSource
- type CompositeBucket
- type CompositeDateHistogramAggregation
- type CompositeGeoTileGridAggregation
- type CompositeHistogramAggregation
- type CompositeSubField
- type CompositeTermsAggregation
- type ConditionTokenFilter
- type Configuration
- type ConfusionMatrixItem
- type ConfusionMatrixPrediction
- type ConfusionMatrixThreshold
- type Connection
- type Connector
- type ConnectorConfigProperties
- type ConnectorConfiguration
- type ConnectorCustomScheduling
- type ConnectorFeatures
- type ConnectorScheduling
- type ConnectorSyncJob
- type ConstantKeywordProperty
- type ConstantScoreQuery
- type ContentObject
- type Context
- type ContextMethod
- type ContextMethodParam
- type ConvertProcessor
- type CoordinatorStats
- type CoordsGeoBounds
- type CoreKnnQuery
- type CountRecord
- type CountedKeywordProperty
- type Counter
- type Cpu
- type CpuAcct
- type CreateFrom
- type CreateOperation
- type CreatedStatus
- type CsvProcessor
- type CumulativeCardinalityAggregate
- type CumulativeCardinalityAggregation
- type CumulativeSumAggregation
- type CurrentNode
- type CustomAnalyzer
- type CustomCategorizeTextAnalyzer
- type CustomNormalizer
- type CustomRequestParams
- type CustomResponseParams
- type CustomScheduling
- type CustomSchedulingConfigurationOverrides
- type CustomServiceSettings
- type CustomTaskSettings
- type CzechAnalyzer
- type CzechStemTokenFilter
- type DailySchedule
- type DanglingIndex
- type DanishAnalyzer
- type DataCounts
- type DataDescription
- type DataEmailAttachment
- type DataFrameAnalyticsRecord
- type DataPathStats
- type DataStream
- type DataStreamIndex
- type DataStreamLifecycle
- type DataStreamLifecycleDetails
- type DataStreamLifecycleDownsampling
- type DataStreamLifecycleExplain
- type DataStreamLifecycleIndicator
- type DataStreamLifecycleRolloverConditions
- type DataStreamLifecycleWithRollover
- type DataStreamNames
- type DataStreamStats
- type DataStreamTimestamp
- type DataStreamTimestampField
- type DataStreamVisibility
- type DataStreamWithLifecycle
- type DataStreams
- type DataStreamsStatsItem
- type DataTierPhaseStatistics
- type DataTiers
- type DatabaseConfiguration
- type DatabaseConfigurationFull
- type DatafeedAuthorization
- type DatafeedConfig
- type DatafeedRunningState
- type DatafeedStats
- type DatafeedTimingStats
- type Datafeeds
- type DatafeedsRecord
- type DataframeAnalysisAnalyzedFields
- type DataframeAnalysisClassification
- type DataframeAnalysisContainer
- type DataframeAnalysisFeatureProcessor
- type DataframeAnalysisFeatureProcessorFrequencyEncoding
- type DataframeAnalysisFeatureProcessorMultiEncoding
- type DataframeAnalysisFeatureProcessorNGramEncoding
- type DataframeAnalysisFeatureProcessorOneHotEncoding
- type DataframeAnalysisFeatureProcessorTargetMeanEncoding
- type DataframeAnalysisOutlierDetection
- type DataframeAnalysisRegression
- type DataframeAnalytics
- type DataframeAnalyticsAuthorization
- type DataframeAnalyticsDestination
- type DataframeAnalyticsFieldSelection
- type DataframeAnalyticsMemoryEstimation
- type DataframeAnalyticsSource
- type DataframeAnalyticsStatsContainer
- type DataframeAnalyticsStatsDataCounts
- type DataframeAnalyticsStatsHyperparameters
- type DataframeAnalyticsStatsMemoryUsage
- type DataframeAnalyticsStatsOutlierDetection
- type DataframeAnalyticsStatsProgress
- type DataframeAnalyticsSummary
- type DataframeClassificationSummary
- type DataframeClassificationSummaryAccuracy
- type DataframeClassificationSummaryMulticlassConfusionMatrix
- type DataframeClassificationSummaryPrecision
- type DataframeClassificationSummaryRecall
- type DataframeEvaluationClass
- type DataframeEvaluationClassification
- type DataframeEvaluationClassificationMetrics
- type DataframeEvaluationClassificationMetricsAucRoc
- type DataframeEvaluationContainer
- type DataframeEvaluationOutlierDetection
- type DataframeEvaluationOutlierDetectionMetrics
- type DataframeEvaluationRegression
- type DataframeEvaluationRegressionMetrics
- type DataframeEvaluationRegressionMetricsHuber
- type DataframeEvaluationRegressionMetricsMsle
- type DataframeEvaluationSummaryAucRoc
- type DataframeEvaluationSummaryAucRocCurveItem
- type DataframeEvaluationValue
- type DataframeOutlierDetectionSummary
- type DataframePreviewConfig
- type DataframeRegressionSummary
- type DateDecayFunction
- type DateDistanceFeatureQuery
- type DateHistogramAggregate
- type DateHistogramAggregation
- type DateHistogramBucket
- type DateHistogramGrouping
- type DateIndexNameProcessor
- type DateNanosProperty
- type DateProcessor
- type DateProperty
- type DateRangeAggregate
- type DateRangeAggregation
- type DateRangeExpression
- type DateRangeProperty
- type DateRangeQuery
- type DateTime
- type DecayFunction
- type DecayPlacement
- type DecayPlacementDateMathDuration
- type DecayPlacementGeoLocationDistance
- type DecayPlacementdoubledouble
- type DecimalDigitTokenFilter
- type DeepSeekServiceSettings
- type Defaults
- type Definition
- type DelayedDataCheckConfig
- type DeleteAction
- type DeleteOperation
- type DelimitedPayloadTokenFilter
- type DenseVectorIndexOptions
- type DenseVectorOffHeapStats
- type DenseVectorProperty
- type DenseVectorStats
- type Dependency
- type Deprecation
- type DeprecationIndexing
- type DerivativeAggregate
- type DerivativeAggregation
- type DetailsInfo
- type DetectionRule
- type Detector
- type DetectorRead
- type DetectorUpdate
- type DfsKnnProfile
- type DfsProfile
- type DfsStatisticsBreakdown
- type DfsStatisticsProfile
- type Diagnosis
- type DiagnosisAffectedResources
- type DictionaryDecompounderTokenFilter
- type DirectGenerator
- type DisMaxQuery
- type Discovery
- type DiscoveryNode
- type DiscoveryNodeCompact
- type DiscoveryNodeContent
- type DiskIndicator
- type DiskIndicatorDetails
- type DiskUsage
- type DissectProcessor
- type DistanceFeatureQuery
- type DiversifiedSamplerAggregation
- type DocStats
- type Document
- type DocumentRating
- type DocumentSimulation
- type DotExpanderProcessor
- type DoubleNumberProperty
- type DoubleRangeProperty
- type DoubleTermsAggregate
- type DoubleTermsBucket
- type DownsampleAction
- type DownsampleConfig
- type DownsamplingRound
- type DropProcessor
- type Duration
- type DurationValueUnitFloatMillis
- type DurationValueUnitMillis
- type DurationValueUnitNanos
- type DurationValueUnitSeconds
- type DutchAnalyzer
- type DutchStemTokenFilter
- type DynamicProperty
- type DynamicTemplate
- type EdgeNGramTokenFilter
- type EdgeNGramTokenizer
- type ElasticsearchError
- type ElasticsearchServiceSettings
- type ElasticsearchTaskSettings
- type ElasticsearchVersionInfo
- type ElasticsearchVersionMinInfo
- type ElisionTokenFilter
- type ElserServiceSettings
- type Email
- type EmailAction
- type EmailAttachmentContainer
- type EmailBody
- type EmailResult
- type EmptyObject
- type EnglishAnalyzer
- type EnrichPolicy
- type EnrichProcessor
- type Ensemble
- type EpochTimeUnitMillis
- type EpochTimeUnitSeconds
- type Eql
- type EqlFeatures
- type EqlFeaturesJoin
- type EqlFeaturesKeys
- type EqlFeaturesPipes
- type EqlFeaturesSequences
- type EqlHits
- type ErrorCause
- type ErrorResponseBase
- type EsqlClusterDetails
- type EsqlClusterInfo
- type EsqlColumnInfo
- type EsqlShardFailure
- type EsqlShardInfo
- type EstonianAnalyzer
- type EventDataStream
- type EwmaModelSettings
- type EwmaMovingAverageAggregation
- type ExecuteEnrichPolicyStatus
- type ExecutingPolicy
- type ExecutionResult
- type ExecutionResultAction
- type ExecutionResultCondition
- type ExecutionResultInput
- type ExecutionState
- type ExecutionThreadPool
- type ExistsQuery
- type ExpandWildcards
- type ExplainAnalyzeToken
- type Explanation
- type ExplanationDetail
- type ExploreControls
- type ExponentialAverageCalculationContext
- type ExtendedBoundsFieldDateMath
- type ExtendedBoundsdouble
- type ExtendedMemoryStats
- type ExtendedStatsAggregate
- type ExtendedStatsAggregation
- type ExtendedStatsBucketAggregate
- type ExtendedStatsBucketAggregation
- type FailProcessor
- type FailureStore
- type Feature
- type FeatureEnabled
- type FeatureExtractor
- type FeatureToggle
- type Features
- type FetchProfile
- type FetchProfileBreakdown
- type FetchProfileDebug
- type FieldAliasProperty
- type FieldAndFormat
- type FieldCapability
- type FieldCollapse
- type FieldDateMath
- type FieldLookup
- type FieldMapping
- type FieldMemoryUsage
- type FieldMetric
- type FieldNamesField
- type FieldRule
- type FieldSecurity
- type FieldSizeUsage
- type FieldSort
- type FieldStat
- type FieldStatistics
- type FieldSuggester
- type FieldSummary
- type FieldTypes
- type FieldTypesMappings
- type FieldValue
- type FieldValueFactorScoreFunction
- type FielddataFrequencyFilter
- type FielddataRecord
- type FielddataStats
- type Fields
- type FileCountSnapshotStats
- type FileDetails
- type FileSystem
- type FileSystemTotal
- type FillMaskInferenceOptions
- type FillMaskInferenceUpdateOptions
- type FilterAggregate
- type FilterRef
- type FilteringAdvancedSnippet
- type FilteringConfig
- type FilteringRule
- type FilteringRules
- type FilteringRulesValidation
- type FilteringValidation
- type FiltersAggregate
- type FiltersAggregation
- type FiltersBucket
- type FingerprintAnalyzer
- type FingerprintProcessor
- type FingerprintTokenFilter
- type FinnishAnalyzer
- type FlattenGraphTokenFilter
- type Flattened
- type FlattenedProperty
- type Float64
- type FloatNumberProperty
- type FloatRangeProperty
- type FlushStats
- type FollowIndexStats
- type FollowStats
- type FollowerIndex
- type FollowerIndexParameters
- type ForceMergeAction
- type ForeachProcessor
- type FoundStatus
- type FrenchAnalyzer
- type FrenchStemTokenFilter
- type FrequencyEncodingPreprocessor
- type FrequentItemSetsAggregate
- type FrequentItemSetsAggregation
- type FrequentItemSetsBucket
- type FrequentItemSetsField
- type FrozenIndices
- type FunctionScore
- type FunctionScoreQuery
- type Fuzziness
- type FuzzyQuery
- type GalicianAnalyzer
- type GarbageCollector
- type GarbageCollectorTotal
- type GcsRepository
- type GcsRepositorySettings
- type GeoBoundingBoxQuery
- type GeoBounds
- type GeoBoundsAggregate
- type GeoBoundsAggregation
- type GeoCentroidAggregate
- type GeoCentroidAggregation
- type GeoDecayFunction
- type GeoDistanceAggregate
- type GeoDistanceAggregation
- type GeoDistanceFeatureQuery
- type GeoDistanceQuery
- type GeoDistanceSort
- type GeoGridProcessor
- type GeoGridQuery
- type GeoHashGridAggregate
- type GeoHashGridAggregation
- type GeoHashGridBucket
- type GeoHashLocation
- type GeoHashPrecision
- type GeoHexGridAggregate
- type GeoHexGridBucket
- type GeoIpDownloadStatistics
- type GeoIpNodeDatabaseName
- type GeoIpNodeDatabases
- type GeoIpProcessor
- type GeoLine
- type GeoLineAggregate
- type GeoLineAggregation
- type GeoLinePoint
- type GeoLineSort
- type GeoLocation
- type GeoPointProperty
- type GeoPolygonPoints
- type GeoPolygonQuery
- type GeoResults
- type GeoShapeFieldQuery
- type GeoShapeProperty
- type GeoShapeQuery
- type GeoTileGridAggregate
- type GeoTileGridAggregation
- type GeoTileGridBucket
- type GeohexGridAggregation
- type GeoipDatabaseConfigurationMetadata
- type GermanAnalyzer
- type GermanNormalizationTokenFilter
- type GermanStemTokenFilter
- type GetMigrationFeature
- type GetResult
- type GetScriptContext
- type GetStats
- type GetUserProfileErrors
- type GlobalAggregate
- type GlobalAggregation
- type GlobalOrdinalFieldStats
- type GlobalOrdinalsStats
- type GlobalPrivilege
- type GoogleAiStudioServiceSettings
- type GoogleNormalizedDistanceHeuristic
- type GoogleVertexAIServiceSettings
- type GoogleVertexAITaskSettings
- type GrantApiKey
- type GreaterThanValidation
- type GreekAnalyzer
- type GrokProcessor
- type Groupings
- type GsubProcessor
- type HalfFloatNumberProperty
- type HasChildQuery
- type HasParentQuery
- type HasPrivilegesUserProfileErrors
- type HdrMethod
- type HdrPercentileRanksAggregate
- type HdrPercentilesAggregate
- type HealthRecord
- type HealthStatistics
- type Highlight
- type HighlightField
- type HindiAnalyzer
- type HindiNormalizationTokenFilter
- type Hint
- type HistogramAggregate
- type HistogramAggregation
- type HistogramBucket
- type HistogramGrouping
- type HistogramProperty
- type Hit
- type HitsEvent
- type HitsMetadata
- type HitsSequence
- type HoltLinearModelSettings
- type HoltMovingAverageAggregation
- type HoltWintersModelSettings
- type HoltWintersMovingAverageAggregation
- type Hop
- type HourAndMinute
- type HourlySchedule
- type HtmlStripCharFilter
- type HtmlStripProcessor
- type Http
- type HttpEmailAttachment
- type HttpHeaders
- type HttpInput
- type HttpInputAuthentication
- type HttpInputBasicAuthentication
- type HttpInputProxy
- type HttpInputRequestDefinition
- type HttpInputRequestResult
- type HttpInputResponseResult
- type HttpRoute
- type HttpRouteRequests
- type HttpRouteResponses
- type HuggingFaceServiceSettings
- type HuggingFaceTaskSettings
- type HungarianAnalyzer
- type HunspellTokenFilter
- type Hyperparameter
- type Hyperparameters
- type HyphenationDecompounderTokenFilter
- type IcuAnalyzer
- type IcuCollationProperty
- type IcuCollationTokenFilter
- type IcuFoldingTokenFilter
- type IcuNormalizationCharFilter
- type IcuNormalizationTokenFilter
- type IcuTokenizer
- type IcuTransformTokenFilter
- type Ids
- type IdsQuery
- type Ilm
- type IlmActions
- type IlmIndicator
- type IlmIndicatorDetails
- type IlmPolicy
- type IlmPolicyStatistics
- type Impact
- type InProgress
- type IncludedInValidation
- type IndexAction
- type IndexAliases
- type IndexAndDataStreamAction
- type IndexCapabilities
- type IndexDetails
- type IndexField
- type IndexHealthStats
- type IndexMappingRecord
- type IndexOperation
- type IndexPrivilegesCheck
- type IndexResult
- type IndexResultSummary
- type IndexRouting
- type IndexRoutingAllocation
- type IndexRoutingAllocationDisk
- type IndexRoutingAllocationInclude
- type IndexRoutingAllocationInitialRecovery
- type IndexRoutingRebalance
- type IndexSegment
- type IndexSegmentSort
- type IndexSettingBlocks
- type IndexSettings
- type IndexSettingsAnalysis
- type IndexSettingsLifecycle
- type IndexSettingsLifecycleStep
- type IndexSettingsTimeSeries
- type IndexState
- type IndexStats
- type IndexTemplate
- type IndexTemplateDataStreamConfiguration
- type IndexTemplateItem
- type IndexTemplateMapping
- type IndexTemplateSummary
- type IndexVersioning
- type IndexingSlowlogSettings
- type IndexingSlowlogTresholds
- type IndexingStats
- type IndicNormalizationTokenFilter
- type IndicatorNode
- type Indicators
- type Indices
- type IndicesAction
- type IndicesBlockStatus
- type IndicesIndexingPressure
- type IndicesIndexingPressureMemory
- type IndicesModifyAction
- type IndicesOptions
- type IndicesPrivileges
- type IndicesPrivilegesQuery
- type IndicesRecord
- type IndicesShardStats
- type IndicesShardStores
- type IndicesShardsStats
- type IndicesStats
- type IndicesValidationExplanation
- type IndicesVersions
- type IndonesianAnalyzer
- type InferenceAggregate
- type InferenceAggregation
- type InferenceChunkingSettings
- type InferenceClassImportance
- type InferenceConfig
- type InferenceConfigClassification
- type InferenceConfigContainer
- type InferenceConfigCreateContainer
- type InferenceConfigRegression
- type InferenceConfigUpdateContainer
- type InferenceEndpoint
- type InferenceEndpointInfo
- type InferenceFeatureImportance
- type InferenceProcessor
- type InferenceResponseResult
- type InferenceTopClassEntry
- type Influence
- type Influencer
- type InfoFeatureState
- type Ingest
- type IngestDocumentSimulation
- type IngestPipeline
- type IngestPipelineParams
- type IngestStats
- type IngestTotal
- type InlineGet
- type InlineGetDictUserDefined
- type InnerHits
- type InnerHitsResult
- type InnerRetriever
- type Input
- type InputConfig
- type IntegerNumberProperty
- type IntegerRangeProperty
- type Intervals
- type IntervalsAllOf
- type IntervalsAnyOf
- type IntervalsFilter
- type IntervalsFuzzy
- type IntervalsMatch
- type IntervalsPrefix
- type IntervalsQuery
- type IntervalsRange
- type IntervalsRegexp
- type IntervalsWildcard
- type InvertedIndex
- type Invocation
- type Invocations
- type IoStatDevice
- type IoStats
- type IpFilter
- type IpLocationDatabaseConfigurationMetadata
- type IpLocationProcessor
- type IpPrefixAggregate
- type IpPrefixAggregation
- type IpPrefixBucket
- type IpProperty
- type IpRangeAggregate
- type IpRangeAggregation
- type IpRangeAggregationRange
- type IpRangeBucket
- type IpRangeProperty
- type Ipinfo
- type IrishAnalyzer
- type ItalianAnalyzer
- type JaStopTokenFilter
- type JinaAIServiceSettings
- type JinaAITaskSettings
- type Job
- type JobBlocked
- type JobConfig
- type JobForecastStatistics
- type JobStatistics
- type JobStats
- type JobTimingStats
- type JobUsage
- type JobsRecord
- type JoinProcessor
- type JoinProperty
- type JsonProcessor
- type Jvm
- type JvmClasses
- type JvmMemoryStats
- type JvmStats
- type JvmThreads
- type KStemTokenFilter
- type KeepTypesTokenFilter
- type KeepWordsTokenFilter
- type KeyValueProcessor
- type KeyedPercentiles
- type KeyedProcessor
- type KeywordAnalyzer
- type KeywordMarkerTokenFilter
- type KeywordProperty
- type KeywordRepeatTokenFilter
- type KeywordTokenizer
- type KibanaToken
- type KnnCollectorResult
- type KnnQuery
- type KnnQueryProfileBreakdown
- type KnnQueryProfileResult
- type KnnRetriever
- type KnnSearch
- type KuromojiAnalyzer
- type KuromojiIterationMarkCharFilter
- type KuromojiPartOfSpeechTokenFilter
- type KuromojiReadingFormTokenFilter
- type KuromojiStemmerTokenFilter
- type KuromojiTokenizer
- type LanguageContext
- type LaplaceSmoothingModel
- type LatLonGeoLocation
- type Latest
- type LatvianAnalyzer
- type LearningToRank
- type LearningToRankConfig
- type LengthTokenFilter
- type LessThanValidation
- type LetterTokenizer
- type License
- type LicenseInformation
- type Lifecycle
- type LifecycleExplain
- type LifecycleExplainManaged
- type LifecycleExplainPhaseExecution
- type LifecycleExplainUnmanaged
- type Like
- type LikeDocument
- type LimitTokenCountTokenFilter
- type Limits
- type LinearInterpolationSmoothingModel
- type LinearMovingAverageAggregation
- type LinearRetriever
- type ListTypeValidation
- type LithuanianAnalyzer
- type Local
- type LoggingAction
- type LoggingResult
- type LogstashPipeline
- type LongNumberProperty
- type LongRangeProperty
- type LongRareTermsAggregate
- type LongRareTermsBucket
- type LongTermsAggregate
- type LongTermsBucket
- type LowercaseNormalizer
- type LowercaseProcessor
- type LowercaseTokenFilter
- type LowercaseTokenizer
- type MLDatafeed
- type MLFilter
- type MTermVectorsOperation
- type MachineLearning
- type ManageUserPrivileges
- type MapboxVectorTiles
- type MappingCharFilter
- type MappingLimitSettings
- type MappingLimitSettingsDepth
- type MappingLimitSettingsDimensionFields
- type MappingLimitSettingsFieldNameLength
- type MappingLimitSettingsNestedFields
- type MappingLimitSettingsNestedObjects
- type MappingLimitSettingsSourceFields
- type MappingLimitSettingsTotalFields
- type MappingStats
- type MasterIsStableIndicator
- type MasterIsStableIndicatorClusterFormationNode
- type MasterIsStableIndicatorDetails
- type MasterIsStableIndicatorExceptionFetchingHistory
- type MasterRecord
- type MatchAllQuery
- type MatchBoolPrefixQuery
- type MatchNoneQuery
- type MatchOnlyTextProperty
- type MatchPhrasePrefixQuery
- type MatchPhraseQuery
- type MatchQuery
- type MatchedField
- type MatchedText
- type MatrixStatsAggregate
- type MatrixStatsAggregation
- type MatrixStatsFields
- type MaxAggregate
- type MaxAggregation
- type MaxBucketAggregation
- type Maxmind
- type MedianAbsoluteDeviationAggregate
- type MedianAbsoluteDeviationAggregation
- type MemMlStats
- type MemStats
- type Memory
- type MemoryStats
- type Merge
- type MergeScheduler
- type MergesStats
- type Message
- type MessageContent
- type Metadata
- type Metrics
- type MgetOperation
- type MgetResponseItem
- type MigrateAction
- type MigrateReindex
- type MigrationFeatureIndexInfo
- type MinAggregate
- type MinAggregation
- type MinBucketAggregation
- type MinHashTokenFilter
- type MinimalLicenseInformation
- type MinimumShouldMatch
- type Missing
- type MissingAggregate
- type MissingAggregation
- type MistralServiceSettings
- type MlCounter
- type MlDataFrameAnalyticsJobs
- type MlDataFrameAnalyticsJobsAnalysis
- type MlDataFrameAnalyticsJobsCount
- type MlDataFrameAnalyticsJobsMemory
- type MlInference
- type MlInferenceDeployments
- type MlInferenceDeploymentsTimeMs
- type MlInferenceIngestProcessor
- type MlInferenceIngestProcessorCount
- type MlInferenceTrainedModels
- type MlInferenceTrainedModelsCount
- type MlJobForecasts
- type ModelPackageConfig
- type ModelPlotConfig
- type ModelSizeStats
- type ModelSnapshot
- type ModelSnapshotUpgrade
- type Monitoring
- type MoreLikeThisQuery
- type MountedSnapshot
- type MovingAverageAggregation
- type MovingFunctionAggregation
- type MovingPercentilesAggregation
- type MsearchRequestItem
- type MsearchResponseItem
- type MultiGetError
- type MultiMatchQuery
- type MultiSearchItem
- type MultiTermLookup
- type MultiTermsAggregate
- type MultiTermsAggregation
- type MultiTermsBucket
- type MultiplexerTokenFilter
- type MultisearchBody
- type MultisearchHeader
- type Murmur3HashProperty
- type MutualInformationHeuristic
- type NGramTokenFilter
- type NGramTokenizer
- type Names
- type NativeCode
- type NativeCodeInformation
- type NerInferenceOptions
- type NerInferenceUpdateOptions
- type NestedAggregate
- type NestedAggregation
- type NestedIdentity
- type NestedProperty
- type NestedQuery
- type NestedSortValue
- type NetworkDirectionProcessor
- type NeverCondition
- type NlpBertTokenizationConfig
- type NlpRobertaTokenizationConfig
- type NlpTokenizationUpdateOptions
- type Node
- type NodeAllocationExplanation
- type NodeAttributes
- type NodeAttributesRecord
- type NodeBufferPool
- type NodeDiskUsage
- type NodeIds
- type NodeInfo
- type NodeInfoAction
- type NodeInfoAggregation
- type NodeInfoBootstrap
- type NodeInfoClient
- type NodeInfoDiscover
- type NodeInfoHttp
- type NodeInfoIngest
- type NodeInfoIngestDownloader
- type NodeInfoIngestInfo
- type NodeInfoIngestProcessor
- type NodeInfoJvmMemory
- type NodeInfoMemory
- type NodeInfoOSCPU
- type NodeInfoPath
- type NodeInfoRepositories
- type NodeInfoRepositoriesUrl
- type NodeInfoScript
- type NodeInfoSearch
- type NodeInfoSearchRemote
- type NodeInfoSettings
- type NodeInfoSettingsCluster
- type NodeInfoSettingsClusterElection
- type NodeInfoSettingsHttp
- type NodeInfoSettingsHttpType
- type NodeInfoSettingsIngest
- type NodeInfoSettingsNetwork
- type NodeInfoSettingsNode
- type NodeInfoSettingsTransport
- type NodeInfoSettingsTransportFeatures
- type NodeInfoSettingsTransportType
- type NodeInfoTransport
- type NodeInfoXpack
- type NodeInfoXpackLicense
- type NodeInfoXpackLicenseType
- type NodeInfoXpackMl
- type NodeInfoXpackSecurity
- type NodeInfoXpackSecurityAuthc
- type NodeInfoXpackSecurityAuthcRealms
- type NodeInfoXpackSecurityAuthcRealmsStatus
- type NodeInfoXpackSecurityAuthcToken
- type NodeInfoXpackSecuritySsl
- type NodeJvmInfo
- type NodeOperatingSystemInfo
- type NodePackagingType
- type NodeProcessInfo
- type NodeReloadResult
- type NodeShard
- type NodeShutdownStatus
- type NodeStatistics
- type NodeTasks
- type NodeThreadPoolInfo
- type NodeUsage
- type NodesContext
- type NodesCredentials
- type NodesCredentialsFileToken
- type NodesIndexingPressure
- type NodesIndexingPressureMemory
- type NodesIngest
- type NodesRecord
- type NoriAnalyzer
- type NoriPartOfSpeechTokenFilter
- type NoriTokenizer
- type NormalizeAggregation
- type Normalizer
- type NorwegianAnalyzer
- type NotFoundAliases
- type NullValue
- type NumberRangeQuery
- type NumericDecayFunction
- type NumericFielddata
- type ObjectProperty
- type OneHotEncodingPreprocessor
- type OpenAIServiceSettings
- type OpenAITaskSettings
- type OperatingSystem
- type OperatingSystemMemoryInfo
- type OperationContainer
- type OutlierDetectionParameters
- type OverallBucket
- type OverallBucketJob
- type Overlapping
- type Page
- type PagerDutyAction
- type PagerDutyContext
- type PagerDutyEvent
- type PagerDutyEventProxy
- type PagerDutyResult
- type PainlessContextSetup
- type ParentAggregate
- type ParentAggregation
- type ParentIdQuery
- type ParentTaskInfo
- type PassThroughInferenceOptions
- type PassThroughInferenceUpdateOptions
- type PassthroughObjectProperty
- type PathHierarchyTokenizer
- type PatternAnalyzer
- type PatternCaptureTokenFilter
- type PatternReplaceCharFilter
- type PatternReplaceTokenFilter
- type PatternTokenizer
- type PendingTask
- type PendingTasksRecord
- type PerPartitionCategorization
- type PerRepositoryStats
- type Percentage
- type PercentageScoreHeuristic
- type PercentileRanksAggregation
- type Percentiles
- type PercentilesAggregation
- type PercentilesBucketAggregate
- type PercentilesBucketAggregation
- type PercolateQuery
- type PercolatorProperty
- type PersianAnalyzer
- type PersianNormalizationTokenFilter
- type PersianStemTokenFilter
- type PersistentTaskStatus
- type Phase
- type Phases
- type PhoneticTokenFilter
- type PhraseSuggest
- type PhraseSuggestCollate
- type PhraseSuggestCollateQuery
- type PhraseSuggestHighlight
- type PhraseSuggestOption
- type PhraseSuggester
- type PinnedDoc
- type PinnedQuery
- type PinnedRetriever
- type PipeSeparatedFlagsSimpleQueryStringFlag
- type PipelineConfig
- type PipelineMetadata
- type PipelineProcessor
- type PipelineProcessorResult
- type PipelineSettings
- type Pivot
- type PivotGroupByContainer
- type PluginStats
- type PluginsRecord
- type PluginsStatus
- type PointInTimeReference
- type PointProperty
- type Pool
- type PorterStemTokenFilter
- type PortugueseAnalyzer
- type PostMigrationFeature
- type PredicateTokenFilter
- type PredictedValue
- type PrefixQuery
- type Preprocessor
- type PressureMemory
- type Privileges
- type PrivilegesActions
- type PrivilegesCheck
- type Process
- type Processor
- type ProcessorContainer
- type Profile
- type Property
- type PublishedClusterStates
- type Queries
- type Query
- type QueryBreakdown
- type QueryCacheStats
- type QueryFeatureExtractor
- type QueryProfile
- type QueryRole
- type QueryRule
- type QueryRuleActions
- type QueryRuleCriteria
- type QueryRulesetListItem
- type QueryRulesetMatchedRule
- type QueryStringQuery
- type QueryUser
- type QueryVectorBuilder
- type QueryWatch
- type QuestionAnsweringInferenceOptions
- type QuestionAnsweringInferenceUpdateOptions
- type RRFRetriever
- type RandomSamplerAggregation
- type RandomScoreFunction
- type RangeAggregate
- type RangeAggregation
- type RangeBucket
- type RangeQuery
- type RankContainer
- type RankEvalHit
- type RankEvalHitItem
- type RankEvalMetric
- type RankEvalMetricDetail
- type RankEvalMetricDiscountedCumulativeGain
- type RankEvalMetricExpectedReciprocalRank
- type RankEvalMetricMeanReciprocalRank
- type RankEvalMetricPrecision
- type RankEvalMetricRecall
- type RankEvalQuery
- type RankEvalRequestItem
- type RankFeatureFunctionLinear
- type RankFeatureFunctionLogarithm
- type RankFeatureFunctionSaturation
- type RankFeatureFunctionSigmoid
- type RankFeatureProperty
- type RankFeatureQuery
- type RankFeaturesProperty
- type RankVectorProperty
- type RankedDocument
- type RareTermsAggregation
- type RateAggregate
- type RateAggregation
- type RateLimitSetting
- type ReadBlobDetails
- type ReadException
- type ReadOnlyUrlRepository
- type ReadOnlyUrlRepositorySettings
- type ReadSummaryInfo
- type RealmCache
- type RealmInfo
- type Recording
- type RecoveryBytes
- type RecoveryFiles
- type RecoveryIndexStatus
- type RecoveryOrigin
- type RecoveryRecord
- type RecoveryStartStatus
- type RecoveryStats
- type RecoveryStatus
- type Redact
- type RedactProcessor
- type RefreshStats
- type RegexOptions
- type RegexValidation
- type RegexpQuery
- type RegisteredDomainProcessor
- type RegressionInferenceOptions
- type ReindexDestination
- type ReindexNode
- type ReindexSource
- type ReindexStatus
- type ReindexTask
- type ReloadDetails
- type ReloadResult
- type RelocationFailureInfo
- type RemoteClusterInfo
- type RemoteClusterPrivileges
- type RemoteIndicesPrivileges
- type RemoteSource
- type RemoteUserIndicesPrivileges
- type RemoveAction
- type RemoveClusterServer
- type RemoveDuplicatesTokenFilter
- type RemoveIndexAction
- type RemoveProcessor
- type RenameProcessor
- type ReplicationAccess
- type ReportingEmailAttachment
- type RepositoriesRecord
- type Repository
- type RepositoryIntegrityIndicator
- type RepositoryIntegrityIndicatorDetails
- type RepositoryLocation
- type RepositoryMeteringInformation
- type RepositoryStatsCurrentCounts
- type RepositoryStatsShards
- type RequestCacheStats
- type RequestChatCompletion
- type RequestCounts
- type RequestItem
- type RerouteDecision
- type RerouteExplanation
- type RerouteParameters
- type RerouteProcessor
- type Rescore
- type RescoreQuery
- type RescoreVector
- type RescorerRetriever
- type ReservedSize
- type ResolveClusterInfo
- type ResolveIndexAliasItem
- type ResolveIndexDataStreamsItem
- type ResolveIndexItem
- type ResourcePrivileges
- type ResponseItem
- type Restriction
- type Retention
- type RetentionLease
- type RetentionPolicy
- type RetentionPolicyContainer
- type Retries
- type RetrieverContainer
- type ReverseNestedAggregate
- type ReverseNestedAggregation
- type ReverseTokenFilter
- type Role
- type RoleDescriptor
- type RoleDescriptorRead
- type RoleDescriptorWrapper
- type RoleMappingRule
- type RoleQueryContainer
- type RoleTemplate
- type RoleTemplateInlineQuery
- type RoleTemplateQuery
- type RoleTemplateScript
- type RolloverAction
- type RolloverConditions
- type RollupCapabilities
- type RollupCapabilitySummary
- type RollupFieldSummary
- type RollupJob
- type RollupJobConfiguration
- type RollupJobStats
- type RollupJobStatus
- type RollupJobSummary
- type RollupJobSummaryField
- type RomanianAnalyzer
- type RoutingField
- type RrfRank
- type RuleCondition
- type RuleQuery
- type RuleRetriever
- type RunningStateSearchInterval
- type RuntimeField
- type RuntimeFieldFetchFields
- type RuntimeFields
- type RuntimeFieldsType
- type RussianAnalyzer
- type RussianStemTokenFilter
- type S3Repository
- type S3RepositorySettings
- type SLMPolicy
- type SampleDiversity
- type SamplerAggregate
- type SamplerAggregation
- type ScalarValue
- type ScaledFloatNumberProperty
- type ScandinavianFoldingTokenFilter
- type ScandinavianNormalizationTokenFilter
- type ScheduleContainer
- type ScheduleTimeOfDay
- type ScheduleTriggerEvent
- type SchedulingConfiguration
- type ScoreSort
- type Script
- type ScriptCache
- type ScriptCondition
- type ScriptField
- type ScriptProcessor
- type ScriptQuery
- type ScriptScoreFunction
- type ScriptScoreQuery
- type ScriptSort
- type ScriptTransform
- type ScriptedHeuristic
- type ScriptedMetricAggregate
- type ScriptedMetricAggregation
- type Scripting
- type ScrollIds
- type SearchAccess
- type SearchApplication
- type SearchApplicationParameters
- type SearchApplicationTemplate
- type SearchAsYouTypeProperty
- type SearchIdle
- type SearchInput
- type SearchInputRequestBody
- type SearchInputRequestDefinition
- type SearchProfile
- type SearchShardsNodeAttributes
- type SearchStats
- type SearchTemplateRequestBody
- type SearchTransform
- type SearchUsageStats
- type SearchableSnapshotAction
- type SearchableSnapshots
- type Security
- type SecurityRoleMapping
- type SecurityRoles
- type SecurityRolesDls
- type SecurityRolesDlsBitSetCache
- type SecurityRolesFile
- type SecurityRolesNative
- type SecuritySettings
- type Segment
- type SegmentsRecord
- type SegmentsStats
- type SelectOption
- type SemanticQuery
- type SemanticTextIndexOptions
- type SemanticTextProperty
- type SerbianAnalyzer
- type SerbianNormalizationTokenFilter
- type SerialDifferencingAggregation
- type SerializedClusterState
- type SerializedClusterStateDetail
- type ServiceToken
- type SetPriorityAction
- type SetProcessor
- type SetSecurityUserProcessor
- type Settings
- type SettingsAnalyze
- type SettingsHighlight
- type SettingsQueryString
- type SettingsSearch
- type SettingsSimilarity
- type SettingsSimilarityBm25
- type SettingsSimilarityBoolean
- type SettingsSimilarityDfi
- type SettingsSimilarityDfr
- type SettingsSimilarityIb
- type SettingsSimilarityLmd
- type SettingsSimilarityLmj
- type SettingsSimilarityScripted
- type ShapeFieldQuery
- type ShapeProperty
- type ShapeQuery
- type ShardCommit
- type ShardFailure
- type ShardFileSizeInfo
- type ShardHealthStats
- type ShardLease
- type ShardMigrationStatus
- type ShardPath
- type ShardProfile
- type ShardQueryCache
- type ShardRecovery
- type ShardRetentionLeases
- type ShardRouting
- type ShardSegmentRouting
- type ShardSequenceNumber
- type ShardStatistics
- type ShardStore
- type ShardStoreException
- type ShardStoreIndex
- type ShardStoreNode
- type ShardStoreWrapper
- type ShardsAvailabilityIndicator
- type ShardsAvailabilityIndicatorDetails
- type ShardsCapacityIndicator
- type ShardsCapacityIndicatorDetails
- type ShardsCapacityIndicatorTierDetail
- type ShardsRecord
- type ShardsSegment
- type ShardsStatsSummary
- type ShardsStatsSummaryItem
- type ShardsTotalStats
- type Shared
- type SharedFileSystemRepository
- type SharedFileSystemRepositorySettings
- type ShingleTokenFilter
- type ShortNumberProperty
- type ShrinkAction
- type SignificantLongTermsAggregate
- type SignificantLongTermsBucket
- type SignificantStringTermsAggregate
- type SignificantStringTermsBucket
- type SignificantTermsAggregation
- type SignificantTextAggregation
- type SimpleAnalyzer
- type SimpleMovingAverageAggregation
- type SimplePatternSplitTokenizer
- type SimplePatternTokenizer
- type SimpleQueryStringFlags
- type SimpleQueryStringQuery
- type SimpleValueAggregate
- type SimulateDocumentResult
- type SimulateIngestDocumentResult
- type SimulatedActions
- type SizeField
- type SizeHttpHistogram
- type SlackAction
- type SlackAttachment
- type SlackAttachmentField
- type SlackDynamicAttachment
- type SlackMessage
- type SlackResult
- type SlicedScroll
- type Slices
- type Slm
- type SlmIndicator
- type SlmIndicatorDetails
- type SlmIndicatorUnhealthyPolicies
- type SlowlogSettings
- type SlowlogTresholdLevels
- type SlowlogTresholds
- type SmoothingModelContainer
- type SnapshotCurrentCounts
- type SnapshotIndexStats
- type SnapshotInfo
- type SnapshotLifecycle
- type SnapshotNodeInfo
- type SnapshotPolicyStats
- type SnapshotResponseItem
- type SnapshotRestore
- type SnapshotShardFailure
- type SnapshotShardsStats
- type SnapshotShardsStatus
- type SnapshotStats
- type SnapshotsRecord
- type SnowballAnalyzer
- type SnowballTokenFilter
- type SoftDeletes
- type SoraniAnalyzer
- type SoraniNormalizationTokenFilter
- type Sort
- type SortCombinations
- type SortOptions
- type SortProcessor
- type SourceConfig
- type SourceConfigParam
- type SourceField
- type SourceFilter
- type SourceIndex
- type SourceOnlyRepository
- type SourceOnlyRepositorySettings
- type SpanContainingQuery
- type SpanFieldMaskingQuery
- type SpanFirstQuery
- type SpanGapQuery
- type SpanMultiTermQuery
- type SpanNearQuery
- type SpanNotQuery
- type SpanOrQuery
- type SpanQuery
- type SpanTermQuery
- type SpanWithinQuery
- type SpanishAnalyzer
- type SparseEmbeddingResult
- type SparseVector
- type SparseVectorIndexOptions
- type SparseVectorProperty
- type SparseVectorQuery
- type SparseVectorStats
- type SpecifiedDocument
- type SplitProcessor
- type Sql
- type Ssl
- type StagnatingBackingIndices
- type StandardAnalyzer
- type StandardDeviationBounds
- type StandardDeviationBoundsAsString
- type StandardRetriever
- type StandardTokenizer
- type Statistics
- type Stats
- type StatsAggregate
- type StatsAggregation
- type StatsBucketAggregate
- type StatsBucketAggregation
- type Status
- type StatusError
- type StatusInProgress
- type StemmerOverrideTokenFilter
- type StemmerTokenFilter
- type StepKey
- type StopAnalyzer
- type StopTokenFilter
- type StopWords
- type Storage
- type StoreStats
- type StoredScript
- type StreamResult
- type StringRareTermsAggregate
- type StringRareTermsBucket
- type StringStatsAggregate
- type StringStatsAggregation
- type StringTermsAggregate
- type StringTermsBucket
- type StringifiedEpochTimeUnitMillis
- type StringifiedEpochTimeUnitSeconds
- type StringifiedVersionNumber
- type Stringifiedboolean
- type Stringifieddouble
- type Stringifiedinteger
- type StupidBackoffSmoothingModel
- type Suggest
- type SuggestContext
- type SuggestFuzziness
- type Suggester
- type SumAggregate
- type SumAggregation
- type SumBucketAggregation
- type Summary
- type SummaryInfo
- type SwedishAnalyzer
- type SyncContainer
- type SyncJobConnectorReference
- type SyncRulesFeature
- type SynonymGraphTokenFilter
- type SynonymRule
- type SynonymRuleRead
- type SynonymTokenFilter
- type SynonymsSetItem
- type SynonymsStats
- type TDigest
- type TDigestPercentileRanksAggregate
- type TDigestPercentilesAggregate
- type TTestAggregate
- type TTestAggregation
- type TableValuesContainer
- type TableValuesIntegerValue
- type TableValuesKeywordValue
- type TableValuesLongDouble
- type TableValuesLongValue
- type TargetMeanEncodingPreprocessor
- type TaskFailure
- type TaskId
- type TaskInfo
- type TaskInfos
- type TasksRecord
- type Template
- type TemplateConfig
- type TemplateMapping
- type TemplatesRecord
- type Term
- type TermQuery
- type TermRangeQuery
- type TermSuggest
- type TermSuggestOption
- type TermSuggester
- type TermVector
- type TermVectorsFilter
- type TermVectorsResult
- type TermVectorsToken
- type TerminateProcessor
- type TermsAggregation
- type TermsExclude
- type TermsGrouping
- type TermsInclude
- type TermsLookup
- type TermsPartition
- type TermsQuery
- type TermsQueryField
- type TermsSetQuery
- type TestPopulation
- type TextClassificationInferenceOptions
- type TextClassificationInferenceUpdateOptions
- type TextEmbedding
- type TextEmbeddingByteResult
- type TextEmbeddingInferenceOptions
- type TextEmbeddingInferenceUpdateOptions
- type TextEmbeddingResult
- type TextExpansionInferenceOptions
- type TextExpansionInferenceUpdateOptions
- type TextExpansionQuery
- type TextIndexPrefixes
- type TextProperty
- type TextSimilarityReranker
- type TextToAnalyze
- type ThaiAnalyzer
- type ThaiTokenizer
- type ThreadCount
- type ThreadPoolRecord
- type ThrottleState
- type TimeHttpHistogram
- type TimeOfMonth
- type TimeOfWeek
- type TimeOfYear
- type TimeSeriesAggregate
- type TimeSeriesAggregation
- type TimeSeriesBucket
- type TimeSync
- type TimingStats
- type TokenCountProperty
- type TokenDetail
- type TokenFilter
- type TokenFilterDefinition
- type TokenPruningConfig
- type TokenizationConfigContainer
- type Tokenizer
- type TokenizerDefinition
- type ToolCall
- type ToolCallFunction
- type TopClassEntry
- type TopHit
- type TopHitsAggregate
- type TopHitsAggregation
- type TopLeftBottomRightGeoBounds
- type TopMetrics
- type TopMetricsAggregate
- type TopMetricsAggregation
- type TopMetricsValue
- type TopRightBottomLeftGeoBounds
- type TotalFeatureImportance
- type TotalFeatureImportanceClass
- type TotalFeatureImportanceStatistics
- type TotalHits
- type TotalUserProfiles
- type TrackHits
- type TrainedModel
- type TrainedModelAssignment
- type TrainedModelAssignmentRoutingStateAndReason
- type TrainedModelAssignmentRoutingTable
- type TrainedModelAssignmentTaskParameters
- type TrainedModelConfig
- type TrainedModelConfigInput
- type TrainedModelConfigMetadata
- type TrainedModelDeploymentAllocationStatus
- type TrainedModelDeploymentNodesStats
- type TrainedModelDeploymentStats
- type TrainedModelEntities
- type TrainedModelInferenceClassImportance
- type TrainedModelInferenceFeatureImportance
- type TrainedModelInferenceStats
- type TrainedModelLocation
- type TrainedModelLocationIndex
- type TrainedModelPrefixStrings
- type TrainedModelSizeStats
- type TrainedModelStats
- type TrainedModelTree
- type TrainedModelTreeNode
- type TrainedModelsRecord
- type TransformAuthorization
- type TransformContainer
- type TransformDestination
- type TransformHealthIssue
- type TransformIndexerStats
- type TransformProgress
- type TransformSource
- type TransformStats
- type TransformStatsHealth
- type TransformSummary
- type TransformsRecord
- type Translog
- type TranslogRetention
- type TranslogStats
- type TranslogStatus
- type Transport
- type TransportHistogram
- type TriggerContainer
- type TriggerEventContainer
- type TriggerEventResult
- type TrimProcessor
- type TrimTokenFilter
- type TruncateTokenFilter
- type TurkishAnalyzer
- type TypeFieldMappings
- type TypeMapping
- type TypeQuery
- type UaxEmailUrlTokenizer
- type UnassignedInformation
- type UniqueTokenFilter
- type UnmappedRareTermsAggregate
- type UnmappedSamplerAggregate
- type UnmappedSignificantTermsAggregate
- type UnmappedTermsAggregate
- type UnratedDocument
- type UnsignedLongNumberProperty
- type UntypedDecayFunction
- type UntypedDistanceFeatureQuery
- type UntypedRangeQuery
- type UpdateAction
- type UpdateByQueryRethrottleNode
- type UpdateOperation
- type UppercaseProcessor
- type UppercaseTokenFilter
- type UriPartsProcessor
- type UrlDecodeProcessor
- type UsagePhase
- type UsagePhases
- type UsageStatsIndex
- type UsageStatsShards
- type User
- type UserAgentProcessor
- type UserIndicesPrivileges
- type UserProfile
- type UserProfileHitMetadata
- type UserProfileUser
- type UserProfileWithMetadata
- type UserQueryContainer
- type UserRealm
- type Validation
- type ValidationLoss
- type ValueCountAggregate
- type ValueCountAggregation
- type VariableWidthHistogramAggregate
- type VariableWidthHistogramAggregation
- type VariableWidthHistogramBucket
- type Vector
- type VerifyIndex
- type VersionProperty
- type Vertex
- type VertexDefinition
- type VertexInclude
- type Vocabulary
- type Void
- type VoyageAIServiceSettings
- type VoyageAITaskSettings
- type WaitForActiveShards
- type WaitForNodes
- type WaitForSnapshotAction
- type WarmerStats
- type Watch
- type WatchRecord
- type WatchRecordQueuedStats
- type WatchRecordStats
- type WatchStatus
- type Watcher
- type WatcherAction
- type WatcherActionTotals
- type WatcherActions
- type WatcherCondition
- type WatcherInput
- type WatcherNodeStats
- type WatcherStatusActions
- type WatcherWatch
- type WatcherWatchTrigger
- type WatcherWatchTriggerSchedule
- type WatsonxServiceSettings
- type Web
- type WebhookAction
- type WebhookResult
- type WeightedAverageAggregation
- type WeightedAverageValue
- type WeightedAvgAggregate
- type WeightedTokensQuery
- type Weights
- type WhitespaceAnalyzer
- type WhitespaceTokenizer
- type WildcardProperty
- type WildcardQuery
- type WktGeoBounds
- type WordDelimiterGraphTokenFilter
- type WordDelimiterTokenFilter
- type WrapperQuery
- type WriteResponseBase
- type WriteSummaryInfo
- type XlmRobertaTokenizationConfig
- type XpackDatafeed
- type XpackFeature
- type XpackFeatures
- type XpackQuery
- type XpackRealm
- type XpackRoleMapping
- type XpackRuntimeFieldTypes
- type ZeroShotClassificationInferenceOptions
- type ZeroShotClassificationInferenceUpdateOptions
Constants¶
This section is empty.
Variables¶
This section is empty.
Functions¶
This section is empty.
Types¶
typeAccess¶added inv8.17.0
type Access struct {// Replication A list of indices permission entries for cross-cluster replication.Replication []ReplicationAccess `json:"replication,omitempty"`// Search A list of indices permission entries for cross-cluster search.Search []SearchAccess `json:"search,omitempty"`}Access type.
typeAcknowledgeState¶
type AcknowledgeState struct {Stateacknowledgementoptions.AcknowledgementOptions `json:"state"`TimestampDateTime `json:"timestamp"`}AcknowledgeState type.
funcNewAcknowledgeState¶added inv8.5.0
func NewAcknowledgeState() *AcknowledgeState
NewAcknowledgeState returns a AcknowledgeState.
func (*AcknowledgeState)UnmarshalJSON¶added inv8.7.1
func (s *AcknowledgeState) UnmarshalJSON(data []byte)error
typeAcknowledgement¶
Acknowledgement type.
funcNewAcknowledgement¶added inv8.5.0
func NewAcknowledgement() *Acknowledgement
NewAcknowledgement returns a Acknowledgement.
func (*Acknowledgement)UnmarshalJSON¶added inv8.9.0
func (s *Acknowledgement) UnmarshalJSON(data []byte)error
typeActionStatus¶
type ActionStatus struct {AckAcknowledgeState `json:"ack"`LastExecution *ExecutionState `json:"last_execution,omitempty"`LastSuccessfulExecution *ExecutionState `json:"last_successful_execution,omitempty"`LastThrottle *ThrottleState `json:"last_throttle,omitempty"`}ActionStatus type.
funcNewActionStatus¶added inv8.5.0
func NewActionStatus() *ActionStatus
NewActionStatus returns a ActionStatus.
typeActivationState¶
ActivationState type.
funcNewActivationState¶added inv8.5.0
func NewActivationState() *ActivationState
NewActivationState returns a ActivationState.
func (*ActivationState)UnmarshalJSON¶added inv8.7.1
func (s *ActivationState) UnmarshalJSON(data []byte)error
typeActivationStatus¶
type ActivationStatus struct {ActionsWatcherStatusActions `json:"actions"`StateActivationState `json:"state"`Versionint64 `json:"version"`}ActivationStatus type.
funcNewActivationStatus¶added inv8.5.0
func NewActivationStatus() *ActivationStatus
NewActivationStatus returns a ActivationStatus.
func (*ActivationStatus)UnmarshalJSON¶added inv8.7.1
func (s *ActivationStatus) UnmarshalJSON(data []byte)error
typeAdaptiveAllocations¶added inv8.18.0
type AdaptiveAllocations struct {// Enabled Turn on `adaptive_allocations`.Enabled *bool `json:"enabled,omitempty"`// MaxNumberOfAllocations The maximum number of allocations to scale to.// If set, it must be greater than or equal to `min_number_of_allocations`.MaxNumberOfAllocations *int `json:"max_number_of_allocations,omitempty"`// MinNumberOfAllocations The minimum number of allocations to scale to.// If set, it must be greater than or equal to 0.// If not defined, the deployment scales to 0.MinNumberOfAllocations *int `json:"min_number_of_allocations,omitempty"`}AdaptiveAllocations type.
funcNewAdaptiveAllocations¶added inv8.18.0
func NewAdaptiveAllocations() *AdaptiveAllocations
NewAdaptiveAllocations returns a AdaptiveAllocations.
func (*AdaptiveAllocations)UnmarshalJSON¶added inv8.18.0
func (s *AdaptiveAllocations) UnmarshalJSON(data []byte)error
typeAdaptiveAllocationsSettings¶added inv8.17.0
type AdaptiveAllocationsSettings struct {// Enabled If true, adaptive_allocations is enabledEnabledbool `json:"enabled"`// MaxNumberOfAllocations Specifies the maximum number of allocations to scale to.// If set, it must be greater than or equal to min_number_of_allocations.MaxNumberOfAllocations *int `json:"max_number_of_allocations,omitempty"`// MinNumberOfAllocations Specifies the minimum number of allocations to scale to.// If set, it must be greater than or equal to 0.// If not defined, the deployment scales to 0.MinNumberOfAllocations *int `json:"min_number_of_allocations,omitempty"`}AdaptiveAllocationsSettings type.
funcNewAdaptiveAllocationsSettings¶added inv8.17.0
func NewAdaptiveAllocationsSettings() *AdaptiveAllocationsSettings
NewAdaptiveAllocationsSettings returns a AdaptiveAllocationsSettings.
func (*AdaptiveAllocationsSettings)UnmarshalJSON¶added inv8.17.0
func (s *AdaptiveAllocationsSettings) UnmarshalJSON(data []byte)error
typeAdaptiveSelection¶
type AdaptiveSelection struct {// AvgQueueSize The exponentially weighted moving average queue size of search requests on// the keyed node.AvgQueueSize *int64 `json:"avg_queue_size,omitempty"`// AvgResponseTime The exponentially weighted moving average response time of search requests on// the keyed node.AvgResponseTimeDuration `json:"avg_response_time,omitempty"`// AvgResponseTimeNs The exponentially weighted moving average response time, in nanoseconds, of// search requests on the keyed node.AvgResponseTimeNs *int64 `json:"avg_response_time_ns,omitempty"`// AvgServiceTime The exponentially weighted moving average service time of search requests on// the keyed node.AvgServiceTimeDuration `json:"avg_service_time,omitempty"`// AvgServiceTimeNs The exponentially weighted moving average service time, in nanoseconds, of// search requests on the keyed node.AvgServiceTimeNs *int64 `json:"avg_service_time_ns,omitempty"`// OutgoingSearches The number of outstanding search requests to the keyed node from the node// these stats are for.OutgoingSearches *int64 `json:"outgoing_searches,omitempty"`// Rank The rank of this node; used for shard selection when routing search requests.Rank *string `json:"rank,omitempty"`}AdaptiveSelection type.
funcNewAdaptiveSelection¶added inv8.5.0
func NewAdaptiveSelection() *AdaptiveSelection
NewAdaptiveSelection returns a AdaptiveSelection.
func (*AdaptiveSelection)UnmarshalJSON¶added inv8.7.1
func (s *AdaptiveSelection) UnmarshalJSON(data []byte)error
typeAddAction¶
type AddAction struct {// Alias Alias for the action.// Index alias names support date math.Alias *string `json:"alias,omitempty"`// Aliases Aliases for the action.// Index alias names support date math.Aliases []string `json:"aliases,omitempty"`// Filter Query used to limit documents the alias can access.Filter *Query `json:"filter,omitempty"`// Index Data stream or index for the action.// Supports wildcards (`*`).Index *string `json:"index,omitempty"`// IndexRouting Value used to route indexing operations to a specific shard.// If specified, this overwrites the `routing` value for indexing operations.// Data stream aliases don’t support this parameter.IndexRouting *string `json:"index_routing,omitempty"`// Indices Data streams or indices for the action.// Supports wildcards (`*`).Indices []string `json:"indices,omitempty"`// IsHidden If `true`, the alias is hidden.IsHidden *bool `json:"is_hidden,omitempty"`// IsWriteIndex If `true`, sets the write index or data stream for the alias.IsWriteIndex *bool `json:"is_write_index,omitempty"`// MustExist If `true`, the alias must exist to perform the action.MustExist *bool `json:"must_exist,omitempty"`// Routing Value used to route indexing and search operations to a specific shard.// Data stream aliases don’t support this parameter.Routing *string `json:"routing,omitempty"`// SearchRouting Value used to route search operations to a specific shard.// If specified, this overwrites the `routing` value for search operations.// Data stream aliases don’t support this parameter.SearchRouting *string `json:"search_routing,omitempty"`}AddAction type.
func (*AddAction)UnmarshalJSON¶added inv8.7.1
typeAdjacencyMatrixAggregate¶
type AdjacencyMatrixAggregate struct {BucketsBucketsAdjacencyMatrixBucket `json:"buckets"`MetaMetadata `json:"meta,omitempty"`}AdjacencyMatrixAggregate type.
funcNewAdjacencyMatrixAggregate¶added inv8.5.0
func NewAdjacencyMatrixAggregate() *AdjacencyMatrixAggregate
NewAdjacencyMatrixAggregate returns a AdjacencyMatrixAggregate.
func (*AdjacencyMatrixAggregate)UnmarshalJSON¶added inv8.7.0
func (s *AdjacencyMatrixAggregate) UnmarshalJSON(data []byte)error
typeAdjacencyMatrixAggregation¶
type AdjacencyMatrixAggregation struct {// Filters Filters used to create buckets.// At least one filter is required.Filters map[string]Query `json:"filters,omitempty"`// Separator Separator used to concatenate filter names. Defaults to &.Separator *string `json:"separator,omitempty"`}AdjacencyMatrixAggregation type.
funcNewAdjacencyMatrixAggregation¶added inv8.5.0
func NewAdjacencyMatrixAggregation() *AdjacencyMatrixAggregation
NewAdjacencyMatrixAggregation returns a AdjacencyMatrixAggregation.
func (*AdjacencyMatrixAggregation)UnmarshalJSON¶added inv8.7.1
func (s *AdjacencyMatrixAggregation) UnmarshalJSON(data []byte)error
typeAdjacencyMatrixBucket¶
type AdjacencyMatrixBucket struct {Aggregations map[string]Aggregate `json:"-"`DocCountint64 `json:"doc_count"`Keystring `json:"key"`}AdjacencyMatrixBucket type.
funcNewAdjacencyMatrixBucket¶added inv8.5.0
func NewAdjacencyMatrixBucket() *AdjacencyMatrixBucket
NewAdjacencyMatrixBucket returns a AdjacencyMatrixBucket.
func (AdjacencyMatrixBucket)MarshalJSON¶
func (sAdjacencyMatrixBucket) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
func (*AdjacencyMatrixBucket)UnmarshalJSON¶added inv8.7.0
func (s *AdjacencyMatrixBucket) UnmarshalJSON(data []byte)error
typeAggregate¶
type Aggregateany
Aggregate holds the union for the following types:
CardinalityAggregateHdrPercentilesAggregateHdrPercentileRanksAggregateTDigestPercentilesAggregateTDigestPercentileRanksAggregatePercentilesBucketAggregateMedianAbsoluteDeviationAggregateMinAggregateMaxAggregateSumAggregateAvgAggregateWeightedAvgAggregateValueCountAggregateSimpleValueAggregateDerivativeAggregateBucketMetricValueAggregateStatsAggregateStatsBucketAggregateExtendedStatsAggregateExtendedStatsBucketAggregateGeoBoundsAggregateGeoCentroidAggregateHistogramAggregateDateHistogramAggregateAutoDateHistogramAggregateVariableWidthHistogramAggregateStringTermsAggregateLongTermsAggregateDoubleTermsAggregateUnmappedTermsAggregateLongRareTermsAggregateStringRareTermsAggregateUnmappedRareTermsAggregateMultiTermsAggregateMissingAggregateNestedAggregateReverseNestedAggregateGlobalAggregateFilterAggregateChildrenAggregateParentAggregateSamplerAggregateUnmappedSamplerAggregateGeoHashGridAggregateGeoTileGridAggregateGeoHexGridAggregateRangeAggregateDateRangeAggregateGeoDistanceAggregateIpRangeAggregateIpPrefixAggregateFiltersAggregateAdjacencyMatrixAggregateSignificantLongTermsAggregateSignificantStringTermsAggregateUnmappedSignificantTermsAggregateCompositeAggregateFrequentItemSetsAggregateTimeSeriesAggregateScriptedMetricAggregateTopHitsAggregateInferenceAggregateStringStatsAggregateBoxPlotAggregateTopMetricsAggregateTTestAggregateRateAggregateCumulativeCardinalityAggregateMatrixStatsAggregateGeoLineAggregate
typeAggregateMetricDoubleProperty¶
type AggregateMetricDoubleProperty struct {DefaultMetricstring `json:"default_metric"`Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`Fields map[string]Property `json:"fields,omitempty"`IgnoreAbove *int `json:"ignore_above,omitempty"`IgnoreMalformed *bool `json:"ignore_malformed,omitempty"`// Meta Metadata about the field.Meta map[string]string `json:"meta,omitempty"`Metrics []string `json:"metrics"`Properties map[string]Property `json:"properties,omitempty"`SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`TimeSeriesMetric *timeseriesmetrictype.TimeSeriesMetricType `json:"time_series_metric,omitempty"`Typestring `json:"type,omitempty"`}AggregateMetricDoubleProperty type.
funcNewAggregateMetricDoubleProperty¶added inv8.5.0
func NewAggregateMetricDoubleProperty() *AggregateMetricDoubleProperty
NewAggregateMetricDoubleProperty returns a AggregateMetricDoubleProperty.
func (AggregateMetricDoubleProperty)MarshalJSON¶added inv8.9.0
func (sAggregateMetricDoubleProperty) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*AggregateMetricDoubleProperty)UnmarshalJSON¶added inv8.7.0
func (s *AggregateMetricDoubleProperty) UnmarshalJSON(data []byte)error
typeAggregateOrder¶
type AggregateOrderany
AggregateOrder holds the union for the following types:
map[string]sortorder.SortOrder[]map[string]sortorder.SortOrder
typeAggregateOutput¶
type AggregateOutput struct {Exponent *Weights `json:"exponent,omitempty"`LogisticRegression *Weights `json:"logistic_regression,omitempty"`WeightedMode *Weights `json:"weighted_mode,omitempty"`WeightedSum *Weights `json:"weighted_sum,omitempty"`}AggregateOutput type.
funcNewAggregateOutput¶added inv8.5.0
func NewAggregateOutput() *AggregateOutput
NewAggregateOutput returns a AggregateOutput.
typeAggregationBreakdown¶
type AggregationBreakdown struct {BuildAggregationint64 `json:"build_aggregation"`BuildAggregationCountint64 `json:"build_aggregation_count"`BuildLeafCollectorint64 `json:"build_leaf_collector"`BuildLeafCollectorCountint64 `json:"build_leaf_collector_count"`Collectint64 `json:"collect"`CollectCountint64 `json:"collect_count"`Initializeint64 `json:"initialize"`InitializeCountint64 `json:"initialize_count"`PostCollection *int64 `json:"post_collection,omitempty"`PostCollectionCount *int64 `json:"post_collection_count,omitempty"`Reduceint64 `json:"reduce"`ReduceCountint64 `json:"reduce_count"`}AggregationBreakdown type.
funcNewAggregationBreakdown¶added inv8.5.0
func NewAggregationBreakdown() *AggregationBreakdown
NewAggregationBreakdown returns a AggregationBreakdown.
func (*AggregationBreakdown)UnmarshalJSON¶added inv8.7.1
func (s *AggregationBreakdown) UnmarshalJSON(data []byte)error
typeAggregationProfile¶
type AggregationProfile struct {BreakdownAggregationBreakdown `json:"breakdown"`Children []AggregationProfile `json:"children,omitempty"`Debug *AggregationProfileDebug `json:"debug,omitempty"`Descriptionstring `json:"description"`TimeInNanosint64 `json:"time_in_nanos"`Typestring `json:"type"`}AggregationProfile type.
funcNewAggregationProfile¶added inv8.5.0
func NewAggregationProfile() *AggregationProfile
NewAggregationProfile returns a AggregationProfile.
func (*AggregationProfile)UnmarshalJSON¶added inv8.7.1
func (s *AggregationProfile) UnmarshalJSON(data []byte)error
typeAggregationProfileDebug¶
type AggregationProfileDebug struct {BruteForceUsed *int `json:"brute_force_used,omitempty"`BuiltBuckets *int `json:"built_buckets,omitempty"`CharsFetched *int `json:"chars_fetched,omitempty"`CollectAnalyzedCount *int `json:"collect_analyzed_count,omitempty"`CollectAnalyzedNs *int `json:"collect_analyzed_ns,omitempty"`CollectionStrategy *string `json:"collection_strategy,omitempty"`DeferredAggregators []string `json:"deferred_aggregators,omitempty"`Delegate *string `json:"delegate,omitempty"`DelegateDebug *AggregationProfileDebug `json:"delegate_debug,omitempty"`DynamicPruningAttempted *int `json:"dynamic_pruning_attempted,omitempty"`DynamicPruningUsed *int `json:"dynamic_pruning_used,omitempty"`EmptyCollectorsUsed *int `json:"empty_collectors_used,omitempty"`ExtractCount *int `json:"extract_count,omitempty"`ExtractNs *int `json:"extract_ns,omitempty"`Filters []AggregationProfileDelegateDebugFilter `json:"filters,omitempty"`HasFilter *bool `json:"has_filter,omitempty"`MapReducer *string `json:"map_reducer,omitempty"`NumericCollectorsUsed *int `json:"numeric_collectors_used,omitempty"`OrdinalsCollectorsOverheadTooHigh *int `json:"ordinals_collectors_overhead_too_high,omitempty"`OrdinalsCollectorsUsed *int `json:"ordinals_collectors_used,omitempty"`ResultStrategy *string `json:"result_strategy,omitempty"`SegmentsCollected *int `json:"segments_collected,omitempty"`SegmentsCounted *int `json:"segments_counted,omitempty"`SegmentsWithDeletedDocs *int `json:"segments_with_deleted_docs,omitempty"`SegmentsWithDocCountField *int `json:"segments_with_doc_count_field,omitempty"`SegmentsWithMultiValuedOrds *int `json:"segments_with_multi_valued_ords,omitempty"`SegmentsWithSingleValuedOrds *int `json:"segments_with_single_valued_ords,omitempty"`SkippedDueToNoData *int `json:"skipped_due_to_no_data,omitempty"`StringHashingCollectorsUsed *int `json:"string_hashing_collectors_used,omitempty"`SurvivingBuckets *int `json:"surviving_buckets,omitempty"`TotalBuckets *int `json:"total_buckets,omitempty"`ValuesFetched *int `json:"values_fetched,omitempty"`}AggregationProfileDebug type.
funcNewAggregationProfileDebug¶added inv8.5.0
func NewAggregationProfileDebug() *AggregationProfileDebug
NewAggregationProfileDebug returns a AggregationProfileDebug.
func (*AggregationProfileDebug)UnmarshalJSON¶added inv8.7.1
func (s *AggregationProfileDebug) UnmarshalJSON(data []byte)error
typeAggregationProfileDelegateDebugFilter¶
type AggregationProfileDelegateDebugFilter struct {Query *string `json:"query,omitempty"`ResultsFromMetadata *int `json:"results_from_metadata,omitempty"`SegmentsCountedInConstantTime *int `json:"segments_counted_in_constant_time,omitempty"`SpecializedFor *string `json:"specialized_for,omitempty"`}AggregationProfileDelegateDebugFilter type.
funcNewAggregationProfileDelegateDebugFilter¶added inv8.5.0
func NewAggregationProfileDelegateDebugFilter() *AggregationProfileDelegateDebugFilter
NewAggregationProfileDelegateDebugFilter returns a AggregationProfileDelegateDebugFilter.
func (*AggregationProfileDelegateDebugFilter)UnmarshalJSON¶added inv8.7.1
func (s *AggregationProfileDelegateDebugFilter) UnmarshalJSON(data []byte)error
typeAggregationRange¶
type AggregationRange struct {// From Start of the range (inclusive).From *Float64 `json:"from,omitempty"`// Key Custom key to return the range with.Key *string `json:"key,omitempty"`// To End of the range (exclusive).To *Float64 `json:"to,omitempty"`}AggregationRange type.
funcNewAggregationRange¶added inv8.5.0
func NewAggregationRange() *AggregationRange
NewAggregationRange returns a AggregationRange.
func (*AggregationRange)UnmarshalJSON¶added inv8.7.1
func (s *AggregationRange) UnmarshalJSON(data []byte)error
typeAggregations¶added inv8.5.0
type Aggregations struct {AdditionalAggregationsProperty map[string]json.RawMessage `json:"-"`// AdjacencyMatrix A bucket aggregation returning a form of adjacency matrix.// The request provides a collection of named filter expressions, similar to the// `filters` aggregation.// Each bucket in the response represents a non-empty cell in the matrix of// intersecting filters.AdjacencyMatrix *AdjacencyMatrixAggregation `json:"adjacency_matrix,omitempty"`// Aggregations Sub-aggregations for this aggregation.// Only applies to bucket aggregations.Aggregations map[string]Aggregations `json:"aggregations,omitempty"`// AutoDateHistogram A multi-bucket aggregation similar to the date histogram, except instead of// providing an interval to use as the width of each bucket, a target number of// buckets is provided.AutoDateHistogram *AutoDateHistogramAggregation `json:"auto_date_histogram,omitempty"`// Avg A single-value metrics aggregation that computes the average of numeric// values that are extracted from the aggregated documents.Avg *AverageAggregation `json:"avg,omitempty"`// AvgBucket A sibling pipeline aggregation which calculates the mean value of a specified// metric in a sibling aggregation.// The specified metric must be numeric and the sibling aggregation must be a// multi-bucket aggregation.AvgBucket *AverageBucketAggregation `json:"avg_bucket,omitempty"`// Boxplot A metrics aggregation that computes a box plot of numeric values extracted// from the aggregated documents.Boxplot *BoxplotAggregation `json:"boxplot,omitempty"`// BucketCorrelation A sibling pipeline aggregation which runs a correlation function on the// configured sibling multi-bucket aggregation.BucketCorrelation *BucketCorrelationAggregation `json:"bucket_correlation,omitempty"`// BucketCountKsTest A sibling pipeline aggregation which runs a two sample Kolmogorov–Smirnov// test ("K-S test") against a provided distribution and the distribution// implied by the documents counts in the configured sibling aggregation.BucketCountKsTest *BucketKsAggregation `json:"bucket_count_ks_test,omitempty"`// BucketScript A parent pipeline aggregation which runs a script which can perform per// bucket computations on metrics in the parent multi-bucket aggregation.BucketScript *BucketScriptAggregation `json:"bucket_script,omitempty"`// BucketSelector A parent pipeline aggregation which runs a script to determine whether the// current bucket will be retained in the parent multi-bucket aggregation.BucketSelector *BucketSelectorAggregation `json:"bucket_selector,omitempty"`// BucketSort A parent pipeline aggregation which sorts the buckets of its parent// multi-bucket aggregation.BucketSort *BucketSortAggregation `json:"bucket_sort,omitempty"`// Cardinality A single-value metrics aggregation that calculates an approximate count of// distinct values.Cardinality *CardinalityAggregation `json:"cardinality,omitempty"`// CategorizeText A multi-bucket aggregation that groups semi-structured text into buckets.CategorizeText *CategorizeTextAggregation `json:"categorize_text,omitempty"`// Children A single bucket aggregation that selects child documents that have the// specified type, as defined in a `join` field.Children *ChildrenAggregation `json:"children,omitempty"`// Composite A multi-bucket aggregation that creates composite buckets from different// sources.// Unlike the other multi-bucket aggregations, you can use the `composite`// aggregation to paginate *all* buckets from a multi-level aggregation// efficiently.Composite *CompositeAggregation `json:"composite,omitempty"`// CumulativeCardinality A parent pipeline aggregation which calculates the cumulative cardinality in// a parent `histogram` or `date_histogram` aggregation.CumulativeCardinality *CumulativeCardinalityAggregation `json:"cumulative_cardinality,omitempty"`// CumulativeSum A parent pipeline aggregation which calculates the cumulative sum of a// specified metric in a parent `histogram` or `date_histogram` aggregation.CumulativeSum *CumulativeSumAggregation `json:"cumulative_sum,omitempty"`// DateHistogram A multi-bucket values source based aggregation that can be applied on date// values or date range values extracted from the documents.// It dynamically builds fixed size (interval) buckets over the values.DateHistogram *DateHistogramAggregation `json:"date_histogram,omitempty"`// DateRange A multi-bucket value source based aggregation that enables the user to define// a set of date ranges - each representing a bucket.DateRange *DateRangeAggregation `json:"date_range,omitempty"`// Derivative A parent pipeline aggregation which calculates the derivative of a specified// metric in a parent `histogram` or `date_histogram` aggregation.Derivative *DerivativeAggregation `json:"derivative,omitempty"`// DiversifiedSampler A filtering aggregation used to limit any sub aggregations' processing to a// sample of the top-scoring documents.// Similar to the `sampler` aggregation, but adds the ability to limit the// number of matches that share a common value.DiversifiedSampler *DiversifiedSamplerAggregation `json:"diversified_sampler,omitempty"`// ExtendedStats A multi-value metrics aggregation that computes stats over numeric values// extracted from the aggregated documents.ExtendedStats *ExtendedStatsAggregation `json:"extended_stats,omitempty"`// ExtendedStatsBucket A sibling pipeline aggregation which calculates a variety of stats across all// bucket of a specified metric in a sibling aggregation.ExtendedStatsBucket *ExtendedStatsBucketAggregation `json:"extended_stats_bucket,omitempty"`// Filter A single bucket aggregation that narrows the set of documents to those that// match a query.Filter *Query `json:"filter,omitempty"`// Filters A multi-bucket aggregation where each bucket contains the documents that// match a query.Filters *FiltersAggregation `json:"filters,omitempty"`// FrequentItemSets A bucket aggregation which finds frequent item sets, a form of association// rules mining that identifies items that often occur together.FrequentItemSets *FrequentItemSetsAggregation `json:"frequent_item_sets,omitempty"`// GeoBounds A metric aggregation that computes the geographic bounding box containing all// values for a Geopoint or Geoshape field.GeoBounds *GeoBoundsAggregation `json:"geo_bounds,omitempty"`// GeoCentroid A metric aggregation that computes the weighted centroid from all coordinate// values for geo fields.GeoCentroid *GeoCentroidAggregation `json:"geo_centroid,omitempty"`// GeoDistance A multi-bucket aggregation that works on `geo_point` fields.// Evaluates the distance of each document value from an origin point and// determines the buckets it belongs to, based on ranges defined in the request.GeoDistance *GeoDistanceAggregation `json:"geo_distance,omitempty"`// GeoLine Aggregates all `geo_point` values within a bucket into a `LineString` ordered// by the chosen sort field.GeoLine *GeoLineAggregation `json:"geo_line,omitempty"`// GeohashGrid A multi-bucket aggregation that groups `geo_point` and `geo_shape` values// into buckets that represent a grid.// Each cell is labeled using a geohash which is of user-definable precision.GeohashGrid *GeoHashGridAggregation `json:"geohash_grid,omitempty"`// GeohexGrid A multi-bucket aggregation that groups `geo_point` and `geo_shape` values// into buckets that represent a grid.// Each cell corresponds to a H3 cell index and is labeled using the H3Index// representation.GeohexGrid *GeohexGridAggregation `json:"geohex_grid,omitempty"`// GeotileGrid A multi-bucket aggregation that groups `geo_point` and `geo_shape` values// into buckets that represent a grid.// Each cell corresponds to a map tile as used by many online map sites.GeotileGrid *GeoTileGridAggregation `json:"geotile_grid,omitempty"`// Global Defines a single bucket of all the documents within the search execution// context.// This context is defined by the indices and the document types you’re// searching on, but is not influenced by the search query itself.Global *GlobalAggregation `json:"global,omitempty"`// Histogram A multi-bucket values source based aggregation that can be applied on numeric// values or numeric range values extracted from the documents.// It dynamically builds fixed size (interval) buckets over the values.Histogram *HistogramAggregation `json:"histogram,omitempty"`// Inference A parent pipeline aggregation which loads a pre-trained model and performs// inference on the collated result fields from the parent bucket aggregation.Inference *InferenceAggregation `json:"inference,omitempty"`// IpPrefix A bucket aggregation that groups documents based on the network or// sub-network of an IP address.IpPrefix *IpPrefixAggregation `json:"ip_prefix,omitempty"`// IpRange A multi-bucket value source based aggregation that enables the user to define// a set of IP ranges - each representing a bucket.IpRange *IpRangeAggregation `json:"ip_range,omitempty"`Line *GeoLineAggregation `json:"line,omitempty"`// MatrixStats A numeric aggregation that computes the following statistics over a set of// document fields: `count`, `mean`, `variance`, `skewness`, `kurtosis`,// `covariance`, and `covariance`.MatrixStats *MatrixStatsAggregation `json:"matrix_stats,omitempty"`// Max A single-value metrics aggregation that returns the maximum value among the// numeric values extracted from the aggregated documents.Max *MaxAggregation `json:"max,omitempty"`// MaxBucket A sibling pipeline aggregation which identifies the bucket(s) with the// maximum value of a specified metric in a sibling aggregation and outputs both// the value and the key(s) of the bucket(s).MaxBucket *MaxBucketAggregation `json:"max_bucket,omitempty"`// MedianAbsoluteDeviation A single-value aggregation that approximates the median absolute deviation of// its search results.MedianAbsoluteDeviation *MedianAbsoluteDeviationAggregation `json:"median_absolute_deviation,omitempty"`MetaMetadata `json:"meta,omitempty"`// Min A single-value metrics aggregation that returns the minimum value among// numeric values extracted from the aggregated documents.Min *MinAggregation `json:"min,omitempty"`// MinBucket A sibling pipeline aggregation which identifies the bucket(s) with the// minimum value of a specified metric in a sibling aggregation and outputs both// the value and the key(s) of the bucket(s).MinBucket *MinBucketAggregation `json:"min_bucket,omitempty"`// Missing A field data based single bucket aggregation, that creates a bucket of all// documents in the current document set context that are missing a field value// (effectively, missing a field or having the configured NULL value set).Missing *MissingAggregation `json:"missing,omitempty"`MovingAvgMovingAverageAggregation `json:"moving_avg,omitempty"`// MovingFn Given an ordered series of data, "slides" a window across the data and runs a// custom script on each window of data.// For convenience, a number of common functions are predefined such as `min`,// `max`, and moving averages.MovingFn *MovingFunctionAggregation `json:"moving_fn,omitempty"`// MovingPercentiles Given an ordered series of percentiles, "slides" a window across those// percentiles and computes cumulative percentiles.MovingPercentiles *MovingPercentilesAggregation `json:"moving_percentiles,omitempty"`// MultiTerms A multi-bucket value source based aggregation where buckets are dynamically// built - one per unique set of values.MultiTerms *MultiTermsAggregation `json:"multi_terms,omitempty"`// Nested A special single bucket aggregation that enables aggregating nested// documents.Nested *NestedAggregation `json:"nested,omitempty"`// Normalize A parent pipeline aggregation which calculates the specific// normalized/rescaled value for a specific bucket value.Normalize *NormalizeAggregation `json:"normalize,omitempty"`// Parent A special single bucket aggregation that selects parent documents that have// the specified type, as defined in a `join` field.Parent *ParentAggregation `json:"parent,omitempty"`// PercentileRanks A multi-value metrics aggregation that calculates one or more percentile// ranks over numeric values extracted from the aggregated documents.PercentileRanks *PercentileRanksAggregation `json:"percentile_ranks,omitempty"`// Percentiles A multi-value metrics aggregation that calculates one or more percentiles// over numeric values extracted from the aggregated documents.Percentiles *PercentilesAggregation `json:"percentiles,omitempty"`// PercentilesBucket A sibling pipeline aggregation which calculates percentiles across all bucket// of a specified metric in a sibling aggregation.PercentilesBucket *PercentilesBucketAggregation `json:"percentiles_bucket,omitempty"`// RandomSampler A single bucket aggregation that randomly includes documents in the// aggregated results.// Sampling provides significant speed improvement at the cost of accuracy.RandomSampler *RandomSamplerAggregation `json:"random_sampler,omitempty"`// Range A multi-bucket value source based aggregation that enables the user to define// a set of ranges - each representing a bucket.Range *RangeAggregation `json:"range,omitempty"`// RareTerms A multi-bucket value source based aggregation which finds "rare" terms —// terms that are at the long-tail of the distribution and are not frequent.RareTerms *RareTermsAggregation `json:"rare_terms,omitempty"`// Rate Calculates a rate of documents or a field in each bucket.// Can only be used inside a `date_histogram` or `composite` aggregation.Rate *RateAggregation `json:"rate,omitempty"`// ReverseNested A special single bucket aggregation that enables aggregating on parent// documents from nested documents.// Should only be defined inside a `nested` aggregation.ReverseNested *ReverseNestedAggregation `json:"reverse_nested,omitempty"`// Sampler A filtering aggregation used to limit any sub aggregations' processing to a// sample of the top-scoring documents.Sampler *SamplerAggregation `json:"sampler,omitempty"`// ScriptedMetric A metric aggregation that uses scripts to provide a metric output.ScriptedMetric *ScriptedMetricAggregation `json:"scripted_metric,omitempty"`// SerialDiff An aggregation that subtracts values in a time series from themselves at// different time lags or periods.SerialDiff *SerialDifferencingAggregation `json:"serial_diff,omitempty"`// SignificantTerms Returns interesting or unusual occurrences of terms in a set.SignificantTerms *SignificantTermsAggregation `json:"significant_terms,omitempty"`// SignificantText Returns interesting or unusual occurrences of free-text terms in a set.SignificantText *SignificantTextAggregation `json:"significant_text,omitempty"`// Stats A multi-value metrics aggregation that computes stats over numeric values// extracted from the aggregated documents.Stats *StatsAggregation `json:"stats,omitempty"`// StatsBucket A sibling pipeline aggregation which calculates a variety of stats across all// bucket of a specified metric in a sibling aggregation.StatsBucket *StatsBucketAggregation `json:"stats_bucket,omitempty"`// StringStats A multi-value metrics aggregation that computes statistics over string values// extracted from the aggregated documents.StringStats *StringStatsAggregation `json:"string_stats,omitempty"`// Sum A single-value metrics aggregation that sums numeric values that are// extracted from the aggregated documents.Sum *SumAggregation `json:"sum,omitempty"`// SumBucket A sibling pipeline aggregation which calculates the sum of a specified metric// across all buckets in a sibling aggregation.SumBucket *SumBucketAggregation `json:"sum_bucket,omitempty"`// TTest A metrics aggregation that performs a statistical hypothesis test in which// the test statistic follows a Student’s t-distribution under the null// hypothesis on numeric values extracted from the aggregated documents.TTest *TTestAggregation `json:"t_test,omitempty"`// Terms A multi-bucket value source based aggregation where buckets are dynamically// built - one per unique value.Terms *TermsAggregation `json:"terms,omitempty"`// TimeSeries The time series aggregation queries data created using a time series index.// This is typically data such as metrics or other data streams with a time// component, and requires creating an index using the time series mode.TimeSeries *TimeSeriesAggregation `json:"time_series,omitempty"`// TopHits A metric aggregation that returns the top matching documents per bucket.TopHits *TopHitsAggregation `json:"top_hits,omitempty"`// TopMetrics A metric aggregation that selects metrics from the document with the largest// or smallest sort value.TopMetrics *TopMetricsAggregation `json:"top_metrics,omitempty"`// ValueCount A single-value metrics aggregation that counts the number of values that are// extracted from the aggregated documents.ValueCount *ValueCountAggregation `json:"value_count,omitempty"`// VariableWidthHistogram A multi-bucket aggregation similar to the histogram, except instead of// providing an interval to use as the width of each bucket, a target number of// buckets is provided.VariableWidthHistogram *VariableWidthHistogramAggregation `json:"variable_width_histogram,omitempty"`// WeightedAvg A single-value metrics aggregation that computes the weighted average of// numeric values that are extracted from the aggregated documents.WeightedAvg *WeightedAverageAggregation `json:"weighted_avg,omitempty"`}Aggregations type.
funcNewAggregations¶added inv8.5.0
func NewAggregations() *Aggregations
NewAggregations returns a Aggregations.
func (Aggregations)MarshalJSON¶added inv8.18.0
func (sAggregations) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
func (*Aggregations)UnmarshalJSON¶added inv8.7.0
func (s *Aggregations) UnmarshalJSON(data []byte)error
typeAlias¶
type Alias struct {// Filter Query used to limit documents the alias can access.Filter *Query `json:"filter,omitempty"`// IndexRouting Value used to route indexing operations to a specific shard.// If specified, this overwrites the `routing` value for indexing operations.IndexRouting *string `json:"index_routing,omitempty"`// IsHidden If `true`, the alias is hidden.// All indices for the alias must have the same `is_hidden` value.IsHidden *bool `json:"is_hidden,omitempty"`// IsWriteIndex If `true`, the index is the write index for the alias.IsWriteIndex *bool `json:"is_write_index,omitempty"`// Routing Value used to route indexing and search operations to a specific shard.Routing *string `json:"routing,omitempty"`// SearchRouting Value used to route search operations to a specific shard.// If specified, this overwrites the `routing` value for search operations.SearchRouting *string `json:"search_routing,omitempty"`}Alias type.
func (*Alias)UnmarshalJSON¶added inv8.7.1
typeAliasDefinition¶
type AliasDefinition struct {// Filter Query used to limit documents the alias can access.Filter *Query `json:"filter,omitempty"`// IndexRouting Value used to route indexing operations to a specific shard.// If specified, this overwrites the `routing` value for indexing operations.IndexRouting *string `json:"index_routing,omitempty"`// IsHidden If `true`, the alias is hidden.// All indices for the alias must have the same `is_hidden` value.IsHidden *bool `json:"is_hidden,omitempty"`// IsWriteIndex If `true`, the index is the write index for the alias.IsWriteIndex *bool `json:"is_write_index,omitempty"`// Routing Value used to route indexing and search operations to a specific shard.Routing *string `json:"routing,omitempty"`// SearchRouting Value used to route search operations to a specific shard.// If specified, this overwrites the `routing` value for search operations.SearchRouting *string `json:"search_routing,omitempty"`}AliasDefinition type.
funcNewAliasDefinition¶added inv8.5.0
func NewAliasDefinition() *AliasDefinition
NewAliasDefinition returns a AliasDefinition.
func (*AliasDefinition)UnmarshalJSON¶added inv8.7.1
func (s *AliasDefinition) UnmarshalJSON(data []byte)error
typeAliasesRecord¶
type AliasesRecord struct {// Alias alias nameAlias *string `json:"alias,omitempty"`// Filter filterFilter *string `json:"filter,omitempty"`// Index index alias points toIndex *string `json:"index,omitempty"`// IsWriteIndex write indexIsWriteIndex *string `json:"is_write_index,omitempty"`// RoutingIndex index routingRoutingIndex *string `json:"routing.index,omitempty"`// RoutingSearch search routingRoutingSearch *string `json:"routing.search,omitempty"`}AliasesRecord type.
funcNewAliasesRecord¶added inv8.5.0
func NewAliasesRecord() *AliasesRecord
NewAliasesRecord returns a AliasesRecord.
func (*AliasesRecord)UnmarshalJSON¶added inv8.7.1
func (s *AliasesRecord) UnmarshalJSON(data []byte)error
typeAlibabaCloudServiceSettings¶added inv8.18.0
type AlibabaCloudServiceSettings struct {// ApiKey A valid API key for the AlibabaCloud AI Search API.ApiKeystring `json:"api_key"`// Host The name of the host address used for the inference task.// You can find the host address in the API keys section of the documentation.Hoststring `json:"host"`// RateLimit This setting helps to minimize the number of rate limit errors returned from// AlibabaCloud AI Search.// By default, the `alibabacloud-ai-search` service sets the number of requests// allowed per minute to `1000`.RateLimit *RateLimitSetting `json:"rate_limit,omitempty"`// ServiceId The name of the model service to use for the inference task.// The following service IDs are available for the `completion` task://// * `ops-qwen-turbo`// * `qwen-turbo`// * `qwen-plus`// * `qwen-max ÷ qwen-max-longcontext`//// The following service ID is available for the `rerank` task://// * `ops-bge-reranker-larger`//// The following service ID is available for the `sparse_embedding` task://// * `ops-text-sparse-embedding-001`//// The following service IDs are available for the `text_embedding` task://// `ops-text-embedding-001`// `ops-text-embedding-zh-001`// `ops-text-embedding-en-001`// `ops-text-embedding-002`ServiceIdstring `json:"service_id"`// Workspace The name of the workspace used for the inference task.Workspacestring `json:"workspace"`}AlibabaCloudServiceSettings type.
funcNewAlibabaCloudServiceSettings¶added inv8.18.0
func NewAlibabaCloudServiceSettings() *AlibabaCloudServiceSettings
NewAlibabaCloudServiceSettings returns a AlibabaCloudServiceSettings.
func (*AlibabaCloudServiceSettings)UnmarshalJSON¶added inv8.18.0
func (s *AlibabaCloudServiceSettings) UnmarshalJSON(data []byte)error
typeAlibabaCloudTaskSettings¶added inv8.18.0
type AlibabaCloudTaskSettings struct {// InputType For a `sparse_embedding` or `text_embedding` task, specify the type of input// passed to the model.// Valid values are://// * `ingest` for storing document embeddings in a vector database.// * `search` for storing embeddings of search queries run against a vector// database to find relevant documents.InputType *string `json:"input_type,omitempty"`// ReturnToken For a `sparse_embedding` task, it affects whether the token name will be// returned in the response.// It defaults to `false`, which means only the token ID will be returned in the// response.ReturnToken *bool `json:"return_token,omitempty"`}AlibabaCloudTaskSettings type.
funcNewAlibabaCloudTaskSettings¶added inv8.18.0
func NewAlibabaCloudTaskSettings() *AlibabaCloudTaskSettings
NewAlibabaCloudTaskSettings returns a AlibabaCloudTaskSettings.
func (*AlibabaCloudTaskSettings)UnmarshalJSON¶added inv8.18.0
func (s *AlibabaCloudTaskSettings) UnmarshalJSON(data []byte)error
typeAllField¶
type AllField struct {Analyzerstring `json:"analyzer"`Enabledbool `json:"enabled"`OmitNormsbool `json:"omit_norms"`SearchAnalyzerstring `json:"search_analyzer"`Similaritystring `json:"similarity"`Storebool `json:"store"`StoreTermVectorOffsetsbool `json:"store_term_vector_offsets"`StoreTermVectorPayloadsbool `json:"store_term_vector_payloads"`StoreTermVectorPositionsbool `json:"store_term_vector_positions"`StoreTermVectorsbool `json:"store_term_vectors"`}AllField type.
func (*AllField)UnmarshalJSON¶added inv8.7.1
typeAllocateAction¶added inv8.15.0
type AllocateAction struct {Exclude map[string]string `json:"exclude,omitempty"`Include map[string]string `json:"include,omitempty"`NumberOfReplicas *int `json:"number_of_replicas,omitempty"`Require map[string]string `json:"require,omitempty"`TotalShardsPerNode *int `json:"total_shards_per_node,omitempty"`}AllocateAction type.
funcNewAllocateAction¶added inv8.15.0
func NewAllocateAction() *AllocateAction
NewAllocateAction returns a AllocateAction.
func (*AllocateAction)UnmarshalJSON¶added inv8.15.0
func (s *AllocateAction) UnmarshalJSON(data []byte)error
typeAllocationDecision¶
type AllocationDecision struct {Deciderstring `json:"decider"`Decisionallocationexplaindecision.AllocationExplainDecision `json:"decision"`Explanationstring `json:"explanation"`}AllocationDecision type.
funcNewAllocationDecision¶added inv8.5.0
func NewAllocationDecision() *AllocationDecision
NewAllocationDecision returns a AllocationDecision.
func (*AllocationDecision)UnmarshalJSON¶added inv8.9.0
func (s *AllocationDecision) UnmarshalJSON(data []byte)error
typeAllocationRecord¶
type AllocationRecord struct {// DiskAvail Free disk space available to Elasticsearch.// Elasticsearch retrieves this metric from the node’s operating system.// Disk-based shard allocation uses this metric to assign shards to nodes based// on available disk space.DiskAvailByteSize `json:"disk.avail,omitempty"`// DiskIndices Disk space used by the node’s shards. Does not include disk space for the// translog or unassigned shards.// IMPORTANT: This metric double-counts disk space for hard-linked files, such// as those created when shrinking, splitting, or cloning an index.DiskIndicesByteSize `json:"disk.indices,omitempty"`// DiskIndicesForecast Sum of shard size forecastsDiskIndicesForecastByteSize `json:"disk.indices.forecast,omitempty"`// DiskPercent Total percentage of disk space in use. Calculated as `disk.used /// disk.total`.DiskPercentPercentage `json:"disk.percent,omitempty"`// DiskTotal Total disk space for the node, including in-use and available space.DiskTotalByteSize `json:"disk.total,omitempty"`// DiskUsed Total disk space in use.// Elasticsearch retrieves this metric from the node’s operating system (OS).// The metric includes disk space for: Elasticsearch, including the translog and// unassigned shards; the node’s operating system; any other applications or// files on the node.// Unlike `disk.indices`, this metric does not double-count disk space for// hard-linked files.DiskUsedByteSize `json:"disk.used,omitempty"`// Host Network host for the node. Set using the `network.host` setting.Host *string `json:"host,omitempty"`// Ip IP address and port for the node.Ip *string `json:"ip,omitempty"`// Node Name for the node. Set using the `node.name` setting.Node *string `json:"node,omitempty"`// NodeRole Node rolesNodeRole *string `json:"node.role,omitempty"`// Shards Number of primary and replica shards assigned to the node.Shards *string `json:"shards,omitempty"`// ShardsUndesired Amount of shards that are scheduled to be moved elsewhere in the cluster or// -1 other than desired balance allocator is usedShardsUndesired *string `json:"shards.undesired,omitempty"`// WriteLoadForecast Sum of index write load forecastsWriteLoadForecastStringifieddouble `json:"write_load.forecast,omitempty"`}AllocationRecord type.
funcNewAllocationRecord¶added inv8.5.0
func NewAllocationRecord() *AllocationRecord
NewAllocationRecord returns a AllocationRecord.
func (*AllocationRecord)UnmarshalJSON¶added inv8.7.1
func (s *AllocationRecord) UnmarshalJSON(data []byte)error
typeAllocationStore¶
type AllocationStore struct {AllocationIdstring `json:"allocation_id"`Foundbool `json:"found"`InSyncbool `json:"in_sync"`MatchingSizeInBytesint64 `json:"matching_size_in_bytes"`MatchingSyncIdbool `json:"matching_sync_id"`StoreExceptionstring `json:"store_exception"`}AllocationStore type.
funcNewAllocationStore¶added inv8.5.0
func NewAllocationStore() *AllocationStore
NewAllocationStore returns a AllocationStore.
func (*AllocationStore)UnmarshalJSON¶added inv8.7.1
func (s *AllocationStore) UnmarshalJSON(data []byte)error
typeAlwaysCondition¶
type AlwaysCondition struct {}AlwaysCondition type.
funcNewAlwaysCondition¶added inv8.5.0
func NewAlwaysCondition() *AlwaysCondition
NewAlwaysCondition returns a AlwaysCondition.
typeAmazonBedrockServiceSettings¶added inv8.18.0
type AmazonBedrockServiceSettings struct {// AccessKey A valid AWS access key that has permissions to use Amazon Bedrock and access// to models for inference requests.AccessKeystring `json:"access_key"`// Model The base model ID or an ARN to a custom model based on a foundational model.// The base model IDs can be found in the Amazon Bedrock documentation.// Note that the model ID must be available for the provider chosen and your IAM// user must have access to the model.Modelstring `json:"model"`// Provider The model provider for your deployment.// Note that some providers may support only certain task types.// Supported providers include://// * `amazontitan` - available for `text_embedding` and `completion` task types// * `anthropic` - available for `completion` task type only// * `ai21labs` - available for `completion` task type only// * `cohere` - available for `text_embedding` and `completion` task types// * `meta` - available for `completion` task type only// * `mistral` - available for `completion` task type onlyProvider *string `json:"provider,omitempty"`// RateLimit This setting helps to minimize the number of rate limit errors returned from// Watsonx.// By default, the `watsonxai` service sets the number of requests allowed per// minute to 120.RateLimit *RateLimitSetting `json:"rate_limit,omitempty"`// Region The region that your model or ARN is deployed in.// The list of available regions per model can be found in the Amazon Bedrock// documentation.Regionstring `json:"region"`// SecretKey A valid AWS secret key that is paired with the `access_key`.// For informationg about creating and managing access and secret keys, refer to// the AWS documentation.SecretKeystring `json:"secret_key"`}AmazonBedrockServiceSettings type.
funcNewAmazonBedrockServiceSettings¶added inv8.18.0
func NewAmazonBedrockServiceSettings() *AmazonBedrockServiceSettings
NewAmazonBedrockServiceSettings returns a AmazonBedrockServiceSettings.
func (*AmazonBedrockServiceSettings)UnmarshalJSON¶added inv8.18.0
func (s *AmazonBedrockServiceSettings) UnmarshalJSON(data []byte)error
typeAmazonBedrockTaskSettings¶added inv8.18.0
type AmazonBedrockTaskSettings struct {// MaxNewTokens For a `completion` task, it sets the maximum number for the output tokens to// be generated.MaxNewTokens *int `json:"max_new_tokens,omitempty"`// Temperature For a `completion` task, it is a number between 0.0 and 1.0 that controls the// apparent creativity of the results.// At temperature 0.0 the model is most deterministic, at temperature 1.0 most// random.// It should not be used if `top_p` or `top_k` is specified.Temperature *float32 `json:"temperature,omitempty"`// TopK For a `completion` task, it limits samples to the top-K most likely words,// balancing coherence and variability.// It is only available for anthropic, cohere, and mistral providers.// It is an alternative to `temperature`; it should not be used if `temperature`// is specified.TopK *float32 `json:"top_k,omitempty"`// TopP For a `completion` task, it is a number in the range of 0.0 to 1.0, to// eliminate low-probability tokens.// Top-p uses nucleus sampling to select top tokens whose sum of likelihoods// does not exceed a certain value, ensuring both variety and coherence.// It is an alternative to `temperature`; it should not be used if `temperature`// is specified.TopP *float32 `json:"top_p,omitempty"`}AmazonBedrockTaskSettings type.
funcNewAmazonBedrockTaskSettings¶added inv8.18.0
func NewAmazonBedrockTaskSettings() *AmazonBedrockTaskSettings
NewAmazonBedrockTaskSettings returns a AmazonBedrockTaskSettings.
func (*AmazonBedrockTaskSettings)UnmarshalJSON¶added inv8.18.0
func (s *AmazonBedrockTaskSettings) UnmarshalJSON(data []byte)error
typeAmazonSageMakerServiceSettings¶added inv8.19.0
type AmazonSageMakerServiceSettings struct {// AccessKey A valid AWS access key that has permissions to use Amazon SageMaker and// access to models for invoking requests.AccessKeystring `json:"access_key"`// Api The API format to use when calling SageMaker.// Elasticsearch will convert the POST _inference request to this data format// when invoking the SageMaker endpoint.Apiamazonsagemakerapi.AmazonSageMakerApi `json:"api"`// BatchSize The maximum number of inputs in each batch. This value is used by inference// ingestion pipelines// when processing semantic values. It correlates to the number of times the// SageMaker endpoint is// invoked (one per batch of input).BatchSize *int `json:"batch_size,omitempty"`// Dimensions The number of dimensions returned by the text embedding models. If this value// is not provided, then// it is guessed by making invoking the endpoint for the `text_embedding` task.Dimensions *int `json:"dimensions,omitempty"`// EndpointName The name of the SageMaker endpoint.EndpointNamestring `json:"endpoint_name"`// InferenceComponentName The inference component to directly invoke when calling a multi-component// endpoint.InferenceComponentName *string `json:"inference_component_name,omitempty"`// Region The region that your endpoint or Amazon Resource Name (ARN) is deployed in.// The list of available regions per model can be found in the Amazon SageMaker// documentation.Regionstring `json:"region"`// SecretKey A valid AWS secret key that is paired with the `access_key`.// For information about creating and managing access and secret keys, refer to// the AWS documentation.SecretKeystring `json:"secret_key"`// TargetContainerHostname The container to directly invoke when calling a multi-container endpoint.TargetContainerHostname *string `json:"target_container_hostname,omitempty"`// TargetModel The model ID when calling a multi-model endpoint.TargetModel *string `json:"target_model,omitempty"`}AmazonSageMakerServiceSettings type.
funcNewAmazonSageMakerServiceSettings¶added inv8.19.0
func NewAmazonSageMakerServiceSettings() *AmazonSageMakerServiceSettings
NewAmazonSageMakerServiceSettings returns a AmazonSageMakerServiceSettings.
func (*AmazonSageMakerServiceSettings)UnmarshalJSON¶added inv8.19.0
func (s *AmazonSageMakerServiceSettings) UnmarshalJSON(data []byte)error
typeAmazonSageMakerTaskSettings¶added inv8.19.0
type AmazonSageMakerTaskSettings struct {// CustomAttributes The AWS custom attributes passed verbatim through to the model running in the// SageMaker Endpoint.// Values will be returned in the `X-elastic-sagemaker-custom-attributes`// header.CustomAttributes *string `json:"custom_attributes,omitempty"`// EnableExplanations The optional JMESPath expression used to override the EnableExplanations// provided during endpoint creation.EnableExplanations *string `json:"enable_explanations,omitempty"`// InferenceId The capture data ID when enabled in the endpoint.InferenceId *string `json:"inference_id,omitempty"`// SessionId The stateful session identifier for a new or existing session.// New sessions will be returned in the `X-elastic-sagemaker-new-session-id`// header.// Closed sessions will be returned in the// `X-elastic-sagemaker-closed-session-id` header.SessionId *string `json:"session_id,omitempty"`// TargetVariant Specifies the variant when running with multi-variant Endpoints.TargetVariant *string `json:"target_variant,omitempty"`}AmazonSageMakerTaskSettings type.
funcNewAmazonSageMakerTaskSettings¶added inv8.19.0
func NewAmazonSageMakerTaskSettings() *AmazonSageMakerTaskSettings
NewAmazonSageMakerTaskSettings returns a AmazonSageMakerTaskSettings.
func (*AmazonSageMakerTaskSettings)UnmarshalJSON¶added inv8.19.0
func (s *AmazonSageMakerTaskSettings) UnmarshalJSON(data []byte)error
typeAnalysisConfig¶
type AnalysisConfig struct {// BucketSpan The size of the interval that the analysis is aggregated into, typically// between `5m` and `1h`. This value should be either a whole number of days or// equate to a// whole number of buckets in one day. If the anomaly detection job uses a// datafeed with aggregations, this value must also be divisible by the interval// of the date histogram aggregation.BucketSpanDuration `json:"bucket_span,omitempty"`// CategorizationAnalyzer If `categorization_field_name` is specified, you can also define the analyzer// that is used to interpret the categorization field. This property cannot be// used at the same time as `categorization_filters`. The categorization// analyzer specifies how the `categorization_field` is interpreted by the// categorization process. The `categorization_analyzer` field can be specified// either as a string or as an object. If it is a string, it must refer to a// built-in analyzer or one added by another plugin.CategorizationAnalyzerCategorizationAnalyzer `json:"categorization_analyzer,omitempty"`// CategorizationFieldName If this property is specified, the values of the specified field will be// categorized. The resulting categories must be used in a detector by setting// `by_field_name`, `over_field_name`, or `partition_field_name` to the keyword// `mlcategory`.CategorizationFieldName *string `json:"categorization_field_name,omitempty"`// CategorizationFilters If `categorization_field_name` is specified, you can also define optional// filters. This property expects an array of regular expressions. The// expressions are used to filter out matching sequences from the categorization// field values. You can use this functionality to fine tune the categorization// by excluding sequences from consideration when categories are defined. For// example, you can exclude SQL statements that appear in your log files. This// property cannot be used at the same time as `categorization_analyzer`. If you// only want to define simple regular expression filters that are applied prior// to tokenization, setting this property is the easiest method. If you also// want to customize the tokenizer or post-tokenization filtering, use the// `categorization_analyzer` property instead and include the filters as// pattern_replace character filters. The effect is exactly the same.CategorizationFilters []string `json:"categorization_filters,omitempty"`// Detectors Detector configuration objects specify which data fields a job analyzes. They// also specify which analytical functions are used. You can specify multiple// detectors for a job. If the detectors array does not contain at least one// detector, no analysis can occur and an error is returned.Detectors []Detector `json:"detectors"`// Influencers A comma separated list of influencer field names. Typically these can be the// by, over, or partition fields that are used in the detector configuration.// You might also want to use a field name that is not specifically named in a// detector, but is available as part of the input data. When you use multiple// detectors, the use of influencers is recommended as it aggregates results for// each influencer entity.Influencers []string `json:"influencers,omitempty"`// Latency The size of the window in which to expect data that is out of time order. If// you specify a non-zero value, it must be greater than or equal to one second.// NOTE: Latency is applicable only when you send data by using the post data// API.LatencyDuration `json:"latency,omitempty"`// ModelPruneWindow Advanced configuration option. Affects the pruning of models that have not// been updated for the given time duration. The value must be set to a multiple// of the `bucket_span`. If set too low, important information may be removed// from the model. For jobs created in 8.1 and later, the default value is the// greater of `30d` or 20 times `bucket_span`.ModelPruneWindowDuration `json:"model_prune_window,omitempty"`// MultivariateByFields This functionality is reserved for internal use. It is not supported for use// in customer environments and is not subject to the support SLA of official GA// features. If set to `true`, the analysis will automatically find correlations// between metrics for a given by field value and report anomalies when those// correlations cease to hold. For example, suppose CPU and memory usage on host// A is usually highly correlated with the same metrics on host B. Perhaps this// correlation occurs because they are running a load-balanced application. If// you enable this property, anomalies will be reported when, for example, CPU// usage on host A is high and the value of CPU usage on host B is low. That is// to say, you’ll see an anomaly when the CPU of host A is unusual given the CPU// of host B. To use the `multivariate_by_fields` property, you must also// specify `by_field_name` in your detector.MultivariateByFields *bool `json:"multivariate_by_fields,omitempty"`// PerPartitionCategorization Settings related to how categorization interacts with partition fields.PerPartitionCategorization *PerPartitionCategorization `json:"per_partition_categorization,omitempty"`// SummaryCountFieldName If this property is specified, the data that is fed to the job is expected to// be pre-summarized. This property value is the name of the field that contains// the count of raw data points that have been summarized. The same// `summary_count_field_name` applies to all detectors in the job. NOTE: The// `summary_count_field_name` property cannot be used with the `metric`// function.SummaryCountFieldName *string `json:"summary_count_field_name,omitempty"`}AnalysisConfig type.
funcNewAnalysisConfig¶added inv8.5.0
func NewAnalysisConfig() *AnalysisConfig
NewAnalysisConfig returns a AnalysisConfig.
func (*AnalysisConfig)UnmarshalJSON¶added inv8.7.0
func (s *AnalysisConfig) UnmarshalJSON(data []byte)error
typeAnalysisConfigRead¶
type AnalysisConfigRead struct {// BucketSpan The size of the interval that the analysis is aggregated into, typically// between `5m` and `1h`.BucketSpanDuration `json:"bucket_span"`// CategorizationAnalyzer If `categorization_field_name` is specified, you can also define the analyzer// that is used to interpret the categorization field.// This property cannot be used at the same time as `categorization_filters`.// The categorization analyzer specifies how the `categorization_field` is// interpreted by the categorization process.CategorizationAnalyzerCategorizationAnalyzer `json:"categorization_analyzer,omitempty"`// CategorizationFieldName If this property is specified, the values of the specified field will be// categorized.// The resulting categories must be used in a detector by setting// `by_field_name`, `over_field_name`, or `partition_field_name` to the keyword// `mlcategory`.CategorizationFieldName *string `json:"categorization_field_name,omitempty"`// CategorizationFilters If `categorization_field_name` is specified, you can also define optional// filters.// This property expects an array of regular expressions.// The expressions are used to filter out matching sequences from the// categorization field values.CategorizationFilters []string `json:"categorization_filters,omitempty"`// Detectors An array of detector configuration objects.// Detector configuration objects specify which data fields a job analyzes.// They also specify which analytical functions are used.// You can specify multiple detectors for a job.Detectors []DetectorRead `json:"detectors"`// Influencers A comma separated list of influencer field names.// Typically these can be the by, over, or partition fields that are used in the// detector configuration.// You might also want to use a field name that is not specifically named in a// detector, but is available as part of the input data.// When you use multiple detectors, the use of influencers is recommended as it// aggregates results for each influencer entity.Influencers []string `json:"influencers"`// Latency The size of the window in which to expect data that is out of time order.// Defaults to no latency.// If you specify a non-zero value, it must be greater than or equal to one// second.LatencyDuration `json:"latency,omitempty"`// ModelPruneWindow Advanced configuration option.// Affects the pruning of models that have not been updated for the given time// duration.// The value must be set to a multiple of the `bucket_span`.// If set too low, important information may be removed from the model.// Typically, set to `30d` or longer.// If not set, model pruning only occurs if the model memory status reaches the// soft limit or the hard limit.// For jobs created in 8.1 and later, the default value is the greater of `30d`// or 20 times `bucket_span`.ModelPruneWindowDuration `json:"model_prune_window,omitempty"`// MultivariateByFields This functionality is reserved for internal use.// It is not supported for use in customer environments and is not subject to// the support SLA of official GA features.// If set to `true`, the analysis will automatically find correlations between// metrics for a given by field value and report anomalies when those// correlations cease to hold.MultivariateByFields *bool `json:"multivariate_by_fields,omitempty"`// PerPartitionCategorization Settings related to how categorization interacts with partition fields.PerPartitionCategorization *PerPartitionCategorization `json:"per_partition_categorization,omitempty"`// SummaryCountFieldName If this property is specified, the data that is fed to the job is expected to// be pre-summarized.// This property value is the name of the field that contains the count of raw// data points that have been summarized.// The same `summary_count_field_name` applies to all detectors in the job.SummaryCountFieldName *string `json:"summary_count_field_name,omitempty"`}AnalysisConfigRead type.
funcNewAnalysisConfigRead¶added inv8.5.0
func NewAnalysisConfigRead() *AnalysisConfigRead
NewAnalysisConfigRead returns a AnalysisConfigRead.
func (*AnalysisConfigRead)UnmarshalJSON¶added inv8.7.0
func (s *AnalysisConfigRead) UnmarshalJSON(data []byte)error
typeAnalysisLimits¶
type AnalysisLimits struct {// CategorizationExamplesLimit The maximum number of examples stored per category in memory and in the// results data store. If you increase this value, more examples are available,// however it requires that you have more storage available. If you set this// value to 0, no examples are stored. NOTE: The `categorization_examples_limit`// applies only to analysis that uses categorization.CategorizationExamplesLimit *int64 `json:"categorization_examples_limit,omitempty"`// ModelMemoryLimit The approximate maximum amount of memory resources that are required for// analytical processing. Once this limit is approached, data pruning becomes// more aggressive. Upon exceeding this limit, new entities are not modeled. If// the `xpack.ml.max_model_memory_limit` setting has a value greater than 0 and// less than 1024mb, that value is used instead of the default. The default// value is relatively small to ensure that high resource usage is a conscious// decision. If you have jobs that are expected to analyze high cardinality// fields, you will likely need to use a higher value. If you specify a number// instead of a string, the units are assumed to be MiB. Specifying a string is// recommended for clarity. If you specify a byte size unit of `b` or `kb` and// the number does not equate to a discrete number of megabytes, it is rounded// down to the closest MiB. The minimum valid value is 1 MiB. If you specify a// value less than 1 MiB, an error occurs. If you specify a value for the// `xpack.ml.max_model_memory_limit` setting, an error occurs when you try to// create jobs that have `model_memory_limit` values greater than that setting// value.ModelMemoryLimitByteSize `json:"model_memory_limit,omitempty"`}AnalysisLimits type.
funcNewAnalysisLimits¶added inv8.5.0
func NewAnalysisLimits() *AnalysisLimits
NewAnalysisLimits returns a AnalysisLimits.
func (*AnalysisLimits)UnmarshalJSON¶added inv8.7.1
func (s *AnalysisLimits) UnmarshalJSON(data []byte)error
typeAnalysisMemoryLimit¶
type AnalysisMemoryLimit struct {// ModelMemoryLimit Limits can be applied for the resources required to hold the mathematical// models in memory. These limits are approximate and can be set per job. They// do not control the memory used by other processes, for example the// Elasticsearch Java processes.ModelMemoryLimitstring `json:"model_memory_limit"`}AnalysisMemoryLimit type.
funcNewAnalysisMemoryLimit¶added inv8.5.0
func NewAnalysisMemoryLimit() *AnalysisMemoryLimit
NewAnalysisMemoryLimit returns a AnalysisMemoryLimit.
func (*AnalysisMemoryLimit)UnmarshalJSON¶added inv8.9.0
func (s *AnalysisMemoryLimit) UnmarshalJSON(data []byte)error
typeAnalytics¶
type Analytics struct {Availablebool `json:"available"`Enabledbool `json:"enabled"`StatsAnalyticsStatistics `json:"stats"`}Analytics type.
func (*Analytics)UnmarshalJSON¶added inv8.7.1
typeAnalyticsCollection¶added inv8.8.0
type AnalyticsCollection struct {// EventDataStream Data stream for the collection.EventDataStreamEventDataStream `json:"event_data_stream"`}AnalyticsCollection type.
funcNewAnalyticsCollection¶added inv8.8.0
func NewAnalyticsCollection() *AnalyticsCollection
NewAnalyticsCollection returns a AnalyticsCollection.
typeAnalyticsStatistics¶
type AnalyticsStatistics struct {BoxplotUsageint64 `json:"boxplot_usage"`CumulativeCardinalityUsageint64 `json:"cumulative_cardinality_usage"`MovingPercentilesUsageint64 `json:"moving_percentiles_usage"`MultiTermsUsage *int64 `json:"multi_terms_usage,omitempty"`NormalizeUsageint64 `json:"normalize_usage"`RateUsageint64 `json:"rate_usage"`StringStatsUsageint64 `json:"string_stats_usage"`TTestUsageint64 `json:"t_test_usage"`TopMetricsUsageint64 `json:"top_metrics_usage"`}AnalyticsStatistics type.
funcNewAnalyticsStatistics¶added inv8.5.0
func NewAnalyticsStatistics() *AnalyticsStatistics
NewAnalyticsStatistics returns a AnalyticsStatistics.
func (*AnalyticsStatistics)UnmarshalJSON¶added inv8.7.1
func (s *AnalyticsStatistics) UnmarshalJSON(data []byte)error
typeAnalyzeDetail¶
type AnalyzeDetail struct {Analyzer *AnalyzerDetail `json:"analyzer,omitempty"`Charfilters []CharFilterDetail `json:"charfilters,omitempty"`CustomAnalyzerbool `json:"custom_analyzer"`Tokenfilters []TokenDetail `json:"tokenfilters,omitempty"`Tokenizer *TokenDetail `json:"tokenizer,omitempty"`}AnalyzeDetail type.
funcNewAnalyzeDetail¶added inv8.5.0
func NewAnalyzeDetail() *AnalyzeDetail
NewAnalyzeDetail returns a AnalyzeDetail.
func (*AnalyzeDetail)UnmarshalJSON¶added inv8.7.1
func (s *AnalyzeDetail) UnmarshalJSON(data []byte)error
typeAnalyzeToken¶
type AnalyzeToken struct {EndOffsetint64 `json:"end_offset"`Positionint64 `json:"position"`PositionLength *int64 `json:"positionLength,omitempty"`StartOffsetint64 `json:"start_offset"`Tokenstring `json:"token"`Typestring `json:"type"`}AnalyzeToken type.
funcNewAnalyzeToken¶added inv8.5.0
func NewAnalyzeToken() *AnalyzeToken
NewAnalyzeToken returns a AnalyzeToken.
func (*AnalyzeToken)UnmarshalJSON¶added inv8.7.1
func (s *AnalyzeToken) UnmarshalJSON(data []byte)error
typeAnalyzer¶
type Analyzerany
Analyzer holds the union for the following types:
CustomAnalyzerFingerprintAnalyzerKeywordAnalyzerNoriAnalyzerPatternAnalyzerSimpleAnalyzerStandardAnalyzerStopAnalyzerWhitespaceAnalyzerIcuAnalyzerKuromojiAnalyzerSnowballAnalyzerArabicAnalyzerArmenianAnalyzerBasqueAnalyzerBengaliAnalyzerBrazilianAnalyzerBulgarianAnalyzerCatalanAnalyzerChineseAnalyzerCjkAnalyzerCzechAnalyzerDanishAnalyzerDutchAnalyzerEnglishAnalyzerEstonianAnalyzerFinnishAnalyzerFrenchAnalyzerGalicianAnalyzerGermanAnalyzerGreekAnalyzerHindiAnalyzerHungarianAnalyzerIndonesianAnalyzerIrishAnalyzerItalianAnalyzerLatvianAnalyzerLithuanianAnalyzerNorwegianAnalyzerPersianAnalyzerPortugueseAnalyzerRomanianAnalyzerRussianAnalyzerSerbianAnalyzerSoraniAnalyzerSpanishAnalyzerSwedishAnalyzerTurkishAnalyzerThaiAnalyzer
typeAnalyzerDetail¶
type AnalyzerDetail struct {Namestring `json:"name"`Tokens []ExplainAnalyzeToken `json:"tokens"`}AnalyzerDetail type.
funcNewAnalyzerDetail¶added inv8.5.0
func NewAnalyzerDetail() *AnalyzerDetail
NewAnalyzerDetail returns a AnalyzerDetail.
func (*AnalyzerDetail)UnmarshalJSON¶added inv8.9.0
func (s *AnalyzerDetail) UnmarshalJSON(data []byte)error
typeAnomaly¶
type Anomaly struct {// Actual The actual value for the bucket.Actual []Float64 `json:"actual,omitempty"`// AnomalyScoreExplanation Information about the factors impacting the initial anomaly score.AnomalyScoreExplanation *AnomalyExplanation `json:"anomaly_score_explanation,omitempty"`// BucketSpan The length of the bucket in seconds. This value matches the `bucket_span`// that is specified in the job.BucketSpanint64 `json:"bucket_span"`// ByFieldName The field used to split the data. In particular, this property is used for// analyzing the splits with respect to their own history. It is used for// finding unusual values in the context of the split.ByFieldName *string `json:"by_field_name,omitempty"`// ByFieldValue The value of `by_field_name`.ByFieldValue *string `json:"by_field_value,omitempty"`// Causes For population analysis, an over field must be specified in the detector.// This property contains an array of anomaly records that are the causes for// the anomaly that has been identified for the over field. This sub-resource// contains the most anomalous records for the `over_field_name`. For// scalability reasons, a maximum of the 10 most significant causes of the// anomaly are returned. As part of the core analytical modeling, these// low-level anomaly records are aggregated for their parent over field record.// The `causes` resource contains similar elements to the record resource,// namely `actual`, `typical`, `geo_results.actual_point`,// `geo_results.typical_point`, `*_field_name` and `*_field_value`. Probability// and scores are not applicable to causes.Causes []AnomalyCause `json:"causes,omitempty"`// DetectorIndex A unique identifier for the detector.DetectorIndexint `json:"detector_index"`// FieldName Certain functions require a field to operate on, for example, `sum()`. For// those functions, this value is the name of the field to be analyzed.FieldName *string `json:"field_name,omitempty"`// Function The function in which the anomaly occurs, as specified in the detector// configuration. For example, `max`.Function *string `json:"function,omitempty"`// FunctionDescription The description of the function in which the anomaly occurs, as specified in// the detector configuration.FunctionDescription *string `json:"function_description,omitempty"`// GeoResults If the detector function is `lat_long`, this object contains comma delimited// strings for the latitude and longitude of the actual and typical values.GeoResults *GeoResults `json:"geo_results,omitempty"`// Influencers If influencers were specified in the detector configuration, this array// contains influencers that contributed to or were to blame for an anomaly.Influencers []Influence `json:"influencers,omitempty"`// InitialRecordScore A normalized score between 0-100, which is based on the probability of the// anomalousness of this record. This is the initial value that was calculated// at the time the bucket was processed.InitialRecordScoreFloat64 `json:"initial_record_score"`// IsInterim If true, this is an interim result. In other words, the results are// calculated based on partial input data.IsInterimbool `json:"is_interim"`// JobId Identifier for the anomaly detection job.JobIdstring `json:"job_id"`// OverFieldName The field used to split the data. In particular, this property is used for// analyzing the splits with respect to the history of all splits. It is used// for finding unusual values in the population of all splits.OverFieldName *string `json:"over_field_name,omitempty"`// OverFieldValue The value of `over_field_name`.OverFieldValue *string `json:"over_field_value,omitempty"`// PartitionFieldName The field used to segment the analysis. When you use this property, you have// completely independent baselines for each value of this field.PartitionFieldName *string `json:"partition_field_name,omitempty"`// PartitionFieldValue The value of `partition_field_name`.PartitionFieldValue *string `json:"partition_field_value,omitempty"`// Probability The probability of the individual anomaly occurring, in the range 0 to 1. For// example, `0.0000772031`. This value can be held to a high precision of over// 300 decimal places, so the `record_score` is provided as a human-readable and// friendly interpretation of this.ProbabilityFloat64 `json:"probability"`// RecordScore A normalized score between 0-100, which is based on the probability of the// anomalousness of this record. Unlike `initial_record_score`, this value will// be updated by a re-normalization process as new data is analyzed.RecordScoreFloat64 `json:"record_score"`// ResultType Internal. This is always set to `record`.ResultTypestring `json:"result_type"`// Timestamp The start time of the bucket for which these results were calculated.Timestampint64 `json:"timestamp"`// Typical The typical value for the bucket, according to analytical modeling.Typical []Float64 `json:"typical,omitempty"`}Anomaly type.
func (*Anomaly)UnmarshalJSON¶added inv8.7.1
typeAnomalyCause¶
type AnomalyCause struct {Actual []Float64 `json:"actual,omitempty"`ByFieldName *string `json:"by_field_name,omitempty"`ByFieldValue *string `json:"by_field_value,omitempty"`CorrelatedByFieldValue *string `json:"correlated_by_field_value,omitempty"`FieldName *string `json:"field_name,omitempty"`Function *string `json:"function,omitempty"`FunctionDescription *string `json:"function_description,omitempty"`GeoResults *GeoResults `json:"geo_results,omitempty"`Influencers []Influence `json:"influencers,omitempty"`OverFieldName *string `json:"over_field_name,omitempty"`OverFieldValue *string `json:"over_field_value,omitempty"`PartitionFieldName *string `json:"partition_field_name,omitempty"`PartitionFieldValue *string `json:"partition_field_value,omitempty"`ProbabilityFloat64 `json:"probability"`Typical []Float64 `json:"typical,omitempty"`}AnomalyCause type.
funcNewAnomalyCause¶added inv8.5.0
func NewAnomalyCause() *AnomalyCause
NewAnomalyCause returns a AnomalyCause.
func (*AnomalyCause)UnmarshalJSON¶added inv8.7.1
func (s *AnomalyCause) UnmarshalJSON(data []byte)error
typeAnomalyDetectors¶
type AnomalyDetectors struct {CategorizationAnalyzerCategorizationAnalyzer `json:"categorization_analyzer"`CategorizationExamplesLimitint `json:"categorization_examples_limit"`DailyModelSnapshotRetentionAfterDaysint `json:"daily_model_snapshot_retention_after_days"`ModelMemoryLimitstring `json:"model_memory_limit"`ModelSnapshotRetentionDaysint `json:"model_snapshot_retention_days"`}AnomalyDetectors type.
funcNewAnomalyDetectors¶added inv8.5.0
func NewAnomalyDetectors() *AnomalyDetectors
NewAnomalyDetectors returns a AnomalyDetectors.
func (*AnomalyDetectors)UnmarshalJSON¶added inv8.7.0
func (s *AnomalyDetectors) UnmarshalJSON(data []byte)error
typeAnomalyExplanation¶added inv8.6.0
type AnomalyExplanation struct {// AnomalyCharacteristicsImpact Impact from the duration and magnitude of the detected anomaly relative to// the historical average.AnomalyCharacteristicsImpact *int `json:"anomaly_characteristics_impact,omitempty"`// AnomalyLength Length of the detected anomaly in the number of buckets.AnomalyLength *int `json:"anomaly_length,omitempty"`// AnomalyType Type of the detected anomaly: `spike` or `dip`.AnomalyType *string `json:"anomaly_type,omitempty"`// HighVariancePenalty Indicates reduction of anomaly score for the bucket with large confidence// intervals. If a bucket has large confidence intervals, the score is reduced.HighVariancePenalty *bool `json:"high_variance_penalty,omitempty"`// IncompleteBucketPenalty If the bucket contains fewer samples than expected, the score is reduced.IncompleteBucketPenalty *bool `json:"incomplete_bucket_penalty,omitempty"`// LowerConfidenceBound Lower bound of the 95% confidence interval.LowerConfidenceBound *Float64 `json:"lower_confidence_bound,omitempty"`// MultiBucketImpact Impact of the deviation between actual and typical values in the past 12// buckets.MultiBucketImpact *int `json:"multi_bucket_impact,omitempty"`// SingleBucketImpact Impact of the deviation between actual and typical values in the current// bucket.SingleBucketImpact *int `json:"single_bucket_impact,omitempty"`// TypicalValue Typical (expected) value for this bucket.TypicalValue *Float64 `json:"typical_value,omitempty"`// UpperConfidenceBound Upper bound of the 95% confidence interval.UpperConfidenceBound *Float64 `json:"upper_confidence_bound,omitempty"`}AnomalyExplanation type.
funcNewAnomalyExplanation¶added inv8.6.0
func NewAnomalyExplanation() *AnomalyExplanation
NewAnomalyExplanation returns a AnomalyExplanation.
func (*AnomalyExplanation)UnmarshalJSON¶added inv8.7.1
func (s *AnomalyExplanation) UnmarshalJSON(data []byte)error
typeAnthropicServiceSettings¶added inv8.18.0
type AnthropicServiceSettings struct {// ApiKey A valid API key for the Anthropic API.ApiKeystring `json:"api_key"`// ModelId The name of the model to use for the inference task.// Refer to the Anthropic documentation for the list of supported models.ModelIdstring `json:"model_id"`// RateLimit This setting helps to minimize the number of rate limit errors returned from// Anthropic.// By default, the `anthropic` service sets the number of requests allowed per// minute to 50.RateLimit *RateLimitSetting `json:"rate_limit,omitempty"`}AnthropicServiceSettings type.
funcNewAnthropicServiceSettings¶added inv8.18.0
func NewAnthropicServiceSettings() *AnthropicServiceSettings
NewAnthropicServiceSettings returns a AnthropicServiceSettings.
func (*AnthropicServiceSettings)UnmarshalJSON¶added inv8.18.0
func (s *AnthropicServiceSettings) UnmarshalJSON(data []byte)error
typeAnthropicTaskSettings¶added inv8.18.0
type AnthropicTaskSettings struct {// MaxTokens For a `completion` task, it is the maximum number of tokens to generate// before stopping.MaxTokensint `json:"max_tokens"`// Temperature For a `completion` task, it is the amount of randomness injected into the// response.// For more details about the supported range, refer to Anthropic documentation.Temperature *float32 `json:"temperature,omitempty"`// TopK For a `completion` task, it specifies to only sample from the top K options// for each subsequent token.// It is recommended for advanced use cases only.// You usually only need to use `temperature`.TopK *int `json:"top_k,omitempty"`// TopP For a `completion` task, it specifies to use Anthropic's nucleus sampling.// In nucleus sampling, Anthropic computes the cumulative distribution over all// the options for each subsequent token in decreasing probability order and// cuts it off once it reaches the specified probability.// You should either alter `temperature` or `top_p`, but not both.// It is recommended for advanced use cases only.// You usually only need to use `temperature`.TopP *float32 `json:"top_p,omitempty"`}AnthropicTaskSettings type.
funcNewAnthropicTaskSettings¶added inv8.18.0
func NewAnthropicTaskSettings() *AnthropicTaskSettings
NewAnthropicTaskSettings returns a AnthropicTaskSettings.
func (*AnthropicTaskSettings)UnmarshalJSON¶added inv8.18.0
func (s *AnthropicTaskSettings) UnmarshalJSON(data []byte)error
typeApiKey¶
type ApiKey struct {// Access The access granted to cross-cluster API keys.// The access is composed of permissions for cross cluster search and cross// cluster replication.// At least one of them must be specified.// When specified, the new access assignment fully replaces the previously// assigned access.Access *Access `json:"access,omitempty"`// Creation Creation time for the API key in milliseconds.Creationint64 `json:"creation"`// Expiration Expiration time for the API key in milliseconds.Expiration *int64 `json:"expiration,omitempty"`// Id Id for the API keyIdstring `json:"id"`// Invalidated Invalidation status for the API key.// If the key has been invalidated, it has a value of `true`. Otherwise, it is// `false`.Invalidatedbool `json:"invalidated"`// Invalidation If the key has been invalidated, invalidation time in milliseconds.Invalidation *int64 `json:"invalidation,omitempty"`// LimitedBy The owner user’s permissions associated with the API key.// It is a point-in-time snapshot captured at creation and subsequent updates.// An API key’s effective permissions are an intersection of its assigned// privileges and the owner user’s permissions.LimitedBy []map[string]RoleDescriptor `json:"limited_by,omitempty"`// Metadata Metadata of the API keyMetadataMetadata `json:"metadata"`// Name Name of the API key.Namestring `json:"name"`// ProfileUid The profile uid for the API key owner principal, if requested and if it// existsProfileUid *string `json:"profile_uid,omitempty"`// Realm Realm name of the principal for which this API key was created.Realmstring `json:"realm"`// RealmType Realm type of the principal for which this API key was createdRealmType *string `json:"realm_type,omitempty"`// RoleDescriptors The role descriptors assigned to this API key when it was created or last// updated.// An empty role descriptor means the API key inherits the owner user’s// permissions.RoleDescriptors map[string]RoleDescriptor `json:"role_descriptors,omitempty"`// Sort_ Sorting values when using the `sort` parameter with the// `security.query_api_keys` API.Sort_ []FieldValue `json:"_sort,omitempty"`// Type The type of the API key (e.g. `rest` or `cross_cluster`).Typeapikeytype.ApiKeyType `json:"type"`// Username Principal for which this API key was createdUsernamestring `json:"username"`}ApiKey type.
func (*ApiKey)UnmarshalJSON¶added inv8.7.1
typeApiKeyAggregate¶added inv8.13.0
type ApiKeyAggregateany
ApiKeyAggregate holds the union for the following types:
CardinalityAggregateValueCountAggregateStringTermsAggregateLongTermsAggregateDoubleTermsAggregateUnmappedTermsAggregateMultiTermsAggregateMissingAggregateFilterAggregateFiltersAggregateRangeAggregateDateRangeAggregateCompositeAggregate
typeApiKeyAggregationContainer¶added inv8.13.0
type ApiKeyAggregationContainer struct {AdditionalApiKeyAggregationContainerProperty map[string]json.RawMessage `json:"-"`// Aggregations Sub-aggregations for this aggregation.// Only applies to bucket aggregations.Aggregations map[string]ApiKeyAggregationContainer `json:"aggregations,omitempty"`// Cardinality A single-value metrics aggregation that calculates an approximate count of// distinct values.Cardinality *CardinalityAggregation `json:"cardinality,omitempty"`// Composite A multi-bucket aggregation that creates composite buckets from different// sources.// Unlike the other multi-bucket aggregations, you can use the `composite`// aggregation to paginate *all* buckets from a multi-level aggregation// efficiently.Composite *CompositeAggregation `json:"composite,omitempty"`// DateRange A multi-bucket value source based aggregation that enables the user to define// a set of date ranges - each representing a bucket.DateRange *DateRangeAggregation `json:"date_range,omitempty"`// Filter A single bucket aggregation that narrows the set of documents to those that// match a query.Filter *ApiKeyQueryContainer `json:"filter,omitempty"`// Filters A multi-bucket aggregation where each bucket contains the documents that// match a query.Filters *ApiKeyFiltersAggregation `json:"filters,omitempty"`MetaMetadata `json:"meta,omitempty"`Missing *MissingAggregation `json:"missing,omitempty"`// Range A multi-bucket value source based aggregation that enables the user to define// a set of ranges - each representing a bucket.Range *RangeAggregation `json:"range,omitempty"`// Terms A multi-bucket value source based aggregation where buckets are dynamically// built - one per unique value.Terms *TermsAggregation `json:"terms,omitempty"`// ValueCount A single-value metrics aggregation that counts the number of values that are// extracted from the aggregated documents.ValueCount *ValueCountAggregation `json:"value_count,omitempty"`}ApiKeyAggregationContainer type.
funcNewApiKeyAggregationContainer¶added inv8.13.0
func NewApiKeyAggregationContainer() *ApiKeyAggregationContainer
NewApiKeyAggregationContainer returns a ApiKeyAggregationContainer.
func (ApiKeyAggregationContainer)MarshalJSON¶added inv8.18.0
func (sApiKeyAggregationContainer) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
func (*ApiKeyAggregationContainer)UnmarshalJSON¶added inv8.13.0
func (s *ApiKeyAggregationContainer) UnmarshalJSON(data []byte)error
typeApiKeyAuthorization¶
type ApiKeyAuthorization struct {// Id The identifier for the API key.Idstring `json:"id"`// Name The name of the API key.Namestring `json:"name"`}ApiKeyAuthorization type.
funcNewApiKeyAuthorization¶added inv8.5.0
func NewApiKeyAuthorization() *ApiKeyAuthorization
NewApiKeyAuthorization returns a ApiKeyAuthorization.
func (*ApiKeyAuthorization)UnmarshalJSON¶added inv8.9.0
func (s *ApiKeyAuthorization) UnmarshalJSON(data []byte)error
typeApiKeyFiltersAggregation¶added inv8.13.0
type ApiKeyFiltersAggregation struct {// Filters Collection of queries from which to build buckets.FiltersBucketsApiKeyQueryContainer `json:"filters,omitempty"`// Keyed By default, the named filters aggregation returns the buckets as an object.// Set to `false` to return the buckets as an array of objects.Keyed *bool `json:"keyed,omitempty"`// OtherBucket Set to `true` to add a bucket to the response which will contain all// documents that do not match any of the given filters.OtherBucket *bool `json:"other_bucket,omitempty"`// OtherBucketKey The key with which the other bucket is returned.OtherBucketKey *string `json:"other_bucket_key,omitempty"`}ApiKeyFiltersAggregation type.
funcNewApiKeyFiltersAggregation¶added inv8.13.0
func NewApiKeyFiltersAggregation() *ApiKeyFiltersAggregation
NewApiKeyFiltersAggregation returns a ApiKeyFiltersAggregation.
func (*ApiKeyFiltersAggregation)UnmarshalJSON¶added inv8.13.0
func (s *ApiKeyFiltersAggregation) UnmarshalJSON(data []byte)error
typeApiKeyQueryContainer¶added inv8.13.0
type ApiKeyQueryContainer struct {AdditionalApiKeyQueryContainerProperty map[string]json.RawMessage `json:"-"`// Bool Matches documents matching boolean combinations of other queries.Bool *BoolQuery `json:"bool,omitempty"`// Exists Returns documents that contain an indexed value for a field.Exists *ExistsQuery `json:"exists,omitempty"`// Ids Returns documents based on their IDs.// This query uses document IDs stored in the `_id` field.Ids *IdsQuery `json:"ids,omitempty"`// Match Returns documents that match a provided text, number, date or boolean value.// The provided text is analyzed before matching.Match map[string]MatchQuery `json:"match,omitempty"`// MatchAll Matches all documents, giving them all a `_score` of 1.0.MatchAll *MatchAllQuery `json:"match_all,omitempty"`// Prefix Returns documents that contain a specific prefix in a provided field.Prefix map[string]PrefixQuery `json:"prefix,omitempty"`// Range Returns documents that contain terms within a provided range.Range map[string]RangeQuery `json:"range,omitempty"`// SimpleQueryString Returns documents based on a provided query string, using a parser with a// limited but fault-tolerant syntax.SimpleQueryString *SimpleQueryStringQuery `json:"simple_query_string,omitempty"`// Term Returns documents that contain an exact term in a provided field.// To return a document, the query term must exactly match the queried field's// value, including whitespace and capitalization.Term map[string]TermQuery `json:"term,omitempty"`// Terms Returns documents that contain one or more exact terms in a provided field.// To return a document, one or more terms must exactly match a field value,// including whitespace and capitalization.Terms *TermsQuery `json:"terms,omitempty"`// Wildcard Returns documents that contain terms matching a wildcard pattern.Wildcard map[string]WildcardQuery `json:"wildcard,omitempty"`}ApiKeyQueryContainer type.
funcNewApiKeyQueryContainer¶added inv8.13.0
func NewApiKeyQueryContainer() *ApiKeyQueryContainer
NewApiKeyQueryContainer returns a ApiKeyQueryContainer.
func (ApiKeyQueryContainer)MarshalJSON¶added inv8.18.0
func (sApiKeyQueryContainer) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
func (*ApiKeyQueryContainer)UnmarshalJSON¶added inv8.15.0
func (s *ApiKeyQueryContainer) UnmarshalJSON(data []byte)error
typeApostropheTokenFilter¶added inv8.18.1
type ApostropheTokenFilter struct {Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}ApostropheTokenFilter type.
funcNewApostropheTokenFilter¶added inv8.18.1
func NewApostropheTokenFilter() *ApostropheTokenFilter
NewApostropheTokenFilter returns a ApostropheTokenFilter.
func (ApostropheTokenFilter)MarshalJSON¶added inv8.18.1
func (sApostropheTokenFilter) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*ApostropheTokenFilter)UnmarshalJSON¶added inv8.18.1
func (s *ApostropheTokenFilter) UnmarshalJSON(data []byte)error
typeAppendProcessor¶
type AppendProcessor struct {// AllowDuplicates If `false`, the processor does not append values already present in the// field.AllowDuplicates *bool `json:"allow_duplicates,omitempty"`// Description Description of the processor.// Useful for describing the purpose of the processor or its configuration.Description *string `json:"description,omitempty"`// Field The field to be appended to.// Supports template snippets.Fieldstring `json:"field"`// If Conditionally execute the processor.If *string `json:"if,omitempty"`// IgnoreFailure Ignore failures for the processor.IgnoreFailure *bool `json:"ignore_failure,omitempty"`// OnFailure Handle failures for the processor.OnFailure []ProcessorContainer `json:"on_failure,omitempty"`// Tag Identifier for the processor.// Useful for debugging and metrics.Tag *string `json:"tag,omitempty"`// Value The value to be appended. Supports template snippets.Value []json.RawMessage `json:"value"`}AppendProcessor type.
funcNewAppendProcessor¶added inv8.5.0
func NewAppendProcessor() *AppendProcessor
NewAppendProcessor returns a AppendProcessor.
func (*AppendProcessor)UnmarshalJSON¶added inv8.7.1
func (s *AppendProcessor) UnmarshalJSON(data []byte)error
typeApplicationGlobalUserPrivileges¶
type ApplicationGlobalUserPrivileges struct {ManageManageUserPrivileges `json:"manage"`}ApplicationGlobalUserPrivileges type.
funcNewApplicationGlobalUserPrivileges¶added inv8.5.0
func NewApplicationGlobalUserPrivileges() *ApplicationGlobalUserPrivileges
NewApplicationGlobalUserPrivileges returns a ApplicationGlobalUserPrivileges.
typeApplicationPrivileges¶
type ApplicationPrivileges struct {// Application The name of the application to which this entry applies.Applicationstring `json:"application"`// Privileges A list of strings, where each element is the name of an application privilege// or action.Privileges []string `json:"privileges"`// Resources A list resources to which the privileges are applied.Resources []string `json:"resources"`}ApplicationPrivileges type.
funcNewApplicationPrivileges¶added inv8.5.0
func NewApplicationPrivileges() *ApplicationPrivileges
NewApplicationPrivileges returns a ApplicationPrivileges.
func (*ApplicationPrivileges)UnmarshalJSON¶added inv8.9.0
func (s *ApplicationPrivileges) UnmarshalJSON(data []byte)error
typeApplicationPrivilegesCheck¶
type ApplicationPrivilegesCheck struct {// Application The name of the application.Applicationstring `json:"application"`// Privileges A list of the privileges that you want to check for the specified resources.// It may be either application privilege names or the names of actions that are// granted by those privilegesPrivileges []string `json:"privileges"`// Resources A list of resource names against which the privileges should be checked.Resources []string `json:"resources"`}ApplicationPrivilegesCheck type.
funcNewApplicationPrivilegesCheck¶added inv8.5.0
func NewApplicationPrivilegesCheck() *ApplicationPrivilegesCheck
NewApplicationPrivilegesCheck returns a ApplicationPrivilegesCheck.
func (*ApplicationPrivilegesCheck)UnmarshalJSON¶added inv8.9.0
func (s *ApplicationPrivilegesCheck) UnmarshalJSON(data []byte)error
typeApplicationsPrivileges¶
type ApplicationsPrivileges map[string]ResourcePrivileges
ApplicationsPrivileges type alias.
typeArabicAnalyzer¶added inv8.16.0
type ArabicAnalyzer struct {StemExclusion []string `json:"stem_exclusion,omitempty"`StopwordsStopWords `json:"stopwords,omitempty"`StopwordsPath *string `json:"stopwords_path,omitempty"`Typestring `json:"type,omitempty"`}ArabicAnalyzer type.
funcNewArabicAnalyzer¶added inv8.16.0
func NewArabicAnalyzer() *ArabicAnalyzer
NewArabicAnalyzer returns a ArabicAnalyzer.
func (ArabicAnalyzer)MarshalJSON¶added inv8.16.0
func (sArabicAnalyzer) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*ArabicAnalyzer)UnmarshalJSON¶added inv8.16.0
func (s *ArabicAnalyzer) UnmarshalJSON(data []byte)error
typeArabicNormalizationTokenFilter¶added inv8.18.1
type ArabicNormalizationTokenFilter struct {Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}ArabicNormalizationTokenFilter type.
funcNewArabicNormalizationTokenFilter¶added inv8.18.1
func NewArabicNormalizationTokenFilter() *ArabicNormalizationTokenFilter
NewArabicNormalizationTokenFilter returns a ArabicNormalizationTokenFilter.
func (ArabicNormalizationTokenFilter)MarshalJSON¶added inv8.18.1
func (sArabicNormalizationTokenFilter) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*ArabicNormalizationTokenFilter)UnmarshalJSON¶added inv8.18.1
func (s *ArabicNormalizationTokenFilter) UnmarshalJSON(data []byte)error
typeArabicStemTokenFilter¶added inv8.19.0
type ArabicStemTokenFilter struct {Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}ArabicStemTokenFilter type.
funcNewArabicStemTokenFilter¶added inv8.19.0
func NewArabicStemTokenFilter() *ArabicStemTokenFilter
NewArabicStemTokenFilter returns a ArabicStemTokenFilter.
func (ArabicStemTokenFilter)MarshalJSON¶added inv8.19.0
func (sArabicStemTokenFilter) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*ArabicStemTokenFilter)UnmarshalJSON¶added inv8.19.0
func (s *ArabicStemTokenFilter) UnmarshalJSON(data []byte)error
typeArchive¶
type Archive struct {Availablebool `json:"available"`Enabledbool `json:"enabled"`IndicesCountint64 `json:"indices_count"`}Archive type.
func (*Archive)UnmarshalJSON¶added inv8.7.1
typeArmenianAnalyzer¶added inv8.16.0
type ArmenianAnalyzer struct {StemExclusion []string `json:"stem_exclusion,omitempty"`StopwordsStopWords `json:"stopwords,omitempty"`StopwordsPath *string `json:"stopwords_path,omitempty"`Typestring `json:"type,omitempty"`}ArmenianAnalyzer type.
funcNewArmenianAnalyzer¶added inv8.16.0
func NewArmenianAnalyzer() *ArmenianAnalyzer
NewArmenianAnalyzer returns a ArmenianAnalyzer.
func (ArmenianAnalyzer)MarshalJSON¶added inv8.16.0
func (sArmenianAnalyzer) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*ArmenianAnalyzer)UnmarshalJSON¶added inv8.16.0
func (s *ArmenianAnalyzer) UnmarshalJSON(data []byte)error
typeArrayCompareCondition¶
type ArrayCompareCondition struct {ArrayCompareCondition map[conditionop.ConditionOp]ArrayCompareOpParams `json:"-"`Pathstring `json:"path"`}ArrayCompareCondition type.
funcNewArrayCompareCondition¶added inv8.5.0
func NewArrayCompareCondition() *ArrayCompareCondition
NewArrayCompareCondition returns a ArrayCompareCondition.
func (ArrayCompareCondition)MarshalJSON¶added inv8.5.0
func (sArrayCompareCondition) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
func (*ArrayCompareCondition)UnmarshalJSON¶added inv8.9.0
func (s *ArrayCompareCondition) UnmarshalJSON(data []byte)error
typeArrayCompareOpParams¶added inv8.5.0
type ArrayCompareOpParams struct {Quantifierquantifier.Quantifier `json:"quantifier"`ValueFieldValue `json:"value"`}ArrayCompareOpParams type.
funcNewArrayCompareOpParams¶added inv8.5.0
func NewArrayCompareOpParams() *ArrayCompareOpParams
NewArrayCompareOpParams returns a ArrayCompareOpParams.
func (*ArrayCompareOpParams)UnmarshalJSON¶added inv8.7.1
func (s *ArrayCompareOpParams) UnmarshalJSON(data []byte)error
typeArrayPercentilesItem¶
type ArrayPercentilesItem struct {Keystring `json:"key"`Value *Float64 `json:"value,omitempty"`ValueAsString *string `json:"value_as_string,omitempty"`}ArrayPercentilesItem type.
funcNewArrayPercentilesItem¶added inv8.5.0
func NewArrayPercentilesItem() *ArrayPercentilesItem
NewArrayPercentilesItem returns a ArrayPercentilesItem.
func (*ArrayPercentilesItem)UnmarshalJSON¶added inv8.7.1
func (s *ArrayPercentilesItem) UnmarshalJSON(data []byte)error
typeAsciiFoldingTokenFilter¶
type AsciiFoldingTokenFilter struct {// PreserveOriginal If `true`, emit both original tokens and folded tokens. Defaults to `false`.PreserveOriginalStringifiedboolean `json:"preserve_original,omitempty"`Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}AsciiFoldingTokenFilter type.
funcNewAsciiFoldingTokenFilter¶added inv8.5.0
func NewAsciiFoldingTokenFilter() *AsciiFoldingTokenFilter
NewAsciiFoldingTokenFilter returns a AsciiFoldingTokenFilter.
func (AsciiFoldingTokenFilter)MarshalJSON¶added inv8.9.0
func (sAsciiFoldingTokenFilter) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*AsciiFoldingTokenFilter)UnmarshalJSON¶added inv8.7.1
func (s *AsciiFoldingTokenFilter) UnmarshalJSON(data []byte)error
typeAsyncSearch¶
type AsyncSearch struct {// Aggregations Partial aggregations results, coming from the shards that have already// completed running the query.Aggregations map[string]Aggregate `json:"aggregations,omitempty"`Clusters_ *ClusterStatistics `json:"_clusters,omitempty"`Fields map[string]json.RawMessage `json:"fields,omitempty"`HitsHitsMetadata `json:"hits"`MaxScore *Float64 `json:"max_score,omitempty"`// NumReducePhases Indicates how many reductions of the results have been performed.// If this number increases compared to the last retrieved results for a get// asynch search request, you can expect additional results included in the// search response.NumReducePhases *int64 `json:"num_reduce_phases,omitempty"`PitId *string `json:"pit_id,omitempty"`Profile *Profile `json:"profile,omitempty"`ScrollId_ *string `json:"_scroll_id,omitempty"`// Shards_ Indicates how many shards have run the query.// Note that in order for shard results to be included in the search response,// they need to be reduced first.Shards_ShardStatistics `json:"_shards"`Suggest map[string][]Suggest `json:"suggest,omitempty"`TerminatedEarly *bool `json:"terminated_early,omitempty"`TimedOutbool `json:"timed_out"`Tookint64 `json:"took"`}AsyncSearch type.
funcNewAsyncSearch¶added inv8.5.0
func NewAsyncSearch() *AsyncSearch
NewAsyncSearch returns a AsyncSearch.
func (*AsyncSearch)UnmarshalJSON¶added inv8.7.0
func (s *AsyncSearch) UnmarshalJSON(data []byte)error
typeAttachmentProcessor¶
type AttachmentProcessor struct {// Description Description of the processor.// Useful for describing the purpose of the processor or its configuration.Description *string `json:"description,omitempty"`// Field The field to get the base64 encoded field from.Fieldstring `json:"field"`// If Conditionally execute the processor.If *string `json:"if,omitempty"`// IgnoreFailure Ignore failures for the processor.IgnoreFailure *bool `json:"ignore_failure,omitempty"`// IgnoreMissing If `true` and field does not exist, the processor quietly exits without// modifying the document.IgnoreMissing *bool `json:"ignore_missing,omitempty"`// IndexedChars The number of chars being used for extraction to prevent huge fields.// Use `-1` for no limit.IndexedChars *int64 `json:"indexed_chars,omitempty"`// IndexedCharsField Field name from which you can overwrite the number of chars being used for// extraction.IndexedCharsField *string `json:"indexed_chars_field,omitempty"`// OnFailure Handle failures for the processor.OnFailure []ProcessorContainer `json:"on_failure,omitempty"`// Properties Array of properties to select to be stored.// Can be `content`, `title`, `name`, `author`, `keywords`, `date`,// `content_type`, `content_length`, `language`.Properties []string `json:"properties,omitempty"`// RemoveBinary If true, the binary field will be removed from the documentRemoveBinary *bool `json:"remove_binary,omitempty"`// ResourceName Field containing the name of the resource to decode.// If specified, the processor passes this resource name to the underlying Tika// library to enable Resource Name Based Detection.ResourceName *string `json:"resource_name,omitempty"`// Tag Identifier for the processor.// Useful for debugging and metrics.Tag *string `json:"tag,omitempty"`// TargetField The field that will hold the attachment information.TargetField *string `json:"target_field,omitempty"`}AttachmentProcessor type.
funcNewAttachmentProcessor¶added inv8.5.0
func NewAttachmentProcessor() *AttachmentProcessor
NewAttachmentProcessor returns a AttachmentProcessor.
func (*AttachmentProcessor)UnmarshalJSON¶added inv8.7.1
func (s *AttachmentProcessor) UnmarshalJSON(data []byte)error
typeAuthenticateApiKey¶added inv8.17.0
AuthenticateApiKey type.
funcNewAuthenticateApiKey¶added inv8.17.0
func NewAuthenticateApiKey() *AuthenticateApiKey
NewAuthenticateApiKey returns a AuthenticateApiKey.
func (*AuthenticateApiKey)UnmarshalJSON¶added inv8.17.0
func (s *AuthenticateApiKey) UnmarshalJSON(data []byte)error
typeAuthenticateToken¶added inv8.5.0
AuthenticateToken type.
funcNewAuthenticateToken¶added inv8.5.0
func NewAuthenticateToken() *AuthenticateToken
NewAuthenticateToken returns a AuthenticateToken.
func (*AuthenticateToken)UnmarshalJSON¶added inv8.7.1
func (s *AuthenticateToken) UnmarshalJSON(data []byte)error
typeAuthenticatedUser¶
type AuthenticatedUser struct {AuthenticationProvider *AuthenticationProvider `json:"authentication_provider,omitempty"`AuthenticationRealmUserRealm `json:"authentication_realm"`AuthenticationTypestring `json:"authentication_type"`Email *string `json:"email,omitempty"`Enabledbool `json:"enabled"`FullName *string `json:"full_name,omitempty"`LookupRealmUserRealm `json:"lookup_realm"`MetadataMetadata `json:"metadata"`ProfileUid *string `json:"profile_uid,omitempty"`Roles []string `json:"roles"`Usernamestring `json:"username"`}AuthenticatedUser type.
funcNewAuthenticatedUser¶added inv8.5.0
func NewAuthenticatedUser() *AuthenticatedUser
NewAuthenticatedUser returns a AuthenticatedUser.
func (*AuthenticatedUser)UnmarshalJSON¶added inv8.7.1
func (s *AuthenticatedUser) UnmarshalJSON(data []byte)error
typeAuthentication¶added inv8.18.0
type Authentication struct {ApiKey map[string]string `json:"api_key,omitempty"`AuthenticationRealmAuthenticationRealm `json:"authentication_realm"`AuthenticationTypestring `json:"authentication_type"`Email *string `json:"email,omitempty"`Enabledbool `json:"enabled"`FullName *string `json:"full_name,omitempty"`LookupRealmAuthenticationRealm `json:"lookup_realm"`MetadataMetadata `json:"metadata"`Roles []string `json:"roles"`Token map[string]string `json:"token,omitempty"`Usernamestring `json:"username"`}Authentication type.
funcNewAuthentication¶added inv8.18.0
func NewAuthentication() *Authentication
NewAuthentication returns a Authentication.
func (*Authentication)UnmarshalJSON¶added inv8.18.0
func (s *Authentication) UnmarshalJSON(data []byte)error
typeAuthenticationProvider¶
AuthenticationProvider type.
funcNewAuthenticationProvider¶added inv8.5.0
func NewAuthenticationProvider() *AuthenticationProvider
NewAuthenticationProvider returns a AuthenticationProvider.
func (*AuthenticationProvider)UnmarshalJSON¶added inv8.7.1
func (s *AuthenticationProvider) UnmarshalJSON(data []byte)error
typeAuthenticationRealm¶added inv8.18.0
type AuthenticationRealm struct {Domain *string `json:"domain,omitempty"`Namestring `json:"name"`Typestring `json:"type"`}AuthenticationRealm type.
funcNewAuthenticationRealm¶added inv8.18.0
func NewAuthenticationRealm() *AuthenticationRealm
NewAuthenticationRealm returns a AuthenticationRealm.
func (*AuthenticationRealm)UnmarshalJSON¶added inv8.18.0
func (s *AuthenticationRealm) UnmarshalJSON(data []byte)error
typeAutoDateHistogramAggregate¶
type AutoDateHistogramAggregate struct {BucketsBucketsDateHistogramBucket `json:"buckets"`Intervalstring `json:"interval"`MetaMetadata `json:"meta,omitempty"`}AutoDateHistogramAggregate type.
funcNewAutoDateHistogramAggregate¶added inv8.5.0
func NewAutoDateHistogramAggregate() *AutoDateHistogramAggregate
NewAutoDateHistogramAggregate returns a AutoDateHistogramAggregate.
func (*AutoDateHistogramAggregate)UnmarshalJSON¶added inv8.7.0
func (s *AutoDateHistogramAggregate) UnmarshalJSON(data []byte)error
typeAutoDateHistogramAggregation¶
type AutoDateHistogramAggregation struct {// Buckets The target number of buckets.Buckets *int `json:"buckets,omitempty"`// Field The field on which to run the aggregation.Field *string `json:"field,omitempty"`// Format The date format used to format `key_as_string` in the response.// If no `format` is specified, the first date format specified in the field// mapping is used.Format *string `json:"format,omitempty"`// MinimumInterval The minimum rounding interval.// This can make the collection process more efficient, as the aggregation will// not attempt to round at any interval lower than `minimum_interval`.MinimumInterval *minimuminterval.MinimumInterval `json:"minimum_interval,omitempty"`// Missing The value to apply to documents that do not have a value.// By default, documents without a value are ignored.MissingDateTime `json:"missing,omitempty"`// Offset Time zone specified as a ISO 8601 UTC offset.Offset *string `json:"offset,omitempty"`Params map[string]json.RawMessage `json:"params,omitempty"`Script *Script `json:"script,omitempty"`// TimeZone Time zone ID.TimeZone *string `json:"time_zone,omitempty"`}AutoDateHistogramAggregation type.
funcNewAutoDateHistogramAggregation¶added inv8.5.0
func NewAutoDateHistogramAggregation() *AutoDateHistogramAggregation
NewAutoDateHistogramAggregation returns a AutoDateHistogramAggregation.
func (*AutoDateHistogramAggregation)UnmarshalJSON¶added inv8.7.1
func (s *AutoDateHistogramAggregation) UnmarshalJSON(data []byte)error
typeAutoFollowPattern¶
type AutoFollowPattern struct {Namestring `json:"name"`PatternAutoFollowPatternSummary `json:"pattern"`}AutoFollowPattern type.
funcNewAutoFollowPattern¶added inv8.5.0
func NewAutoFollowPattern() *AutoFollowPattern
NewAutoFollowPattern returns a AutoFollowPattern.
func (*AutoFollowPattern)UnmarshalJSON¶added inv8.7.1
func (s *AutoFollowPattern) UnmarshalJSON(data []byte)error
typeAutoFollowPatternSummary¶
type AutoFollowPatternSummary struct {Activebool `json:"active"`// FollowIndexPattern The name of follower index.FollowIndexPattern *string `json:"follow_index_pattern,omitempty"`// LeaderIndexExclusionPatterns An array of simple index patterns that can be used to exclude indices from// being auto-followed.LeaderIndexExclusionPatterns []string `json:"leader_index_exclusion_patterns"`// LeaderIndexPatterns An array of simple index patterns to match against indices in the remote// cluster specified by the remote_cluster field.LeaderIndexPatterns []string `json:"leader_index_patterns"`// MaxOutstandingReadRequests The maximum number of outstanding reads requests from the remote cluster.MaxOutstandingReadRequestsint `json:"max_outstanding_read_requests"`// RemoteCluster The remote cluster containing the leader indices to match against.RemoteClusterstring `json:"remote_cluster"`}AutoFollowPatternSummary type.
funcNewAutoFollowPatternSummary¶added inv8.5.0
func NewAutoFollowPatternSummary() *AutoFollowPatternSummary
NewAutoFollowPatternSummary returns a AutoFollowPatternSummary.
func (*AutoFollowPatternSummary)UnmarshalJSON¶added inv8.7.1
func (s *AutoFollowPatternSummary) UnmarshalJSON(data []byte)error
typeAutoFollowStats¶
type AutoFollowStats struct {AutoFollowedClusters []AutoFollowedCluster `json:"auto_followed_clusters"`// NumberOfFailedFollowIndices The number of indices that the auto-follow coordinator failed to// automatically follow.// The causes of recent failures are captured in the logs of the elected master// node and in the `auto_follow_stats.recent_auto_follow_errors` field.NumberOfFailedFollowIndicesint64 `json:"number_of_failed_follow_indices"`// NumberOfFailedRemoteClusterStateRequests The number of times that the auto-follow coordinator failed to retrieve the// cluster state from a remote cluster registered in a collection of auto-follow// patterns.NumberOfFailedRemoteClusterStateRequestsint64 `json:"number_of_failed_remote_cluster_state_requests"`// NumberOfSuccessfulFollowIndices The number of indices that the auto-follow coordinator successfully followed.NumberOfSuccessfulFollowIndicesint64 `json:"number_of_successful_follow_indices"`// RecentAutoFollowErrors An array of objects representing failures by the auto-follow coordinator.RecentAutoFollowErrors []ErrorCause `json:"recent_auto_follow_errors"`}AutoFollowStats type.
funcNewAutoFollowStats¶added inv8.5.0
func NewAutoFollowStats() *AutoFollowStats
NewAutoFollowStats returns a AutoFollowStats.
func (*AutoFollowStats)UnmarshalJSON¶added inv8.7.1
func (s *AutoFollowStats) UnmarshalJSON(data []byte)error
typeAutoFollowedCluster¶
type AutoFollowedCluster struct {ClusterNamestring `json:"cluster_name"`LastSeenMetadataVersionint64 `json:"last_seen_metadata_version"`TimeSinceLastCheckMillisint64 `json:"time_since_last_check_millis"`}AutoFollowedCluster type.
funcNewAutoFollowedCluster¶added inv8.5.0
func NewAutoFollowedCluster() *AutoFollowedCluster
NewAutoFollowedCluster returns a AutoFollowedCluster.
func (*AutoFollowedCluster)UnmarshalJSON¶added inv8.7.1
func (s *AutoFollowedCluster) UnmarshalJSON(data []byte)error
typeAutoscalingCapacity¶
type AutoscalingCapacity struct {NodeAutoscalingResources `json:"node"`TotalAutoscalingResources `json:"total"`}AutoscalingCapacity type.
funcNewAutoscalingCapacity¶added inv8.5.0
func NewAutoscalingCapacity() *AutoscalingCapacity
NewAutoscalingCapacity returns a AutoscalingCapacity.
typeAutoscalingDecider¶
type AutoscalingDecider struct {ReasonDetailsjson.RawMessage `json:"reason_details,omitempty"`ReasonSummary *string `json:"reason_summary,omitempty"`RequiredCapacityAutoscalingCapacity `json:"required_capacity"`}AutoscalingDecider type.
funcNewAutoscalingDecider¶added inv8.5.0
func NewAutoscalingDecider() *AutoscalingDecider
NewAutoscalingDecider returns a AutoscalingDecider.
func (*AutoscalingDecider)UnmarshalJSON¶added inv8.9.0
func (s *AutoscalingDecider) UnmarshalJSON(data []byte)error
typeAutoscalingDeciders¶
type AutoscalingDeciders struct {CurrentCapacityAutoscalingCapacity `json:"current_capacity"`CurrentNodes []AutoscalingNode `json:"current_nodes"`Deciders map[string]AutoscalingDecider `json:"deciders"`RequiredCapacityAutoscalingCapacity `json:"required_capacity"`}AutoscalingDeciders type.
funcNewAutoscalingDeciders¶added inv8.5.0
func NewAutoscalingDeciders() *AutoscalingDeciders
NewAutoscalingDeciders returns a AutoscalingDeciders.
typeAutoscalingNode¶
type AutoscalingNode struct {Namestring `json:"name"`}AutoscalingNode type.
funcNewAutoscalingNode¶added inv8.5.0
func NewAutoscalingNode() *AutoscalingNode
NewAutoscalingNode returns a AutoscalingNode.
func (*AutoscalingNode)UnmarshalJSON¶added inv8.7.1
func (s *AutoscalingNode) UnmarshalJSON(data []byte)error
typeAutoscalingPolicy¶
type AutoscalingPolicy struct {// Deciders Decider settings.Deciders map[string]json.RawMessage `json:"deciders"`Roles []string `json:"roles"`}AutoscalingPolicy type.
funcNewAutoscalingPolicy¶added inv8.5.0
func NewAutoscalingPolicy() *AutoscalingPolicy
NewAutoscalingPolicy returns a AutoscalingPolicy.
typeAutoscalingResources¶
AutoscalingResources type.
funcNewAutoscalingResources¶added inv8.5.0
func NewAutoscalingResources() *AutoscalingResources
NewAutoscalingResources returns a AutoscalingResources.
func (*AutoscalingResources)UnmarshalJSON¶added inv8.7.1
func (s *AutoscalingResources) UnmarshalJSON(data []byte)error
typeAverageAggregation¶
type AverageAggregation struct {// Field The field on which to run the aggregation.Field *string `json:"field,omitempty"`Format *string `json:"format,omitempty"`// Missing The value to apply to documents that do not have a value.// By default, documents without a value are ignored.MissingMissing `json:"missing,omitempty"`Script *Script `json:"script,omitempty"`}AverageAggregation type.
funcNewAverageAggregation¶added inv8.5.0
func NewAverageAggregation() *AverageAggregation
NewAverageAggregation returns a AverageAggregation.
func (*AverageAggregation)UnmarshalJSON¶added inv8.7.1
func (s *AverageAggregation) UnmarshalJSON(data []byte)error
typeAverageBucketAggregation¶
type AverageBucketAggregation struct {// BucketsPath Path to the buckets that contain one set of values to correlate.BucketsPathBucketsPath `json:"buckets_path,omitempty"`// Format `DecimalFormat` pattern for the output value.// If specified, the formatted value is returned in the aggregation’s// `value_as_string` property.Format *string `json:"format,omitempty"`// GapPolicy Policy to apply when gaps are found in the data.GapPolicy *gappolicy.GapPolicy `json:"gap_policy,omitempty"`}AverageBucketAggregation type.
funcNewAverageBucketAggregation¶added inv8.5.0
func NewAverageBucketAggregation() *AverageBucketAggregation
NewAverageBucketAggregation returns a AverageBucketAggregation.
func (*AverageBucketAggregation)UnmarshalJSON¶added inv8.7.0
func (s *AverageBucketAggregation) UnmarshalJSON(data []byte)error
typeAvgAggregate¶
type AvgAggregate struct {MetaMetadata `json:"meta,omitempty"`// Value The metric value. A missing value generally means that there was no data to// aggregate,// unless specified otherwise.Value *Float64 `json:"value,omitempty"`ValueAsString *string `json:"value_as_string,omitempty"`}AvgAggregate type.
funcNewAvgAggregate¶added inv8.5.0
func NewAvgAggregate() *AvgAggregate
NewAvgAggregate returns a AvgAggregate.
func (*AvgAggregate)UnmarshalJSON¶added inv8.7.1
func (s *AvgAggregate) UnmarshalJSON(data []byte)error
typeAzureAiStudioServiceSettings¶added inv8.18.0
type AzureAiStudioServiceSettings struct {// ApiKey A valid API key of your Azure AI Studio model deployment.// This key can be found on the overview page for your deployment in the// management section of your Azure AI Studio account.//// IMPORTANT: You need to provide the API key only once, during the inference// model creation.// The get inference endpoint API does not retrieve your API key.// After creating the inference model, you cannot change the associated API key.// If you want to use a different API key, delete the inference model and// recreate it with the same name and the updated API key.ApiKeystring `json:"api_key"`// EndpointType The type of endpoint that is available for deployment through Azure AI// Studio: `token` or `realtime`.// The `token` endpoint type is for "pay as you go" endpoints that are billed// per token.// The `realtime` endpoint type is for "real-time" endpoints that are billed per// hour of usage.EndpointTypestring `json:"endpoint_type"`// Provider The model provider for your deployment.// Note that some providers may support only certain task types.// Supported providers include://// * `cohere` - available for `text_embedding` and `completion` task types// * `databricks` - available for `completion` task type only// * `meta` - available for `completion` task type only// * `microsoft_phi` - available for `completion` task type only// * `mistral` - available for `completion` task type only// * `openai` - available for `text_embedding` and `completion` task typesProviderstring `json:"provider"`// RateLimit This setting helps to minimize the number of rate limit errors returned from// Azure AI Studio.// By default, the `azureaistudio` service sets the number of requests allowed// per minute to 240.RateLimit *RateLimitSetting `json:"rate_limit,omitempty"`// Target The target URL of your Azure AI Studio model deployment.// This can be found on the overview page for your deployment in the management// section of your Azure AI Studio account.Targetstring `json:"target"`}AzureAiStudioServiceSettings type.
funcNewAzureAiStudioServiceSettings¶added inv8.18.0
func NewAzureAiStudioServiceSettings() *AzureAiStudioServiceSettings
NewAzureAiStudioServiceSettings returns a AzureAiStudioServiceSettings.
func (*AzureAiStudioServiceSettings)UnmarshalJSON¶added inv8.18.0
func (s *AzureAiStudioServiceSettings) UnmarshalJSON(data []byte)error
typeAzureAiStudioTaskSettings¶added inv8.18.0
type AzureAiStudioTaskSettings struct {// DoSample For a `completion` task, instruct the inference process to perform sampling.// It has no effect unless `temperature` or `top_p` is specified.DoSample *float32 `json:"do_sample,omitempty"`// MaxNewTokens For a `completion` task, provide a hint for the maximum number of output// tokens to be generated.MaxNewTokens *int `json:"max_new_tokens,omitempty"`// Temperature For a `completion` task, control the apparent creativity of generated// completions with a sampling temperature.// It must be a number in the range of 0.0 to 2.0.// It should not be used if `top_p` is specified.Temperature *float32 `json:"temperature,omitempty"`// TopP For a `completion` task, make the model consider the results of the tokens// with nucleus sampling probability.// It is an alternative value to `temperature` and must be a number in the range// of 0.0 to 2.0.// It should not be used if `temperature` is specified.TopP *float32 `json:"top_p,omitempty"`// User For a `text_embedding` task, specify the user issuing the request.// This information can be used for abuse detection.User *string `json:"user,omitempty"`}AzureAiStudioTaskSettings type.
funcNewAzureAiStudioTaskSettings¶added inv8.18.0
func NewAzureAiStudioTaskSettings() *AzureAiStudioTaskSettings
NewAzureAiStudioTaskSettings returns a AzureAiStudioTaskSettings.
func (*AzureAiStudioTaskSettings)UnmarshalJSON¶added inv8.18.0
func (s *AzureAiStudioTaskSettings) UnmarshalJSON(data []byte)error
typeAzureOpenAIServiceSettings¶added inv8.18.0
type AzureOpenAIServiceSettings struct {// ApiKey A valid API key for your Azure OpenAI account.// You must specify either `api_key` or `entra_id`.// If you do not provide either or you provide both, you will receive an error// when you try to create your model.//// IMPORTANT: You need to provide the API key only once, during the inference// model creation.// The get inference endpoint API does not retrieve your API key.// After creating the inference model, you cannot change the associated API key.// If you want to use a different API key, delete the inference model and// recreate it with the same name and the updated API key.ApiKey *string `json:"api_key,omitempty"`// ApiVersion The Azure API version ID to use.// It is recommended to use the latest supported non-preview version.ApiVersionstring `json:"api_version"`// DeploymentId The deployment name of your deployed models.// Your Azure OpenAI deployments can be found though the Azure OpenAI Studio// portal that is linked to your subscription.DeploymentIdstring `json:"deployment_id"`// EntraId A valid Microsoft Entra token.// You must specify either `api_key` or `entra_id`.// If you do not provide either or you provide both, you will receive an error// when you try to create your model.EntraId *string `json:"entra_id,omitempty"`// RateLimit This setting helps to minimize the number of rate limit errors returned from// Azure.// The `azureopenai` service sets a default number of requests allowed per// minute depending on the task type.// For `text_embedding`, it is set to `1440`.// For `completion`, it is set to `120`.RateLimit *RateLimitSetting `json:"rate_limit,omitempty"`// ResourceName The name of your Azure OpenAI resource.// You can find this from the list of resources in the Azure Portal for your// subscription.ResourceNamestring `json:"resource_name"`}AzureOpenAIServiceSettings type.
funcNewAzureOpenAIServiceSettings¶added inv8.18.0
func NewAzureOpenAIServiceSettings() *AzureOpenAIServiceSettings
NewAzureOpenAIServiceSettings returns a AzureOpenAIServiceSettings.
func (*AzureOpenAIServiceSettings)UnmarshalJSON¶added inv8.18.0
func (s *AzureOpenAIServiceSettings) UnmarshalJSON(data []byte)error
typeAzureOpenAITaskSettings¶added inv8.18.0
type AzureOpenAITaskSettings struct {// User For a `completion` or `text_embedding` task, specify the user issuing the// request.// This information can be used for abuse detection.User *string `json:"user,omitempty"`}AzureOpenAITaskSettings type.
funcNewAzureOpenAITaskSettings¶added inv8.18.0
func NewAzureOpenAITaskSettings() *AzureOpenAITaskSettings
NewAzureOpenAITaskSettings returns a AzureOpenAITaskSettings.
func (*AzureOpenAITaskSettings)UnmarshalJSON¶added inv8.18.0
func (s *AzureOpenAITaskSettings) UnmarshalJSON(data []byte)error
typeAzureRepository¶added inv8.13.0
type AzureRepository struct {SettingsAzureRepositorySettings `json:"settings"`Typestring `json:"type,omitempty"`Uuid *string `json:"uuid,omitempty"`}AzureRepository type.
funcNewAzureRepository¶added inv8.13.0
func NewAzureRepository() *AzureRepository
NewAzureRepository returns a AzureRepository.
func (AzureRepository)MarshalJSON¶added inv8.13.0
func (sAzureRepository) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*AzureRepository)UnmarshalJSON¶added inv8.13.0
func (s *AzureRepository) UnmarshalJSON(data []byte)error
typeAzureRepositorySettings¶added inv8.13.0
type AzureRepositorySettings struct {BasePath *string `json:"base_path,omitempty"`ChunkSizeByteSize `json:"chunk_size,omitempty"`Client *string `json:"client,omitempty"`Compress *bool `json:"compress,omitempty"`Container *string `json:"container,omitempty"`LocationMode *string `json:"location_mode,omitempty"`MaxRestoreBytesPerSecByteSize `json:"max_restore_bytes_per_sec,omitempty"`MaxSnapshotBytesPerSecByteSize `json:"max_snapshot_bytes_per_sec,omitempty"`Readonly *bool `json:"readonly,omitempty"`}AzureRepositorySettings type.
funcNewAzureRepositorySettings¶added inv8.13.0
func NewAzureRepositorySettings() *AzureRepositorySettings
NewAzureRepositorySettings returns a AzureRepositorySettings.
func (*AzureRepositorySettings)UnmarshalJSON¶added inv8.13.0
func (s *AzureRepositorySettings) UnmarshalJSON(data []byte)error
typeBasqueAnalyzer¶added inv8.16.0
type BasqueAnalyzer struct {StemExclusion []string `json:"stem_exclusion,omitempty"`StopwordsStopWords `json:"stopwords,omitempty"`StopwordsPath *string `json:"stopwords_path,omitempty"`Typestring `json:"type,omitempty"`}BasqueAnalyzer type.
funcNewBasqueAnalyzer¶added inv8.16.0
func NewBasqueAnalyzer() *BasqueAnalyzer
NewBasqueAnalyzer returns a BasqueAnalyzer.
func (BasqueAnalyzer)MarshalJSON¶added inv8.16.0
func (sBasqueAnalyzer) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*BasqueAnalyzer)UnmarshalJSON¶added inv8.16.0
func (s *BasqueAnalyzer) UnmarshalJSON(data []byte)error
typeBengaliAnalyzer¶added inv8.16.0
type BengaliAnalyzer struct {StemExclusion []string `json:"stem_exclusion,omitempty"`StopwordsStopWords `json:"stopwords,omitempty"`StopwordsPath *string `json:"stopwords_path,omitempty"`Typestring `json:"type,omitempty"`}BengaliAnalyzer type.
funcNewBengaliAnalyzer¶added inv8.16.0
func NewBengaliAnalyzer() *BengaliAnalyzer
NewBengaliAnalyzer returns a BengaliAnalyzer.
func (BengaliAnalyzer)MarshalJSON¶added inv8.16.0
func (sBengaliAnalyzer) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*BengaliAnalyzer)UnmarshalJSON¶added inv8.16.0
func (s *BengaliAnalyzer) UnmarshalJSON(data []byte)error
typeBengaliNormalizationTokenFilter¶added inv8.19.0
type BengaliNormalizationTokenFilter struct {Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}BengaliNormalizationTokenFilter type.
funcNewBengaliNormalizationTokenFilter¶added inv8.19.0
func NewBengaliNormalizationTokenFilter() *BengaliNormalizationTokenFilter
NewBengaliNormalizationTokenFilter returns a BengaliNormalizationTokenFilter.
func (BengaliNormalizationTokenFilter)MarshalJSON¶added inv8.19.0
func (sBengaliNormalizationTokenFilter) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*BengaliNormalizationTokenFilter)UnmarshalJSON¶added inv8.19.0
func (s *BengaliNormalizationTokenFilter) UnmarshalJSON(data []byte)error
typeBinaryProperty¶
type BinaryProperty struct {CopyTo []string `json:"copy_to,omitempty"`DocValues *bool `json:"doc_values,omitempty"`Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`Fields map[string]Property `json:"fields,omitempty"`IgnoreAbove *int `json:"ignore_above,omitempty"`// Meta Metadata about the field.Meta map[string]string `json:"meta,omitempty"`Properties map[string]Property `json:"properties,omitempty"`Store *bool `json:"store,omitempty"`SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`Typestring `json:"type,omitempty"`}BinaryProperty type.
funcNewBinaryProperty¶added inv8.5.0
func NewBinaryProperty() *BinaryProperty
NewBinaryProperty returns a BinaryProperty.
func (BinaryProperty)MarshalJSON¶added inv8.9.0
func (sBinaryProperty) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*BinaryProperty)UnmarshalJSON¶added inv8.7.0
func (s *BinaryProperty) UnmarshalJSON(data []byte)error
typeBlobDetails¶added inv8.18.0
type BlobDetails struct {// Name The name of the blob.Namestring `json:"name"`// Overwritten Indicates whether the blob was overwritten while the read operations were// ongoing./////**Overwrittenbool `json:"overwritten"`ReadEarlybool `json:"read_early"`// ReadEnd The position, in bytes, at which read operations completed.ReadEndint64 `json:"read_end"`// ReadStart The position, in bytes, at which read operations started.ReadStartint64 `json:"read_start"`// Reads A description of every read operation performed on the blob.ReadsReadBlobDetails `json:"reads"`// Size The size of the blob.SizeByteSize `json:"size"`// SizeBytes The size of the blob in bytes.SizeBytesint64 `json:"size_bytes"`}BlobDetails type.
funcNewBlobDetails¶added inv8.18.0
func NewBlobDetails() *BlobDetails
NewBlobDetails returns a BlobDetails.
func (*BlobDetails)UnmarshalJSON¶added inv8.18.0
func (s *BlobDetails) UnmarshalJSON(data []byte)error
typeBoolQuery¶
type BoolQuery struct {// Boost Floating point number used to decrease or increase the relevance scores of// the query.// Boost values are relative to the default value of 1.0.// A boost value between 0 and 1.0 decreases the relevance score.// A value greater than 1.0 increases the relevance score.Boost *float32 `json:"boost,omitempty"`// Filter The clause (query) must appear in matching documents.// However, unlike `must`, the score of the query will be ignored.Filter []Query `json:"filter,omitempty"`// MinimumShouldMatch Specifies the number or percentage of `should` clauses returned documents// must match.MinimumShouldMatchMinimumShouldMatch `json:"minimum_should_match,omitempty"`// Must The clause (query) must appear in matching documents and will contribute to// the score.Must []Query `json:"must,omitempty"`// MustNot The clause (query) must not appear in the matching documents.// Because scoring is ignored, a score of `0` is returned for all documents.MustNot []Query `json:"must_not,omitempty"`QueryName_ *string `json:"_name,omitempty"`// Should The clause (query) should appear in the matching document.Should []Query `json:"should,omitempty"`}BoolQuery type.
func (*BoolQuery)UnmarshalJSON¶added inv8.7.1
typeBooleanProperty¶
type BooleanProperty struct {Boost *Float64 `json:"boost,omitempty"`CopyTo []string `json:"copy_to,omitempty"`DocValues *bool `json:"doc_values,omitempty"`Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`Fielddata *NumericFielddata `json:"fielddata,omitempty"`Fields map[string]Property `json:"fields,omitempty"`IgnoreAbove *int `json:"ignore_above,omitempty"`IgnoreMalformed *bool `json:"ignore_malformed,omitempty"`Index *bool `json:"index,omitempty"`// Meta Metadata about the field.Meta map[string]string `json:"meta,omitempty"`NullValue *bool `json:"null_value,omitempty"`OnScriptError *onscripterror.OnScriptError `json:"on_script_error,omitempty"`Properties map[string]Property `json:"properties,omitempty"`Script *Script `json:"script,omitempty"`Store *bool `json:"store,omitempty"`SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`// TimeSeriesDimension For internal use by Elastic only. Marks the field as a time series dimension.// Defaults to false.TimeSeriesDimension *bool `json:"time_series_dimension,omitempty"`Typestring `json:"type,omitempty"`}BooleanProperty type.
funcNewBooleanProperty¶added inv8.5.0
func NewBooleanProperty() *BooleanProperty
NewBooleanProperty returns a BooleanProperty.
func (BooleanProperty)MarshalJSON¶added inv8.9.0
func (sBooleanProperty) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*BooleanProperty)UnmarshalJSON¶added inv8.7.0
func (s *BooleanProperty) UnmarshalJSON(data []byte)error
typeBoostingQuery¶
type BoostingQuery struct {// Boost Floating point number used to decrease or increase the relevance scores of// the query.// Boost values are relative to the default value of 1.0.// A boost value between 0 and 1.0 decreases the relevance score.// A value greater than 1.0 increases the relevance score.Boost *float32 `json:"boost,omitempty"`// Negative Query used to decrease the relevance score of matching documents.NegativeQuery `json:"negative"`// NegativeBoost Floating point number between 0 and 1.0 used to decrease the relevance scores// of documents matching the `negative` query.NegativeBoostFloat64 `json:"negative_boost"`// Positive Any returned documents must match this query.PositiveQuery `json:"positive"`QueryName_ *string `json:"_name,omitempty"`}BoostingQuery type.
funcNewBoostingQuery¶added inv8.5.0
func NewBoostingQuery() *BoostingQuery
NewBoostingQuery returns a BoostingQuery.
func (*BoostingQuery)UnmarshalJSON¶added inv8.7.1
func (s *BoostingQuery) UnmarshalJSON(data []byte)error
typeBoxPlotAggregate¶
type BoxPlotAggregate struct {LowerFloat64 `json:"lower"`LowerAsString *string `json:"lower_as_string,omitempty"`MaxFloat64 `json:"max"`MaxAsString *string `json:"max_as_string,omitempty"`MetaMetadata `json:"meta,omitempty"`MinFloat64 `json:"min"`MinAsString *string `json:"min_as_string,omitempty"`Q1Float64 `json:"q1"`Q1AsString *string `json:"q1_as_string,omitempty"`Q2Float64 `json:"q2"`Q2AsString *string `json:"q2_as_string,omitempty"`Q3Float64 `json:"q3"`Q3AsString *string `json:"q3_as_string,omitempty"`UpperFloat64 `json:"upper"`UpperAsString *string `json:"upper_as_string,omitempty"`}BoxPlotAggregate type.
funcNewBoxPlotAggregate¶added inv8.5.0
func NewBoxPlotAggregate() *BoxPlotAggregate
NewBoxPlotAggregate returns a BoxPlotAggregate.
func (*BoxPlotAggregate)UnmarshalJSON¶added inv8.7.1
func (s *BoxPlotAggregate) UnmarshalJSON(data []byte)error
typeBoxplotAggregation¶
type BoxplotAggregation struct {// Compression Limits the maximum number of nodes used by the underlying TDigest algorithm// to `20 * compression`, enabling control of memory usage and approximation// error.Compression *Float64 `json:"compression,omitempty"`// ExecutionHint The default implementation of TDigest is optimized for performance, scaling// to millions or even billions of sample values while maintaining acceptable// accuracy levels (close to 1% relative error for millions of samples in some// cases).// To use an implementation optimized for accuracy, set this parameter to// high_accuracy instead.ExecutionHint *tdigestexecutionhint.TDigestExecutionHint `json:"execution_hint,omitempty"`// Field The field on which to run the aggregation.Field *string `json:"field,omitempty"`// Missing The value to apply to documents that do not have a value.// By default, documents without a value are ignored.MissingMissing `json:"missing,omitempty"`Script *Script `json:"script,omitempty"`}BoxplotAggregation type.
funcNewBoxplotAggregation¶added inv8.5.0
func NewBoxplotAggregation() *BoxplotAggregation
NewBoxplotAggregation returns a BoxplotAggregation.
func (*BoxplotAggregation)UnmarshalJSON¶added inv8.7.1
func (s *BoxplotAggregation) UnmarshalJSON(data []byte)error
typeBrazilianAnalyzer¶added inv8.16.0
type BrazilianAnalyzer struct {StopwordsStopWords `json:"stopwords,omitempty"`StopwordsPath *string `json:"stopwords_path,omitempty"`Typestring `json:"type,omitempty"`}BrazilianAnalyzer type.
funcNewBrazilianAnalyzer¶added inv8.16.0
func NewBrazilianAnalyzer() *BrazilianAnalyzer
NewBrazilianAnalyzer returns a BrazilianAnalyzer.
func (BrazilianAnalyzer)MarshalJSON¶added inv8.16.0
func (sBrazilianAnalyzer) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*BrazilianAnalyzer)UnmarshalJSON¶added inv8.16.0
func (s *BrazilianAnalyzer) UnmarshalJSON(data []byte)error
typeBrazilianStemTokenFilter¶added inv8.19.0
type BrazilianStemTokenFilter struct {Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}BrazilianStemTokenFilter type.
funcNewBrazilianStemTokenFilter¶added inv8.19.0
func NewBrazilianStemTokenFilter() *BrazilianStemTokenFilter
NewBrazilianStemTokenFilter returns a BrazilianStemTokenFilter.
func (BrazilianStemTokenFilter)MarshalJSON¶added inv8.19.0
func (sBrazilianStemTokenFilter) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*BrazilianStemTokenFilter)UnmarshalJSON¶added inv8.19.0
func (s *BrazilianStemTokenFilter) UnmarshalJSON(data []byte)error
typeBreaker¶
type Breaker struct {// EstimatedSize Estimated memory used for the operation.EstimatedSize *string `json:"estimated_size,omitempty"`// EstimatedSizeInBytes Estimated memory used, in bytes, for the operation.EstimatedSizeInBytes *int64 `json:"estimated_size_in_bytes,omitempty"`// LimitSize Memory limit for the circuit breaker.LimitSize *string `json:"limit_size,omitempty"`// LimitSizeInBytes Memory limit, in bytes, for the circuit breaker.LimitSizeInBytes *int64 `json:"limit_size_in_bytes,omitempty"`// Overhead A constant that all estimates for the circuit breaker are multiplied with to// calculate a final estimate.Overhead *float32 `json:"overhead,omitempty"`// Tripped Total number of times the circuit breaker has been triggered and prevented an// out of memory error.Tripped *float32 `json:"tripped,omitempty"`}Breaker type.
func (*Breaker)UnmarshalJSON¶added inv8.7.1
typeBucketCorrelationAggregation¶
type BucketCorrelationAggregation struct {// BucketsPath Path to the buckets that contain one set of values to correlate.BucketsPathBucketsPath `json:"buckets_path,omitempty"`// Function The correlation function to execute.FunctionBucketCorrelationFunction `json:"function"`}BucketCorrelationAggregation type.
funcNewBucketCorrelationAggregation¶added inv8.5.0
func NewBucketCorrelationAggregation() *BucketCorrelationAggregation
NewBucketCorrelationAggregation returns a BucketCorrelationAggregation.
func (*BucketCorrelationAggregation)UnmarshalJSON¶added inv8.7.0
func (s *BucketCorrelationAggregation) UnmarshalJSON(data []byte)error
typeBucketCorrelationFunction¶
type BucketCorrelationFunction struct {// CountCorrelation The configuration to calculate a count correlation. This function is designed// for determining the correlation of a term value and a given metric.CountCorrelationBucketCorrelationFunctionCountCorrelation `json:"count_correlation"`}BucketCorrelationFunction type.
funcNewBucketCorrelationFunction¶added inv8.5.0
func NewBucketCorrelationFunction() *BucketCorrelationFunction
NewBucketCorrelationFunction returns a BucketCorrelationFunction.
typeBucketCorrelationFunctionCountCorrelation¶
type BucketCorrelationFunctionCountCorrelation struct {// Indicator The indicator with which to correlate the configured `bucket_path` values.IndicatorBucketCorrelationFunctionCountCorrelationIndicator `json:"indicator"`}BucketCorrelationFunctionCountCorrelation type.
funcNewBucketCorrelationFunctionCountCorrelation¶added inv8.5.0
func NewBucketCorrelationFunctionCountCorrelation() *BucketCorrelationFunctionCountCorrelation
NewBucketCorrelationFunctionCountCorrelation returns a BucketCorrelationFunctionCountCorrelation.
typeBucketCorrelationFunctionCountCorrelationIndicator¶
type BucketCorrelationFunctionCountCorrelationIndicator struct {// DocCount The total number of documents that initially created the expectations. It’s// required to be greater// than or equal to the sum of all values in the buckets_path as this is the// originating superset of data// to which the term values are correlated.DocCountint `json:"doc_count"`// Expectations An array of numbers with which to correlate the configured `bucket_path`// values.// The length of this value must always equal the number of buckets returned by// the `bucket_path`.Expectations []Float64 `json:"expectations"`// Fractions An array of fractions to use when averaging and calculating variance. This// should be used if// the pre-calculated data and the buckets_path have known gaps. The length of// fractions, if provided,// must equal expectations.Fractions []Float64 `json:"fractions,omitempty"`}BucketCorrelationFunctionCountCorrelationIndicator type.
funcNewBucketCorrelationFunctionCountCorrelationIndicator¶added inv8.5.0
func NewBucketCorrelationFunctionCountCorrelationIndicator() *BucketCorrelationFunctionCountCorrelationIndicator
NewBucketCorrelationFunctionCountCorrelationIndicator returns a BucketCorrelationFunctionCountCorrelationIndicator.
func (*BucketCorrelationFunctionCountCorrelationIndicator)UnmarshalJSON¶added inv8.7.1
func (s *BucketCorrelationFunctionCountCorrelationIndicator) UnmarshalJSON(data []byte)error
typeBucketInfluencer¶
type BucketInfluencer struct {// AnomalyScore A normalized score between 0-100, which is calculated for each bucket// influencer. This score might be updated as// newer data is analyzed.AnomalyScoreFloat64 `json:"anomaly_score"`// BucketSpan The length of the bucket in seconds. This value matches the bucket span that// is specified in the job.BucketSpanint64 `json:"bucket_span"`// InfluencerFieldName The field name of the influencer.InfluencerFieldNamestring `json:"influencer_field_name"`// InitialAnomalyScore The score between 0-100 for each bucket influencer. This score is the initial// value that was calculated at the// time the bucket was processed.InitialAnomalyScoreFloat64 `json:"initial_anomaly_score"`// IsInterim If true, this is an interim result. In other words, the results are// calculated based on partial input data.IsInterimbool `json:"is_interim"`// JobId Identifier for the anomaly detection job.JobIdstring `json:"job_id"`// Probability The probability that the bucket has this behavior, in the range 0 to 1. This// value can be held to a high precision// of over 300 decimal places, so the `anomaly_score` is provided as a// human-readable and friendly interpretation of// this.ProbabilityFloat64 `json:"probability"`// RawAnomalyScore Internal.RawAnomalyScoreFloat64 `json:"raw_anomaly_score"`// ResultType Internal. This value is always set to `bucket_influencer`.ResultTypestring `json:"result_type"`// Timestamp The start time of the bucket for which these results were calculated.Timestampint64 `json:"timestamp"`// TimestampString The start time of the bucket for which these results were calculated.TimestampStringDateTime `json:"timestamp_string,omitempty"`}BucketInfluencer type.
funcNewBucketInfluencer¶added inv8.5.0
func NewBucketInfluencer() *BucketInfluencer
NewBucketInfluencer returns a BucketInfluencer.
func (*BucketInfluencer)UnmarshalJSON¶added inv8.7.1
func (s *BucketInfluencer) UnmarshalJSON(data []byte)error
typeBucketKsAggregation¶
type BucketKsAggregation struct {// Alternative A list of string values indicating which K-S test alternative to calculate.// The valid values// are: "greater", "less", "two_sided". This parameter is key for determining// the K-S statistic used// when calculating the K-S test. Default value is all possible alternative// hypotheses.Alternative []string `json:"alternative,omitempty"`// BucketsPath Path to the buckets that contain one set of values to correlate.BucketsPathBucketsPath `json:"buckets_path,omitempty"`// Fractions A list of doubles indicating the distribution of the samples with which to// compare to the `buckets_path` results.// In typical usage this is the overall proportion of documents in each bucket,// which is compared with the actual// document proportions in each bucket from the sibling aggregation counts. The// default is to assume that overall// documents are uniformly distributed on these buckets, which they would be if// one used equal percentiles of a// metric to define the bucket end points.Fractions []Float64 `json:"fractions,omitempty"`// SamplingMethod Indicates the sampling methodology when calculating the K-S test. Note, this// is sampling of the returned values.// This determines the cumulative distribution function (CDF) points used// comparing the two samples. Default is// `upper_tail`, which emphasizes the upper end of the CDF points. Valid options// are: `upper_tail`, `uniform`,// and `lower_tail`.SamplingMethod *string `json:"sampling_method,omitempty"`}BucketKsAggregation type.
funcNewBucketKsAggregation¶added inv8.5.0
func NewBucketKsAggregation() *BucketKsAggregation
NewBucketKsAggregation returns a BucketKsAggregation.
func (*BucketKsAggregation)UnmarshalJSON¶added inv8.7.0
func (s *BucketKsAggregation) UnmarshalJSON(data []byte)error
typeBucketMetricValueAggregate¶
type BucketMetricValueAggregate struct {Keys []string `json:"keys"`MetaMetadata `json:"meta,omitempty"`// Value The metric value. A missing value generally means that there was no data to// aggregate,// unless specified otherwise.Value *Float64 `json:"value,omitempty"`ValueAsString *string `json:"value_as_string,omitempty"`}BucketMetricValueAggregate type.
funcNewBucketMetricValueAggregate¶added inv8.5.0
func NewBucketMetricValueAggregate() *BucketMetricValueAggregate
NewBucketMetricValueAggregate returns a BucketMetricValueAggregate.
func (*BucketMetricValueAggregate)UnmarshalJSON¶added inv8.7.1
func (s *BucketMetricValueAggregate) UnmarshalJSON(data []byte)error
typeBucketScriptAggregation¶
type BucketScriptAggregation struct {// BucketsPath Path to the buckets that contain one set of values to correlate.BucketsPathBucketsPath `json:"buckets_path,omitempty"`// Format `DecimalFormat` pattern for the output value.// If specified, the formatted value is returned in the aggregation’s// `value_as_string` property.Format *string `json:"format,omitempty"`// GapPolicy Policy to apply when gaps are found in the data.GapPolicy *gappolicy.GapPolicy `json:"gap_policy,omitempty"`// Script The script to run for this aggregation.Script *Script `json:"script,omitempty"`}BucketScriptAggregation type.
funcNewBucketScriptAggregation¶added inv8.5.0
func NewBucketScriptAggregation() *BucketScriptAggregation
NewBucketScriptAggregation returns a BucketScriptAggregation.
func (*BucketScriptAggregation)UnmarshalJSON¶added inv8.7.0
func (s *BucketScriptAggregation) UnmarshalJSON(data []byte)error
typeBucketSelectorAggregation¶
type BucketSelectorAggregation struct {// BucketsPath Path to the buckets that contain one set of values to correlate.BucketsPathBucketsPath `json:"buckets_path,omitempty"`// Format `DecimalFormat` pattern for the output value.// If specified, the formatted value is returned in the aggregation’s// `value_as_string` property.Format *string `json:"format,omitempty"`// GapPolicy Policy to apply when gaps are found in the data.GapPolicy *gappolicy.GapPolicy `json:"gap_policy,omitempty"`// Script The script to run for this aggregation.Script *Script `json:"script,omitempty"`}BucketSelectorAggregation type.
funcNewBucketSelectorAggregation¶added inv8.5.0
func NewBucketSelectorAggregation() *BucketSelectorAggregation
NewBucketSelectorAggregation returns a BucketSelectorAggregation.
func (*BucketSelectorAggregation)UnmarshalJSON¶added inv8.7.0
func (s *BucketSelectorAggregation) UnmarshalJSON(data []byte)error
typeBucketSortAggregation¶
type BucketSortAggregation struct {// From Buckets in positions prior to `from` will be truncated.From *int `json:"from,omitempty"`// GapPolicy The policy to apply when gaps are found in the data.GapPolicy *gappolicy.GapPolicy `json:"gap_policy,omitempty"`// Size The number of buckets to return.// Defaults to all buckets of the parent aggregation.Size *int `json:"size,omitempty"`// Sort The list of fields to sort on.Sort []SortCombinations `json:"sort,omitempty"`}BucketSortAggregation type.
funcNewBucketSortAggregation¶added inv8.5.0
func NewBucketSortAggregation() *BucketSortAggregation
NewBucketSortAggregation returns a BucketSortAggregation.
func (*BucketSortAggregation)UnmarshalJSON¶added inv8.7.1
func (s *BucketSortAggregation) UnmarshalJSON(data []byte)error
typeBucketSummary¶
type BucketSummary struct {// AnomalyScore The maximum anomaly score, between 0-100, for any of the bucket influencers.// This is an overall, rate-limited// score for the job. All the anomaly records in the bucket contribute to this// score. This value might be updated as// new data is analyzed.AnomalyScoreFloat64 `json:"anomaly_score"`BucketInfluencers []BucketInfluencer `json:"bucket_influencers"`// BucketSpan The length of the bucket in seconds. This value matches the bucket span that// is specified in the job.BucketSpanint64 `json:"bucket_span"`// EventCount The number of input data records processed in this bucket.EventCountint64 `json:"event_count"`// InitialAnomalyScore The maximum anomaly score for any of the bucket influencers. This is the// initial value that was calculated at the// time the bucket was processed.InitialAnomalyScoreFloat64 `json:"initial_anomaly_score"`// IsInterim If true, this is an interim result. In other words, the results are// calculated based on partial input data.IsInterimbool `json:"is_interim"`// JobId Identifier for the anomaly detection job.JobIdstring `json:"job_id"`// ProcessingTimeMs The amount of time, in milliseconds, that it took to analyze the bucket// contents and calculate results.ProcessingTimeMsint64 `json:"processing_time_ms"`// ResultType Internal. This value is always set to bucket.ResultTypestring `json:"result_type"`// Timestamp The start time of the bucket. This timestamp uniquely identifies the bucket.// Events that occur exactly at the// timestamp of the bucket are included in the results for the bucket.Timestampint64 `json:"timestamp"`// TimestampString The start time of the bucket. This timestamp uniquely identifies the bucket.// Events that occur exactly at the// timestamp of the bucket are included in the results for the bucket.TimestampStringDateTime `json:"timestamp_string,omitempty"`}BucketSummary type.
funcNewBucketSummary¶added inv8.5.0
func NewBucketSummary() *BucketSummary
NewBucketSummary returns a BucketSummary.
func (*BucketSummary)UnmarshalJSON¶added inv8.7.1
func (s *BucketSummary) UnmarshalJSON(data []byte)error
typeBucketsAdjacencyMatrixBucket¶
type BucketsAdjacencyMatrixBucketany
BucketsAdjacencyMatrixBucket holds the union for the following types:
map[string]AdjacencyMatrixBucket[]AdjacencyMatrixBucket
typeBucketsApiKeyQueryContainer¶added inv8.13.0
type BucketsApiKeyQueryContainerany
BucketsApiKeyQueryContainer holds the union for the following types:
map[string]ApiKeyQueryContainer[]ApiKeyQueryContainer
typeBucketsCompositeBucket¶
type BucketsCompositeBucketany
BucketsCompositeBucket holds the union for the following types:
map[string]CompositeBucket[]CompositeBucket
typeBucketsDateHistogramBucket¶
type BucketsDateHistogramBucketany
BucketsDateHistogramBucket holds the union for the following types:
map[string]DateHistogramBucket[]DateHistogramBucket
typeBucketsDoubleTermsBucket¶
type BucketsDoubleTermsBucketany
BucketsDoubleTermsBucket holds the union for the following types:
map[string]DoubleTermsBucket[]DoubleTermsBucket
typeBucketsFiltersBucket¶
type BucketsFiltersBucketany
BucketsFiltersBucket holds the union for the following types:
map[string]FiltersBucket[]FiltersBucket
typeBucketsFrequentItemSetsBucket¶added inv8.8.0
type BucketsFrequentItemSetsBucketany
BucketsFrequentItemSetsBucket holds the union for the following types:
map[string]FrequentItemSetsBucket[]FrequentItemSetsBucket
typeBucketsGeoHashGridBucket¶
type BucketsGeoHashGridBucketany
BucketsGeoHashGridBucket holds the union for the following types:
map[string]GeoHashGridBucket[]GeoHashGridBucket
typeBucketsGeoHexGridBucket¶added inv8.5.0
type BucketsGeoHexGridBucketany
BucketsGeoHexGridBucket holds the union for the following types:
map[string]GeoHexGridBucket[]GeoHexGridBucket
typeBucketsGeoTileGridBucket¶
type BucketsGeoTileGridBucketany
BucketsGeoTileGridBucket holds the union for the following types:
map[string]GeoTileGridBucket[]GeoTileGridBucket
typeBucketsHistogramBucket¶
type BucketsHistogramBucketany
BucketsHistogramBucket holds the union for the following types:
map[string]HistogramBucket[]HistogramBucket
typeBucketsIpPrefixBucket¶added inv8.5.0
type BucketsIpPrefixBucketany
BucketsIpPrefixBucket holds the union for the following types:
map[string]IpPrefixBucket[]IpPrefixBucket
typeBucketsIpRangeBucket¶
type BucketsIpRangeBucketany
BucketsIpRangeBucket holds the union for the following types:
map[string]IpRangeBucket[]IpRangeBucket
typeBucketsLongRareTermsBucket¶
type BucketsLongRareTermsBucketany
BucketsLongRareTermsBucket holds the union for the following types:
map[string]LongRareTermsBucket[]LongRareTermsBucket
typeBucketsLongTermsBucket¶
type BucketsLongTermsBucketany
BucketsLongTermsBucket holds the union for the following types:
map[string]LongTermsBucket[]LongTermsBucket
typeBucketsMultiTermsBucket¶
type BucketsMultiTermsBucketany
BucketsMultiTermsBucket holds the union for the following types:
map[string]MultiTermsBucket[]MultiTermsBucket
typeBucketsPath¶
type BucketsPathany
BucketsPath holds the union for the following types:
string[]stringmap[string]string
typeBucketsQuery¶added inv8.5.0
type BucketsQueryany
BucketsQuery holds the union for the following types:
map[string]Query[]Query
typeBucketsRangeBucket¶
type BucketsRangeBucketany
BucketsRangeBucket holds the union for the following types:
map[string]RangeBucket[]RangeBucket
typeBucketsSignificantLongTermsBucket¶
type BucketsSignificantLongTermsBucketany
BucketsSignificantLongTermsBucket holds the union for the following types:
map[string]SignificantLongTermsBucket[]SignificantLongTermsBucket
typeBucketsSignificantStringTermsBucket¶
type BucketsSignificantStringTermsBucketany
BucketsSignificantStringTermsBucket holds the union for the following types:
map[string]SignificantStringTermsBucket[]SignificantStringTermsBucket
typeBucketsStringRareTermsBucket¶
type BucketsStringRareTermsBucketany
BucketsStringRareTermsBucket holds the union for the following types:
map[string]StringRareTermsBucket[]StringRareTermsBucket
typeBucketsStringTermsBucket¶
type BucketsStringTermsBucketany
BucketsStringTermsBucket holds the union for the following types:
map[string]StringTermsBucket[]StringTermsBucket
typeBucketsTimeSeriesBucket¶added inv8.16.0
type BucketsTimeSeriesBucketany
BucketsTimeSeriesBucket holds the union for the following types:
map[string]TimeSeriesBucket[]TimeSeriesBucket
typeBucketsVariableWidthHistogramBucket¶
type BucketsVariableWidthHistogramBucketany
BucketsVariableWidthHistogramBucket holds the union for the following types:
map[string]VariableWidthHistogramBucket[]VariableWidthHistogramBucket
typeBucketsVoid¶
type BucketsVoidany
BucketsVoid holds the union for the following types:
map[string]any[]any
typeBuildInformation¶
BuildInformation type.
funcNewBuildInformation¶added inv8.5.0
func NewBuildInformation() *BuildInformation
NewBuildInformation returns a BuildInformation.
func (*BuildInformation)UnmarshalJSON¶added inv8.7.1
func (s *BuildInformation) UnmarshalJSON(data []byte)error
typeBulgarianAnalyzer¶added inv8.16.0
type BulgarianAnalyzer struct {StemExclusion []string `json:"stem_exclusion,omitempty"`StopwordsStopWords `json:"stopwords,omitempty"`StopwordsPath *string `json:"stopwords_path,omitempty"`Typestring `json:"type,omitempty"`}BulgarianAnalyzer type.
funcNewBulgarianAnalyzer¶added inv8.16.0
func NewBulgarianAnalyzer() *BulgarianAnalyzer
NewBulgarianAnalyzer returns a BulgarianAnalyzer.
func (BulgarianAnalyzer)MarshalJSON¶added inv8.16.0
func (sBulgarianAnalyzer) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*BulgarianAnalyzer)UnmarshalJSON¶added inv8.16.0
func (s *BulgarianAnalyzer) UnmarshalJSON(data []byte)error
typeBulkError¶added inv8.15.0
type BulkError struct {// Count The number of errorsCountint `json:"count"`// Details Details about the errors, keyed by role nameDetails map[string]ErrorCause `json:"details"`}BulkError type.
func (*BulkError)UnmarshalJSON¶added inv8.15.0
typeBulkIndexByScrollFailure¶
type BulkIndexByScrollFailure struct {CauseErrorCause `json:"cause"`Idstring `json:"id"`Indexstring `json:"index"`Statusint `json:"status"`}BulkIndexByScrollFailure type.
funcNewBulkIndexByScrollFailure¶added inv8.5.0
func NewBulkIndexByScrollFailure() *BulkIndexByScrollFailure
NewBulkIndexByScrollFailure returns a BulkIndexByScrollFailure.
func (*BulkIndexByScrollFailure)UnmarshalJSON¶added inv8.7.1
func (s *BulkIndexByScrollFailure) UnmarshalJSON(data []byte)error
typeBulkStats¶
type BulkStats struct {AvgSizeByteSize `json:"avg_size,omitempty"`AvgSizeInBytesint64 `json:"avg_size_in_bytes"`AvgTimeDuration `json:"avg_time,omitempty"`AvgTimeInMillisint64 `json:"avg_time_in_millis"`TotalOperationsint64 `json:"total_operations"`TotalSizeByteSize `json:"total_size,omitempty"`TotalSizeInBytesint64 `json:"total_size_in_bytes"`TotalTimeDuration `json:"total_time,omitempty"`TotalTimeInMillisint64 `json:"total_time_in_millis"`}BulkStats type.
func (*BulkStats)UnmarshalJSON¶added inv8.7.1
typeByteNumberProperty¶
type ByteNumberProperty struct {Boost *Float64 `json:"boost,omitempty"`Coerce *bool `json:"coerce,omitempty"`CopyTo []string `json:"copy_to,omitempty"`DocValues *bool `json:"doc_values,omitempty"`Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`Fields map[string]Property `json:"fields,omitempty"`IgnoreAbove *int `json:"ignore_above,omitempty"`IgnoreMalformed *bool `json:"ignore_malformed,omitempty"`Index *bool `json:"index,omitempty"`// Meta Metadata about the field.Meta map[string]string `json:"meta,omitempty"`NullValue *byte `json:"null_value,omitempty"`OnScriptError *onscripterror.OnScriptError `json:"on_script_error,omitempty"`Properties map[string]Property `json:"properties,omitempty"`Script *Script `json:"script,omitempty"`Store *bool `json:"store,omitempty"`SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`// TimeSeriesDimension For internal use by Elastic only. Marks the field as a time series dimension.// Defaults to false.TimeSeriesDimension *bool `json:"time_series_dimension,omitempty"`// TimeSeriesMetric For internal use by Elastic only. Marks the field as a time series dimension.// Defaults to false.TimeSeriesMetric *timeseriesmetrictype.TimeSeriesMetricType `json:"time_series_metric,omitempty"`Typestring `json:"type,omitempty"`}ByteNumberProperty type.
funcNewByteNumberProperty¶added inv8.5.0
func NewByteNumberProperty() *ByteNumberProperty
NewByteNumberProperty returns a ByteNumberProperty.
func (ByteNumberProperty)MarshalJSON¶added inv8.9.0
func (sByteNumberProperty) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*ByteNumberProperty)UnmarshalJSON¶added inv8.7.0
func (s *ByteNumberProperty) UnmarshalJSON(data []byte)error
typeBytesProcessor¶
type BytesProcessor struct {// Description Description of the processor.// Useful for describing the purpose of the processor or its configuration.Description *string `json:"description,omitempty"`// Field The field to convert.Fieldstring `json:"field"`// If Conditionally execute the processor.If *string `json:"if,omitempty"`// IgnoreFailure Ignore failures for the processor.IgnoreFailure *bool `json:"ignore_failure,omitempty"`// IgnoreMissing If `true` and `field` does not exist or is `null`, the processor quietly// exits without modifying the document.IgnoreMissing *bool `json:"ignore_missing,omitempty"`// OnFailure Handle failures for the processor.OnFailure []ProcessorContainer `json:"on_failure,omitempty"`// Tag Identifier for the processor.// Useful for debugging and metrics.Tag *string `json:"tag,omitempty"`// TargetField The field to assign the converted value to.// By default, the field is updated in-place.TargetField *string `json:"target_field,omitempty"`}BytesProcessor type.
funcNewBytesProcessor¶added inv8.5.0
func NewBytesProcessor() *BytesProcessor
NewBytesProcessor returns a BytesProcessor.
func (*BytesProcessor)UnmarshalJSON¶added inv8.7.1
func (s *BytesProcessor) UnmarshalJSON(data []byte)error
typeCCSStats¶added inv8.18.1
type CCSStats struct {// Clusters Contains remote cluster settings and metrics collected from them.// The keys are cluster names, and the values are per-cluster data.// Only present if `include_remotes` option is set to true.Clusters map[string]RemoteClusterInfo `json:"clusters,omitempty"`// Esql_ Information about ES|QL cross-cluster query usage.Esql_ *CCSUsageStats `json:"_esql,omitempty"`// Search_ Information about cross-cluster search usage.Search_CCSUsageStats `json:"_search"`}CCSStats type.
typeCCSUsageClusterStats¶added inv8.18.1
type CCSUsageClusterStats struct {// Skipped The total number of cross-cluster search requests for which this cluster was// skipped.Skippedint `json:"skipped"`// Took Statistics about the time taken to execute requests against this cluster.TookCCSUsageTimeValue `json:"took"`// Total The total number of successful (not skipped) cross-cluster search requests// that were executed against this cluster. This may include requests where// partial results were returned, but not requests in which the cluster has been// skipped entirely.Totalint `json:"total"`}CCSUsageClusterStats type.
funcNewCCSUsageClusterStats¶added inv8.18.1
func NewCCSUsageClusterStats() *CCSUsageClusterStats
NewCCSUsageClusterStats returns a CCSUsageClusterStats.
func (*CCSUsageClusterStats)UnmarshalJSON¶added inv8.18.1
func (s *CCSUsageClusterStats) UnmarshalJSON(data []byte)error
typeCCSUsageStats¶added inv8.18.1
type CCSUsageStats struct {// Clients Statistics about the clients that executed cross-cluster search requests. The// keys are the names of the clients, and the values are the number of requests// that were executed by that client. Only known clients (such as `kibana` or// `elasticsearch`) are counted.Clients map[string]int `json:"clients"`// Clusters Statistics about the clusters that were queried in cross-cluster search// requests. The keys are cluster names, and the values are per-cluster// telemetry data. This also includes the local cluster itself, which uses the// name `(local)`.Clusters map[string]CCSUsageClusterStats `json:"clusters"`// FailureReasons Statistics about the reasons for cross-cluster search request failures. The// keys are the failure reason names and the values are the number of requests// that failed for that reason.FailureReasons map[string]int `json:"failure_reasons"`// Features The keys are the names of the search feature, and the values are the number// of requests that used that feature. Single request can use more than one// feature (e.g. both `async` and `wildcard`).Features map[string]int `json:"features"`// RemotesPerSearchAvg The average number of remote clusters that were queried in a single// cross-cluster search request.RemotesPerSearchAvgFloat64 `json:"remotes_per_search_avg"`// RemotesPerSearchMax The maximum number of remote clusters that were queried in a single// cross-cluster search request.RemotesPerSearchMaxint `json:"remotes_per_search_max"`// Skipped The total number of cross-cluster search requests (successful or failed) that// had at least one remote cluster skipped.Skippedint `json:"skipped"`// Success The total number of cross-cluster search requests that have been successfully// executed by the cluster.Successint `json:"success"`// Took Statistics about the time taken to execute cross-cluster search requests.TookCCSUsageTimeValue `json:"took"`// TookMrtFalse Statistics about the time taken to execute cross-cluster search requests for// which the `ccs_minimize_roundtrips` setting was set to `false`.TookMrtFalse *CCSUsageTimeValue `json:"took_mrt_false,omitempty"`// TookMrtTrue Statistics about the time taken to execute cross-cluster search requests for// which the `ccs_minimize_roundtrips` setting was set to `true`.TookMrtTrue *CCSUsageTimeValue `json:"took_mrt_true,omitempty"`// Total The total number of cross-cluster search requests that have been executed by// the cluster.Totalint `json:"total"`}CCSUsageStats type.
funcNewCCSUsageStats¶added inv8.18.1
func NewCCSUsageStats() *CCSUsageStats
NewCCSUsageStats returns a CCSUsageStats.
func (*CCSUsageStats)UnmarshalJSON¶added inv8.18.1
func (s *CCSUsageStats) UnmarshalJSON(data []byte)error
typeCCSUsageTimeValue¶added inv8.18.1
type CCSUsageTimeValue struct {// Avg The average time taken to execute a request, in milliseconds.Avgint64 `json:"avg"`// Max The maximum time taken to execute a request, in milliseconds.Maxint64 `json:"max"`// P90 The 90th percentile of the time taken to execute requests, in milliseconds.P90int64 `json:"p90"`}CCSUsageTimeValue type.
funcNewCCSUsageTimeValue¶added inv8.18.1
func NewCCSUsageTimeValue() *CCSUsageTimeValue
NewCCSUsageTimeValue returns a CCSUsageTimeValue.
func (*CCSUsageTimeValue)UnmarshalJSON¶added inv8.18.1
func (s *CCSUsageTimeValue) UnmarshalJSON(data []byte)error
typeCacheQueries¶
type CacheQueries struct {Enabledbool `json:"enabled"`}CacheQueries type.
funcNewCacheQueries¶added inv8.5.0
func NewCacheQueries() *CacheQueries
NewCacheQueries returns a CacheQueries.
func (*CacheQueries)UnmarshalJSON¶added inv8.7.1
func (s *CacheQueries) UnmarshalJSON(data []byte)error
typeCacheStats¶
type CacheStats struct {Countint `json:"count"`Evictionsint `json:"evictions"`Hitsint `json:"hits"`HitsTimeInMillisint64 `json:"hits_time_in_millis"`Missesint `json:"misses"`MissesTimeInMillisint64 `json:"misses_time_in_millis"`NodeIdstring `json:"node_id"`SizeInBytesint64 `json:"size_in_bytes"`}CacheStats type.
func (*CacheStats)UnmarshalJSON¶added inv8.7.1
func (s *CacheStats) UnmarshalJSON(data []byte)error
typeCalendar¶
type Calendar struct {// CalendarId A string that uniquely identifies a calendar.CalendarIdstring `json:"calendar_id"`// Description A description of the calendar.Description *string `json:"description,omitempty"`// JobIds An array of anomaly detection job identifiers.JobIds []string `json:"job_ids"`}Calendar type.
func (*Calendar)UnmarshalJSON¶added inv8.7.1
typeCalendarEvent¶
type CalendarEvent struct {// CalendarId A string that uniquely identifies a calendar.CalendarId *string `json:"calendar_id,omitempty"`// Description A description of the scheduled event.Descriptionstring `json:"description"`// EndTime The timestamp for the end of the scheduled event in milliseconds since the// epoch or ISO 8601 format.EndTimeDateTime `json:"end_time"`EventId *string `json:"event_id,omitempty"`// StartTime The timestamp for the beginning of the scheduled event in milliseconds since// the epoch or ISO 8601 format.StartTimeDateTime `json:"start_time"`}CalendarEvent type.
funcNewCalendarEvent¶added inv8.5.0
func NewCalendarEvent() *CalendarEvent
NewCalendarEvent returns a CalendarEvent.
func (*CalendarEvent)UnmarshalJSON¶added inv8.7.1
func (s *CalendarEvent) UnmarshalJSON(data []byte)error
typeCardinalityAggregate¶
CardinalityAggregate type.
funcNewCardinalityAggregate¶added inv8.5.0
func NewCardinalityAggregate() *CardinalityAggregate
NewCardinalityAggregate returns a CardinalityAggregate.
func (*CardinalityAggregate)UnmarshalJSON¶added inv8.7.1
func (s *CardinalityAggregate) UnmarshalJSON(data []byte)error
typeCardinalityAggregation¶
type CardinalityAggregation struct {// ExecutionHint Mechanism by which cardinality aggregations is run.ExecutionHint *cardinalityexecutionmode.CardinalityExecutionMode `json:"execution_hint,omitempty"`// Field The field on which to run the aggregation.Field *string `json:"field,omitempty"`// Missing The value to apply to documents that do not have a value.// By default, documents without a value are ignored.MissingMissing `json:"missing,omitempty"`// PrecisionThreshold A unique count below which counts are expected to be close to accurate.// This allows to trade memory for accuracy.PrecisionThreshold *int `json:"precision_threshold,omitempty"`Rehash *bool `json:"rehash,omitempty"`Script *Script `json:"script,omitempty"`}CardinalityAggregation type.
funcNewCardinalityAggregation¶added inv8.5.0
func NewCardinalityAggregation() *CardinalityAggregation
NewCardinalityAggregation returns a CardinalityAggregation.
func (*CardinalityAggregation)UnmarshalJSON¶added inv8.7.1
func (s *CardinalityAggregation) UnmarshalJSON(data []byte)error
typeCatAnonalyDetectorColumns¶
type CatAnonalyDetectorColumns []catanomalydetectorcolumn.CatAnomalyDetectorColumn
CatAnonalyDetectorColumns type alias.
typeCatComponentTemplate¶added inv8.5.0
type CatComponentTemplate struct {AliasCountstring `json:"alias_count"`IncludedInstring `json:"included_in"`MappingCountstring `json:"mapping_count"`MetadataCountstring `json:"metadata_count"`Namestring `json:"name"`SettingsCountstring `json:"settings_count"`Version *string `json:"version,omitempty"`}CatComponentTemplate type.
funcNewCatComponentTemplate¶added inv8.5.0
func NewCatComponentTemplate() *CatComponentTemplate
NewCatComponentTemplate returns a CatComponentTemplate.
func (*CatComponentTemplate)UnmarshalJSON¶added inv8.9.0
func (s *CatComponentTemplate) UnmarshalJSON(data []byte)error
typeCatDatafeedColumns¶
type CatDatafeedColumns []catdatafeedcolumn.CatDatafeedColumn
CatDatafeedColumns type alias.
typeCatNodeColumns¶added inv8.18.1
type CatNodeColumns []catnodecolumn.CatNodeColumn
CatNodeColumns type alias.
typeCatRecoveryColumns¶added inv8.19.0
type CatRecoveryColumns []catrecoverycolumn.CatRecoveryColumn
CatRecoveryColumns type alias.
typeCatSegmentsColumns¶added inv8.19.0
type CatSegmentsColumns []catsegmentscolumn.CatSegmentsColumn
CatSegmentsColumns type alias.
typeCatShardColumns¶added inv8.19.0
type CatShardColumns []catshardcolumn.CatShardColumn
CatShardColumns type alias.
typeCatSnapshotsColumns¶added inv8.19.0
type CatSnapshotsColumns []catsnapshotscolumn.CatSnapshotsColumn
CatSnapshotsColumns type alias.
typeCatThreadPoolColumns¶added inv8.19.0
type CatThreadPoolColumns []catthreadpoolcolumn.CatThreadPoolColumn
CatThreadPoolColumns type alias.
typeCatTrainedModelsColumns¶
type CatTrainedModelsColumns []cattrainedmodelscolumn.CatTrainedModelsColumn
CatTrainedModelsColumns type alias.
typeCatTransformColumns¶
type CatTransformColumns []cattransformcolumn.CatTransformColumn
CatTransformColumns type alias.
typeCatalanAnalyzer¶added inv8.16.0
type CatalanAnalyzer struct {StemExclusion []string `json:"stem_exclusion,omitempty"`StopwordsStopWords `json:"stopwords,omitempty"`StopwordsPath *string `json:"stopwords_path,omitempty"`Typestring `json:"type,omitempty"`}CatalanAnalyzer type.
funcNewCatalanAnalyzer¶added inv8.16.0
func NewCatalanAnalyzer() *CatalanAnalyzer
NewCatalanAnalyzer returns a CatalanAnalyzer.
func (CatalanAnalyzer)MarshalJSON¶added inv8.16.0
func (sCatalanAnalyzer) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*CatalanAnalyzer)UnmarshalJSON¶added inv8.16.0
func (s *CatalanAnalyzer) UnmarshalJSON(data []byte)error
typeCategorizationAnalyzer¶
type CategorizationAnalyzerany
CategorizationAnalyzer holds the union for the following types:
stringCategorizationAnalyzerDefinition
typeCategorizationAnalyzerDefinition¶
type CategorizationAnalyzerDefinition struct {// CharFilter One or more character filters. In addition to the built-in character filters,// other plugins can provide more character filters. If this property is not// specified, no character filters are applied prior to categorization. If you// are customizing some other aspect of the analyzer and you need to achieve the// equivalent of `categorization_filters` (which are not permitted when some// other aspect of the analyzer is customized), add them here as pattern replace// character filters.CharFilter []CharFilter `json:"char_filter,omitempty"`// Filter One or more token filters. In addition to the built-in token filters, other// plugins can provide more token filters. If this property is not specified, no// token filters are applied prior to categorization.Filter []TokenFilter `json:"filter,omitempty"`// Tokenizer The name or definition of the tokenizer to use after character filters are// applied. This property is compulsory if `categorization_analyzer` is// specified as an object. Machine learning provides a tokenizer called// `ml_standard` that tokenizes in a way that has been determined to produce// good categorization results on a variety of log file formats for logs in// English. If you want to use that tokenizer but change the character or token// filters, specify "tokenizer": "ml_standard" in your// `categorization_analyzer`. Additionally, the `ml_classic` tokenizer is// available, which tokenizes in the same way as the non-customizable tokenizer// in old versions of the product (before 6.2). `ml_classic` was the default// categorization tokenizer in versions 6.2 to 7.13, so if you need// categorization identical to the default for jobs created in these versions,// specify "tokenizer": "ml_classic" in your `categorization_analyzer`.TokenizerTokenizer `json:"tokenizer,omitempty"`}CategorizationAnalyzerDefinition type.
funcNewCategorizationAnalyzerDefinition¶added inv8.5.0
func NewCategorizationAnalyzerDefinition() *CategorizationAnalyzerDefinition
NewCategorizationAnalyzerDefinition returns a CategorizationAnalyzerDefinition.
func (*CategorizationAnalyzerDefinition)UnmarshalJSON¶added inv8.7.0
func (s *CategorizationAnalyzerDefinition) UnmarshalJSON(data []byte)error
typeCategorizeTextAggregation¶
type CategorizeTextAggregation struct {// CategorizationAnalyzer The categorization analyzer specifies how the text is analyzed and tokenized// before being categorized.// The syntax is very similar to that used to define the analyzer in the// `_analyze` endpoint. This property// cannot be used at the same time as categorization_filters.CategorizationAnalyzerCategorizeTextAnalyzer `json:"categorization_analyzer,omitempty"`// CategorizationFilters This property expects an array of regular expressions. The expressions are// used to filter out matching// sequences from the categorization field values. You can use this// functionality to fine tune the categorization// by excluding sequences from consideration when categories are defined. For// example, you can exclude SQL// statements that appear in your log files. This property cannot be used at the// same time as categorization_analyzer.// If you only want to define simple regular expression filters that are applied// prior to tokenization, setting// this property is the easiest method. If you also want to customize the// tokenizer or post-tokenization filtering,// use the categorization_analyzer property instead and include the filters as// pattern_replace character filters.CategorizationFilters []string `json:"categorization_filters,omitempty"`// Field The semi-structured text field to categorize.Fieldstring `json:"field"`// MaxMatchedTokens The maximum number of token positions to match on before attempting to merge// categories. Larger// values will use more memory and create narrower categories. Max allowed value// is 100.MaxMatchedTokens *int `json:"max_matched_tokens,omitempty"`// MaxUniqueTokens The maximum number of unique tokens at any position up to max_matched_tokens.// Must be larger than 1.// Smaller values use less memory and create fewer categories. Larger values// will use more memory and// create narrower categories. Max allowed value is 100.MaxUniqueTokens *int `json:"max_unique_tokens,omitempty"`// MinDocCount The minimum number of documents in a bucket to be returned to the results.MinDocCount *int `json:"min_doc_count,omitempty"`// ShardMinDocCount The minimum number of documents in a bucket to be returned from the shard// before merging.ShardMinDocCount *int `json:"shard_min_doc_count,omitempty"`// ShardSize The number of categorization buckets to return from each shard before merging// all the results.ShardSize *int `json:"shard_size,omitempty"`// SimilarityThreshold The minimum percentage of tokens that must match for text to be added to the// category bucket. Must// be between 1 and 100. The larger the value the narrower the categories.// Larger values will increase memory// usage and create narrower categories.SimilarityThreshold *int `json:"similarity_threshold,omitempty"`// Size The number of buckets to return.Size *int `json:"size,omitempty"`}CategorizeTextAggregation type.
funcNewCategorizeTextAggregation¶added inv8.5.0
func NewCategorizeTextAggregation() *CategorizeTextAggregation
NewCategorizeTextAggregation returns a CategorizeTextAggregation.
func (*CategorizeTextAggregation)UnmarshalJSON¶added inv8.7.0
func (s *CategorizeTextAggregation) UnmarshalJSON(data []byte)error
typeCategorizeTextAnalyzer¶
type CategorizeTextAnalyzerany
CategorizeTextAnalyzer holds the union for the following types:
stringCustomCategorizeTextAnalyzer
typeCategory¶
type Category struct {// CategoryId A unique identifier for the category. category_id is unique at the job level,// even when per-partition categorization is enabled.CategoryIduint64 `json:"category_id"`// Examples A list of examples of actual values that matched the category.Examples []string `json:"examples"`// GrokPattern [experimental] A Grok pattern that could be used in Logstash or an ingest// pipeline to extract fields from messages that match the category. This field// is experimental and may be changed or removed in a future release. The Grok// patterns that are found are not optimal, but are often a good starting point// for manual tweaking.GrokPattern *string `json:"grok_pattern,omitempty"`// JobId Identifier for the anomaly detection job.JobIdstring `json:"job_id"`// MaxMatchingLength The maximum length of the fields that matched the category. The value is// increased by 10% to enable matching for similar fields that have not been// analyzed.MaxMatchingLengthuint64 `json:"max_matching_length"`Mlcategorystring `json:"mlcategory"`// NumMatches The number of messages that have been matched by this category. This is only// guaranteed to have the latest accurate count after a job _flush or _closeNumMatches *int64 `json:"num_matches,omitempty"`P *string `json:"p,omitempty"`// PartitionFieldName If per-partition categorization is enabled, this property identifies the// field used to segment the categorization. It is not present when// per-partition categorization is disabled.PartitionFieldName *string `json:"partition_field_name,omitempty"`// PartitionFieldValue If per-partition categorization is enabled, this property identifies the// value of the partition_field_name for the category. It is not present when// per-partition categorization is disabled.PartitionFieldValue *string `json:"partition_field_value,omitempty"`// PreferredToCategories A list of category_id entries that this current category encompasses. Any new// message that is processed by the categorizer will match against this category// and not any of the categories in this list. This is only guaranteed to have// the latest accurate list of categories after a job _flush or _closePreferredToCategories []string `json:"preferred_to_categories,omitempty"`// Regex A regular expression that is used to search for values that match the// category.Regexstring `json:"regex"`ResultTypestring `json:"result_type"`// Terms A space separated list of the common tokens that are matched in values of the// category.Termsstring `json:"terms"`}Category type.
func (*Category)UnmarshalJSON¶added inv8.7.1
typeCcr¶
type Ccr struct {AutoFollowPatternsCountint `json:"auto_follow_patterns_count"`Availablebool `json:"available"`Enabledbool `json:"enabled"`FollowerIndicesCountint `json:"follower_indices_count"`}Ccr type.
func (*Ccr)UnmarshalJSON¶added inv8.7.1
typeCcrShardStats¶added inv8.5.0
type CcrShardStats struct {// BytesRead The total of transferred bytes read from the leader.// This is only an estimate and does not account for compression if enabled.BytesReadint64 `json:"bytes_read"`// FailedReadRequests The number of failed reads.FailedReadRequestsint64 `json:"failed_read_requests"`// FailedWriteRequests The number of failed bulk write requests on the follower.FailedWriteRequestsint64 `json:"failed_write_requests"`FatalException *ErrorCause `json:"fatal_exception,omitempty"`// FollowerAliasesVersion The index aliases version the follower is synced up to.FollowerAliasesVersionint64 `json:"follower_aliases_version"`// FollowerGlobalCheckpoint The current global checkpoint on the follower.// The difference between the `leader_global_checkpoint` and the// `follower_global_checkpoint` is an indication of how much the follower is// lagging the leader.FollowerGlobalCheckpointint64 `json:"follower_global_checkpoint"`// FollowerIndex The name of the follower index.FollowerIndexstring `json:"follower_index"`// FollowerMappingVersion The mapping version the follower is synced up to.FollowerMappingVersionint64 `json:"follower_mapping_version"`// FollowerMaxSeqNo The current maximum sequence number on the follower.FollowerMaxSeqNoint64 `json:"follower_max_seq_no"`// FollowerSettingsVersion The index settings version the follower is synced up to.FollowerSettingsVersionint64 `json:"follower_settings_version"`// LastRequestedSeqNo The starting sequence number of the last batch of operations requested from// the leader.LastRequestedSeqNoint64 `json:"last_requested_seq_no"`// LeaderGlobalCheckpoint The current global checkpoint on the leader known to the follower task.LeaderGlobalCheckpointint64 `json:"leader_global_checkpoint"`// LeaderIndex The name of the index in the leader cluster being followed.LeaderIndexstring `json:"leader_index"`// LeaderMaxSeqNo The current maximum sequence number on the leader known to the follower task.LeaderMaxSeqNoint64 `json:"leader_max_seq_no"`// OperationsRead The total number of operations read from the leader.OperationsReadint64 `json:"operations_read"`// OperationsWritten The number of operations written on the follower.OperationsWrittenint64 `json:"operations_written"`// OutstandingReadRequests The number of active read requests from the follower.OutstandingReadRequestsint `json:"outstanding_read_requests"`// OutstandingWriteRequests The number of active bulk write requests on the follower.OutstandingWriteRequestsint `json:"outstanding_write_requests"`// ReadExceptions An array of objects representing failed reads.ReadExceptions []ReadException `json:"read_exceptions"`// RemoteCluster The remote cluster containing the leader index.RemoteClusterstring `json:"remote_cluster"`// ShardId The numerical shard ID, with values from 0 to one less than the number of// replicas.ShardIdint `json:"shard_id"`// SuccessfulReadRequests The number of successful fetches.SuccessfulReadRequestsint64 `json:"successful_read_requests"`// SuccessfulWriteRequests The number of bulk write requests run on the follower.SuccessfulWriteRequestsint64 `json:"successful_write_requests"`TimeSinceLastReadDuration `json:"time_since_last_read,omitempty"`// TimeSinceLastReadMillis The number of milliseconds since a read request was sent to the leader.// When the follower is caught up to the leader, this number will increase up to// the configured `read_poll_timeout` at which point another read request will// be sent to the leader.TimeSinceLastReadMillisint64 `json:"time_since_last_read_millis"`TotalReadRemoteExecTimeDuration `json:"total_read_remote_exec_time,omitempty"`// TotalReadRemoteExecTimeMillis The total time reads spent running on the remote cluster.TotalReadRemoteExecTimeMillisint64 `json:"total_read_remote_exec_time_millis"`TotalReadTimeDuration `json:"total_read_time,omitempty"`// TotalReadTimeMillis The total time reads were outstanding, measured from the time a read was sent// to the leader to the time a reply was returned to the follower.TotalReadTimeMillisint64 `json:"total_read_time_millis"`TotalWriteTimeDuration `json:"total_write_time,omitempty"`// TotalWriteTimeMillis The total time spent writing on the follower.TotalWriteTimeMillisint64 `json:"total_write_time_millis"`// WriteBufferOperationCount The number of write operations queued on the follower.WriteBufferOperationCountint64 `json:"write_buffer_operation_count"`// WriteBufferSizeInBytes The total number of bytes of operations currently queued for writing.WriteBufferSizeInBytesByteSize `json:"write_buffer_size_in_bytes"`}CcrShardStats type.
funcNewCcrShardStats¶added inv8.5.0
func NewCcrShardStats() *CcrShardStats
NewCcrShardStats returns a CcrShardStats.
func (*CcrShardStats)UnmarshalJSON¶added inv8.7.1
func (s *CcrShardStats) UnmarshalJSON(data []byte)error
typeCertificateInformation¶
type CertificateInformation struct {// Alias If the path refers to a container file (a jks keystore, or a PKCS#12 file),// it is the alias of the certificate.// Otherwise, it is null.Alias *string `json:"alias,omitempty"`// Expiry The ISO formatted date of the certificate's expiry (not-after) date.ExpiryDateTime `json:"expiry"`// Format The format of the file.// Valid values include `jks`, `PKCS12`, and `PEM`.Formatstring `json:"format"`// HasPrivateKey Indicates whether Elasticsearch has access to the private key for this// certificate.HasPrivateKeybool `json:"has_private_key"`// Issuer The Distinguished Name of the certificate's issuer.Issuer *string `json:"issuer,omitempty"`// Path The path to the certificate, as configured in the `elasticsearch.yml` file.Pathstring `json:"path"`// SerialNumber The hexadecimal representation of the certificate's serial number.SerialNumberstring `json:"serial_number"`// SubjectDn The Distinguished Name of the certificate's subject.SubjectDnstring `json:"subject_dn"`}CertificateInformation type.
funcNewCertificateInformation¶added inv8.5.0
func NewCertificateInformation() *CertificateInformation
NewCertificateInformation returns a CertificateInformation.
func (*CertificateInformation)UnmarshalJSON¶added inv8.7.1
func (s *CertificateInformation) UnmarshalJSON(data []byte)error
typeCgroup¶
type Cgroup struct {// Cpu Contains statistics about `cpu` control group for the node.Cpu *CgroupCpu `json:"cpu,omitempty"`// Cpuacct Contains statistics about `cpuacct` control group for the node.Cpuacct *CpuAcct `json:"cpuacct,omitempty"`// Memory Contains statistics about the memory control group for the node.Memory *CgroupMemory `json:"memory,omitempty"`}Cgroup type.
typeCgroupCpu¶
type CgroupCpu struct {// CfsPeriodMicros The period of time, in microseconds, for how regularly all tasks in the same// cgroup as the Elasticsearch process should have their access to CPU resources// reallocated.CfsPeriodMicros *int `json:"cfs_period_micros,omitempty"`// CfsQuotaMicros The total amount of time, in microseconds, for which all tasks in the same// cgroup as the Elasticsearch process can run during one period// `cfs_period_micros`.CfsQuotaMicros *int `json:"cfs_quota_micros,omitempty"`// ControlGroup The `cpu` control group to which the Elasticsearch process belongs.ControlGroup *string `json:"control_group,omitempty"`// Stat Contains CPU statistics for the node.Stat *CgroupCpuStat `json:"stat,omitempty"`}CgroupCpu type.
func (*CgroupCpu)UnmarshalJSON¶added inv8.7.1
typeCgroupCpuStat¶
type CgroupCpuStat struct {// NumberOfElapsedPeriods The number of reporting periods (as specified by `cfs_period_micros`) that// have elapsed.NumberOfElapsedPeriods *int64 `json:"number_of_elapsed_periods,omitempty"`// NumberOfTimesThrottled The number of times all tasks in the same cgroup as the Elasticsearch process// have been throttled.NumberOfTimesThrottled *int64 `json:"number_of_times_throttled,omitempty"`// TimeThrottledNanos The total amount of time, in nanoseconds, for which all tasks in the same// cgroup as the Elasticsearch process have been throttled.TimeThrottledNanos *int64 `json:"time_throttled_nanos,omitempty"`}CgroupCpuStat type.
funcNewCgroupCpuStat¶added inv8.5.0
func NewCgroupCpuStat() *CgroupCpuStat
NewCgroupCpuStat returns a CgroupCpuStat.
func (*CgroupCpuStat)UnmarshalJSON¶added inv8.7.1
func (s *CgroupCpuStat) UnmarshalJSON(data []byte)error
typeCgroupMemory¶
type CgroupMemory struct {// ControlGroup The `memory` control group to which the Elasticsearch process belongs.ControlGroup *string `json:"control_group,omitempty"`// LimitInBytes The maximum amount of user memory (including file cache) allowed for all// tasks in the same cgroup as the Elasticsearch process.// This value can be too big to store in a `long`, so is returned as a string so// that the value returned can exactly match what the underlying operating// system interface returns.// Any value that is too large to parse into a `long` almost certainly means no// limit has been set for the cgroup.LimitInBytes *string `json:"limit_in_bytes,omitempty"`// UsageInBytes The total current memory usage by processes in the cgroup, in bytes, by all// tasks in the same cgroup as the Elasticsearch process.// This value is stored as a string for consistency with `limit_in_bytes`.UsageInBytes *string `json:"usage_in_bytes,omitempty"`}CgroupMemory type.
funcNewCgroupMemory¶added inv8.5.0
func NewCgroupMemory() *CgroupMemory
NewCgroupMemory returns a CgroupMemory.
func (*CgroupMemory)UnmarshalJSON¶added inv8.9.0
func (s *CgroupMemory) UnmarshalJSON(data []byte)error
typeChainInput¶
type ChainInput struct {Inputs []map[string]WatcherInput `json:"inputs"`}ChainInput type.
typeCharFilter¶
type CharFilterany
CharFilter holds the union for the following types:
stringCharFilterDefinition
typeCharFilterDefinition¶
type CharFilterDefinitionany
CharFilterDefinition holds the union for the following types:
HtmlStripCharFilterMappingCharFilterPatternReplaceCharFilterIcuNormalizationCharFilterKuromojiIterationMarkCharFilter
typeCharFilterDetail¶
CharFilterDetail type.
funcNewCharFilterDetail¶added inv8.5.0
func NewCharFilterDetail() *CharFilterDetail
NewCharFilterDetail returns a CharFilterDetail.
func (*CharFilterDetail)UnmarshalJSON¶added inv8.9.0
func (s *CharFilterDetail) UnmarshalJSON(data []byte)error
typeCharFilterTypes¶
type CharFilterTypes struct {// AnalyzerTypes Contains statistics about analyzer types used in selected nodes.AnalyzerTypes []FieldTypes `json:"analyzer_types"`// BuiltInAnalyzers Contains statistics about built-in analyzers used in selected nodes.BuiltInAnalyzers []FieldTypes `json:"built_in_analyzers"`// BuiltInCharFilters Contains statistics about built-in character filters used in selected nodes.BuiltInCharFilters []FieldTypes `json:"built_in_char_filters"`// BuiltInFilters Contains statistics about built-in token filters used in selected nodes.BuiltInFilters []FieldTypes `json:"built_in_filters"`// BuiltInTokenizers Contains statistics about built-in tokenizers used in selected nodes.BuiltInTokenizers []FieldTypes `json:"built_in_tokenizers"`// CharFilterTypes Contains statistics about character filter types used in selected nodes.CharFilterTypes []FieldTypes `json:"char_filter_types"`// FilterTypes Contains statistics about token filter types used in selected nodes.FilterTypes []FieldTypes `json:"filter_types"`// Synonyms Contains statistics about synonyms types used in selected nodes.Synonyms map[string]SynonymsStats `json:"synonyms"`// TokenizerTypes Contains statistics about tokenizer types used in selected nodes.TokenizerTypes []FieldTypes `json:"tokenizer_types"`}CharFilterTypes type.
funcNewCharFilterTypes¶added inv8.5.0
func NewCharFilterTypes() *CharFilterTypes
NewCharFilterTypes returns a CharFilterTypes.
typeCharGroupTokenizer¶
type CharGroupTokenizer struct {MaxTokenLength *int `json:"max_token_length,omitempty"`TokenizeOnChars []string `json:"tokenize_on_chars"`Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}CharGroupTokenizer type.
funcNewCharGroupTokenizer¶added inv8.5.0
func NewCharGroupTokenizer() *CharGroupTokenizer
NewCharGroupTokenizer returns a CharGroupTokenizer.
func (CharGroupTokenizer)MarshalJSON¶added inv8.9.0
func (sCharGroupTokenizer) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*CharGroupTokenizer)UnmarshalJSON¶added inv8.7.1
func (s *CharGroupTokenizer) UnmarshalJSON(data []byte)error
typeCheckpointStats¶
type CheckpointStats struct {Checkpointint64 `json:"checkpoint"`CheckpointProgress *TransformProgress `json:"checkpoint_progress,omitempty"`TimeUpperBoundDateTime `json:"time_upper_bound,omitempty"`TimeUpperBoundMillis *int64 `json:"time_upper_bound_millis,omitempty"`TimestampDateTime `json:"timestamp,omitempty"`TimestampMillis *int64 `json:"timestamp_millis,omitempty"`}CheckpointStats type.
funcNewCheckpointStats¶added inv8.5.0
func NewCheckpointStats() *CheckpointStats
NewCheckpointStats returns a CheckpointStats.
func (*CheckpointStats)UnmarshalJSON¶added inv8.7.1
func (s *CheckpointStats) UnmarshalJSON(data []byte)error
typeCheckpointing¶
type Checkpointing struct {ChangesLastDetectedAt *int64 `json:"changes_last_detected_at,omitempty"`ChangesLastDetectedAtStringDateTime `json:"changes_last_detected_at_string,omitempty"`LastCheckpointStats `json:"last"`LastSearchTime *int64 `json:"last_search_time,omitempty"`LastSearchTimeStringDateTime `json:"last_search_time_string,omitempty"`Next *CheckpointStats `json:"next,omitempty"`OperationsBehind *int64 `json:"operations_behind,omitempty"`}Checkpointing type.
funcNewCheckpointing¶added inv8.5.0
func NewCheckpointing() *Checkpointing
NewCheckpointing returns a Checkpointing.
func (*Checkpointing)UnmarshalJSON¶added inv8.7.1
func (s *Checkpointing) UnmarshalJSON(data []byte)error
typeChiSquareHeuristic¶
type ChiSquareHeuristic struct {// BackgroundIsSuperset Set to `false` if you defined a custom background filter that represents a// different set of documents that you want to compare to.BackgroundIsSupersetbool `json:"background_is_superset"`// IncludeNegatives Set to `false` to filter out the terms that appear less often in the subset// than in documents outside the subset.IncludeNegativesbool `json:"include_negatives"`}ChiSquareHeuristic type.
funcNewChiSquareHeuristic¶added inv8.5.0
func NewChiSquareHeuristic() *ChiSquareHeuristic
NewChiSquareHeuristic returns a ChiSquareHeuristic.
func (*ChiSquareHeuristic)UnmarshalJSON¶added inv8.7.1
func (s *ChiSquareHeuristic) UnmarshalJSON(data []byte)error
typeChildrenAggregate¶
type ChildrenAggregate struct {Aggregations map[string]Aggregate `json:"-"`DocCountint64 `json:"doc_count"`MetaMetadata `json:"meta,omitempty"`}ChildrenAggregate type.
funcNewChildrenAggregate¶added inv8.5.0
func NewChildrenAggregate() *ChildrenAggregate
NewChildrenAggregate returns a ChildrenAggregate.
func (ChildrenAggregate)MarshalJSON¶
func (sChildrenAggregate) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
func (*ChildrenAggregate)UnmarshalJSON¶added inv8.7.0
func (s *ChildrenAggregate) UnmarshalJSON(data []byte)error
typeChildrenAggregation¶
type ChildrenAggregation struct {// Type The child type that should be selected.Type *string `json:"type,omitempty"`}ChildrenAggregation type.
funcNewChildrenAggregation¶added inv8.5.0
func NewChildrenAggregation() *ChildrenAggregation
NewChildrenAggregation returns a ChildrenAggregation.
func (*ChildrenAggregation)UnmarshalJSON¶added inv8.7.1
func (s *ChildrenAggregation) UnmarshalJSON(data []byte)error
typeChineseAnalyzer¶added inv8.16.0
type ChineseAnalyzer struct {StopwordsStopWords `json:"stopwords,omitempty"`StopwordsPath *string `json:"stopwords_path,omitempty"`Typestring `json:"type,omitempty"`}ChineseAnalyzer type.
funcNewChineseAnalyzer¶added inv8.16.0
func NewChineseAnalyzer() *ChineseAnalyzer
NewChineseAnalyzer returns a ChineseAnalyzer.
func (ChineseAnalyzer)MarshalJSON¶added inv8.16.0
func (sChineseAnalyzer) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*ChineseAnalyzer)UnmarshalJSON¶added inv8.16.0
func (s *ChineseAnalyzer) UnmarshalJSON(data []byte)error
typeChunkingConfig¶
type ChunkingConfig struct {// Mode If the mode is `auto`, the chunk size is dynamically calculated;// this is the recommended value when the datafeed does not use aggregations.// If the mode is `manual`, chunking is applied according to the specified// `time_span`;// use this mode when the datafeed uses aggregations. If the mode is `off`, no// chunking is applied.Modechunkingmode.ChunkingMode `json:"mode"`// TimeSpan The time span that each search will be querying. This setting is applicable// only when the `mode` is set to `manual`.TimeSpanDuration `json:"time_span,omitempty"`}ChunkingConfig type.
funcNewChunkingConfig¶added inv8.5.0
func NewChunkingConfig() *ChunkingConfig
NewChunkingConfig returns a ChunkingConfig.
func (*ChunkingConfig)UnmarshalJSON¶added inv8.7.1
func (s *ChunkingConfig) UnmarshalJSON(data []byte)error
typeChunkingSettings¶added inv8.19.0
type ChunkingSettings struct {// MaxChunkSize The maximum size of a chunk in words.// This value cannot be higher than `300` or lower than `20` (for `sentence`// strategy) or `10` (for `word` strategy).MaxChunkSizeint `json:"max_chunk_size"`// Overlap The number of overlapping words for chunks.// It is applicable only to a `word` chunking strategy.// This value cannot be higher than half the `max_chunk_size` value.Overlap *int `json:"overlap,omitempty"`// SentenceOverlap The number of overlapping sentences for chunks.// It is applicable only for a `sentence` chunking strategy.// It can be either `1` or `0`.SentenceOverlap *int `json:"sentence_overlap,omitempty"`// Strategy The chunking strategy: `sentence` or `word`.Strategystring `json:"strategy"`}ChunkingSettings type.
funcNewChunkingSettings¶added inv8.19.0
func NewChunkingSettings() *ChunkingSettings
NewChunkingSettings returns a ChunkingSettings.
func (*ChunkingSettings)UnmarshalJSON¶added inv8.19.0
func (s *ChunkingSettings) UnmarshalJSON(data []byte)error
typeCircleProcessor¶
type CircleProcessor struct {// Description Description of the processor.// Useful for describing the purpose of the processor or its configuration.Description *string `json:"description,omitempty"`// ErrorDistance The difference between the resulting inscribed distance from center to side// and the circle’s radius (measured in meters for `geo_shape`, unit-less for// `shape`).ErrorDistanceFloat64 `json:"error_distance"`// Field The field to interpret as a circle. Either a string in WKT format or a map// for GeoJSON.Fieldstring `json:"field"`// If Conditionally execute the processor.If *string `json:"if,omitempty"`// IgnoreFailure Ignore failures for the processor.IgnoreFailure *bool `json:"ignore_failure,omitempty"`// IgnoreMissing If `true` and `field` does not exist, the processor quietly exits without// modifying the document.IgnoreMissing *bool `json:"ignore_missing,omitempty"`// OnFailure Handle failures for the processor.OnFailure []ProcessorContainer `json:"on_failure,omitempty"`// ShapeType Which field mapping type is to be used when processing the circle:// `geo_shape` or `shape`.ShapeTypeshapetype.ShapeType `json:"shape_type"`// Tag Identifier for the processor.// Useful for debugging and metrics.Tag *string `json:"tag,omitempty"`// TargetField The field to assign the polygon shape to// By default, the field is updated in-place.TargetField *string `json:"target_field,omitempty"`}CircleProcessor type.
funcNewCircleProcessor¶added inv8.5.0
func NewCircleProcessor() *CircleProcessor
NewCircleProcessor returns a CircleProcessor.
func (*CircleProcessor)UnmarshalJSON¶added inv8.7.1
func (s *CircleProcessor) UnmarshalJSON(data []byte)error
typeCjkAnalyzer¶added inv8.16.0
type CjkAnalyzer struct {StopwordsStopWords `json:"stopwords,omitempty"`StopwordsPath *string `json:"stopwords_path,omitempty"`Typestring `json:"type,omitempty"`}CjkAnalyzer type.
funcNewCjkAnalyzer¶added inv8.16.0
func NewCjkAnalyzer() *CjkAnalyzer
NewCjkAnalyzer returns a CjkAnalyzer.
func (CjkAnalyzer)MarshalJSON¶added inv8.16.0
func (sCjkAnalyzer) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*CjkAnalyzer)UnmarshalJSON¶added inv8.16.0
func (s *CjkAnalyzer) UnmarshalJSON(data []byte)error
typeCjkBigramTokenFilter¶added inv8.18.1
type CjkBigramTokenFilter struct {// IgnoredScripts Array of character scripts for which to disable bigrams.IgnoredScripts []cjkbigramignoredscript.CjkBigramIgnoredScript `json:"ignored_scripts,omitempty"`// OutputUnigrams If `true`, emit tokens in both bigram and unigram form. If `false`, a CJK// character is output in unigram form when it has no adjacent characters.// Defaults to `false`.OutputUnigrams *bool `json:"output_unigrams,omitempty"`Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}CjkBigramTokenFilter type.
funcNewCjkBigramTokenFilter¶added inv8.18.1
func NewCjkBigramTokenFilter() *CjkBigramTokenFilter
NewCjkBigramTokenFilter returns a CjkBigramTokenFilter.
func (CjkBigramTokenFilter)MarshalJSON¶added inv8.18.1
func (sCjkBigramTokenFilter) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*CjkBigramTokenFilter)UnmarshalJSON¶added inv8.18.1
func (s *CjkBigramTokenFilter) UnmarshalJSON(data []byte)error
typeCjkWidthTokenFilter¶added inv8.18.1
type CjkWidthTokenFilter struct {Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}CjkWidthTokenFilter type.
funcNewCjkWidthTokenFilter¶added inv8.18.1
func NewCjkWidthTokenFilter() *CjkWidthTokenFilter
NewCjkWidthTokenFilter returns a CjkWidthTokenFilter.
func (CjkWidthTokenFilter)MarshalJSON¶added inv8.18.1
func (sCjkWidthTokenFilter) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*CjkWidthTokenFilter)UnmarshalJSON¶added inv8.18.1
func (s *CjkWidthTokenFilter) UnmarshalJSON(data []byte)error
typeClassicTokenFilter¶added inv8.18.1
type ClassicTokenFilter struct {Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}ClassicTokenFilter type.
funcNewClassicTokenFilter¶added inv8.18.1
func NewClassicTokenFilter() *ClassicTokenFilter
NewClassicTokenFilter returns a ClassicTokenFilter.
func (ClassicTokenFilter)MarshalJSON¶added inv8.18.1
func (sClassicTokenFilter) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*ClassicTokenFilter)UnmarshalJSON¶added inv8.18.1
func (s *ClassicTokenFilter) UnmarshalJSON(data []byte)error
typeClassicTokenizer¶added inv8.16.0
type ClassicTokenizer struct {MaxTokenLength *int `json:"max_token_length,omitempty"`Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}ClassicTokenizer type.
funcNewClassicTokenizer¶added inv8.16.0
func NewClassicTokenizer() *ClassicTokenizer
NewClassicTokenizer returns a ClassicTokenizer.
func (ClassicTokenizer)MarshalJSON¶added inv8.16.0
func (sClassicTokenizer) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*ClassicTokenizer)UnmarshalJSON¶added inv8.16.0
func (s *ClassicTokenizer) UnmarshalJSON(data []byte)error
typeClassificationInferenceOptions¶
type ClassificationInferenceOptions struct {// NumTopClasses Specifies the number of top class predictions to return. Defaults to 0.NumTopClasses *int `json:"num_top_classes,omitempty"`// NumTopFeatureImportanceValues Specifies the maximum number of feature importance values per document.NumTopFeatureImportanceValues *int `json:"num_top_feature_importance_values,omitempty"`// PredictionFieldType Specifies the type of the predicted field to write. Acceptable values are:// string, number, boolean. When boolean is provided 1.0 is transformed to true// and 0.0 to false.PredictionFieldType *string `json:"prediction_field_type,omitempty"`// ResultsField The field that is added to incoming documents to contain the inference// prediction. Defaults to predicted_value.ResultsField *string `json:"results_field,omitempty"`// TopClassesResultsField Specifies the field to which the top classes are written. Defaults to// top_classes.TopClassesResultsField *string `json:"top_classes_results_field,omitempty"`}ClassificationInferenceOptions type.
funcNewClassificationInferenceOptions¶added inv8.5.0
func NewClassificationInferenceOptions() *ClassificationInferenceOptions
NewClassificationInferenceOptions returns a ClassificationInferenceOptions.
func (*ClassificationInferenceOptions)UnmarshalJSON¶added inv8.7.1
func (s *ClassificationInferenceOptions) UnmarshalJSON(data []byte)error
typeCleanupRepositoryResults¶
type CleanupRepositoryResults struct {// DeletedBlobs Number of binary large objects (blobs) removed during cleanup.DeletedBlobsint64 `json:"deleted_blobs"`// DeletedBytes Number of bytes freed by cleanup operations.DeletedBytesint64 `json:"deleted_bytes"`}CleanupRepositoryResults type.
funcNewCleanupRepositoryResults¶added inv8.5.0
func NewCleanupRepositoryResults() *CleanupRepositoryResults
NewCleanupRepositoryResults returns a CleanupRepositoryResults.
func (*CleanupRepositoryResults)UnmarshalJSON¶added inv8.7.1
func (s *CleanupRepositoryResults) UnmarshalJSON(data []byte)error
typeClient¶
type Client struct {// Agent Reported agent for the HTTP client.// If unavailable, this property is not included in the response.Agent *string `json:"agent,omitempty"`// ClosedTimeMillis Time at which the client closed the connection if the connection is closed.ClosedTimeMillis *int64 `json:"closed_time_millis,omitempty"`// Id Unique ID for the HTTP client.Id *int64 `json:"id,omitempty"`// LastRequestTimeMillis Time of the most recent request from this client.LastRequestTimeMillis *int64 `json:"last_request_time_millis,omitempty"`// LastUri The URI of the client’s most recent request.LastUri *string `json:"last_uri,omitempty"`// LocalAddress Local address for the HTTP connection.LocalAddress *string `json:"local_address,omitempty"`// OpenedTimeMillis Time at which the client opened the connection.OpenedTimeMillis *int64 `json:"opened_time_millis,omitempty"`// RemoteAddress Remote address for the HTTP connection.RemoteAddress *string `json:"remote_address,omitempty"`// RequestCount Number of requests from this client.RequestCount *int64 `json:"request_count,omitempty"`// RequestSizeBytes Cumulative size in bytes of all requests from this client.RequestSizeBytes *int64 `json:"request_size_bytes,omitempty"`// XOpaqueId Value from the client’s `x-opaque-id` HTTP header.// If unavailable, this property is not included in the response.XOpaqueId *string `json:"x_opaque_id,omitempty"`}Client type.
func (*Client)UnmarshalJSON¶added inv8.7.1
typeCloseIndexResult¶
type CloseIndexResult struct {Closedbool `json:"closed"`Shards map[string]CloseShardResult `json:"shards,omitempty"`}CloseIndexResult type.
funcNewCloseIndexResult¶added inv8.5.0
func NewCloseIndexResult() *CloseIndexResult
NewCloseIndexResult returns a CloseIndexResult.
func (*CloseIndexResult)UnmarshalJSON¶added inv8.7.1
func (s *CloseIndexResult) UnmarshalJSON(data []byte)error
typeCloseShardResult¶
type CloseShardResult struct {Failures []ShardFailure `json:"failures"`}CloseShardResult type.
funcNewCloseShardResult¶added inv8.5.0
func NewCloseShardResult() *CloseShardResult
NewCloseShardResult returns a CloseShardResult.
typeClusterAppliedStats¶
type ClusterAppliedStats struct {Recordings []Recording `json:"recordings,omitempty"`}ClusterAppliedStats type.
funcNewClusterAppliedStats¶added inv8.5.0
func NewClusterAppliedStats() *ClusterAppliedStats
NewClusterAppliedStats returns a ClusterAppliedStats.
typeClusterComponentTemplate¶added inv8.5.0
type ClusterComponentTemplate struct {ComponentTemplateComponentTemplateNode `json:"component_template"`Namestring `json:"name"`}ClusterComponentTemplate type.
funcNewClusterComponentTemplate¶added inv8.5.0
func NewClusterComponentTemplate() *ClusterComponentTemplate
NewClusterComponentTemplate returns a ClusterComponentTemplate.
func (*ClusterComponentTemplate)UnmarshalJSON¶added inv8.7.1
func (s *ClusterComponentTemplate) UnmarshalJSON(data []byte)error
typeClusterDetails¶added inv8.10.0
type ClusterDetails struct {Failures []ShardFailure `json:"failures,omitempty"`Indicesstring `json:"indices"`Shards_ *ShardStatistics `json:"_shards,omitempty"`Statusclustersearchstatus.ClusterSearchStatus `json:"status"`TimedOutbool `json:"timed_out"`Took *int64 `json:"took,omitempty"`}ClusterDetails type.
funcNewClusterDetails¶added inv8.10.0
func NewClusterDetails() *ClusterDetails
NewClusterDetails returns a ClusterDetails.
func (*ClusterDetails)UnmarshalJSON¶added inv8.10.0
func (s *ClusterDetails) UnmarshalJSON(data []byte)error
typeClusterFileSystem¶
type ClusterFileSystem struct {// Available Total number of bytes available to JVM in file stores across all selected// nodes.// Depending on operating system or process-level restrictions, this number may// be less than `nodes.fs.free_in_byes`.// This is the actual amount of free disk space the selected Elasticsearch nodes// can use.AvailableByteSize `json:"available,omitempty"`// AvailableInBytes Total number of bytes available to JVM in file stores across all selected// nodes.// Depending on operating system or process-level restrictions, this number may// be less than `nodes.fs.free_in_byes`.// This is the actual amount of free disk space the selected Elasticsearch nodes// can use.AvailableInBytes *int64 `json:"available_in_bytes,omitempty"`FloodStageFreeSpaceByteSize `json:"flood_stage_free_space,omitempty"`FloodStageFreeSpaceInBytes *int64 `json:"flood_stage_free_space_in_bytes,omitempty"`// Free Total number of unallocated bytes in file stores across all selected nodes.FreeByteSize `json:"free,omitempty"`// FreeInBytes Total number, in bytes, of unallocated bytes in file stores across all// selected nodes.FreeInBytes *int64 `json:"free_in_bytes,omitempty"`FrozenFloodStageFreeSpaceByteSize `json:"frozen_flood_stage_free_space,omitempty"`FrozenFloodStageFreeSpaceInBytes *int64 `json:"frozen_flood_stage_free_space_in_bytes,omitempty"`HighWatermarkFreeSpaceByteSize `json:"high_watermark_free_space,omitempty"`HighWatermarkFreeSpaceInBytes *int64 `json:"high_watermark_free_space_in_bytes,omitempty"`LowWatermarkFreeSpaceByteSize `json:"low_watermark_free_space,omitempty"`LowWatermarkFreeSpaceInBytes *int64 `json:"low_watermark_free_space_in_bytes,omitempty"`Mount *string `json:"mount,omitempty"`Path *string `json:"path,omitempty"`// Total Total size of all file stores across all selected nodes.TotalByteSize `json:"total,omitempty"`// TotalInBytes Total size, in bytes, of all file stores across all selected nodes.TotalInBytes *int64 `json:"total_in_bytes,omitempty"`Type *string `json:"type,omitempty"`}ClusterFileSystem type.
funcNewClusterFileSystem¶added inv8.5.0
func NewClusterFileSystem() *ClusterFileSystem
NewClusterFileSystem returns a ClusterFileSystem.
func (*ClusterFileSystem)UnmarshalJSON¶added inv8.7.1
func (s *ClusterFileSystem) UnmarshalJSON(data []byte)error
typeClusterIndexingPressure¶added inv8.5.0
type ClusterIndexingPressure struct {MemoryNodesIndexingPressureMemory `json:"memory"`}ClusterIndexingPressure type.
funcNewClusterIndexingPressure¶added inv8.5.0
func NewClusterIndexingPressure() *ClusterIndexingPressure
NewClusterIndexingPressure returns a ClusterIndexingPressure.
typeClusterIndices¶
type ClusterIndices struct {// Analysis Contains statistics about analyzers and analyzer components used in selected// nodes.Analysis *CharFilterTypes `json:"analysis,omitempty"`// Completion Contains statistics about memory used for completion in selected nodes.CompletionCompletionStats `json:"completion"`// Count Total number of indices with shards assigned to selected nodes.Countint64 `json:"count"`// DenseVector Contains statistics about indexed dense vectorDenseVectorDenseVectorStats `json:"dense_vector"`// Docs Contains counts for documents in selected nodes.DocsDocStats `json:"docs"`// Fielddata Contains statistics about the field data cache of selected nodes.FielddataFielddataStats `json:"fielddata"`// Mappings Contains statistics about field mappings in selected nodes.Mappings *FieldTypesMappings `json:"mappings,omitempty"`// QueryCache Contains statistics about the query cache of selected nodes.QueryCacheQueryCacheStats `json:"query_cache"`// Search Holds a snapshot of the search usage statistics.// Used to hold the stats for a single node that's part of a// ClusterStatsNodeResponse, as well as to// accumulate stats for the entire cluster and return them as part of the// ClusterStatsResponse.SearchSearchUsageStats `json:"search"`// Segments Contains statistics about segments in selected nodes.SegmentsSegmentsStats `json:"segments"`// Shards Contains statistics about indices with shards assigned to selected nodes.ShardsClusterIndicesShards `json:"shards"`// SparseVector Contains statistics about indexed sparse vectorSparseVectorSparseVectorStats `json:"sparse_vector"`// Store Contains statistics about the size of shards assigned to selected nodes.StoreStoreStats `json:"store"`// Versions Contains statistics about analyzers and analyzer components used in selected// nodes.Versions []IndicesVersions `json:"versions,omitempty"`}ClusterIndices type.
funcNewClusterIndices¶added inv8.5.0
func NewClusterIndices() *ClusterIndices
NewClusterIndices returns a ClusterIndices.
func (*ClusterIndices)UnmarshalJSON¶added inv8.7.1
func (s *ClusterIndices) UnmarshalJSON(data []byte)error
typeClusterIndicesShards¶
type ClusterIndicesShards struct {// Index Contains statistics about shards assigned to selected nodes.Index *ClusterIndicesShardsIndex `json:"index,omitempty"`// Primaries Number of primary shards assigned to selected nodes.Primaries *Float64 `json:"primaries,omitempty"`// Replication Ratio of replica shards to primary shards across all selected nodes.Replication *Float64 `json:"replication,omitempty"`// Total Total number of shards assigned to selected nodes.Total *Float64 `json:"total,omitempty"`}ClusterIndicesShards type.
funcNewClusterIndicesShards¶added inv8.5.0
func NewClusterIndicesShards() *ClusterIndicesShards
NewClusterIndicesShards returns a ClusterIndicesShards.
func (*ClusterIndicesShards)UnmarshalJSON¶added inv8.7.1
func (s *ClusterIndicesShards) UnmarshalJSON(data []byte)error
typeClusterIndicesShardsIndex¶
type ClusterIndicesShardsIndex struct {// Primaries Contains statistics about the number of primary shards assigned to selected// nodes.PrimariesClusterShardMetrics `json:"primaries"`// Replication Contains statistics about the number of replication shards assigned to// selected nodes.ReplicationClusterShardMetrics `json:"replication"`// Shards Contains statistics about the number of shards assigned to selected nodes.ShardsClusterShardMetrics `json:"shards"`}ClusterIndicesShardsIndex type.
funcNewClusterIndicesShardsIndex¶added inv8.5.0
func NewClusterIndicesShardsIndex() *ClusterIndicesShardsIndex
NewClusterIndicesShardsIndex returns a ClusterIndicesShardsIndex.
typeClusterInfo¶
type ClusterInfo struct {Nodes map[string]NodeDiskUsage `json:"nodes"`ReservedSizes []ReservedSize `json:"reserved_sizes"`ShardDataSetSizes map[string]string `json:"shard_data_set_sizes,omitempty"`ShardPaths map[string]string `json:"shard_paths"`ShardSizes map[string]int64 `json:"shard_sizes"`}ClusterInfo type.
funcNewClusterInfo¶added inv8.5.0
func NewClusterInfo() *ClusterInfo
NewClusterInfo returns a ClusterInfo.
typeClusterInfoTargets¶added inv8.9.0
type ClusterInfoTargets []clusterinfotarget.ClusterInfoTarget
ClusterInfoTargets type alias.
typeClusterIngest¶
type ClusterIngest struct {NumberOfPipelinesint `json:"number_of_pipelines"`ProcessorStats map[string]ClusterProcessor `json:"processor_stats"`}ClusterIngest type.
funcNewClusterIngest¶added inv8.5.0
func NewClusterIngest() *ClusterIngest
NewClusterIngest returns a ClusterIngest.
func (*ClusterIngest)UnmarshalJSON¶added inv8.7.1
func (s *ClusterIngest) UnmarshalJSON(data []byte)error
typeClusterJvm¶
type ClusterJvm struct {// MaxUptime Uptime duration since JVM last started.MaxUptimeDuration `json:"max_uptime,omitempty"`// MaxUptimeInMillis Uptime duration, in milliseconds, since JVM last started.MaxUptimeInMillisint64 `json:"max_uptime_in_millis"`// Mem Contains statistics about memory used by selected nodes.MemClusterJvmMemory `json:"mem"`// Threads Number of active threads in use by JVM across all selected nodes.Threadsint64 `json:"threads"`// Versions Contains statistics about the JVM versions used by selected nodes.Versions []ClusterJvmVersion `json:"versions"`}ClusterJvm type.
func (*ClusterJvm)UnmarshalJSON¶added inv8.7.1
func (s *ClusterJvm) UnmarshalJSON(data []byte)error
typeClusterJvmMemory¶
type ClusterJvmMemory struct {// HeapMax Maximum amount of memory available for use by the heap across all selected// nodes.HeapMaxByteSize `json:"heap_max,omitempty"`// HeapMaxInBytes Maximum amount of memory, in bytes, available for use by the heap across all// selected nodes.HeapMaxInBytesint64 `json:"heap_max_in_bytes"`// HeapUsed Memory currently in use by the heap across all selected nodes.HeapUsedByteSize `json:"heap_used,omitempty"`// HeapUsedInBytes Memory, in bytes, currently in use by the heap across all selected nodes.HeapUsedInBytesint64 `json:"heap_used_in_bytes"`}ClusterJvmMemory type.
funcNewClusterJvmMemory¶added inv8.5.0
func NewClusterJvmMemory() *ClusterJvmMemory
NewClusterJvmMemory returns a ClusterJvmMemory.
func (*ClusterJvmMemory)UnmarshalJSON¶added inv8.7.1
func (s *ClusterJvmMemory) UnmarshalJSON(data []byte)error
typeClusterJvmVersion¶
type ClusterJvmVersion struct {// BundledJdk Always `true`. All distributions come with a bundled Java Development Kit// (JDK).BundledJdkbool `json:"bundled_jdk"`// Count Total number of selected nodes using JVM.Countint `json:"count"`// UsingBundledJdk If `true`, a bundled JDK is in use by JVM.UsingBundledJdkbool `json:"using_bundled_jdk"`// Version Version of JVM used by one or more selected nodes.Versionstring `json:"version"`// VmName Name of the JVM.VmNamestring `json:"vm_name"`// VmVendor Vendor of the JVM.VmVendorstring `json:"vm_vendor"`// VmVersion Full version number of JVM.// The full version number includes a plus sign (+) followed by the build// number.VmVersionstring `json:"vm_version"`}ClusterJvmVersion type.
funcNewClusterJvmVersion¶added inv8.5.0
func NewClusterJvmVersion() *ClusterJvmVersion
NewClusterJvmVersion returns a ClusterJvmVersion.
func (*ClusterJvmVersion)UnmarshalJSON¶added inv8.7.1
func (s *ClusterJvmVersion) UnmarshalJSON(data []byte)error
typeClusterNetworkTypes¶
type ClusterNetworkTypes struct {// HttpTypes Contains statistics about the HTTP network types used by selected nodes.HttpTypes map[string]int `json:"http_types"`// TransportTypes Contains statistics about the transport network types used by selected nodes.TransportTypes map[string]int `json:"transport_types"`}ClusterNetworkTypes type.
funcNewClusterNetworkTypes¶added inv8.5.0
func NewClusterNetworkTypes() *ClusterNetworkTypes
NewClusterNetworkTypes returns a ClusterNetworkTypes.
typeClusterNode¶
type ClusterNode struct {Namestring `json:"name"`}ClusterNode type.
funcNewClusterNode¶added inv8.5.0
func NewClusterNode() *ClusterNode
NewClusterNode returns a ClusterNode.
func (*ClusterNode)UnmarshalJSON¶added inv8.7.1
func (s *ClusterNode) UnmarshalJSON(data []byte)error
typeClusterNodeCount¶
type ClusterNodeCount struct {CoordinatingOnly *int `json:"coordinating_only,omitempty"`Data *int `json:"data,omitempty"`DataCold *int `json:"data_cold,omitempty"`DataContent *int `json:"data_content,omitempty"`DataFrozen *int `json:"data_frozen,omitempty"`DataHot *int `json:"data_hot,omitempty"`DataWarm *int `json:"data_warm,omitempty"`Index *int `json:"index,omitempty"`Ingest *int `json:"ingest,omitempty"`Master *int `json:"master,omitempty"`Ml *int `json:"ml,omitempty"`RemoteClusterClient *int `json:"remote_cluster_client,omitempty"`Search *int `json:"search,omitempty"`Totalint `json:"total"`Transform *int `json:"transform,omitempty"`VotingOnly *int `json:"voting_only,omitempty"`}ClusterNodeCount type.
funcNewClusterNodeCount¶added inv8.5.0
func NewClusterNodeCount() *ClusterNodeCount
NewClusterNodeCount returns a ClusterNodeCount.
func (*ClusterNodeCount)UnmarshalJSON¶added inv8.7.1
func (s *ClusterNodeCount) UnmarshalJSON(data []byte)error
typeClusterNodes¶
type ClusterNodes struct {// Count Contains counts for nodes selected by the request’s node filters.CountClusterNodeCount `json:"count"`// DiscoveryTypes Contains statistics about the discovery types used by selected nodes.DiscoveryTypes map[string]int `json:"discovery_types"`// Fs Contains statistics about file stores by selected nodes.FsClusterFileSystem `json:"fs"`IndexingPressureClusterIndexingPressure `json:"indexing_pressure"`IngestClusterIngest `json:"ingest"`// Jvm Contains statistics about the Java Virtual Machines (JVMs) used by selected// nodes.JvmClusterJvm `json:"jvm"`// NetworkTypes Contains statistics about the transport and HTTP networks used by selected// nodes.NetworkTypesClusterNetworkTypes `json:"network_types"`// Os Contains statistics about the operating systems used by selected nodes.OsClusterOperatingSystem `json:"os"`// PackagingTypes Contains statistics about Elasticsearch distributions installed on selected// nodes.PackagingTypes []NodePackagingType `json:"packaging_types"`// Plugins Contains statistics about installed plugins and modules by selected nodes.// If no plugins or modules are installed, this array is empty.Plugins []PluginStats `json:"plugins"`// Process Contains statistics about processes used by selected nodes.ProcessClusterProcess `json:"process"`// Versions Array of Elasticsearch versions used on selected nodes.Versions []string `json:"versions"`}ClusterNodes type.
funcNewClusterNodes¶added inv8.5.0
func NewClusterNodes() *ClusterNodes
NewClusterNodes returns a ClusterNodes.
typeClusterOperatingSystem¶
type ClusterOperatingSystem struct {// AllocatedProcessors Number of processors used to calculate thread pool size across all selected// nodes.// This number can be set with the processors setting of a node and defaults to// the number of processors reported by the operating system.// In both cases, this number will never be larger than 32.AllocatedProcessorsint `json:"allocated_processors"`// Architectures Contains statistics about processor architectures (for example, x86_64 or// aarch64) used by selected nodes.Architectures []ClusterOperatingSystemArchitecture `json:"architectures,omitempty"`// AvailableProcessors Number of processors available to JVM across all selected nodes.AvailableProcessorsint `json:"available_processors"`// Mem Contains statistics about memory used by selected nodes.MemOperatingSystemMemoryInfo `json:"mem"`// Names Contains statistics about operating systems used by selected nodes.Names []ClusterOperatingSystemName `json:"names"`// PrettyNames Contains statistics about operating systems used by selected nodes.PrettyNames []ClusterOperatingSystemPrettyName `json:"pretty_names"`}ClusterOperatingSystem type.
funcNewClusterOperatingSystem¶added inv8.5.0
func NewClusterOperatingSystem() *ClusterOperatingSystem
NewClusterOperatingSystem returns a ClusterOperatingSystem.
func (*ClusterOperatingSystem)UnmarshalJSON¶added inv8.7.1
func (s *ClusterOperatingSystem) UnmarshalJSON(data []byte)error
typeClusterOperatingSystemArchitecture¶
type ClusterOperatingSystemArchitecture struct {// Arch Name of an architecture used by one or more selected nodes.Archstring `json:"arch"`// Count Number of selected nodes using the architecture.Countint `json:"count"`}ClusterOperatingSystemArchitecture type.
funcNewClusterOperatingSystemArchitecture¶added inv8.5.0
func NewClusterOperatingSystemArchitecture() *ClusterOperatingSystemArchitecture
NewClusterOperatingSystemArchitecture returns a ClusterOperatingSystemArchitecture.
func (*ClusterOperatingSystemArchitecture)UnmarshalJSON¶added inv8.7.1
func (s *ClusterOperatingSystemArchitecture) UnmarshalJSON(data []byte)error
typeClusterOperatingSystemName¶
type ClusterOperatingSystemName struct {// Count Number of selected nodes using the operating system.Countint `json:"count"`// Name Name of an operating system used by one or more selected nodes.Namestring `json:"name"`}ClusterOperatingSystemName type.
funcNewClusterOperatingSystemName¶added inv8.5.0
func NewClusterOperatingSystemName() *ClusterOperatingSystemName
NewClusterOperatingSystemName returns a ClusterOperatingSystemName.
func (*ClusterOperatingSystemName)UnmarshalJSON¶added inv8.7.1
func (s *ClusterOperatingSystemName) UnmarshalJSON(data []byte)error
typeClusterOperatingSystemPrettyName¶
type ClusterOperatingSystemPrettyName struct {// Count Number of selected nodes using the operating system.Countint `json:"count"`// PrettyName Human-readable name of an operating system used by one or more selected// nodes.PrettyNamestring `json:"pretty_name"`}ClusterOperatingSystemPrettyName type.
funcNewClusterOperatingSystemPrettyName¶added inv8.5.0
func NewClusterOperatingSystemPrettyName() *ClusterOperatingSystemPrettyName
NewClusterOperatingSystemPrettyName returns a ClusterOperatingSystemPrettyName.
func (*ClusterOperatingSystemPrettyName)UnmarshalJSON¶added inv8.7.1
func (s *ClusterOperatingSystemPrettyName) UnmarshalJSON(data []byte)error
typeClusterProcess¶
type ClusterProcess struct {// Cpu Contains statistics about CPU used by selected nodes.CpuClusterProcessCpu `json:"cpu"`// OpenFileDescriptors Contains statistics about open file descriptors in selected nodes.OpenFileDescriptorsClusterProcessOpenFileDescriptors `json:"open_file_descriptors"`}ClusterProcess type.
funcNewClusterProcess¶added inv8.5.0
func NewClusterProcess() *ClusterProcess
NewClusterProcess returns a ClusterProcess.
typeClusterProcessCpu¶
type ClusterProcessCpu struct {// Percent Percentage of CPU used across all selected nodes.// Returns `-1` if not supported.Percentint `json:"percent"`}ClusterProcessCpu type.
funcNewClusterProcessCpu¶added inv8.5.0
func NewClusterProcessCpu() *ClusterProcessCpu
NewClusterProcessCpu returns a ClusterProcessCpu.
func (*ClusterProcessCpu)UnmarshalJSON¶added inv8.7.1
func (s *ClusterProcessCpu) UnmarshalJSON(data []byte)error
typeClusterProcessOpenFileDescriptors¶
type ClusterProcessOpenFileDescriptors struct {// Avg Average number of concurrently open file descriptors.// Returns `-1` if not supported.Avgint64 `json:"avg"`// Max Maximum number of concurrently open file descriptors allowed across all// selected nodes.// Returns `-1` if not supported.Maxint64 `json:"max"`// Min Minimum number of concurrently open file descriptors across all selected// nodes.// Returns -1 if not supported.Minint64 `json:"min"`}ClusterProcessOpenFileDescriptors type.
funcNewClusterProcessOpenFileDescriptors¶added inv8.5.0
func NewClusterProcessOpenFileDescriptors() *ClusterProcessOpenFileDescriptors
NewClusterProcessOpenFileDescriptors returns a ClusterProcessOpenFileDescriptors.
func (*ClusterProcessOpenFileDescriptors)UnmarshalJSON¶added inv8.7.1
func (s *ClusterProcessOpenFileDescriptors) UnmarshalJSON(data []byte)error
typeClusterProcessor¶
type ClusterProcessor struct {Countint64 `json:"count"`Currentint64 `json:"current"`Failedint64 `json:"failed"`TimeDuration `json:"time,omitempty"`TimeInMillisint64 `json:"time_in_millis"`}ClusterProcessor type.
funcNewClusterProcessor¶added inv8.5.0
func NewClusterProcessor() *ClusterProcessor
NewClusterProcessor returns a ClusterProcessor.
func (*ClusterProcessor)UnmarshalJSON¶added inv8.7.1
func (s *ClusterProcessor) UnmarshalJSON(data []byte)error
typeClusterRemoteInfo¶
type ClusterRemoteInfoany
ClusterRemoteInfo holds the union for the following types:
ClusterRemoteSniffInfoClusterRemoteProxyInfo
typeClusterRemoteProxyInfo¶
type ClusterRemoteProxyInfo struct {// ClusterCredentials This field is present and has a value of `::es_redacted::` only when the// remote cluster is configured with the API key based model. Otherwise, the// field is not present.ClusterCredentials *string `json:"cluster_credentials,omitempty"`// Connected If it is `true`, there is at least one open connection to the remote cluster.// If it is `false`, it means that the cluster no longer has an open connection// to the remote cluster.// It does not necessarily mean that the remote cluster is down or unavailable,// just that at some point a connection was lost.Connectedbool `json:"connected"`// InitialConnectTimeout The initial connect timeout for remote cluster connections.InitialConnectTimeoutDuration `json:"initial_connect_timeout"`// MaxProxySocketConnections The maximum number of socket connections to the remote cluster when proxy// mode is configured.MaxProxySocketConnectionsint `json:"max_proxy_socket_connections"`// Mode The connection mode for the remote cluster.Modestring `json:"mode,omitempty"`// NumProxySocketsConnected The number of open socket connections to the remote cluster when proxy mode// is configured.NumProxySocketsConnectedint `json:"num_proxy_sockets_connected"`// ProxyAddress The address for remote connections when proxy mode is configured.ProxyAddressstring `json:"proxy_address"`ServerNamestring `json:"server_name"`// SkipUnavailable If `true`, cross-cluster search skips the remote cluster when its nodes are// unavailable during the search and ignores errors returned by the remote// cluster.SkipUnavailablebool `json:"skip_unavailable"`}ClusterRemoteProxyInfo type.
funcNewClusterRemoteProxyInfo¶added inv8.5.0
func NewClusterRemoteProxyInfo() *ClusterRemoteProxyInfo
NewClusterRemoteProxyInfo returns a ClusterRemoteProxyInfo.
func (ClusterRemoteProxyInfo)MarshalJSON¶added inv8.9.0
func (sClusterRemoteProxyInfo) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*ClusterRemoteProxyInfo)UnmarshalJSON¶added inv8.7.1
func (s *ClusterRemoteProxyInfo) UnmarshalJSON(data []byte)error
typeClusterRemoteSniffInfo¶
type ClusterRemoteSniffInfo struct {// Connected If it is `true`, there is at least one open connection to the remote cluster.// If it is `false`, it means that the cluster no longer has an open connection// to the remote cluster.// It does not necessarily mean that the remote cluster is down or unavailable,// just that at some point a connection was lost.Connectedbool `json:"connected"`// InitialConnectTimeout The initial connect timeout for remote cluster connections.InitialConnectTimeoutDuration `json:"initial_connect_timeout"`// MaxConnectionsPerCluster The maximum number of connections maintained for the remote cluster when// sniff mode is configured.MaxConnectionsPerClusterint `json:"max_connections_per_cluster"`// Mode The connection mode for the remote cluster.Modestring `json:"mode,omitempty"`// NumNodesConnected The number of connected nodes in the remote cluster when sniff mode is// configured.NumNodesConnectedint64 `json:"num_nodes_connected"`// Seeds The initial seed transport addresses of the remote cluster when sniff mode is// configured.Seeds []string `json:"seeds"`// SkipUnavailable If `true`, cross-cluster search skips the remote cluster when its nodes are// unavailable during the search and ignores errors returned by the remote// cluster.SkipUnavailablebool `json:"skip_unavailable"`}ClusterRemoteSniffInfo type.
funcNewClusterRemoteSniffInfo¶added inv8.5.0
func NewClusterRemoteSniffInfo() *ClusterRemoteSniffInfo
NewClusterRemoteSniffInfo returns a ClusterRemoteSniffInfo.
func (ClusterRemoteSniffInfo)MarshalJSON¶added inv8.9.0
func (sClusterRemoteSniffInfo) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*ClusterRemoteSniffInfo)UnmarshalJSON¶added inv8.7.1
func (s *ClusterRemoteSniffInfo) UnmarshalJSON(data []byte)error
typeClusterRuntimeFieldTypes¶added inv8.5.0
type ClusterRuntimeFieldTypes struct {// CharsMax Maximum number of characters for a single runtime field script.CharsMaxint `json:"chars_max"`// CharsTotal Total number of characters for the scripts that define the current runtime// field data type.CharsTotalint `json:"chars_total"`// Count Number of runtime fields mapped to the field data type in selected nodes.Countint `json:"count"`// DocMax Maximum number of accesses to doc_values for a single runtime field scriptDocMaxint `json:"doc_max"`// DocTotal Total number of accesses to doc_values for the scripts that define the// current runtime field data type.DocTotalint `json:"doc_total"`// IndexCount Number of indices containing a mapping of the runtime field data type in// selected nodes.IndexCountint `json:"index_count"`// Lang Script languages used for the runtime fields scripts.Lang []string `json:"lang"`// LinesMax Maximum number of lines for a single runtime field script.LinesMaxint `json:"lines_max"`// LinesTotal Total number of lines for the scripts that define the current runtime field// data type.LinesTotalint `json:"lines_total"`// Name Field data type used in selected nodes.Namestring `json:"name"`// ScriptlessCount Number of runtime fields that don’t declare a script.ScriptlessCountint `json:"scriptless_count"`// ShadowedCount Number of runtime fields that shadow an indexed field.ShadowedCountint `json:"shadowed_count"`// SourceMax Maximum number of accesses to _source for a single runtime field script.SourceMaxint `json:"source_max"`// SourceTotal Total number of accesses to _source for the scripts that define the current// runtime field data type.SourceTotalint `json:"source_total"`}ClusterRuntimeFieldTypes type.
funcNewClusterRuntimeFieldTypes¶added inv8.5.0
func NewClusterRuntimeFieldTypes() *ClusterRuntimeFieldTypes
NewClusterRuntimeFieldTypes returns a ClusterRuntimeFieldTypes.
func (*ClusterRuntimeFieldTypes)UnmarshalJSON¶added inv8.7.1
func (s *ClusterRuntimeFieldTypes) UnmarshalJSON(data []byte)error
typeClusterShardMetrics¶
type ClusterShardMetrics struct {// Avg Mean number of shards in an index, counting only shards assigned to selected// nodes.AvgFloat64 `json:"avg"`// Max Maximum number of shards in an index, counting only shards assigned to// selected nodes.MaxFloat64 `json:"max"`// Min Minimum number of shards in an index, counting only shards assigned to// selected nodes.MinFloat64 `json:"min"`}ClusterShardMetrics type.
funcNewClusterShardMetrics¶added inv8.5.0
func NewClusterShardMetrics() *ClusterShardMetrics
NewClusterShardMetrics returns a ClusterShardMetrics.
func (*ClusterShardMetrics)UnmarshalJSON¶added inv8.7.1
func (s *ClusterShardMetrics) UnmarshalJSON(data []byte)error
typeClusterSnapshotStats¶added inv8.19.0
type ClusterSnapshotStats struct {CurrentCountsSnapshotCurrentCounts `json:"current_counts"`Repositories map[string]PerRepositoryStats `json:"repositories"`}ClusterSnapshotStats type.
funcNewClusterSnapshotStats¶added inv8.19.0
func NewClusterSnapshotStats() *ClusterSnapshotStats
NewClusterSnapshotStats returns a ClusterSnapshotStats.
typeClusterStateQueue¶
type ClusterStateQueue struct {// Committed Number of committed cluster states in queue.Committed *int64 `json:"committed,omitempty"`// Pending Number of pending cluster states in queue.Pending *int64 `json:"pending,omitempty"`// Total Total number of cluster states in queue.Total *int64 `json:"total,omitempty"`}ClusterStateQueue type.
funcNewClusterStateQueue¶added inv8.5.0
func NewClusterStateQueue() *ClusterStateQueue
NewClusterStateQueue returns a ClusterStateQueue.
func (*ClusterStateQueue)UnmarshalJSON¶added inv8.7.1
func (s *ClusterStateQueue) UnmarshalJSON(data []byte)error
typeClusterStateUpdate¶
type ClusterStateUpdate struct {// CommitTime The cumulative amount of time spent waiting for a successful cluster state// update to commit, which measures the time from the start of each publication// until a majority of the master-eligible nodes have written the state to disk// and confirmed the write to the elected master.CommitTimeDuration `json:"commit_time,omitempty"`// CommitTimeMillis The cumulative amount of time, in milliseconds, spent waiting for a// successful cluster state update to commit, which measures the time from the// start of each publication until a majority of the master-eligible nodes have// written the state to disk and confirmed the write to the elected master.CommitTimeMillis *int64 `json:"commit_time_millis,omitempty"`// CompletionTime The cumulative amount of time spent waiting for a successful cluster state// update to complete, which measures the time from the start of each// publication until all the other nodes have notified the elected master that// they have applied the cluster state.CompletionTimeDuration `json:"completion_time,omitempty"`// CompletionTimeMillis The cumulative amount of time, in milliseconds, spent waiting for a// successful cluster state update to complete, which measures the time from the// start of each publication until all the other nodes have notified the elected// master that they have applied the cluster state.CompletionTimeMillis *int64 `json:"completion_time_millis,omitempty"`// ComputationTime The cumulative amount of time spent computing no-op cluster state updates// since the node started.ComputationTimeDuration `json:"computation_time,omitempty"`// ComputationTimeMillis The cumulative amount of time, in milliseconds, spent computing no-op cluster// state updates since the node started.ComputationTimeMillis *int64 `json:"computation_time_millis,omitempty"`// ContextConstructionTime The cumulative amount of time spent constructing a publication context since// the node started for publications that ultimately succeeded.// This statistic includes the time spent computing the difference between the// current and new cluster state preparing a serialized representation of this// difference.ContextConstructionTimeDuration `json:"context_construction_time,omitempty"`// ContextConstructionTimeMillis The cumulative amount of time, in milliseconds, spent constructing a// publication context since the node started for publications that ultimately// succeeded.// This statistic includes the time spent computing the difference between the// current and new cluster state preparing a serialized representation of this// difference.ContextConstructionTimeMillis *int64 `json:"context_construction_time_millis,omitempty"`// Count The number of cluster state update attempts that did not change the cluster// state since the node started.Countint64 `json:"count"`// MasterApplyTime The cumulative amount of time spent successfully applying cluster state// updates on the elected master since the node started.MasterApplyTimeDuration `json:"master_apply_time,omitempty"`// MasterApplyTimeMillis The cumulative amount of time, in milliseconds, spent successfully applying// cluster state updates on the elected master since the node started.MasterApplyTimeMillis *int64 `json:"master_apply_time_millis,omitempty"`// NotificationTime The cumulative amount of time spent notifying listeners of a no-op cluster// state update since the node started.NotificationTimeDuration `json:"notification_time,omitempty"`// NotificationTimeMillis The cumulative amount of time, in milliseconds, spent notifying listeners of// a no-op cluster state update since the node started.NotificationTimeMillis *int64 `json:"notification_time_millis,omitempty"`// PublicationTime The cumulative amount of time spent publishing cluster state updates which// ultimately succeeded, which includes everything from the start of the// publication (just after the computation of the new cluster state) until the// publication has finished and the master node is ready to start processing the// next state update.// This includes the time measured by `context_construction_time`,// `commit_time`, `completion_time` and `master_apply_time`.PublicationTimeDuration `json:"publication_time,omitempty"`// PublicationTimeMillis The cumulative amount of time, in milliseconds, spent publishing cluster// state updates which ultimately succeeded, which includes everything from the// start of the publication (just after the computation of the new cluster// state) until the publication has finished and the master node is ready to// start processing the next state update.// This includes the time measured by `context_construction_time`,// `commit_time`, `completion_time` and `master_apply_time`.PublicationTimeMillis *int64 `json:"publication_time_millis,omitempty"`}ClusterStateUpdate type.
funcNewClusterStateUpdate¶added inv8.5.0
func NewClusterStateUpdate() *ClusterStateUpdate
NewClusterStateUpdate returns a ClusterStateUpdate.
func (*ClusterStateUpdate)UnmarshalJSON¶added inv8.7.1
func (s *ClusterStateUpdate) UnmarshalJSON(data []byte)error
typeClusterStatistics¶
type ClusterStatistics struct {Details map[string]ClusterDetails `json:"details,omitempty"`Failedint `json:"failed"`Partialint `json:"partial"`Runningint `json:"running"`Skippedint `json:"skipped"`Successfulint `json:"successful"`Totalint `json:"total"`}ClusterStatistics type.
funcNewClusterStatistics¶added inv8.5.0
func NewClusterStatistics() *ClusterStatistics
NewClusterStatistics returns a ClusterStatistics.
func (*ClusterStatistics)UnmarshalJSON¶added inv8.7.1
func (s *ClusterStatistics) UnmarshalJSON(data []byte)error
typeCohereServiceSettings¶added inv8.18.0
type CohereServiceSettings struct {// ApiKey A valid API key for your Cohere account.// You can find or create your Cohere API keys on the Cohere API key settings// page.//// IMPORTANT: You need to provide the API key only once, during the inference// model creation.// The get inference endpoint API does not retrieve your API key.// After creating the inference model, you cannot change the associated API key.// If you want to use a different API key, delete the inference model and// recreate it with the same name and the updated API key.ApiKeystring `json:"api_key"`// EmbeddingType For a `text_embedding` task, the types of embeddings you want to get back.// Use `binary` for binary embeddings, which are encoded as bytes with signed// int8 precision.// Use `bit` for binary embeddings, which are encoded as bytes with signed int8// precision (this is a synonym of `binary`).// Use `byte` for signed int8 embeddings (this is a synonym of `int8`).// Use `float` for the default float embeddings.// Use `int8` for signed int8 embeddings.EmbeddingType *cohereembeddingtype.CohereEmbeddingType `json:"embedding_type,omitempty"`// ModelId For a `completion`, `rerank`, or `text_embedding` task, the name of the model// to use for the inference task.//// * For the available `completion` models, refer to the [Cohere command// docs](https://docs.cohere.com/docs/models#command).// * For the available `rerank` models, refer to the [Cohere rerank// docs](https://docs.cohere.com/reference/rerank-1).// * For the available `text_embedding` models, refer to [Cohere embed// docs](https://docs.cohere.com/reference/embed).//// The default value for a text embedding task is `embed-english-v2.0`.ModelId *string `json:"model_id,omitempty"`// RateLimit This setting helps to minimize the number of rate limit errors returned from// Cohere.// By default, the `cohere` service sets the number of requests allowed per// minute to 10000.RateLimit *RateLimitSetting `json:"rate_limit,omitempty"`// Similarity The similarity measure.// If the `embedding_type` is `float`, the default value is `dot_product`.// If the `embedding_type` is `int8` or `byte`, the default value is `cosine`.Similarity *coheresimilaritytype.CohereSimilarityType `json:"similarity,omitempty"`}CohereServiceSettings type.
funcNewCohereServiceSettings¶added inv8.18.0
func NewCohereServiceSettings() *CohereServiceSettings
NewCohereServiceSettings returns a CohereServiceSettings.
func (*CohereServiceSettings)UnmarshalJSON¶added inv8.18.0
func (s *CohereServiceSettings) UnmarshalJSON(data []byte)error
typeCohereTaskSettings¶added inv8.18.0
type CohereTaskSettings struct {// InputType For a `text_embedding` task, the type of input passed to the model.// Valid values are://// * `classification`: Use it for embeddings passed through a text classifier.// * `clustering`: Use it for the embeddings run through a clustering algorithm.// * `ingest`: Use it for storing document embeddings in a vector database.// * `search`: Use it for storing embeddings of search queries run against a// vector database to find relevant documents.//// IMPORTANT: The `input_type` field is required when using embedding models// `v3` and higher.InputType *cohereinputtype.CohereInputType `json:"input_type,omitempty"`// ReturnDocuments For a `rerank` task, return doc text within the results.ReturnDocuments *bool `json:"return_documents,omitempty"`// TopN For a `rerank` task, the number of most relevant documents to return.// It defaults to the number of the documents.// If this inference endpoint is used in a `text_similarity_reranker` retriever// query and `top_n` is set, it must be greater than or equal to// `rank_window_size` in the query.TopN *int `json:"top_n,omitempty"`// Truncate For a `text_embedding` task, the method to handle inputs longer than the// maximum token length.// Valid values are://// * `END`: When the input exceeds the maximum input token length, the end of// the input is discarded.// * `NONE`: When the input exceeds the maximum input token length, an error is// returned.// * `START`: When the input exceeds the maximum input token length, the start// of the input is discarded.Truncate *coheretruncatetype.CohereTruncateType `json:"truncate,omitempty"`}CohereTaskSettings type.
funcNewCohereTaskSettings¶added inv8.18.0
func NewCohereTaskSettings() *CohereTaskSettings
NewCohereTaskSettings returns a CohereTaskSettings.
func (*CohereTaskSettings)UnmarshalJSON¶added inv8.18.0
func (s *CohereTaskSettings) UnmarshalJSON(data []byte)error
typeCollector¶
type Collector struct {Children []Collector `json:"children,omitempty"`Namestring `json:"name"`Reasonstring `json:"reason"`TimeInNanosint64 `json:"time_in_nanos"`}Collector type.
func (*Collector)UnmarshalJSON¶added inv8.7.1
typeCombinedFieldsQuery¶
type CombinedFieldsQuery struct {// AutoGenerateSynonymsPhraseQuery If true, match phrase queries are automatically created for multi-term// synonyms.AutoGenerateSynonymsPhraseQuery *bool `json:"auto_generate_synonyms_phrase_query,omitempty"`// Boost Floating point number used to decrease or increase the relevance scores of// the query.// Boost values are relative to the default value of 1.0.// A boost value between 0 and 1.0 decreases the relevance score.// A value greater than 1.0 increases the relevance score.Boost *float32 `json:"boost,omitempty"`// Fields List of fields to search. Field wildcard patterns are allowed. Only `text`// fields are supported, and they must all have the same search `analyzer`.Fields []string `json:"fields"`// MinimumShouldMatch Minimum number of clauses that must match for a document to be returned.MinimumShouldMatchMinimumShouldMatch `json:"minimum_should_match,omitempty"`// Operator Boolean logic used to interpret text in the query value.Operator *combinedfieldsoperator.CombinedFieldsOperator `json:"operator,omitempty"`// Query Text to search for in the provided `fields`.// The `combined_fields` query analyzes the provided text before performing a// search.Querystring `json:"query"`QueryName_ *string `json:"_name,omitempty"`// ZeroTermsQuery Indicates whether no documents are returned if the analyzer removes all// tokens, such as when using a `stop` filter.ZeroTermsQuery *combinedfieldszeroterms.CombinedFieldsZeroTerms `json:"zero_terms_query,omitempty"`}CombinedFieldsQuery type.
funcNewCombinedFieldsQuery¶added inv8.5.0
func NewCombinedFieldsQuery() *CombinedFieldsQuery
NewCombinedFieldsQuery returns a CombinedFieldsQuery.
func (*CombinedFieldsQuery)UnmarshalJSON¶added inv8.7.1
func (s *CombinedFieldsQuery) UnmarshalJSON(data []byte)error
typeCommand¶
type Command struct {// AllocateEmptyPrimary Allocate an empty primary shard to a node. Accepts the index and shard for// index name and shard number, and node to allocate the shard to. Using this// command leads to a complete loss of all data that was indexed into this// shard, if it was previously started. If a node which has a copy of the data// rejoins the cluster later on, that data will be deleted. To ensure that these// implications are well-understood, this command requires the flag// accept_data_loss to be explicitly set to true.AllocateEmptyPrimary *CommandAllocatePrimaryAction `json:"allocate_empty_primary,omitempty"`// AllocateReplica Allocate an unassigned replica shard to a node. Accepts index and shard for// index name and shard number, and node to allocate the shard to. Takes// allocation deciders into account.AllocateReplica *CommandAllocateReplicaAction `json:"allocate_replica,omitempty"`// AllocateStalePrimary Allocate a primary shard to a node that holds a stale copy. Accepts the index// and shard for index name and shard number, and node to allocate the shard to.// Using this command may lead to data loss for the provided shard id. If a node// which has the good copy of the data rejoins the cluster later on, that data// will be deleted or overwritten with the data of the stale copy that was// forcefully allocated with this command. To ensure that these implications are// well-understood, this command requires the flag accept_data_loss to be// explicitly set to true.AllocateStalePrimary *CommandAllocatePrimaryAction `json:"allocate_stale_primary,omitempty"`// Cancel Cancel allocation of a shard (or recovery). Accepts index and shard for index// name and shard number, and node for the node to cancel the shard allocation// on. This can be used to force resynchronization of existing replicas from the// primary shard by cancelling them and allowing them to be reinitialized// through the standard recovery process. By default only replica shard// allocations can be cancelled. If it is necessary to cancel the allocation of// a primary shard then the allow_primary flag must also be included in the// request.Cancel *CommandCancelAction `json:"cancel,omitempty"`// Move Move a started shard from one node to another node. Accepts index and shard// for index name and shard number, from_node for the node to move the shard// from, and to_node for the node to move the shard to.Move *CommandMoveAction `json:"move,omitempty"`}Command type.
typeCommandAllocatePrimaryAction¶
type CommandAllocatePrimaryAction struct {// AcceptDataLoss If a node which has a copy of the data rejoins the cluster later on, that// data will be deleted. To ensure that these implications are well-understood,// this command requires the flag accept_data_loss to be explicitly set to trueAcceptDataLossbool `json:"accept_data_loss"`Indexstring `json:"index"`Nodestring `json:"node"`Shardint `json:"shard"`}CommandAllocatePrimaryAction type.
funcNewCommandAllocatePrimaryAction¶added inv8.5.0
func NewCommandAllocatePrimaryAction() *CommandAllocatePrimaryAction
NewCommandAllocatePrimaryAction returns a CommandAllocatePrimaryAction.
func (*CommandAllocatePrimaryAction)UnmarshalJSON¶added inv8.7.1
func (s *CommandAllocatePrimaryAction) UnmarshalJSON(data []byte)error
typeCommandAllocateReplicaAction¶
type CommandAllocateReplicaAction struct {Indexstring `json:"index"`Nodestring `json:"node"`Shardint `json:"shard"`}CommandAllocateReplicaAction type.
funcNewCommandAllocateReplicaAction¶added inv8.5.0
func NewCommandAllocateReplicaAction() *CommandAllocateReplicaAction
NewCommandAllocateReplicaAction returns a CommandAllocateReplicaAction.
func (*CommandAllocateReplicaAction)UnmarshalJSON¶added inv8.7.1
func (s *CommandAllocateReplicaAction) UnmarshalJSON(data []byte)error
typeCommandCancelAction¶
type CommandCancelAction struct {AllowPrimary *bool `json:"allow_primary,omitempty"`Indexstring `json:"index"`Nodestring `json:"node"`Shardint `json:"shard"`}CommandCancelAction type.
funcNewCommandCancelAction¶added inv8.5.0
func NewCommandCancelAction() *CommandCancelAction
NewCommandCancelAction returns a CommandCancelAction.
func (*CommandCancelAction)UnmarshalJSON¶added inv8.7.1
func (s *CommandCancelAction) UnmarshalJSON(data []byte)error
typeCommandMoveAction¶
type CommandMoveAction struct {// FromNode The node to move the shard fromFromNodestring `json:"from_node"`Indexstring `json:"index"`Shardint `json:"shard"`// ToNode The node to move the shard toToNodestring `json:"to_node"`}CommandMoveAction type.
funcNewCommandMoveAction¶added inv8.5.0
func NewCommandMoveAction() *CommandMoveAction
NewCommandMoveAction returns a CommandMoveAction.
func (*CommandMoveAction)UnmarshalJSON¶added inv8.7.1
func (s *CommandMoveAction) UnmarshalJSON(data []byte)error
typeCommonGramsTokenFilter¶
type CommonGramsTokenFilter struct {// CommonWords A list of tokens. The filter generates bigrams for these tokens.// Either this or the `common_words_path` parameter is required.CommonWords []string `json:"common_words,omitempty"`// CommonWordsPath Path to a file containing a list of tokens. The filter generates bigrams for// these tokens.// This path must be absolute or relative to the `config` location. The file// must be UTF-8 encoded. Each token in the file must be separated by a line// break.// Either this or the `common_words` parameter is required.CommonWordsPath *string `json:"common_words_path,omitempty"`// IgnoreCase If `true`, matches for common words matching are case-insensitive. Defaults// to `false`.IgnoreCase *bool `json:"ignore_case,omitempty"`// QueryMode If `true`, the filter excludes the following tokens from the output:// - Unigrams for common words// - Unigrams for terms followed by common words// Defaults to `false`. We recommend enabling this parameter for search// analyzers.QueryMode *bool `json:"query_mode,omitempty"`Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}CommonGramsTokenFilter type.
funcNewCommonGramsTokenFilter¶added inv8.5.0
func NewCommonGramsTokenFilter() *CommonGramsTokenFilter
NewCommonGramsTokenFilter returns a CommonGramsTokenFilter.
func (CommonGramsTokenFilter)MarshalJSON¶added inv8.9.0
func (sCommonGramsTokenFilter) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*CommonGramsTokenFilter)UnmarshalJSON¶added inv8.7.1
func (s *CommonGramsTokenFilter) UnmarshalJSON(data []byte)error
typeCommonTermsQuery¶
type CommonTermsQuery struct {Analyzer *string `json:"analyzer,omitempty"`// Boost Floating point number used to decrease or increase the relevance scores of// the query.// Boost values are relative to the default value of 1.0.// A boost value between 0 and 1.0 decreases the relevance score.// A value greater than 1.0 increases the relevance score.Boost *float32 `json:"boost,omitempty"`CutoffFrequency *Float64 `json:"cutoff_frequency,omitempty"`HighFreqOperator *operator.Operator `json:"high_freq_operator,omitempty"`LowFreqOperator *operator.Operator `json:"low_freq_operator,omitempty"`MinimumShouldMatchMinimumShouldMatch `json:"minimum_should_match,omitempty"`Querystring `json:"query"`QueryName_ *string `json:"_name,omitempty"`}CommonTermsQuery type.
funcNewCommonTermsQuery¶added inv8.5.0
func NewCommonTermsQuery() *CommonTermsQuery
NewCommonTermsQuery returns a CommonTermsQuery.
func (*CommonTermsQuery)UnmarshalJSON¶added inv8.7.1
func (s *CommonTermsQuery) UnmarshalJSON(data []byte)error
typeCommunityIDProcessor¶added inv8.16.0
type CommunityIDProcessor struct {// Description Description of the processor.// Useful for describing the purpose of the processor or its configuration.Description *string `json:"description,omitempty"`// DestinationIp Field containing the destination IP address.DestinationIp *string `json:"destination_ip,omitempty"`// DestinationPort Field containing the destination port.DestinationPort *string `json:"destination_port,omitempty"`// IanaNumber Field containing the IANA number.IanaNumber *string `json:"iana_number,omitempty"`// IcmpCode Field containing the ICMP code.IcmpCode *string `json:"icmp_code,omitempty"`// IcmpType Field containing the ICMP type.IcmpType *string `json:"icmp_type,omitempty"`// If Conditionally execute the processor.If *string `json:"if,omitempty"`// IgnoreFailure Ignore failures for the processor.IgnoreFailure *bool `json:"ignore_failure,omitempty"`// IgnoreMissing If true and any required fields are missing, the processor quietly exits// without modifying the document.IgnoreMissing *bool `json:"ignore_missing,omitempty"`// OnFailure Handle failures for the processor.OnFailure []ProcessorContainer `json:"on_failure,omitempty"`// Seed Seed for the community ID hash. Must be between 0 and 65535 (inclusive). The// seed can prevent hash collisions between network domains, such as a staging// and production network that use the same addressing scheme.Seed *int `json:"seed,omitempty"`// SourceIp Field containing the source IP address.SourceIp *string `json:"source_ip,omitempty"`// SourcePort Field containing the source port.SourcePort *string `json:"source_port,omitempty"`// Tag Identifier for the processor.// Useful for debugging and metrics.Tag *string `json:"tag,omitempty"`// TargetField Output field for the community ID.TargetField *string `json:"target_field,omitempty"`// Transport Field containing the transport protocol name or number. Used only when the// iana_number field is not present. The following protocol names are currently// supported: eigrp, gre, icmp, icmpv6, igmp, ipv6-icmp, ospf, pim, sctp, tcp,// udpTransport *string `json:"transport,omitempty"`}CommunityIDProcessor type.
funcNewCommunityIDProcessor¶added inv8.16.0
func NewCommunityIDProcessor() *CommunityIDProcessor
NewCommunityIDProcessor returns a CommunityIDProcessor.
func (*CommunityIDProcessor)UnmarshalJSON¶added inv8.16.0
func (s *CommunityIDProcessor) UnmarshalJSON(data []byte)error
typeCompactNodeInfo¶
type CompactNodeInfo struct {Namestring `json:"name"`}CompactNodeInfo type.
funcNewCompactNodeInfo¶added inv8.5.0
func NewCompactNodeInfo() *CompactNodeInfo
NewCompactNodeInfo returns a CompactNodeInfo.
func (*CompactNodeInfo)UnmarshalJSON¶added inv8.7.1
func (s *CompactNodeInfo) UnmarshalJSON(data []byte)error
typeCompletionContext¶
type CompletionContext struct {// Boost The factor by which the score of the suggestion should be boosted.// The score is computed by multiplying the boost with the suggestion weight.Boost *Float64 `json:"boost,omitempty"`// Context The value of the category to filter/boost on.ContextContext `json:"context"`// Neighbours An array of precision values at which neighboring geohashes should be taken// into account.// Precision value can be a distance value (`5m`, `10km`, etc.) or a raw geohash// precision (`1`..`12`).// Defaults to generating neighbors for index time precision level.Neighbours []GeoHashPrecision `json:"neighbours,omitempty"`// Precision The precision of the geohash to encode the query geo point.// Can be specified as a distance value (`5m`, `10km`, etc.), or as a raw// geohash precision (`1`..`12`).// Defaults to index time precision level.PrecisionGeoHashPrecision `json:"precision,omitempty"`// Prefix Whether the category value should be treated as a prefix or not.Prefix *bool `json:"prefix,omitempty"`}CompletionContext type.
funcNewCompletionContext¶added inv8.5.0
func NewCompletionContext() *CompletionContext
NewCompletionContext returns a CompletionContext.
func (*CompletionContext)UnmarshalJSON¶added inv8.7.0
func (s *CompletionContext) UnmarshalJSON(data []byte)error
typeCompletionProperty¶
type CompletionProperty struct {Analyzer *string `json:"analyzer,omitempty"`Contexts []SuggestContext `json:"contexts,omitempty"`CopyTo []string `json:"copy_to,omitempty"`DocValues *bool `json:"doc_values,omitempty"`Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`Fields map[string]Property `json:"fields,omitempty"`IgnoreAbove *int `json:"ignore_above,omitempty"`MaxInputLength *int `json:"max_input_length,omitempty"`// Meta Metadata about the field.Meta map[string]string `json:"meta,omitempty"`PreservePositionIncrements *bool `json:"preserve_position_increments,omitempty"`PreserveSeparators *bool `json:"preserve_separators,omitempty"`Properties map[string]Property `json:"properties,omitempty"`SearchAnalyzer *string `json:"search_analyzer,omitempty"`Store *bool `json:"store,omitempty"`SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`Typestring `json:"type,omitempty"`}CompletionProperty type.
funcNewCompletionProperty¶added inv8.5.0
func NewCompletionProperty() *CompletionProperty
NewCompletionProperty returns a CompletionProperty.
func (CompletionProperty)MarshalJSON¶added inv8.9.0
func (sCompletionProperty) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*CompletionProperty)UnmarshalJSON¶added inv8.7.0
func (s *CompletionProperty) UnmarshalJSON(data []byte)error
typeCompletionResult¶added inv8.14.0
type CompletionResult struct {Resultstring `json:"result"`}CompletionResult type.
funcNewCompletionResult¶added inv8.14.0
func NewCompletionResult() *CompletionResult
NewCompletionResult returns a CompletionResult.
func (*CompletionResult)UnmarshalJSON¶added inv8.14.0
func (s *CompletionResult) UnmarshalJSON(data []byte)error
typeCompletionStats¶
type CompletionStats struct {Fields map[string]FieldSizeUsage `json:"fields,omitempty"`// Size Total amount of memory used for completion across all shards assigned to// selected nodes.SizeByteSize `json:"size,omitempty"`// SizeInBytes Total amount, in bytes, of memory used for completion across all shards// assigned to selected nodes.SizeInBytesint64 `json:"size_in_bytes"`}CompletionStats type.
funcNewCompletionStats¶added inv8.5.0
func NewCompletionStats() *CompletionStats
NewCompletionStats returns a CompletionStats.
func (*CompletionStats)UnmarshalJSON¶added inv8.7.1
func (s *CompletionStats) UnmarshalJSON(data []byte)error
typeCompletionSuggest¶
type CompletionSuggest struct {Lengthint `json:"length"`Offsetint `json:"offset"`Options []CompletionSuggestOption `json:"options"`Textstring `json:"text"`}CompletionSuggest type.
funcNewCompletionSuggest¶added inv8.5.0
func NewCompletionSuggest() *CompletionSuggest
NewCompletionSuggest returns a CompletionSuggest.
func (*CompletionSuggest)UnmarshalJSON¶added inv8.7.1
func (s *CompletionSuggest) UnmarshalJSON(data []byte)error
typeCompletionSuggestOption¶
type CompletionSuggestOption struct {CollateMatch *bool `json:"collate_match,omitempty"`Contexts map[string][]Context `json:"contexts,omitempty"`Fields map[string]json.RawMessage `json:"fields,omitempty"`Id_ *string `json:"_id,omitempty"`Index_ *string `json:"_index,omitempty"`Routing_ *string `json:"_routing,omitempty"`Score *Float64 `json:"score,omitempty"`Score_ *Float64 `json:"_score,omitempty"`Source_json.RawMessage `json:"_source,omitempty"`Textstring `json:"text"`}CompletionSuggestOption type.
funcNewCompletionSuggestOption¶added inv8.5.0
func NewCompletionSuggestOption() *CompletionSuggestOption
NewCompletionSuggestOption returns a CompletionSuggestOption.
func (*CompletionSuggestOption)UnmarshalJSON¶added inv8.7.1
func (s *CompletionSuggestOption) UnmarshalJSON(data []byte)error
typeCompletionSuggester¶
type CompletionSuggester struct {// Analyzer The analyzer to analyze the suggest text with.// Defaults to the search analyzer of the suggest field.Analyzer *string `json:"analyzer,omitempty"`// Contexts A value, geo point object, or a geo hash string to filter or boost the// suggestion on.Contexts map[string][]CompletionContext `json:"contexts,omitempty"`// Field The field to fetch the candidate suggestions from.// Needs to be set globally or per suggestion.Fieldstring `json:"field"`// Fuzzy Enables fuzziness, meaning you can have a typo in your search and still get// results back.Fuzzy *SuggestFuzziness `json:"fuzzy,omitempty"`// Regex A regex query that expresses a prefix as a regular expression.Regex *RegexOptions `json:"regex,omitempty"`// Size The maximum corrections to be returned per suggest text token.Size *int `json:"size,omitempty"`// SkipDuplicates Whether duplicate suggestions should be filtered out.SkipDuplicates *bool `json:"skip_duplicates,omitempty"`}CompletionSuggester type.
funcNewCompletionSuggester¶added inv8.5.0
func NewCompletionSuggester() *CompletionSuggester
NewCompletionSuggester returns a CompletionSuggester.
func (*CompletionSuggester)UnmarshalJSON¶added inv8.7.1
func (s *CompletionSuggester) UnmarshalJSON(data []byte)error
typeCompletionTool¶added inv8.18.0
type CompletionTool struct {// Function The function definition.FunctionCompletionToolFunction `json:"function"`// Type The type of tool.Typestring `json:"type"`}CompletionTool type.
funcNewCompletionTool¶added inv8.18.0
func NewCompletionTool() *CompletionTool
NewCompletionTool returns a CompletionTool.
func (*CompletionTool)UnmarshalJSON¶added inv8.18.0
func (s *CompletionTool) UnmarshalJSON(data []byte)error
typeCompletionToolChoice¶added inv8.18.0
type CompletionToolChoice struct {// Function The tool choice function.FunctionCompletionToolChoiceFunction `json:"function"`// Type The type of the tool.Typestring `json:"type"`}CompletionToolChoice type.
funcNewCompletionToolChoice¶added inv8.18.0
func NewCompletionToolChoice() *CompletionToolChoice
NewCompletionToolChoice returns a CompletionToolChoice.
func (*CompletionToolChoice)UnmarshalJSON¶added inv8.18.0
func (s *CompletionToolChoice) UnmarshalJSON(data []byte)error
typeCompletionToolChoiceFunction¶added inv8.18.0
type CompletionToolChoiceFunction struct {// Name The name of the function to call.Namestring `json:"name"`}CompletionToolChoiceFunction type.
funcNewCompletionToolChoiceFunction¶added inv8.18.0
func NewCompletionToolChoiceFunction() *CompletionToolChoiceFunction
NewCompletionToolChoiceFunction returns a CompletionToolChoiceFunction.
func (*CompletionToolChoiceFunction)UnmarshalJSON¶added inv8.18.0
func (s *CompletionToolChoiceFunction) UnmarshalJSON(data []byte)error
typeCompletionToolFunction¶added inv8.18.0
type CompletionToolFunction struct {// Description A description of what the function does.// This is used by the model to choose when and how to call the function.Description *string `json:"description,omitempty"`// Name The name of the function.Namestring `json:"name"`// Parameters The parameters the functional accepts. This should be formatted as a JSON// object.Parametersjson.RawMessage `json:"parameters,omitempty"`// Strict Whether to enable schema adherence when generating the function call.Strict *bool `json:"strict,omitempty"`}CompletionToolFunction type.
funcNewCompletionToolFunction¶added inv8.18.0
func NewCompletionToolFunction() *CompletionToolFunction
NewCompletionToolFunction returns a CompletionToolFunction.
func (*CompletionToolFunction)UnmarshalJSON¶added inv8.18.0
func (s *CompletionToolFunction) UnmarshalJSON(data []byte)error
typeCompletionToolType¶added inv8.18.0
type CompletionToolTypeany
CompletionToolType holds the union for the following types:
stringCompletionToolChoice
typeComponentTemplateNode¶
type ComponentTemplateNode struct {Deprecated *bool `json:"deprecated,omitempty"`Meta_Metadata `json:"_meta,omitempty"`TemplateComponentTemplateSummary `json:"template"`Version *int64 `json:"version,omitempty"`}ComponentTemplateNode type.
funcNewComponentTemplateNode¶added inv8.5.0
func NewComponentTemplateNode() *ComponentTemplateNode
NewComponentTemplateNode returns a ComponentTemplateNode.
func (*ComponentTemplateNode)UnmarshalJSON¶added inv8.7.1
func (s *ComponentTemplateNode) UnmarshalJSON(data []byte)error
typeComponentTemplateSummary¶
type ComponentTemplateSummary struct {Aliases map[string]AliasDefinition `json:"aliases,omitempty"`Lifecycle *DataStreamLifecycleWithRollover `json:"lifecycle,omitempty"`Mappings *TypeMapping `json:"mappings,omitempty"`Meta_Metadata `json:"_meta,omitempty"`Settings map[string]IndexSettings `json:"settings,omitempty"`Version *int64 `json:"version,omitempty"`}ComponentTemplateSummary type.
funcNewComponentTemplateSummary¶added inv8.5.0
func NewComponentTemplateSummary() *ComponentTemplateSummary
NewComponentTemplateSummary returns a ComponentTemplateSummary.
func (*ComponentTemplateSummary)UnmarshalJSON¶added inv8.7.1
func (s *ComponentTemplateSummary) UnmarshalJSON(data []byte)error
typeCompositeAggregate¶
type CompositeAggregate struct {AfterKeyCompositeAggregateKey `json:"after_key,omitempty"`BucketsBucketsCompositeBucket `json:"buckets"`MetaMetadata `json:"meta,omitempty"`}CompositeAggregate type.
funcNewCompositeAggregate¶added inv8.5.0
func NewCompositeAggregate() *CompositeAggregate
NewCompositeAggregate returns a CompositeAggregate.
func (*CompositeAggregate)UnmarshalJSON¶added inv8.7.0
func (s *CompositeAggregate) UnmarshalJSON(data []byte)error
typeCompositeAggregateKey¶added inv8.5.0
type CompositeAggregateKey map[string]FieldValue
CompositeAggregateKey type alias.
typeCompositeAggregation¶
type CompositeAggregation struct {// After When paginating, use the `after_key` value returned in the previous response// to retrieve the next page.AfterCompositeAggregateKey `json:"after,omitempty"`// Size The number of composite buckets that should be returned.Size *int `json:"size,omitempty"`// Sources The value sources used to build composite buckets.// Keys are returned in the order of the `sources` definition.Sources []map[string]CompositeAggregationSource `json:"sources,omitempty"`}CompositeAggregation type.
funcNewCompositeAggregation¶added inv8.5.0
func NewCompositeAggregation() *CompositeAggregation
NewCompositeAggregation returns a CompositeAggregation.
func (*CompositeAggregation)UnmarshalJSON¶added inv8.7.1
func (s *CompositeAggregation) UnmarshalJSON(data []byte)error
typeCompositeAggregationSource¶
type CompositeAggregationSource struct {// DateHistogram A date histogram aggregation.DateHistogram *CompositeDateHistogramAggregation `json:"date_histogram,omitempty"`// GeotileGrid A geotile grid aggregation.GeotileGrid *CompositeGeoTileGridAggregation `json:"geotile_grid,omitempty"`// Histogram A histogram aggregation.Histogram *CompositeHistogramAggregation `json:"histogram,omitempty"`// Terms A terms aggregation.Terms *CompositeTermsAggregation `json:"terms,omitempty"`}CompositeAggregationSource type.
funcNewCompositeAggregationSource¶added inv8.5.0
func NewCompositeAggregationSource() *CompositeAggregationSource
NewCompositeAggregationSource returns a CompositeAggregationSource.
typeCompositeBucket¶
type CompositeBucket struct {Aggregations map[string]Aggregate `json:"-"`DocCountint64 `json:"doc_count"`KeyCompositeAggregateKey `json:"key"`}CompositeBucket type.
funcNewCompositeBucket¶added inv8.5.0
func NewCompositeBucket() *CompositeBucket
NewCompositeBucket returns a CompositeBucket.
func (CompositeBucket)MarshalJSON¶
func (sCompositeBucket) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
func (*CompositeBucket)UnmarshalJSON¶added inv8.7.0
func (s *CompositeBucket) UnmarshalJSON(data []byte)error
typeCompositeDateHistogramAggregation¶added inv8.10.0
type CompositeDateHistogramAggregation struct {// CalendarInterval Either `calendar_interval` or `fixed_interval` must be presentCalendarInterval *string `json:"calendar_interval,omitempty"`// Field Either `field` or `script` must be presentField *string `json:"field,omitempty"`// FixedInterval Either `calendar_interval` or `fixed_interval` must be presentFixedInterval *string `json:"fixed_interval,omitempty"`Format *string `json:"format,omitempty"`MissingBucket *bool `json:"missing_bucket,omitempty"`MissingOrder *missingorder.MissingOrder `json:"missing_order,omitempty"`OffsetDuration `json:"offset,omitempty"`Order *sortorder.SortOrder `json:"order,omitempty"`// Script Either `field` or `script` must be presentScript *Script `json:"script,omitempty"`TimeZone *string `json:"time_zone,omitempty"`ValueType *valuetype.ValueType `json:"value_type,omitempty"`}CompositeDateHistogramAggregation type.
funcNewCompositeDateHistogramAggregation¶added inv8.10.0
func NewCompositeDateHistogramAggregation() *CompositeDateHistogramAggregation
NewCompositeDateHistogramAggregation returns a CompositeDateHistogramAggregation.
func (*CompositeDateHistogramAggregation)UnmarshalJSON¶added inv8.10.0
func (s *CompositeDateHistogramAggregation) UnmarshalJSON(data []byte)error
typeCompositeGeoTileGridAggregation¶added inv8.10.0
type CompositeGeoTileGridAggregation struct {BoundsGeoBounds `json:"bounds,omitempty"`// Field Either `field` or `script` must be presentField *string `json:"field,omitempty"`MissingBucket *bool `json:"missing_bucket,omitempty"`MissingOrder *missingorder.MissingOrder `json:"missing_order,omitempty"`Order *sortorder.SortOrder `json:"order,omitempty"`Precision *int `json:"precision,omitempty"`// Script Either `field` or `script` must be presentScript *Script `json:"script,omitempty"`ValueType *valuetype.ValueType `json:"value_type,omitempty"`}CompositeGeoTileGridAggregation type.
funcNewCompositeGeoTileGridAggregation¶added inv8.10.0
func NewCompositeGeoTileGridAggregation() *CompositeGeoTileGridAggregation
NewCompositeGeoTileGridAggregation returns a CompositeGeoTileGridAggregation.
func (*CompositeGeoTileGridAggregation)UnmarshalJSON¶added inv8.10.0
func (s *CompositeGeoTileGridAggregation) UnmarshalJSON(data []byte)error
typeCompositeHistogramAggregation¶added inv8.10.0
type CompositeHistogramAggregation struct {// Field Either `field` or `script` must be presentField *string `json:"field,omitempty"`IntervalFloat64 `json:"interval"`MissingBucket *bool `json:"missing_bucket,omitempty"`MissingOrder *missingorder.MissingOrder `json:"missing_order,omitempty"`Order *sortorder.SortOrder `json:"order,omitempty"`// Script Either `field` or `script` must be presentScript *Script `json:"script,omitempty"`ValueType *valuetype.ValueType `json:"value_type,omitempty"`}CompositeHistogramAggregation type.
funcNewCompositeHistogramAggregation¶added inv8.10.0
func NewCompositeHistogramAggregation() *CompositeHistogramAggregation
NewCompositeHistogramAggregation returns a CompositeHistogramAggregation.
func (*CompositeHistogramAggregation)UnmarshalJSON¶added inv8.10.0
func (s *CompositeHistogramAggregation) UnmarshalJSON(data []byte)error
typeCompositeSubField¶added inv8.16.0
type CompositeSubField struct {Typeruntimefieldtype.RuntimeFieldType `json:"type"`}CompositeSubField type.
funcNewCompositeSubField¶added inv8.16.0
func NewCompositeSubField() *CompositeSubField
NewCompositeSubField returns a CompositeSubField.
typeCompositeTermsAggregation¶added inv8.10.0
type CompositeTermsAggregation struct {// Field Either `field` or `script` must be presentField *string `json:"field,omitempty"`MissingBucket *bool `json:"missing_bucket,omitempty"`MissingOrder *missingorder.MissingOrder `json:"missing_order,omitempty"`Order *sortorder.SortOrder `json:"order,omitempty"`// Script Either `field` or `script` must be presentScript *Script `json:"script,omitempty"`ValueType *valuetype.ValueType `json:"value_type,omitempty"`}CompositeTermsAggregation type.
funcNewCompositeTermsAggregation¶added inv8.10.0
func NewCompositeTermsAggregation() *CompositeTermsAggregation
NewCompositeTermsAggregation returns a CompositeTermsAggregation.
func (*CompositeTermsAggregation)UnmarshalJSON¶added inv8.10.0
func (s *CompositeTermsAggregation) UnmarshalJSON(data []byte)error
typeConditionTokenFilter¶
type ConditionTokenFilter struct {// Filter Array of token filters. If a token matches the predicate script in the// `script` parameter, these filters are applied to the token in the order// provided.Filter []string `json:"filter"`// Script Predicate script used to apply token filters. If a token matches this script,// the filters in the `filter` parameter are applied to the token.ScriptScript `json:"script"`Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}ConditionTokenFilter type.
funcNewConditionTokenFilter¶added inv8.5.0
func NewConditionTokenFilter() *ConditionTokenFilter
NewConditionTokenFilter returns a ConditionTokenFilter.
func (ConditionTokenFilter)MarshalJSON¶added inv8.9.0
func (sConditionTokenFilter) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*ConditionTokenFilter)UnmarshalJSON¶added inv8.7.1
func (s *ConditionTokenFilter) UnmarshalJSON(data []byte)error
typeConfiguration¶
type Configuration struct {// FeatureStates A list of feature states to be included in this snapshot. A list of features// available for inclusion in the snapshot and their descriptions be can be// retrieved using the get features API.// Each feature state includes one or more system indices containing data// necessary for the function of that feature. Providing an empty array will// include no feature states in the snapshot, regardless of the value of// include_global_state. By default, all available feature states will be// included in the snapshot if include_global_state is true, or no feature// states if include_global_state is false.FeatureStates []string `json:"feature_states,omitempty"`// IgnoreUnavailable If false, the snapshot fails if any data stream or index in indices is// missing or closed. If true, the snapshot ignores missing or closed data// streams and indices.IgnoreUnavailable *bool `json:"ignore_unavailable,omitempty"`// IncludeGlobalState If true, the current global state is included in the snapshot.IncludeGlobalState *bool `json:"include_global_state,omitempty"`// Indices A comma-separated list of data streams and indices to include in the// snapshot. Multi-index syntax is supported.// By default, a snapshot includes all data streams and indices in the cluster.// If this argument is provided, the snapshot only includes the specified data// streams and clusters.Indices []string `json:"indices,omitempty"`// Metadata Attaches arbitrary metadata to the snapshot, such as a record of who took the// snapshot, why it was taken, or any other useful data. Metadata must be less// than 1024 bytes.MetadataMetadata `json:"metadata,omitempty"`// Partial If false, the entire snapshot will fail if one or more indices included in// the snapshot do not have all primary shards available.Partial *bool `json:"partial,omitempty"`}Configuration type.
funcNewConfiguration¶added inv8.5.0
func NewConfiguration() *Configuration
NewConfiguration returns a Configuration.
func (*Configuration)UnmarshalJSON¶added inv8.7.1
func (s *Configuration) UnmarshalJSON(data []byte)error
typeConfusionMatrixItem¶
type ConfusionMatrixItem struct {ActualClassstring `json:"actual_class"`ActualClassDocCountint `json:"actual_class_doc_count"`OtherPredictedClassDocCountint `json:"other_predicted_class_doc_count"`PredictedClasses []ConfusionMatrixPrediction `json:"predicted_classes"`}ConfusionMatrixItem type.
funcNewConfusionMatrixItem¶added inv8.5.0
func NewConfusionMatrixItem() *ConfusionMatrixItem
NewConfusionMatrixItem returns a ConfusionMatrixItem.
func (*ConfusionMatrixItem)UnmarshalJSON¶added inv8.7.1
func (s *ConfusionMatrixItem) UnmarshalJSON(data []byte)error
typeConfusionMatrixPrediction¶
type ConfusionMatrixPrediction struct {Countint `json:"count"`PredictedClassstring `json:"predicted_class"`}ConfusionMatrixPrediction type.
funcNewConfusionMatrixPrediction¶added inv8.5.0
func NewConfusionMatrixPrediction() *ConfusionMatrixPrediction
NewConfusionMatrixPrediction returns a ConfusionMatrixPrediction.
func (*ConfusionMatrixPrediction)UnmarshalJSON¶added inv8.7.1
func (s *ConfusionMatrixPrediction) UnmarshalJSON(data []byte)error
typeConfusionMatrixThreshold¶
type ConfusionMatrixThreshold struct {// FalseNegative False NegativeFalseNegativeint `json:"fn"`// FalsePositive False PositiveFalsePositiveint `json:"fp"`// TrueNegative True NegativeTrueNegativeint `json:"tn"`// TruePositive True PositiveTruePositiveint `json:"tp"`}ConfusionMatrixThreshold type.
funcNewConfusionMatrixThreshold¶added inv8.5.0
func NewConfusionMatrixThreshold() *ConfusionMatrixThreshold
NewConfusionMatrixThreshold returns a ConfusionMatrixThreshold.
func (*ConfusionMatrixThreshold)UnmarshalJSON¶added inv8.7.1
func (s *ConfusionMatrixThreshold) UnmarshalJSON(data []byte)error
typeConnection¶
type Connection struct {DocCountint64 `json:"doc_count"`Sourceint64 `json:"source"`Targetint64 `json:"target"`WeightFloat64 `json:"weight"`}Connection type.
func (*Connection)UnmarshalJSON¶added inv8.7.1
func (s *Connection) UnmarshalJSON(data []byte)error
typeConnector¶added inv8.15.0
type Connector struct {ApiKeyId *string `json:"api_key_id,omitempty"`ApiKeySecretId *string `json:"api_key_secret_id,omitempty"`ConfigurationConnectorConfiguration `json:"configuration"`CustomSchedulingConnectorCustomScheduling `json:"custom_scheduling"`Description *string `json:"description,omitempty"`Error *string `json:"error,omitempty"`Features *ConnectorFeatures `json:"features,omitempty"`Filtering []FilteringConfig `json:"filtering"`Id *string `json:"id,omitempty"`IndexName *string `json:"index_name,omitempty"`IsNativebool `json:"is_native"`Language *string `json:"language,omitempty"`LastAccessControlSyncError *string `json:"last_access_control_sync_error,omitempty"`LastAccessControlSyncScheduledAtDateTime `json:"last_access_control_sync_scheduled_at,omitempty"`LastAccessControlSyncStatus *syncstatus.SyncStatus `json:"last_access_control_sync_status,omitempty"`LastDeletedDocumentCount *int64 `json:"last_deleted_document_count,omitempty"`LastIncrementalSyncScheduledAtDateTime `json:"last_incremental_sync_scheduled_at,omitempty"`LastIndexedDocumentCount *int64 `json:"last_indexed_document_count,omitempty"`LastSeenDateTime `json:"last_seen,omitempty"`LastSyncError *string `json:"last_sync_error,omitempty"`LastSyncScheduledAtDateTime `json:"last_sync_scheduled_at,omitempty"`LastSyncStatus *syncstatus.SyncStatus `json:"last_sync_status,omitempty"`LastSyncedDateTime `json:"last_synced,omitempty"`Name *string `json:"name,omitempty"`Pipeline *IngestPipelineParams `json:"pipeline,omitempty"`SchedulingSchedulingConfiguration `json:"scheduling"`ServiceType *string `json:"service_type,omitempty"`Statusconnectorstatus.ConnectorStatus `json:"status"`SyncCursorjson.RawMessage `json:"sync_cursor,omitempty"`SyncNowbool `json:"sync_now"`}Connector type.
func (*Connector)UnmarshalJSON¶added inv8.15.0
typeConnectorConfigProperties¶added inv8.15.0
type ConnectorConfigProperties struct {Category *string `json:"category,omitempty"`DefaultValueScalarValue `json:"default_value"`DependsOn []Dependency `json:"depends_on"`Displaydisplaytype.DisplayType `json:"display"`Labelstring `json:"label"`Options []SelectOption `json:"options"`Order *int `json:"order,omitempty"`Placeholder *string `json:"placeholder,omitempty"`Requiredbool `json:"required"`Sensitivebool `json:"sensitive"`Tooltip *string `json:"tooltip,omitempty"`Type *connectorfieldtype.ConnectorFieldType `json:"type,omitempty"`UiRestrictions []string `json:"ui_restrictions,omitempty"`Validations []Validation `json:"validations,omitempty"`Valuejson.RawMessage `json:"value,omitempty"`}ConnectorConfigProperties type.
funcNewConnectorConfigProperties¶added inv8.15.0
func NewConnectorConfigProperties() *ConnectorConfigProperties
NewConnectorConfigProperties returns a ConnectorConfigProperties.
func (*ConnectorConfigProperties)UnmarshalJSON¶added inv8.15.0
func (s *ConnectorConfigProperties) UnmarshalJSON(data []byte)error
typeConnectorConfiguration¶added inv8.15.0
type ConnectorConfiguration map[string]ConnectorConfigProperties
ConnectorConfiguration type alias.
typeConnectorCustomScheduling¶added inv8.15.0
type ConnectorCustomScheduling map[string]CustomScheduling
ConnectorCustomScheduling type alias.
typeConnectorFeatures¶added inv8.15.0
type ConnectorFeatures struct {// DocumentLevelSecurity Indicates whether document-level security is enabled.DocumentLevelSecurity *FeatureEnabled `json:"document_level_security,omitempty"`// IncrementalSync Indicates whether incremental syncs are enabled.IncrementalSync *FeatureEnabled `json:"incremental_sync,omitempty"`// NativeConnectorApiKeys Indicates whether managed connector API keys are enabled.NativeConnectorApiKeys *FeatureEnabled `json:"native_connector_api_keys,omitempty"`SyncRules *SyncRulesFeature `json:"sync_rules,omitempty"`}ConnectorFeatures type.
funcNewConnectorFeatures¶added inv8.15.0
func NewConnectorFeatures() *ConnectorFeatures
NewConnectorFeatures returns a ConnectorFeatures.
typeConnectorScheduling¶added inv8.15.0
type ConnectorScheduling struct {Enabledbool `json:"enabled"`// Interval The interval is expressed using the crontab syntaxIntervalstring `json:"interval"`}ConnectorScheduling type.
funcNewConnectorScheduling¶added inv8.15.0
func NewConnectorScheduling() *ConnectorScheduling
NewConnectorScheduling returns a ConnectorScheduling.
func (*ConnectorScheduling)UnmarshalJSON¶added inv8.15.0
func (s *ConnectorScheduling) UnmarshalJSON(data []byte)error
typeConnectorSyncJob¶added inv8.15.0
type ConnectorSyncJob struct {CancelationRequestedAtDateTime `json:"cancelation_requested_at,omitempty"`CanceledAtDateTime `json:"canceled_at,omitempty"`CompletedAtDateTime `json:"completed_at,omitempty"`ConnectorSyncJobConnectorReference `json:"connector"`CreatedAtDateTime `json:"created_at"`DeletedDocumentCountint64 `json:"deleted_document_count"`Error *string `json:"error,omitempty"`Idstring `json:"id"`IndexedDocumentCountint64 `json:"indexed_document_count"`IndexedDocumentVolumeint64 `json:"indexed_document_volume"`JobTypesyncjobtype.SyncJobType `json:"job_type"`LastSeenDateTime `json:"last_seen,omitempty"`Metadata map[string]json.RawMessage `json:"metadata"`StartedAtDateTime `json:"started_at,omitempty"`Statussyncstatus.SyncStatus `json:"status"`TotalDocumentCountint64 `json:"total_document_count"`TriggerMethodsyncjobtriggermethod.SyncJobTriggerMethod `json:"trigger_method"`WorkerHostname *string `json:"worker_hostname,omitempty"`}ConnectorSyncJob type.
funcNewConnectorSyncJob¶added inv8.15.0
func NewConnectorSyncJob() *ConnectorSyncJob
NewConnectorSyncJob returns a ConnectorSyncJob.
func (*ConnectorSyncJob)UnmarshalJSON¶added inv8.15.0
func (s *ConnectorSyncJob) UnmarshalJSON(data []byte)error
typeConstantKeywordProperty¶
type ConstantKeywordProperty struct {Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`Fields map[string]Property `json:"fields,omitempty"`IgnoreAbove *int `json:"ignore_above,omitempty"`// Meta Metadata about the field.Meta map[string]string `json:"meta,omitempty"`Properties map[string]Property `json:"properties,omitempty"`SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`Typestring `json:"type,omitempty"`Valuejson.RawMessage `json:"value,omitempty"`}ConstantKeywordProperty type.
funcNewConstantKeywordProperty¶added inv8.5.0
func NewConstantKeywordProperty() *ConstantKeywordProperty
NewConstantKeywordProperty returns a ConstantKeywordProperty.
func (ConstantKeywordProperty)MarshalJSON¶added inv8.9.0
func (sConstantKeywordProperty) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*ConstantKeywordProperty)UnmarshalJSON¶added inv8.7.0
func (s *ConstantKeywordProperty) UnmarshalJSON(data []byte)error
typeConstantScoreQuery¶
type ConstantScoreQuery struct {// Boost Floating point number used to decrease or increase the relevance scores of// the query.// Boost values are relative to the default value of 1.0.// A boost value between 0 and 1.0 decreases the relevance score.// A value greater than 1.0 increases the relevance score.Boost *float32 `json:"boost,omitempty"`// Filter Filter query you wish to run. Any returned documents must match this query.// Filter queries do not calculate relevance scores.// To speed up performance, Elasticsearch automatically caches frequently used// filter queries.FilterQuery `json:"filter"`QueryName_ *string `json:"_name,omitempty"`}ConstantScoreQuery type.
funcNewConstantScoreQuery¶added inv8.5.0
func NewConstantScoreQuery() *ConstantScoreQuery
NewConstantScoreQuery returns a ConstantScoreQuery.
func (*ConstantScoreQuery)UnmarshalJSON¶added inv8.7.1
func (s *ConstantScoreQuery) UnmarshalJSON(data []byte)error
typeContentObject¶added inv8.18.0
type ContentObject struct {// Text The text content.Textstring `json:"text"`// Type The type of content.Typestring `json:"type"`}ContentObject type.
funcNewContentObject¶added inv8.18.0
func NewContentObject() *ContentObject
NewContentObject returns a ContentObject.
func (*ContentObject)UnmarshalJSON¶added inv8.18.0
func (s *ContentObject) UnmarshalJSON(data []byte)error
typeContextMethod¶
type ContextMethod struct {Namestring `json:"name"`Params []ContextMethodParam `json:"params"`ReturnTypestring `json:"return_type"`}ContextMethod type.
funcNewContextMethod¶added inv8.5.0
func NewContextMethod() *ContextMethod
NewContextMethod returns a ContextMethod.
func (*ContextMethod)UnmarshalJSON¶added inv8.7.1
func (s *ContextMethod) UnmarshalJSON(data []byte)error
typeContextMethodParam¶
ContextMethodParam type.
funcNewContextMethodParam¶added inv8.5.0
func NewContextMethodParam() *ContextMethodParam
NewContextMethodParam returns a ContextMethodParam.
func (*ContextMethodParam)UnmarshalJSON¶added inv8.7.1
func (s *ContextMethodParam) UnmarshalJSON(data []byte)error
typeConvertProcessor¶
type ConvertProcessor struct {// Description Description of the processor.// Useful for describing the purpose of the processor or its configuration.Description *string `json:"description,omitempty"`// Field The field whose value is to be converted.Fieldstring `json:"field"`// If Conditionally execute the processor.If *string `json:"if,omitempty"`// IgnoreFailure Ignore failures for the processor.IgnoreFailure *bool `json:"ignore_failure,omitempty"`// IgnoreMissing If `true` and `field` does not exist or is `null`, the processor quietly// exits without modifying the document.IgnoreMissing *bool `json:"ignore_missing,omitempty"`// OnFailure Handle failures for the processor.OnFailure []ProcessorContainer `json:"on_failure,omitempty"`// Tag Identifier for the processor.// Useful for debugging and metrics.Tag *string `json:"tag,omitempty"`// TargetField The field to assign the converted value to.// By default, the `field` is updated in-place.TargetField *string `json:"target_field,omitempty"`// Type The type to convert the existing value to.Typeconverttype.ConvertType `json:"type"`}ConvertProcessor type.
funcNewConvertProcessor¶added inv8.5.0
func NewConvertProcessor() *ConvertProcessor
NewConvertProcessor returns a ConvertProcessor.
func (*ConvertProcessor)UnmarshalJSON¶added inv8.7.1
func (s *ConvertProcessor) UnmarshalJSON(data []byte)error
typeCoordinatorStats¶
type CoordinatorStats struct {ExecutedSearchesTotalint64 `json:"executed_searches_total"`NodeIdstring `json:"node_id"`QueueSizeint `json:"queue_size"`RemoteRequestsCurrentint `json:"remote_requests_current"`RemoteRequestsTotalint64 `json:"remote_requests_total"`}CoordinatorStats type.
funcNewCoordinatorStats¶added inv8.5.0
func NewCoordinatorStats() *CoordinatorStats
NewCoordinatorStats returns a CoordinatorStats.
func (*CoordinatorStats)UnmarshalJSON¶added inv8.7.1
func (s *CoordinatorStats) UnmarshalJSON(data []byte)error
typeCoordsGeoBounds¶
type CoordsGeoBounds struct {BottomFloat64 `json:"bottom"`LeftFloat64 `json:"left"`RightFloat64 `json:"right"`TopFloat64 `json:"top"`}CoordsGeoBounds type.
funcNewCoordsGeoBounds¶added inv8.5.0
func NewCoordsGeoBounds() *CoordsGeoBounds
NewCoordsGeoBounds returns a CoordsGeoBounds.
func (*CoordsGeoBounds)UnmarshalJSON¶added inv8.7.1
func (s *CoordsGeoBounds) UnmarshalJSON(data []byte)error
typeCoreKnnQuery¶added inv8.5.0
type CoreKnnQuery struct {// Field The name of the vector field to search againstFieldstring `json:"field"`// K The final number of nearest neighbors to return as top hitsKint `json:"k"`// NumCandidates The number of nearest neighbor candidates to consider per shardNumCandidatesint `json:"num_candidates"`// QueryVector The query vectorQueryVector []float32 `json:"query_vector"`}CoreKnnQuery type.
funcNewCoreKnnQuery¶added inv8.5.0
func NewCoreKnnQuery() *CoreKnnQuery
NewCoreKnnQuery returns a CoreKnnQuery.
func (*CoreKnnQuery)UnmarshalJSON¶added inv8.7.1
func (s *CoreKnnQuery) UnmarshalJSON(data []byte)error
typeCountRecord¶
type CountRecord struct {// Count the document countCount *string `json:"count,omitempty"`// Epoch seconds since 1970-01-01 00:00:00EpochStringifiedEpochTimeUnitSeconds `json:"epoch,omitempty"`// Timestamp time in HH:MM:SSTimestamp *string `json:"timestamp,omitempty"`}CountRecord type.
funcNewCountRecord¶added inv8.5.0
func NewCountRecord() *CountRecord
NewCountRecord returns a CountRecord.
func (*CountRecord)UnmarshalJSON¶added inv8.7.1
func (s *CountRecord) UnmarshalJSON(data []byte)error
typeCountedKeywordProperty¶added inv8.18.0
type CountedKeywordProperty struct {Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`Fields map[string]Property `json:"fields,omitempty"`IgnoreAbove *int `json:"ignore_above,omitempty"`Index *bool `json:"index,omitempty"`// Meta Metadata about the field.Meta map[string]string `json:"meta,omitempty"`Properties map[string]Property `json:"properties,omitempty"`SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`Typestring `json:"type,omitempty"`}CountedKeywordProperty type.
funcNewCountedKeywordProperty¶added inv8.18.0
func NewCountedKeywordProperty() *CountedKeywordProperty
NewCountedKeywordProperty returns a CountedKeywordProperty.
func (CountedKeywordProperty)MarshalJSON¶added inv8.18.0
func (sCountedKeywordProperty) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*CountedKeywordProperty)UnmarshalJSON¶added inv8.18.0
func (s *CountedKeywordProperty) UnmarshalJSON(data []byte)error
typeCpu¶
type Cpu struct {LoadAverage map[string]Float64 `json:"load_average,omitempty"`Percent *int `json:"percent,omitempty"`SysDuration `json:"sys,omitempty"`SysInMillis *int64 `json:"sys_in_millis,omitempty"`TotalDuration `json:"total,omitempty"`TotalInMillis *int64 `json:"total_in_millis,omitempty"`UserDuration `json:"user,omitempty"`UserInMillis *int64 `json:"user_in_millis,omitempty"`}Cpu type.
func (*Cpu)UnmarshalJSON¶added inv8.7.1
typeCpuAcct¶
type CpuAcct struct {// ControlGroup The `cpuacct` control group to which the Elasticsearch process belongs.ControlGroup *string `json:"control_group,omitempty"`// UsageNanos The total CPU time, in nanoseconds, consumed by all tasks in the same cgroup// as the Elasticsearch process.UsageNanos *int64 `json:"usage_nanos,omitempty"`}CpuAcct type.
func (*CpuAcct)UnmarshalJSON¶added inv8.7.1
typeCreateFrom¶added inv8.18.0
type CreateFrom struct {// MappingsOverride Mappings overrides to be applied to the destination index (optional)MappingsOverride *TypeMapping `json:"mappings_override,omitempty"`// RemoveIndexBlocks If index blocks should be removed when creating destination index (optional)RemoveIndexBlocks *bool `json:"remove_index_blocks,omitempty"`// SettingsOverride Settings overrides to be applied to the destination index (optional)SettingsOverride *IndexSettings `json:"settings_override,omitempty"`}CreateFrom type.
funcNewCreateFrom¶added inv8.18.0
func NewCreateFrom() *CreateFrom
NewCreateFrom returns a CreateFrom.
func (*CreateFrom)UnmarshalJSON¶added inv8.18.0
func (s *CreateFrom) UnmarshalJSON(data []byte)error
typeCreateOperation¶added inv8.9.0
type CreateOperation struct {// DynamicTemplates A map from the full name of fields to the name of dynamic templates.// It defaults to an empty map.// If a name matches a dynamic template, that template will be applied// regardless of other match predicates defined in the template.// If a field is already defined in the mapping, then this parameter won't be// used.DynamicTemplates map[string]string `json:"dynamic_templates,omitempty"`// Id_ The document ID.Id_ *string `json:"_id,omitempty"`IfPrimaryTerm *int64 `json:"if_primary_term,omitempty"`IfSeqNo *int64 `json:"if_seq_no,omitempty"`// Index_ The name of the index or index alias to perform the action on.Index_ *string `json:"_index,omitempty"`// Pipeline The ID of the pipeline to use to preprocess incoming documents.// If the index has a default ingest pipeline specified, setting the value to// `_none` turns off the default ingest pipeline for this request.// If a final pipeline is configured, it will always run regardless of the value// of this parameter.Pipeline *string `json:"pipeline,omitempty"`// RequireAlias If `true`, the request's actions must target an index alias.RequireAlias *bool `json:"require_alias,omitempty"`// Routing A custom value used to route operations to a specific shard.Routing *string `json:"routing,omitempty"`Version *int64 `json:"version,omitempty"`VersionType *versiontype.VersionType `json:"version_type,omitempty"`}CreateOperation type.
funcNewCreateOperation¶added inv8.9.0
func NewCreateOperation() *CreateOperation
NewCreateOperation returns a CreateOperation.
func (*CreateOperation)UnmarshalJSON¶added inv8.9.0
func (s *CreateOperation) UnmarshalJSON(data []byte)error
typeCreatedStatus¶
type CreatedStatus struct {Createdbool `json:"created"`}CreatedStatus type.
funcNewCreatedStatus¶added inv8.5.0
func NewCreatedStatus() *CreatedStatus
NewCreatedStatus returns a CreatedStatus.
func (*CreatedStatus)UnmarshalJSON¶added inv8.7.1
func (s *CreatedStatus) UnmarshalJSON(data []byte)error
typeCsvProcessor¶
type CsvProcessor struct {// Description Description of the processor.// Useful for describing the purpose of the processor or its configuration.Description *string `json:"description,omitempty"`// EmptyValue Value used to fill empty fields.// Empty fields are skipped if this is not provided.// An empty field is one with no value (2 consecutive separators) or empty// quotes (`""`).EmptyValuejson.RawMessage `json:"empty_value,omitempty"`// Field The field to extract data from.Fieldstring `json:"field"`// If Conditionally execute the processor.If *string `json:"if,omitempty"`// IgnoreFailure Ignore failures for the processor.IgnoreFailure *bool `json:"ignore_failure,omitempty"`// IgnoreMissing If `true` and `field` does not exist, the processor quietly exits without// modifying the document.IgnoreMissing *bool `json:"ignore_missing,omitempty"`// OnFailure Handle failures for the processor.OnFailure []ProcessorContainer `json:"on_failure,omitempty"`// Quote Quote used in CSV, has to be single character string.Quote *string `json:"quote,omitempty"`// Separator Separator used in CSV, has to be single character string.Separator *string `json:"separator,omitempty"`// Tag Identifier for the processor.// Useful for debugging and metrics.Tag *string `json:"tag,omitempty"`// TargetFields The array of fields to assign extracted values to.TargetFields []string `json:"target_fields"`// Trim Trim whitespaces in unquoted fields.Trim *bool `json:"trim,omitempty"`}CsvProcessor type.
funcNewCsvProcessor¶added inv8.5.0
func NewCsvProcessor() *CsvProcessor
NewCsvProcessor returns a CsvProcessor.
func (*CsvProcessor)UnmarshalJSON¶added inv8.7.1
func (s *CsvProcessor) UnmarshalJSON(data []byte)error
typeCumulativeCardinalityAggregate¶
type CumulativeCardinalityAggregate struct {MetaMetadata `json:"meta,omitempty"`Valueint64 `json:"value"`ValueAsString *string `json:"value_as_string,omitempty"`}CumulativeCardinalityAggregate type.
funcNewCumulativeCardinalityAggregate¶added inv8.5.0
func NewCumulativeCardinalityAggregate() *CumulativeCardinalityAggregate
NewCumulativeCardinalityAggregate returns a CumulativeCardinalityAggregate.
func (*CumulativeCardinalityAggregate)UnmarshalJSON¶added inv8.7.1
func (s *CumulativeCardinalityAggregate) UnmarshalJSON(data []byte)error
typeCumulativeCardinalityAggregation¶
type CumulativeCardinalityAggregation struct {// BucketsPath Path to the buckets that contain one set of values to correlate.BucketsPathBucketsPath `json:"buckets_path,omitempty"`// Format `DecimalFormat` pattern for the output value.// If specified, the formatted value is returned in the aggregation’s// `value_as_string` property.Format *string `json:"format,omitempty"`// GapPolicy Policy to apply when gaps are found in the data.GapPolicy *gappolicy.GapPolicy `json:"gap_policy,omitempty"`}CumulativeCardinalityAggregation type.
funcNewCumulativeCardinalityAggregation¶added inv8.5.0
func NewCumulativeCardinalityAggregation() *CumulativeCardinalityAggregation
NewCumulativeCardinalityAggregation returns a CumulativeCardinalityAggregation.
func (*CumulativeCardinalityAggregation)UnmarshalJSON¶added inv8.7.0
func (s *CumulativeCardinalityAggregation) UnmarshalJSON(data []byte)error
typeCumulativeSumAggregation¶
type CumulativeSumAggregation struct {// BucketsPath Path to the buckets that contain one set of values to correlate.BucketsPathBucketsPath `json:"buckets_path,omitempty"`// Format `DecimalFormat` pattern for the output value.// If specified, the formatted value is returned in the aggregation’s// `value_as_string` property.Format *string `json:"format,omitempty"`// GapPolicy Policy to apply when gaps are found in the data.GapPolicy *gappolicy.GapPolicy `json:"gap_policy,omitempty"`}CumulativeSumAggregation type.
funcNewCumulativeSumAggregation¶added inv8.5.0
func NewCumulativeSumAggregation() *CumulativeSumAggregation
NewCumulativeSumAggregation returns a CumulativeSumAggregation.
func (*CumulativeSumAggregation)UnmarshalJSON¶added inv8.7.0
func (s *CumulativeSumAggregation) UnmarshalJSON(data []byte)error
typeCurrentNode¶
type CurrentNode struct {Attributes map[string]string `json:"attributes"`Idstring `json:"id"`Namestring `json:"name"`Roles []noderole.NodeRole `json:"roles"`TransportAddressstring `json:"transport_address"`WeightRankingint `json:"weight_ranking"`}CurrentNode type.
funcNewCurrentNode¶added inv8.5.0
func NewCurrentNode() *CurrentNode
NewCurrentNode returns a CurrentNode.
func (*CurrentNode)UnmarshalJSON¶added inv8.7.1
func (s *CurrentNode) UnmarshalJSON(data []byte)error
typeCustomAnalyzer¶
type CustomAnalyzer struct {CharFilter []string `json:"char_filter,omitempty"`Filter []string `json:"filter,omitempty"`PositionIncrementGap *int `json:"position_increment_gap,omitempty"`PositionOffsetGap *int `json:"position_offset_gap,omitempty"`Tokenizerstring `json:"tokenizer"`Typestring `json:"type,omitempty"`}CustomAnalyzer type.
funcNewCustomAnalyzer¶added inv8.5.0
func NewCustomAnalyzer() *CustomAnalyzer
NewCustomAnalyzer returns a CustomAnalyzer.
func (CustomAnalyzer)MarshalJSON¶added inv8.9.0
func (sCustomAnalyzer) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*CustomAnalyzer)UnmarshalJSON¶added inv8.7.1
func (s *CustomAnalyzer) UnmarshalJSON(data []byte)error
typeCustomCategorizeTextAnalyzer¶
type CustomCategorizeTextAnalyzer struct {CharFilter []string `json:"char_filter,omitempty"`Filter []string `json:"filter,omitempty"`Tokenizer *string `json:"tokenizer,omitempty"`}CustomCategorizeTextAnalyzer type.
funcNewCustomCategorizeTextAnalyzer¶added inv8.5.0
func NewCustomCategorizeTextAnalyzer() *CustomCategorizeTextAnalyzer
NewCustomCategorizeTextAnalyzer returns a CustomCategorizeTextAnalyzer.
func (*CustomCategorizeTextAnalyzer)UnmarshalJSON¶added inv8.9.0
func (s *CustomCategorizeTextAnalyzer) UnmarshalJSON(data []byte)error
typeCustomNormalizer¶
type CustomNormalizer struct {CharFilter []string `json:"char_filter,omitempty"`Filter []string `json:"filter,omitempty"`Typestring `json:"type,omitempty"`}CustomNormalizer type.
funcNewCustomNormalizer¶added inv8.5.0
func NewCustomNormalizer() *CustomNormalizer
NewCustomNormalizer returns a CustomNormalizer.
func (CustomNormalizer)MarshalJSON¶added inv8.9.0
func (sCustomNormalizer) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
typeCustomRequestParams¶added inv8.19.0
type CustomRequestParams struct {// Content The body structure of the request. It requires passing in the string-escaped// result of the JSON format HTTP request body.// For example:// “`// "request": "{\"input\":${input}}"// “`// > info// > The content string needs to be a single line except when using the Kibana// console.Contentstring `json:"content"`}CustomRequestParams type.
funcNewCustomRequestParams¶added inv8.19.0
func NewCustomRequestParams() *CustomRequestParams
NewCustomRequestParams returns a CustomRequestParams.
func (*CustomRequestParams)UnmarshalJSON¶added inv8.19.0
func (s *CustomRequestParams) UnmarshalJSON(data []byte)error
typeCustomResponseParams¶added inv8.19.0
type CustomResponseParams struct {// JsonParser Specifies the JSON parser that is used to parse the response from the custom// service.// Different task types require different json_parser parameters.// For example:// “`// # text_embedding// # For a response like this:////{// "object": "list",// "data": [// {// "object": "embedding",// "index": 0,// "embedding": [// 0.014539449,// -0.015288644// ]// }// ],// "model": "text-embedding-ada-002-v2",// "usage": {// "prompt_tokens": 8,// "total_tokens": 8// }//}//// # the json_parser definition should look like this:////"response":{// "json_parser":{// "text_embeddings":"$.data[*].embedding[*]"// }//}//// # sparse_embedding// # For a response like this:////{// "request_id": "75C50B5B-E79E-4930-****-F48DBB392231",// "latency": 22,// "usage": {// "token_count": 11// },// "result": {// "sparse_embeddings": [// {// "index": 0,// "embedding": [// {// "token_id": 6,// "weight": 0.101// },// {// "token_id": 163040,// "weight": 0.28417// }// ]// }// ]// }//}//// # the json_parser definition should look like this:////"response":{// "json_parser":{// "token_path":"$.result.sparse_embeddings[*].embedding[*].token_id",// "weight_path":"$.result.sparse_embeddings[*].embedding[*].weight"// }//}//// # rerank// # For a response like this:////{// "results": [// {// "index": 3,// "relevance_score": 0.999071,// "document": "abc"// },// {// "index": 4,// "relevance_score": 0.7867867,// "document": "123"// },// {// "index": 0,// "relevance_score": 0.32713068,// "document": "super"// }// ],//}//// # the json_parser definition should look like this:////"response":{// "json_parser":{// "reranked_index":"$.result.scores[*].index", // optional// "relevance_score":"$.result.scores[*].score",// "document_text":"xxx" // optional// }//}//// # completion// # For a response like this:////{// "id": "chatcmpl-B9MBs8CjcvOU2jLn4n570S5qMJKcT",// "object": "chat.completion",// "created": 1741569952,// "model": "gpt-4.1-2025-04-14",// "choices": [// {// "index": 0,// "message": {// "role": "assistant",// "content": "Hello! How can I assist you today?",// "refusal": null,// "annotations": []// },// "logprobs": null,// "finish_reason": "stop"// }// ]//}//// # the json_parser definition should look like this:////"response":{// "json_parser":{// "completion_result":"$.choices[*].message.content"// }//}JsonParserjson.RawMessage `json:"json_parser,omitempty"`}CustomResponseParams type.
funcNewCustomResponseParams¶added inv8.19.0
func NewCustomResponseParams() *CustomResponseParams
NewCustomResponseParams returns a CustomResponseParams.
typeCustomScheduling¶added inv8.15.0
type CustomScheduling struct {ConfigurationOverridesCustomSchedulingConfigurationOverrides `json:"configuration_overrides"`Enabledbool `json:"enabled"`Intervalstring `json:"interval"`LastSyncedDateTime `json:"last_synced,omitempty"`Namestring `json:"name"`}CustomScheduling type.
funcNewCustomScheduling¶added inv8.15.0
func NewCustomScheduling() *CustomScheduling
NewCustomScheduling returns a CustomScheduling.
func (*CustomScheduling)UnmarshalJSON¶added inv8.15.0
func (s *CustomScheduling) UnmarshalJSON(data []byte)error
typeCustomSchedulingConfigurationOverrides¶added inv8.15.0
type CustomSchedulingConfigurationOverrides struct {DomainAllowlist []string `json:"domain_allowlist,omitempty"`MaxCrawlDepth *int `json:"max_crawl_depth,omitempty"`SeedUrls []string `json:"seed_urls,omitempty"`SitemapDiscoveryDisabled *bool `json:"sitemap_discovery_disabled,omitempty"`SitemapUrls []string `json:"sitemap_urls,omitempty"`}CustomSchedulingConfigurationOverrides type.
funcNewCustomSchedulingConfigurationOverrides¶added inv8.15.0
func NewCustomSchedulingConfigurationOverrides() *CustomSchedulingConfigurationOverrides
NewCustomSchedulingConfigurationOverrides returns a CustomSchedulingConfigurationOverrides.
func (*CustomSchedulingConfigurationOverrides)UnmarshalJSON¶added inv8.15.0
func (s *CustomSchedulingConfigurationOverrides) UnmarshalJSON(data []byte)error
typeCustomServiceSettings¶added inv8.19.0
type CustomServiceSettings struct {// Headers Specifies the HTTPS header parameters – such as `Authentication` or// `Contet-Type` – that are required to access the custom service.// For example:// “`////"headers":{// "Authorization": "Bearer ${api_key}",// "Content-Type": "application/json;charset=utf-8"//}//// “`Headersjson.RawMessage `json:"headers,omitempty"`// InputType Specifies the input type translation values that are used to replace the// `${input_type}` template in the request body.// For example:// “`////"input_type": {// "translation": {// "ingest": "do_ingest",// "search": "do_search"// },// "default": "a_default"//},//// “`// If the subsequent inference requests come from a search context, the `search`// key will be used and the template will be replaced with `do_search`.// If it comes from the ingest context `do_ingest` is used. If it's a different// context that is not specified, the default value will be used. If no default// is specified an empty string is used.// `translation` can be:// * `classification`// * `clustering`// * `ingest`// * `search`InputTypejson.RawMessage `json:"input_type,omitempty"`// QueryParameters Specifies the query parameters as a list of tuples. The arrays inside the// `query_parameters` must have two items, a key and a value.// For example:// “`// "query_parameters":[////["param_key", "some_value"],//["param_key", "another_value"],//["other_key", "other_value"]//// ]// “`// If the base url is `https://www.elastic.co` it results in:// `https://www.elastic.co?param_key=some_value¶m_key=another_value&other_key=other_value`.QueryParametersjson.RawMessage `json:"query_parameters,omitempty"`// Request The request configuration object.RequestCustomRequestParams `json:"request"`// Response The response configuration object.ResponseCustomResponseParams `json:"response"`// SecretParameters Specifies secret parameters, like `api_key` or `api_token`, that are required// to access the custom service.// For example:// “`////"secret_parameters":{// "api_key":"<api_key>"//}//// “`SecretParametersjson.RawMessage `json:"secret_parameters,omitempty"`// Url The URL endpoint to use for the requests.Url *string `json:"url,omitempty"`}CustomServiceSettings type.
funcNewCustomServiceSettings¶added inv8.19.0
func NewCustomServiceSettings() *CustomServiceSettings
NewCustomServiceSettings returns a CustomServiceSettings.
func (*CustomServiceSettings)UnmarshalJSON¶added inv8.19.0
func (s *CustomServiceSettings) UnmarshalJSON(data []byte)error
typeCustomTaskSettings¶added inv8.19.0
type CustomTaskSettings struct {// Parameters Specifies parameters that are required to run the custom service. The// parameters depend on the model your custom service uses.// For example:// “`////"task_settings":{// "parameters":{// "input_type":"query",// "return_token":true// }//}//// “`Parametersjson.RawMessage `json:"parameters,omitempty"`}CustomTaskSettings type.
funcNewCustomTaskSettings¶added inv8.19.0
func NewCustomTaskSettings() *CustomTaskSettings
NewCustomTaskSettings returns a CustomTaskSettings.
typeCzechAnalyzer¶added inv8.16.0
type CzechAnalyzer struct {StemExclusion []string `json:"stem_exclusion,omitempty"`StopwordsStopWords `json:"stopwords,omitempty"`StopwordsPath *string `json:"stopwords_path,omitempty"`Typestring `json:"type,omitempty"`}CzechAnalyzer type.
funcNewCzechAnalyzer¶added inv8.16.0
func NewCzechAnalyzer() *CzechAnalyzer
NewCzechAnalyzer returns a CzechAnalyzer.
func (CzechAnalyzer)MarshalJSON¶added inv8.16.0
func (sCzechAnalyzer) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*CzechAnalyzer)UnmarshalJSON¶added inv8.16.0
func (s *CzechAnalyzer) UnmarshalJSON(data []byte)error
typeCzechStemTokenFilter¶added inv8.19.0
type CzechStemTokenFilter struct {Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}CzechStemTokenFilter type.
funcNewCzechStemTokenFilter¶added inv8.19.0
func NewCzechStemTokenFilter() *CzechStemTokenFilter
NewCzechStemTokenFilter returns a CzechStemTokenFilter.
func (CzechStemTokenFilter)MarshalJSON¶added inv8.19.0
func (sCzechStemTokenFilter) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*CzechStemTokenFilter)UnmarshalJSON¶added inv8.19.0
func (s *CzechStemTokenFilter) UnmarshalJSON(data []byte)error
typeDailySchedule¶
type DailySchedule struct {At []ScheduleTimeOfDay `json:"at"`}DailySchedule type.
funcNewDailySchedule¶added inv8.5.0
func NewDailySchedule() *DailySchedule
NewDailySchedule returns a DailySchedule.
func (*DailySchedule)UnmarshalJSON¶added inv8.7.1
func (s *DailySchedule) UnmarshalJSON(data []byte)error
typeDanglingIndex¶
type DanglingIndex struct {CreationDateMillisint64 `json:"creation_date_millis"`IndexNamestring `json:"index_name"`IndexUuidstring `json:"index_uuid"`NodeIds []string `json:"node_ids"`}DanglingIndex type.
funcNewDanglingIndex¶added inv8.5.0
func NewDanglingIndex() *DanglingIndex
NewDanglingIndex returns a DanglingIndex.
func (*DanglingIndex)UnmarshalJSON¶added inv8.7.1
func (s *DanglingIndex) UnmarshalJSON(data []byte)error
typeDanishAnalyzer¶added inv8.16.0
type DanishAnalyzer struct {StopwordsStopWords `json:"stopwords,omitempty"`StopwordsPath *string `json:"stopwords_path,omitempty"`Typestring `json:"type,omitempty"`}DanishAnalyzer type.
funcNewDanishAnalyzer¶added inv8.16.0
func NewDanishAnalyzer() *DanishAnalyzer
NewDanishAnalyzer returns a DanishAnalyzer.
func (DanishAnalyzer)MarshalJSON¶added inv8.16.0
func (sDanishAnalyzer) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*DanishAnalyzer)UnmarshalJSON¶added inv8.16.0
func (s *DanishAnalyzer) UnmarshalJSON(data []byte)error
typeDataCounts¶
type DataCounts struct {BucketCountint64 `json:"bucket_count"`EarliestRecordTimestamp *int64 `json:"earliest_record_timestamp,omitempty"`EmptyBucketCountint64 `json:"empty_bucket_count"`InputBytesint64 `json:"input_bytes"`InputFieldCountint64 `json:"input_field_count"`InputRecordCountint64 `json:"input_record_count"`InvalidDateCountint64 `json:"invalid_date_count"`JobIdstring `json:"job_id"`LastDataTime *int64 `json:"last_data_time,omitempty"`LatestBucketTimestamp *int64 `json:"latest_bucket_timestamp,omitempty"`LatestEmptyBucketTimestamp *int64 `json:"latest_empty_bucket_timestamp,omitempty"`LatestRecordTimestamp *int64 `json:"latest_record_timestamp,omitempty"`LatestSparseBucketTimestamp *int64 `json:"latest_sparse_bucket_timestamp,omitempty"`LogTime *int64 `json:"log_time,omitempty"`MissingFieldCountint64 `json:"missing_field_count"`OutOfOrderTimestampCountint64 `json:"out_of_order_timestamp_count"`ProcessedFieldCountint64 `json:"processed_field_count"`ProcessedRecordCountint64 `json:"processed_record_count"`SparseBucketCountint64 `json:"sparse_bucket_count"`}DataCounts type.
func (*DataCounts)UnmarshalJSON¶added inv8.7.1
func (s *DataCounts) UnmarshalJSON(data []byte)error
typeDataDescription¶
type DataDescription struct {FieldDelimiter *string `json:"field_delimiter,omitempty"`// Format Only JSON format is supported at this time.Format *string `json:"format,omitempty"`// TimeField The name of the field that contains the timestamp.TimeField *string `json:"time_field,omitempty"`// TimeFormat The time format, which can be `epoch`, `epoch_ms`, or a custom pattern. The// value `epoch` refers to UNIX or Epoch time (the number of seconds since 1 Jan// 1970). The value `epoch_ms` indicates that time is measured in milliseconds// since the epoch. The `epoch` and `epoch_ms` time formats accept either// integer or real values. Custom patterns must conform to the Java// DateTimeFormatter class. When you use date-time formatting patterns, it is// recommended that you provide the full date, time and time zone. For example:// `yyyy-MM-dd'T'HH:mm:ssX`. If the pattern that you specify is not sufficient// to produce a complete timestamp, job creation fails.TimeFormat *string `json:"time_format,omitempty"`}DataDescription type.
funcNewDataDescription¶added inv8.5.0
func NewDataDescription() *DataDescription
NewDataDescription returns a DataDescription.
func (*DataDescription)UnmarshalJSON¶added inv8.7.1
func (s *DataDescription) UnmarshalJSON(data []byte)error
typeDataEmailAttachment¶
type DataEmailAttachment struct {Format *dataattachmentformat.DataAttachmentFormat `json:"format,omitempty"`}DataEmailAttachment type.
funcNewDataEmailAttachment¶added inv8.5.0
func NewDataEmailAttachment() *DataEmailAttachment
NewDataEmailAttachment returns a DataEmailAttachment.
typeDataFrameAnalyticsRecord¶
type DataFrameAnalyticsRecord struct {// AssignmentExplanation Messages related to the selection of a node.AssignmentExplanation *string `json:"assignment_explanation,omitempty"`// CreateTime The time when the job was created.CreateTime *string `json:"create_time,omitempty"`// Description A description of the job.Description *string `json:"description,omitempty"`// DestIndex The name of the destination index.DestIndex *string `json:"dest_index,omitempty"`// FailureReason Messages about the reason why the job failed.FailureReason *string `json:"failure_reason,omitempty"`// Id The identifier for the job.Id *string `json:"id,omitempty"`// ModelMemoryLimit The approximate maximum amount of memory resources that are permitted for the// job.ModelMemoryLimit *string `json:"model_memory_limit,omitempty"`// NodeAddress The network address of the assigned node.NodeAddress *string `json:"node.address,omitempty"`// NodeEphemeralId The ephemeral identifier of the assigned node.NodeEphemeralId *string `json:"node.ephemeral_id,omitempty"`// NodeId The unique identifier of the assigned node.NodeId *string `json:"node.id,omitempty"`// NodeName The name of the assigned node.NodeName *string `json:"node.name,omitempty"`// Progress The progress report for the job by phase.Progress *string `json:"progress,omitempty"`// SourceIndex The name of the source index.SourceIndex *string `json:"source_index,omitempty"`// State The current status of the job.State *string `json:"state,omitempty"`// Type The type of analysis that the job performs.Type *string `json:"type,omitempty"`// Version The version of Elasticsearch when the job was created.Version *string `json:"version,omitempty"`}DataFrameAnalyticsRecord type.
funcNewDataFrameAnalyticsRecord¶added inv8.5.0
func NewDataFrameAnalyticsRecord() *DataFrameAnalyticsRecord
NewDataFrameAnalyticsRecord returns a DataFrameAnalyticsRecord.
func (*DataFrameAnalyticsRecord)UnmarshalJSON¶added inv8.7.1
func (s *DataFrameAnalyticsRecord) UnmarshalJSON(data []byte)error
typeDataPathStats¶
type DataPathStats struct {// Available Total amount of disk space available to this Java virtual machine on this// file store.Available *string `json:"available,omitempty"`// AvailableInBytes Total number of bytes available to this Java virtual machine on this file// store.AvailableInBytes *int64 `json:"available_in_bytes,omitempty"`DiskQueue *string `json:"disk_queue,omitempty"`DiskReadSize *string `json:"disk_read_size,omitempty"`DiskReadSizeInBytes *int64 `json:"disk_read_size_in_bytes,omitempty"`DiskReads *int64 `json:"disk_reads,omitempty"`DiskWriteSize *string `json:"disk_write_size,omitempty"`DiskWriteSizeInBytes *int64 `json:"disk_write_size_in_bytes,omitempty"`DiskWrites *int64 `json:"disk_writes,omitempty"`// Free Total amount of unallocated disk space in the file store.Free *string `json:"free,omitempty"`// FreeInBytes Total number of unallocated bytes in the file store.FreeInBytes *int64 `json:"free_in_bytes,omitempty"`// Mount Mount point of the file store (for example: `/dev/sda2`).Mount *string `json:"mount,omitempty"`// Path Path to the file store.Path *string `json:"path,omitempty"`// Total Total size of the file store.Total *string `json:"total,omitempty"`// TotalInBytes Total size of the file store in bytes.TotalInBytes *int64 `json:"total_in_bytes,omitempty"`// Type Type of the file store (ex: ext4).Type *string `json:"type,omitempty"`}DataPathStats type.
funcNewDataPathStats¶added inv8.5.0
func NewDataPathStats() *DataPathStats
NewDataPathStats returns a DataPathStats.
func (*DataPathStats)UnmarshalJSON¶added inv8.7.1
func (s *DataPathStats) UnmarshalJSON(data []byte)error
typeDataStream¶
type DataStream struct {// AllowCustomRouting If `true`, the data stream allows custom routing on write request.AllowCustomRouting *bool `json:"allow_custom_routing,omitempty"`// FailureStore Information about failure store backing indicesFailureStore *FailureStore `json:"failure_store,omitempty"`// Generation Current generation for the data stream. This number acts as a cumulative// count of the stream’s rollovers, starting at 1.Generationint `json:"generation"`// Hidden If `true`, the data stream is hidden.Hiddenbool `json:"hidden"`// IlmPolicy Name of the current ILM lifecycle policy in the stream’s matching index// template.// This lifecycle policy is set in the `index.lifecycle.name` setting.// If the template does not include a lifecycle policy, this property is not// included in the response.// NOTE: A data stream’s backing indices may be assigned different lifecycle// policies. To retrieve the lifecycle policy for individual backing indices,// use the get index settings API.IlmPolicy *string `json:"ilm_policy,omitempty"`// Indices Array of objects containing information about the data stream’s backing// indices.// The last item in this array contains information about the stream’s current// write index.Indices []DataStreamIndex `json:"indices"`// Lifecycle Contains the configuration for the data stream lifecycle of this data stream.Lifecycle *DataStreamLifecycleWithRollover `json:"lifecycle,omitempty"`// Meta_ Custom metadata for the stream, copied from the `_meta` object of the// stream’s matching index template.// If empty, the response omits this property.Meta_Metadata `json:"_meta,omitempty"`// Name Name of the data stream.Namestring `json:"name"`// NextGenerationManagedBy Name of the lifecycle system that'll manage the next generation of the data// stream.NextGenerationManagedBymanagedby.ManagedBy `json:"next_generation_managed_by"`// PreferIlm Indicates if ILM should take precedence over DSL in case both are configured// to managed this data stream.PreferIlmbool `json:"prefer_ilm"`// Replicated If `true`, the data stream is created and managed by cross-cluster// replication and the local cluster can not write into this data stream or// change its mappings.Replicated *bool `json:"replicated,omitempty"`// RolloverOnWrite If `true`, the next write to this data stream will trigger a rollover first// and the document will be indexed in the new backing index. If the rollover// fails the indexing request will fail too.RolloverOnWritebool `json:"rollover_on_write"`// Status Health status of the data stream.// This health status is based on the state of the primary and replica shards of// the stream’s backing indices.Statushealthstatus.HealthStatus `json:"status"`// System If `true`, the data stream is created and managed by an Elastic stack// component and cannot be modified through normal user interaction.System *bool `json:"system,omitempty"`// Template Name of the index template used to create the data stream’s backing indices.// The template’s index pattern must match the name of this data stream.Templatestring `json:"template"`// TimestampField Information about the `@timestamp` field in the data stream.TimestampFieldDataStreamTimestampField `json:"timestamp_field"`}DataStream type.
func (*DataStream)UnmarshalJSON¶added inv8.7.1
func (s *DataStream) UnmarshalJSON(data []byte)error
typeDataStreamIndex¶
type DataStreamIndex struct {// IlmPolicy Name of the current ILM lifecycle policy configured for this backing index.IlmPolicy *string `json:"ilm_policy,omitempty"`// IndexName Name of the backing index.IndexNamestring `json:"index_name"`// IndexUuid Universally unique identifier (UUID) for the index.IndexUuidstring `json:"index_uuid"`// ManagedBy Name of the lifecycle system that's currently managing this backing index.ManagedBy *managedby.ManagedBy `json:"managed_by,omitempty"`// PreferIlm Indicates if ILM should take precedence over DSL in case both are configured// to manage this index.PreferIlm *bool `json:"prefer_ilm,omitempty"`}DataStreamIndex type.
funcNewDataStreamIndex¶added inv8.5.0
func NewDataStreamIndex() *DataStreamIndex
NewDataStreamIndex returns a DataStreamIndex.
func (*DataStreamIndex)UnmarshalJSON¶added inv8.7.1
func (s *DataStreamIndex) UnmarshalJSON(data []byte)error
typeDataStreamLifecycle¶added inv8.8.0
type DataStreamLifecycle struct {// DataRetention If defined, every document added to this data stream will be stored at least// for this time frame.// Any time after this duration the document could be deleted.// When empty, every document in this data stream will be stored indefinitely.DataRetentionDuration `json:"data_retention,omitempty"`// Downsampling The downsampling configuration to execute for the managed backing index after// rollover.Downsampling *DataStreamLifecycleDownsampling `json:"downsampling,omitempty"`// Enabled If defined, it turns data stream lifecycle on/off (`true`/`false`) for this// data stream. A data stream lifecycle// that's disabled (enabled: `false`) will have no effect on the data stream.Enabled *bool `json:"enabled,omitempty"`}DataStreamLifecycle type.
funcNewDataStreamLifecycle¶added inv8.8.0
func NewDataStreamLifecycle() *DataStreamLifecycle
NewDataStreamLifecycle returns a DataStreamLifecycle.
func (*DataStreamLifecycle)UnmarshalJSON¶added inv8.8.0
func (s *DataStreamLifecycle) UnmarshalJSON(data []byte)error
typeDataStreamLifecycleDetails¶added inv8.16.0
type DataStreamLifecycleDetails struct {StagnatingBackingIndices []StagnatingBackingIndices `json:"stagnating_backing_indices,omitempty"`StagnatingBackingIndicesCountint `json:"stagnating_backing_indices_count"`TotalBackingIndicesInErrorint `json:"total_backing_indices_in_error"`}DataStreamLifecycleDetails type.
funcNewDataStreamLifecycleDetails¶added inv8.16.0
func NewDataStreamLifecycleDetails() *DataStreamLifecycleDetails
NewDataStreamLifecycleDetails returns a DataStreamLifecycleDetails.
func (*DataStreamLifecycleDetails)UnmarshalJSON¶added inv8.16.0
func (s *DataStreamLifecycleDetails) UnmarshalJSON(data []byte)error
typeDataStreamLifecycleDownsampling¶added inv8.11.0
type DataStreamLifecycleDownsampling struct {// Rounds The list of downsampling rounds to execute as part of this downsampling// configurationRounds []DownsamplingRound `json:"rounds"`}DataStreamLifecycleDownsampling type.
funcNewDataStreamLifecycleDownsampling¶added inv8.11.0
func NewDataStreamLifecycleDownsampling() *DataStreamLifecycleDownsampling
NewDataStreamLifecycleDownsampling returns a DataStreamLifecycleDownsampling.
typeDataStreamLifecycleExplain¶added inv8.11.0
type DataStreamLifecycleExplain struct {Error *string `json:"error,omitempty"`GenerationTimeDuration `json:"generation_time,omitempty"`Indexstring `json:"index"`IndexCreationDateMillis *int64 `json:"index_creation_date_millis,omitempty"`Lifecycle *DataStreamLifecycleWithRollover `json:"lifecycle,omitempty"`ManagedByLifecyclebool `json:"managed_by_lifecycle"`RolloverDateMillis *int64 `json:"rollover_date_millis,omitempty"`TimeSinceIndexCreationDuration `json:"time_since_index_creation,omitempty"`TimeSinceRolloverDuration `json:"time_since_rollover,omitempty"`}DataStreamLifecycleExplain type.
funcNewDataStreamLifecycleExplain¶added inv8.11.0
func NewDataStreamLifecycleExplain() *DataStreamLifecycleExplain
NewDataStreamLifecycleExplain returns a DataStreamLifecycleExplain.
func (*DataStreamLifecycleExplain)UnmarshalJSON¶added inv8.11.0
func (s *DataStreamLifecycleExplain) UnmarshalJSON(data []byte)error
typeDataStreamLifecycleIndicator¶added inv8.16.0
type DataStreamLifecycleIndicator struct {Details *DataStreamLifecycleDetails `json:"details,omitempty"`Diagnosis []Diagnosis `json:"diagnosis,omitempty"`Impacts []Impact `json:"impacts,omitempty"`Statusindicatorhealthstatus.IndicatorHealthStatus `json:"status"`Symptomstring `json:"symptom"`}DataStreamLifecycleIndicator type.
funcNewDataStreamLifecycleIndicator¶added inv8.16.0
func NewDataStreamLifecycleIndicator() *DataStreamLifecycleIndicator
NewDataStreamLifecycleIndicator returns a DataStreamLifecycleIndicator.
func (*DataStreamLifecycleIndicator)UnmarshalJSON¶added inv8.16.0
func (s *DataStreamLifecycleIndicator) UnmarshalJSON(data []byte)error
typeDataStreamLifecycleRolloverConditions¶added inv8.11.0
type DataStreamLifecycleRolloverConditions struct {MaxAge *string `json:"max_age,omitempty"`MaxDocs *int64 `json:"max_docs,omitempty"`MaxPrimaryShardDocs *int64 `json:"max_primary_shard_docs,omitempty"`MaxPrimaryShardSizeByteSize `json:"max_primary_shard_size,omitempty"`MaxSizeByteSize `json:"max_size,omitempty"`MinAgeDuration `json:"min_age,omitempty"`MinDocs *int64 `json:"min_docs,omitempty"`MinPrimaryShardDocs *int64 `json:"min_primary_shard_docs,omitempty"`MinPrimaryShardSizeByteSize `json:"min_primary_shard_size,omitempty"`MinSizeByteSize `json:"min_size,omitempty"`}DataStreamLifecycleRolloverConditions type.
funcNewDataStreamLifecycleRolloverConditions¶added inv8.11.0
func NewDataStreamLifecycleRolloverConditions() *DataStreamLifecycleRolloverConditions
NewDataStreamLifecycleRolloverConditions returns a DataStreamLifecycleRolloverConditions.
func (*DataStreamLifecycleRolloverConditions)UnmarshalJSON¶added inv8.11.0
func (s *DataStreamLifecycleRolloverConditions) UnmarshalJSON(data []byte)error
typeDataStreamLifecycleWithRollover¶added inv8.11.0
type DataStreamLifecycleWithRollover struct {// DataRetention If defined, every document added to this data stream will be stored at least// for this time frame.// Any time after this duration the document could be deleted.// When empty, every document in this data stream will be stored indefinitely.DataRetentionDuration `json:"data_retention,omitempty"`// Downsampling The downsampling configuration to execute for the managed backing index after// rollover.Downsampling *DataStreamLifecycleDownsampling `json:"downsampling,omitempty"`// Enabled If defined, it turns data stream lifecycle on/off (`true`/`false`) for this// data stream. A data stream lifecycle// that's disabled (enabled: `false`) will have no effect on the data stream.Enabled *bool `json:"enabled,omitempty"`// Rollover The conditions which will trigger the rollover of a backing index as// configured by the cluster setting `cluster.lifecycle.default.rollover`.// This property is an implementation detail and it will only be retrieved when// the query param `include_defaults` is set to true.// The contents of this field are subject to change.Rollover *DataStreamLifecycleRolloverConditions `json:"rollover,omitempty"`}DataStreamLifecycleWithRollover type.
funcNewDataStreamLifecycleWithRollover¶added inv8.11.0
func NewDataStreamLifecycleWithRollover() *DataStreamLifecycleWithRollover
NewDataStreamLifecycleWithRollover returns a DataStreamLifecycleWithRollover.
func (*DataStreamLifecycleWithRollover)UnmarshalJSON¶added inv8.11.0
func (s *DataStreamLifecycleWithRollover) UnmarshalJSON(data []byte)error
typeDataStreamStats¶added inv8.18.0
type DataStreamStats struct {// BackingIndicesInError The count of the backing indices for the data stream.BackingIndicesInErrorint `json:"backing_indices_in_error"`// BackingIndicesInTotal The count of the backing indices for the data stream that have encountered an// error.BackingIndicesInTotalint `json:"backing_indices_in_total"`// Name The name of the data stream.Namestring `json:"name"`}DataStreamStats type.
funcNewDataStreamStats¶added inv8.18.0
func NewDataStreamStats() *DataStreamStats
NewDataStreamStats returns a DataStreamStats.
func (*DataStreamStats)UnmarshalJSON¶added inv8.18.0
func (s *DataStreamStats) UnmarshalJSON(data []byte)error
typeDataStreamTimestamp¶
type DataStreamTimestamp struct {Enabledbool `json:"enabled"`}DataStreamTimestamp type.
funcNewDataStreamTimestamp¶added inv8.5.0
func NewDataStreamTimestamp() *DataStreamTimestamp
NewDataStreamTimestamp returns a DataStreamTimestamp.
func (*DataStreamTimestamp)UnmarshalJSON¶added inv8.7.1
func (s *DataStreamTimestamp) UnmarshalJSON(data []byte)error
typeDataStreamTimestampField¶
type DataStreamTimestampField struct {// Name Name of the timestamp field for the data stream, which must be `@timestamp`.// The `@timestamp` field must be included in every document indexed to the data// stream.Namestring `json:"name"`}DataStreamTimestampField type.
funcNewDataStreamTimestampField¶added inv8.5.0
func NewDataStreamTimestampField() *DataStreamTimestampField
NewDataStreamTimestampField returns a DataStreamTimestampField.
func (*DataStreamTimestampField)UnmarshalJSON¶added inv8.7.1
func (s *DataStreamTimestampField) UnmarshalJSON(data []byte)error
typeDataStreamVisibility¶
type DataStreamVisibility struct {AllowCustomRouting *bool `json:"allow_custom_routing,omitempty"`Hidden *bool `json:"hidden,omitempty"`}DataStreamVisibility type.
funcNewDataStreamVisibility¶added inv8.5.0
func NewDataStreamVisibility() *DataStreamVisibility
NewDataStreamVisibility returns a DataStreamVisibility.
func (*DataStreamVisibility)UnmarshalJSON¶added inv8.7.1
func (s *DataStreamVisibility) UnmarshalJSON(data []byte)error
typeDataStreamWithLifecycle¶added inv8.11.0
type DataStreamWithLifecycle struct {Lifecycle *DataStreamLifecycleWithRollover `json:"lifecycle,omitempty"`Namestring `json:"name"`}DataStreamWithLifecycle type.
funcNewDataStreamWithLifecycle¶added inv8.11.0
func NewDataStreamWithLifecycle() *DataStreamWithLifecycle
NewDataStreamWithLifecycle returns a DataStreamWithLifecycle.
func (*DataStreamWithLifecycle)UnmarshalJSON¶added inv8.11.0
func (s *DataStreamWithLifecycle) UnmarshalJSON(data []byte)error
typeDataStreams¶
type DataStreams struct {Availablebool `json:"available"`DataStreamsint64 `json:"data_streams"`Enabledbool `json:"enabled"`IndicesCountint64 `json:"indices_count"`}DataStreams type.
funcNewDataStreams¶added inv8.5.0
func NewDataStreams() *DataStreams
NewDataStreams returns a DataStreams.
func (*DataStreams)UnmarshalJSON¶added inv8.7.1
func (s *DataStreams) UnmarshalJSON(data []byte)error
typeDataStreamsStatsItem¶
type DataStreamsStatsItem struct {// BackingIndices Current number of backing indices for the data stream.BackingIndicesint `json:"backing_indices"`// DataStream Name of the data stream.DataStreamstring `json:"data_stream"`// MaximumTimestamp The data stream’s highest `@timestamp` value, converted to milliseconds since// the Unix epoch.// NOTE: This timestamp is provided as a best effort.// The data stream may contain `@timestamp` values higher than this if one or// more of the following conditions are met:// The stream contains closed backing indices;// Backing indices with a lower generation contain higher `@timestamp` values.MaximumTimestampint64 `json:"maximum_timestamp"`// StoreSize Total size of all shards for the data stream’s backing indices.// This parameter is only returned if the `human` query parameter is `true`.StoreSizeByteSize `json:"store_size,omitempty"`// StoreSizeBytes Total size, in bytes, of all shards for the data stream’s backing indices.StoreSizeBytesint64 `json:"store_size_bytes"`}DataStreamsStatsItem type.
funcNewDataStreamsStatsItem¶added inv8.5.0
func NewDataStreamsStatsItem() *DataStreamsStatsItem
NewDataStreamsStatsItem returns a DataStreamsStatsItem.
func (*DataStreamsStatsItem)UnmarshalJSON¶added inv8.7.1
func (s *DataStreamsStatsItem) UnmarshalJSON(data []byte)error
typeDataTierPhaseStatistics¶
type DataTierPhaseStatistics struct {DocCountint64 `json:"doc_count"`IndexCountint64 `json:"index_count"`NodeCountint64 `json:"node_count"`PrimaryShardCountint64 `json:"primary_shard_count"`PrimaryShardSizeAvgBytesint64 `json:"primary_shard_size_avg_bytes"`PrimaryShardSizeMadBytesint64 `json:"primary_shard_size_mad_bytes"`PrimaryShardSizeMedianBytesint64 `json:"primary_shard_size_median_bytes"`PrimarySizeBytesint64 `json:"primary_size_bytes"`TotalShardCountint64 `json:"total_shard_count"`TotalSizeBytesint64 `json:"total_size_bytes"`}DataTierPhaseStatistics type.
funcNewDataTierPhaseStatistics¶added inv8.5.0
func NewDataTierPhaseStatistics() *DataTierPhaseStatistics
NewDataTierPhaseStatistics returns a DataTierPhaseStatistics.
func (*DataTierPhaseStatistics)UnmarshalJSON¶added inv8.7.1
func (s *DataTierPhaseStatistics) UnmarshalJSON(data []byte)error
typeDataTiers¶
type DataTiers struct {Availablebool `json:"available"`DataColdDataTierPhaseStatistics `json:"data_cold"`DataContentDataTierPhaseStatistics `json:"data_content"`DataFrozen *DataTierPhaseStatistics `json:"data_frozen,omitempty"`DataHotDataTierPhaseStatistics `json:"data_hot"`DataWarmDataTierPhaseStatistics `json:"data_warm"`Enabledbool `json:"enabled"`}DataTiers type.
func (*DataTiers)UnmarshalJSON¶added inv8.7.1
typeDatabaseConfiguration¶added inv8.16.0
type DatabaseConfiguration struct {AdditionalDatabaseConfigurationProperty map[string]json.RawMessage `json:"-"`Ipinfo *Ipinfo `json:"ipinfo,omitempty"`Maxmind *Maxmind `json:"maxmind,omitempty"`// Name The provider-assigned name of the IP geolocation database to download.Namestring `json:"name"`}DatabaseConfiguration type.
funcNewDatabaseConfiguration¶added inv8.16.0
func NewDatabaseConfiguration() *DatabaseConfiguration
NewDatabaseConfiguration returns a DatabaseConfiguration.
func (DatabaseConfiguration)MarshalJSON¶added inv8.18.0
func (sDatabaseConfiguration) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
func (*DatabaseConfiguration)UnmarshalJSON¶added inv8.16.0
func (s *DatabaseConfiguration) UnmarshalJSON(data []byte)error
typeDatabaseConfigurationFull¶added inv8.18.0
type DatabaseConfigurationFull struct {AdditionalDatabaseConfigurationFullProperty map[string]json.RawMessage `json:"-"`Ipinfo *Ipinfo `json:"ipinfo,omitempty"`Local *Local `json:"local,omitempty"`Maxmind *Maxmind `json:"maxmind,omitempty"`// Name The provider-assigned name of the IP geolocation database to download.Namestring `json:"name"`Web *Web `json:"web,omitempty"`}DatabaseConfigurationFull type.
funcNewDatabaseConfigurationFull¶added inv8.18.0
func NewDatabaseConfigurationFull() *DatabaseConfigurationFull
NewDatabaseConfigurationFull returns a DatabaseConfigurationFull.
func (DatabaseConfigurationFull)MarshalJSON¶added inv8.18.0
func (sDatabaseConfigurationFull) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
func (*DatabaseConfigurationFull)UnmarshalJSON¶added inv8.18.0
func (s *DatabaseConfigurationFull) UnmarshalJSON(data []byte)error
typeDatafeedAuthorization¶
type DatafeedAuthorization struct {// ApiKey If an API key was used for the most recent update to the datafeed, its name// and identifier are listed in the response.ApiKey *ApiKeyAuthorization `json:"api_key,omitempty"`// Roles If a user ID was used for the most recent update to the datafeed, its roles// at the time of the update are listed in the response.Roles []string `json:"roles,omitempty"`// ServiceAccount If a service account was used for the most recent update to the datafeed, the// account name is listed in the response.ServiceAccount *string `json:"service_account,omitempty"`}DatafeedAuthorization type.
funcNewDatafeedAuthorization¶added inv8.5.0
func NewDatafeedAuthorization() *DatafeedAuthorization
NewDatafeedAuthorization returns a DatafeedAuthorization.
func (*DatafeedAuthorization)UnmarshalJSON¶added inv8.9.0
func (s *DatafeedAuthorization) UnmarshalJSON(data []byte)error
typeDatafeedConfig¶
type DatafeedConfig struct {// Aggregations If set, the datafeed performs aggregation searches. Support for aggregations// is limited and should be used only with low cardinality data.Aggregations map[string]Aggregations `json:"aggregations,omitempty"`// ChunkingConfig Datafeeds might be required to search over long time periods, for several// months or years. This search is split into time chunks in order to ensure the// load on Elasticsearch is managed. Chunking configuration controls how the// size of these time chunks are calculated and is an advanced configuration// option.ChunkingConfig *ChunkingConfig `json:"chunking_config,omitempty"`// DatafeedId A numerical character string that uniquely identifies the datafeed. This// identifier can contain lowercase alphanumeric characters (a-z and 0-9),// hyphens, and underscores. It must start and end with alphanumeric characters.// The default value is the job identifier.DatafeedId *string `json:"datafeed_id,omitempty"`// DelayedDataCheckConfig Specifies whether the datafeed checks for missing data and the size of the// window. The datafeed can optionally search over indices that have already// been read in an effort to determine whether any data has subsequently been// added to the index. If missing data is found, it is a good indication that// the `query_delay` option is set too low and the data is being indexed after// the datafeed has passed that moment in time. This check runs only on// real-time datafeeds.DelayedDataCheckConfig *DelayedDataCheckConfig `json:"delayed_data_check_config,omitempty"`// Frequency The interval at which scheduled queries are made while the datafeed runs in// real time. The default value is either the bucket span for short bucket// spans, or, for longer bucket spans, a sensible fraction of the bucket span.// For example: `150s`. When `frequency` is shorter than the bucket span,// interim results for the last (partial) bucket are written then eventually// overwritten by the full bucket results. If the datafeed uses aggregations,// this value must be divisible by the interval of the date histogram// aggregation.FrequencyDuration `json:"frequency,omitempty"`// Indices An array of index names. Wildcards are supported. If any indices are in// remote clusters, the machine learning nodes must have the// `remote_cluster_client` role.Indices []string `json:"indices,omitempty"`// IndicesOptions Specifies index expansion options that are used during search.IndicesOptions *IndicesOptions `json:"indices_options,omitempty"`JobId *string `json:"job_id,omitempty"`// MaxEmptySearches If a real-time datafeed has never seen any data (including during any initial// training period) then it will automatically stop itself and close its// associated job after this many real-time searches that return no documents.// In other words, it will stop after `frequency` times `max_empty_searches` of// real-time operation. If not set then a datafeed with no end time that sees no// data will remain started until it is explicitly stopped.MaxEmptySearches *int `json:"max_empty_searches,omitempty"`// Query The Elasticsearch query domain-specific language (DSL). This value// corresponds to the query object in an Elasticsearch search POST body. All the// options that are supported by Elasticsearch can be used, as this object is// passed verbatim to Elasticsearch.Query *Query `json:"query,omitempty"`// QueryDelay The number of seconds behind real time that data is queried. For example, if// data from 10:04 a.m. might not be searchable in Elasticsearch until 10:06// a.m., set this property to 120 seconds. The default value is randomly// selected between `60s` and `120s`. This randomness improves the query// performance when there are multiple jobs running on the same node.QueryDelayDuration `json:"query_delay,omitempty"`// RuntimeMappings Specifies runtime fields for the datafeed search.RuntimeMappingsRuntimeFields `json:"runtime_mappings,omitempty"`// ScriptFields Specifies scripts that evaluate custom expressions and returns script fields// to the datafeed. The detector configuration objects in a job can contain// functions that use these script fields.ScriptFields map[string]ScriptField `json:"script_fields,omitempty"`// ScrollSize The size parameter that is used in Elasticsearch searches when the datafeed// does not use aggregations. The maximum value is the value of// `index.max_result_window`, which is 10,000 by default.ScrollSize *int `json:"scroll_size,omitempty"`}DatafeedConfig type.
funcNewDatafeedConfig¶added inv8.5.0
func NewDatafeedConfig() *DatafeedConfig
NewDatafeedConfig returns a DatafeedConfig.
func (*DatafeedConfig)UnmarshalJSON¶added inv8.7.1
func (s *DatafeedConfig) UnmarshalJSON(data []byte)error
typeDatafeedRunningState¶
type DatafeedRunningState struct {// RealTimeConfigured Indicates if the datafeed is "real-time"; meaning that the datafeed has no// configured `end` time.RealTimeConfiguredbool `json:"real_time_configured"`// RealTimeRunning Indicates whether the datafeed has finished running on the available past// data.// For datafeeds without a configured `end` time, this means that the datafeed// is now running on "real-time" data.RealTimeRunningbool `json:"real_time_running"`// SearchInterval Provides the latest time interval the datafeed has searched.SearchInterval *RunningStateSearchInterval `json:"search_interval,omitempty"`}DatafeedRunningState type.
funcNewDatafeedRunningState¶added inv8.5.0
func NewDatafeedRunningState() *DatafeedRunningState
NewDatafeedRunningState returns a DatafeedRunningState.
func (*DatafeedRunningState)UnmarshalJSON¶added inv8.7.1
func (s *DatafeedRunningState) UnmarshalJSON(data []byte)error
typeDatafeedStats¶
type DatafeedStats struct {// AssignmentExplanation For started datafeeds only, contains messages relating to the selection of a// node.AssignmentExplanation *string `json:"assignment_explanation,omitempty"`// DatafeedId A numerical character string that uniquely identifies the datafeed.// This identifier can contain lowercase alphanumeric characters (a-z and 0-9),// hyphens, and underscores.// It must start and end with alphanumeric characters.DatafeedIdstring `json:"datafeed_id"`// Node For started datafeeds only, this information pertains to the node upon which// the datafeed is started.Node *DiscoveryNodeCompact `json:"node,omitempty"`// RunningState An object containing the running state for this datafeed.// It is only provided if the datafeed is started.RunningState *DatafeedRunningState `json:"running_state,omitempty"`// State The status of the datafeed, which can be one of the following values:// `starting`, `started`, `stopping`, `stopped`.Statedatafeedstate.DatafeedState `json:"state"`// TimingStats An object that provides statistical information about timing aspect of this// datafeed.TimingStats *DatafeedTimingStats `json:"timing_stats,omitempty"`}DatafeedStats type.
funcNewDatafeedStats¶added inv8.5.0
func NewDatafeedStats() *DatafeedStats
NewDatafeedStats returns a DatafeedStats.
func (*DatafeedStats)UnmarshalJSON¶added inv8.7.1
func (s *DatafeedStats) UnmarshalJSON(data []byte)error
typeDatafeedTimingStats¶
type DatafeedTimingStats struct {// AverageSearchTimePerBucketMs The average search time per bucket, in milliseconds.AverageSearchTimePerBucketMsFloat64 `json:"average_search_time_per_bucket_ms,omitempty"`// BucketCount The number of buckets processed.BucketCountint64 `json:"bucket_count"`ExponentialAverageCalculationContext *ExponentialAverageCalculationContext `json:"exponential_average_calculation_context,omitempty"`// ExponentialAverageSearchTimePerHourMs The exponential average search time per hour, in milliseconds.ExponentialAverageSearchTimePerHourMsFloat64 `json:"exponential_average_search_time_per_hour_ms"`// JobId Identifier for the anomaly detection job.JobIdstring `json:"job_id"`// SearchCount The number of searches run by the datafeed.SearchCountint64 `json:"search_count"`// TotalSearchTimeMs The total time the datafeed spent searching, in milliseconds.TotalSearchTimeMsFloat64 `json:"total_search_time_ms"`}DatafeedTimingStats type.
funcNewDatafeedTimingStats¶added inv8.5.0
func NewDatafeedTimingStats() *DatafeedTimingStats
NewDatafeedTimingStats returns a DatafeedTimingStats.
func (*DatafeedTimingStats)UnmarshalJSON¶added inv8.7.1
func (s *DatafeedTimingStats) UnmarshalJSON(data []byte)error
typeDatafeeds¶
type Datafeeds struct {ScrollSizeint `json:"scroll_size"`}Datafeeds type.
func (*Datafeeds)UnmarshalJSON¶added inv8.7.1
typeDatafeedsRecord¶
type DatafeedsRecord struct {// AssignmentExplanation For started datafeeds only, contains messages relating to the selection of a// node.AssignmentExplanation *string `json:"assignment_explanation,omitempty"`// BucketsCount The number of buckets processed.BucketsCount *string `json:"buckets.count,omitempty"`// Id The datafeed identifier.Id *string `json:"id,omitempty"`// NodeAddress The network address of the assigned node.// For started datafeeds only, this information pertains to the node upon which// the datafeed is started.NodeAddress *string `json:"node.address,omitempty"`// NodeEphemeralId The ephemeral identifier of the assigned node.// For started datafeeds only, this information pertains to the node upon which// the datafeed is started.NodeEphemeralId *string `json:"node.ephemeral_id,omitempty"`// NodeId The unique identifier of the assigned node.// For started datafeeds only, this information pertains to the node upon which// the datafeed is started.NodeId *string `json:"node.id,omitempty"`// NodeName The name of the assigned node.// For started datafeeds only, this information pertains to the node upon which// the datafeed is started.NodeName *string `json:"node.name,omitempty"`// SearchBucketAvg The average search time per bucket, in milliseconds.SearchBucketAvg *string `json:"search.bucket_avg,omitempty"`// SearchCount The number of searches run by the datafeed.SearchCount *string `json:"search.count,omitempty"`// SearchExpAvgHour The exponential average search time per hour, in milliseconds.SearchExpAvgHour *string `json:"search.exp_avg_hour,omitempty"`// SearchTime The total time the datafeed spent searching, in milliseconds.SearchTime *string `json:"search.time,omitempty"`// State The status of the datafeed.State *datafeedstate.DatafeedState `json:"state,omitempty"`}DatafeedsRecord type.
funcNewDatafeedsRecord¶added inv8.5.0
func NewDatafeedsRecord() *DatafeedsRecord
NewDatafeedsRecord returns a DatafeedsRecord.
func (*DatafeedsRecord)UnmarshalJSON¶added inv8.9.0
func (s *DatafeedsRecord) UnmarshalJSON(data []byte)error
typeDataframeAnalysisAnalyzedFields¶
type DataframeAnalysisAnalyzedFields struct {// Excludes An array of strings that defines the fields that will be included in the// analysis.Excludes []string `json:"excludes"`// Includes An array of strings that defines the fields that will be excluded from the// analysis. You do not need to add fields with unsupported data types to// excludes, these fields are excluded from the analysis automatically.Includes []string `json:"includes"`}DataframeAnalysisAnalyzedFields type.
funcNewDataframeAnalysisAnalyzedFields¶added inv8.5.0
func NewDataframeAnalysisAnalyzedFields() *DataframeAnalysisAnalyzedFields
NewDataframeAnalysisAnalyzedFields returns a DataframeAnalysisAnalyzedFields.
func (*DataframeAnalysisAnalyzedFields)UnmarshalJSON¶added inv8.7.1
func (s *DataframeAnalysisAnalyzedFields) UnmarshalJSON(data []byte)error
typeDataframeAnalysisClassification¶
type DataframeAnalysisClassification struct {// Alpha Advanced configuration option. Machine learning uses loss guided tree// growing, which means that the decision trees grow where the regularized loss// decreases most quickly. This parameter affects loss calculations by acting as// a multiplier of the tree depth. Higher alpha values result in shallower trees// and faster training times. By default, this value is calculated during// hyperparameter optimization. It must be greater than or equal to zero.Alpha *Float64 `json:"alpha,omitempty"`ClassAssignmentObjective *string `json:"class_assignment_objective,omitempty"`// DependentVariable Defines which field of the document is to be predicted. It must match one of// the fields in the index being used to train. If this field is missing from a// document, then that document will not be used for training, but a prediction// with the trained model will be generated for it. It is also known as// continuous target variable.// For classification analysis, the data type of the field must be numeric// (`integer`, `short`, `long`, `byte`), categorical (`ip` or `keyword`), or// `boolean`. There must be no more than 30 different values in this field.// For regression analysis, the data type of the field must be numeric.DependentVariablestring `json:"dependent_variable"`// DownsampleFactor Advanced configuration option. Controls the fraction of data that is used to// compute the derivatives of the loss function for tree training. A small value// results in the use of a small fraction of the data. If this value is set to// be less than 1, accuracy typically improves. However, too small a value may// result in poor convergence for the ensemble and so require more trees. By// default, this value is calculated during hyperparameter optimization. It must// be greater than zero and less than or equal to 1.DownsampleFactor *Float64 `json:"downsample_factor,omitempty"`// EarlyStoppingEnabled Advanced configuration option. Specifies whether the training process should// finish if it is not finding any better performing models. If disabled, the// training process can take significantly longer and the chance of finding a// better performing model is unremarkable.EarlyStoppingEnabled *bool `json:"early_stopping_enabled,omitempty"`// Eta Advanced configuration option. The shrinkage applied to the weights. Smaller// values result in larger forests which have a better generalization error.// However, larger forests cause slower training. By default, this value is// calculated during hyperparameter optimization. It must be a value between// 0.001 and 1.Eta *Float64 `json:"eta,omitempty"`// EtaGrowthRatePerTree Advanced configuration option. Specifies the rate at which `eta` increases// for each new tree that is added to the forest. For example, a rate of 1.05// increases `eta` by 5% for each extra tree. By default, this value is// calculated during hyperparameter optimization. It must be between 0.5 and 2.EtaGrowthRatePerTree *Float64 `json:"eta_growth_rate_per_tree,omitempty"`// FeatureBagFraction Advanced configuration option. Defines the fraction of features that will be// used when selecting a random bag for each candidate split. By default, this// value is calculated during hyperparameter optimization.FeatureBagFraction *Float64 `json:"feature_bag_fraction,omitempty"`// FeatureProcessors Advanced configuration option. A collection of feature preprocessors that// modify one or more included fields. The analysis uses the resulting one or// more features instead of the original document field. However, these features// are ephemeral; they are not stored in the destination index. Multiple// `feature_processors` entries can refer to the same document fields. Automatic// categorical feature encoding still occurs for the fields that are unprocessed// by a custom processor or that have categorical values. Use this property only// if you want to override the automatic feature encoding of the specified// fields.FeatureProcessors []DataframeAnalysisFeatureProcessor `json:"feature_processors,omitempty"`// Gamma Advanced configuration option. Regularization parameter to prevent// overfitting on the training data set. Multiplies a linear penalty associated// with the size of individual trees in the forest. A high gamma value causes// training to prefer small trees. A small gamma value results in larger// individual trees and slower training. By default, this value is calculated// during hyperparameter optimization. It must be a nonnegative value.Gamma *Float64 `json:"gamma,omitempty"`// Lambda Advanced configuration option. Regularization parameter to prevent// overfitting on the training data set. Multiplies an L2 regularization term// which applies to leaf weights of the individual trees in the forest. A high// lambda value causes training to favor small leaf weights. This behavior makes// the prediction function smoother at the expense of potentially not being able// to capture relevant relationships between the features and the dependent// variable. A small lambda value results in large individual trees and slower// training. By default, this value is calculated during hyperparameter// optimization. It must be a nonnegative value.Lambda *Float64 `json:"lambda,omitempty"`// MaxOptimizationRoundsPerHyperparameter Advanced configuration option. A multiplier responsible for determining the// maximum number of hyperparameter optimization steps in the Bayesian// optimization procedure. The maximum number of steps is determined based on// the number of undefined hyperparameters times the maximum optimization rounds// per hyperparameter. By default, this value is calculated during// hyperparameter optimization.MaxOptimizationRoundsPerHyperparameter *int `json:"max_optimization_rounds_per_hyperparameter,omitempty"`// MaxTrees Advanced configuration option. Defines the maximum number of decision trees// in the forest. The maximum value is 2000. By default, this value is// calculated during hyperparameter optimization.MaxTrees *int `json:"max_trees,omitempty"`// NumTopClasses Defines the number of categories for which the predicted probabilities are// reported. It must be non-negative or -1. If it is -1 or greater than the// total number of categories, probabilities are reported for all categories; if// you have a large number of categories, there could be a significant effect on// the size of your destination index. NOTE: To use the AUC ROC evaluation// method, `num_top_classes` must be set to -1 or a value greater than or equal// to the total number of categories.NumTopClasses *int `json:"num_top_classes,omitempty"`// NumTopFeatureImportanceValues Advanced configuration option. Specifies the maximum number of feature// importance values per document to return. By default, no feature importance// calculation occurs.NumTopFeatureImportanceValues *int `json:"num_top_feature_importance_values,omitempty"`// PredictionFieldName Defines the name of the prediction field in the results. Defaults to// `<dependent_variable>_prediction`.PredictionFieldName *string `json:"prediction_field_name,omitempty"`// RandomizeSeed Defines the seed for the random generator that is used to pick training data.// By default, it is randomly generated. Set it to a specific value to use the// same training data each time you start a job (assuming other related// parameters such as `source` and `analyzed_fields` are the same).RandomizeSeed *Float64 `json:"randomize_seed,omitempty"`// SoftTreeDepthLimit Advanced configuration option. Machine learning uses loss guided tree// growing, which means that the decision trees grow where the regularized loss// decreases most quickly. This soft limit combines with the// `soft_tree_depth_tolerance` to penalize trees that exceed the specified// depth; the regularized loss increases quickly beyond this depth. By default,// this value is calculated during hyperparameter optimization. It must be// greater than or equal to 0.SoftTreeDepthLimit *int `json:"soft_tree_depth_limit,omitempty"`// SoftTreeDepthTolerance Advanced configuration option. This option controls how quickly the// regularized loss increases when the tree depth exceeds// `soft_tree_depth_limit`. By default, this value is calculated during// hyperparameter optimization. It must be greater than or equal to 0.01.SoftTreeDepthTolerance *Float64 `json:"soft_tree_depth_tolerance,omitempty"`// TrainingPercent Defines what percentage of the eligible documents that will be used for// training. Documents that are ignored by the analysis (for example those that// contain arrays with more than one value) won’t be included in the calculation// for used percentage.TrainingPercentPercentage `json:"training_percent,omitempty"`}DataframeAnalysisClassification type.
funcNewDataframeAnalysisClassification¶added inv8.5.0
func NewDataframeAnalysisClassification() *DataframeAnalysisClassification
NewDataframeAnalysisClassification returns a DataframeAnalysisClassification.
func (*DataframeAnalysisClassification)UnmarshalJSON¶added inv8.7.1
func (s *DataframeAnalysisClassification) UnmarshalJSON(data []byte)error
typeDataframeAnalysisContainer¶
type DataframeAnalysisContainer struct {AdditionalDataframeAnalysisContainerProperty map[string]json.RawMessage `json:"-"`// Classification The configuration information necessary to perform classification.Classification *DataframeAnalysisClassification `json:"classification,omitempty"`// OutlierDetection The configuration information necessary to perform outlier detection. NOTE:// Advanced parameters are for fine-tuning classification analysis. They are set// automatically by hyperparameter optimization to give the minimum validation// error. It is highly recommended to use the default values unless you fully// understand the function of these parameters.OutlierDetection *DataframeAnalysisOutlierDetection `json:"outlier_detection,omitempty"`// Regression The configuration information necessary to perform regression. NOTE: Advanced// parameters are for fine-tuning regression analysis. They are set// automatically by hyperparameter optimization to give the minimum validation// error. It is highly recommended to use the default values unless you fully// understand the function of these parameters.Regression *DataframeAnalysisRegression `json:"regression,omitempty"`}DataframeAnalysisContainer type.
funcNewDataframeAnalysisContainer¶added inv8.5.0
func NewDataframeAnalysisContainer() *DataframeAnalysisContainer
NewDataframeAnalysisContainer returns a DataframeAnalysisContainer.
func (DataframeAnalysisContainer)MarshalJSON¶added inv8.18.0
func (sDataframeAnalysisContainer) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
typeDataframeAnalysisFeatureProcessor¶
type DataframeAnalysisFeatureProcessor struct {AdditionalDataframeAnalysisFeatureProcessorProperty map[string]json.RawMessage `json:"-"`// FrequencyEncoding The configuration information necessary to perform frequency encoding.FrequencyEncoding *DataframeAnalysisFeatureProcessorFrequencyEncoding `json:"frequency_encoding,omitempty"`// MultiEncoding The configuration information necessary to perform multi encoding. It allows// multiple processors to be changed together. This way the output of a// processor can then be passed to another as an input.MultiEncoding *DataframeAnalysisFeatureProcessorMultiEncoding `json:"multi_encoding,omitempty"`// NGramEncoding The configuration information necessary to perform n-gram encoding. Features// created by this encoder have the following name format:// <feature_prefix>.<ngram><string position>. For example, if the feature_prefix// is f, the feature name for the second unigram in a string is f.11.NGramEncoding *DataframeAnalysisFeatureProcessorNGramEncoding `json:"n_gram_encoding,omitempty"`// OneHotEncoding The configuration information necessary to perform one hot encoding.OneHotEncoding *DataframeAnalysisFeatureProcessorOneHotEncoding `json:"one_hot_encoding,omitempty"`// TargetMeanEncoding The configuration information necessary to perform target mean encoding.TargetMeanEncoding *DataframeAnalysisFeatureProcessorTargetMeanEncoding `json:"target_mean_encoding,omitempty"`}DataframeAnalysisFeatureProcessor type.
funcNewDataframeAnalysisFeatureProcessor¶added inv8.5.0
func NewDataframeAnalysisFeatureProcessor() *DataframeAnalysisFeatureProcessor
NewDataframeAnalysisFeatureProcessor returns a DataframeAnalysisFeatureProcessor.
func (DataframeAnalysisFeatureProcessor)MarshalJSON¶added inv8.18.0
func (sDataframeAnalysisFeatureProcessor) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
typeDataframeAnalysisFeatureProcessorFrequencyEncoding¶
type DataframeAnalysisFeatureProcessorFrequencyEncoding struct {// FeatureName The resulting feature name.FeatureNamestring `json:"feature_name"`Fieldstring `json:"field"`// FrequencyMap The resulting frequency map for the field value. If the field value is// missing from the frequency_map, the resulting value is 0.FrequencyMap map[string]Float64 `json:"frequency_map"`}DataframeAnalysisFeatureProcessorFrequencyEncoding type.
funcNewDataframeAnalysisFeatureProcessorFrequencyEncoding¶added inv8.5.0
func NewDataframeAnalysisFeatureProcessorFrequencyEncoding() *DataframeAnalysisFeatureProcessorFrequencyEncoding
NewDataframeAnalysisFeatureProcessorFrequencyEncoding returns a DataframeAnalysisFeatureProcessorFrequencyEncoding.
func (*DataframeAnalysisFeatureProcessorFrequencyEncoding)UnmarshalJSON¶added inv8.7.1
func (s *DataframeAnalysisFeatureProcessorFrequencyEncoding) UnmarshalJSON(data []byte)error
typeDataframeAnalysisFeatureProcessorMultiEncoding¶
type DataframeAnalysisFeatureProcessorMultiEncoding struct {// Processors The ordered array of custom processors to execute. Must be more than 1.Processors []int `json:"processors"`}DataframeAnalysisFeatureProcessorMultiEncoding type.
funcNewDataframeAnalysisFeatureProcessorMultiEncoding¶added inv8.5.0
func NewDataframeAnalysisFeatureProcessorMultiEncoding() *DataframeAnalysisFeatureProcessorMultiEncoding
NewDataframeAnalysisFeatureProcessorMultiEncoding returns a DataframeAnalysisFeatureProcessorMultiEncoding.
typeDataframeAnalysisFeatureProcessorNGramEncoding¶
type DataframeAnalysisFeatureProcessorNGramEncoding struct {Custom *bool `json:"custom,omitempty"`// FeaturePrefix The feature name prefix. Defaults to ngram_<start>_<length>.FeaturePrefix *string `json:"feature_prefix,omitempty"`// Field The name of the text field to encode.Fieldstring `json:"field"`// Length Specifies the length of the n-gram substring. Defaults to 50. Must be greater// than 0.Length *int `json:"length,omitempty"`// NGrams Specifies which n-grams to gather. It’s an array of integer values where the// minimum value is 1, and a maximum value is 5.NGrams []int `json:"n_grams"`// Start Specifies the zero-indexed start of the n-gram substring. Negative values are// allowed for encoding n-grams of string suffixes. Defaults to 0.Start *int `json:"start,omitempty"`}DataframeAnalysisFeatureProcessorNGramEncoding type.
funcNewDataframeAnalysisFeatureProcessorNGramEncoding¶added inv8.5.0
func NewDataframeAnalysisFeatureProcessorNGramEncoding() *DataframeAnalysisFeatureProcessorNGramEncoding
NewDataframeAnalysisFeatureProcessorNGramEncoding returns a DataframeAnalysisFeatureProcessorNGramEncoding.
func (*DataframeAnalysisFeatureProcessorNGramEncoding)UnmarshalJSON¶added inv8.7.1
func (s *DataframeAnalysisFeatureProcessorNGramEncoding) UnmarshalJSON(data []byte)error
typeDataframeAnalysisFeatureProcessorOneHotEncoding¶
type DataframeAnalysisFeatureProcessorOneHotEncoding struct {// Field The name of the field to encode.Fieldstring `json:"field"`// HotMap The one hot map mapping the field value with the column name.HotMapstring `json:"hot_map"`}DataframeAnalysisFeatureProcessorOneHotEncoding type.
funcNewDataframeAnalysisFeatureProcessorOneHotEncoding¶added inv8.5.0
func NewDataframeAnalysisFeatureProcessorOneHotEncoding() *DataframeAnalysisFeatureProcessorOneHotEncoding
NewDataframeAnalysisFeatureProcessorOneHotEncoding returns a DataframeAnalysisFeatureProcessorOneHotEncoding.
func (*DataframeAnalysisFeatureProcessorOneHotEncoding)UnmarshalJSON¶added inv8.7.1
func (s *DataframeAnalysisFeatureProcessorOneHotEncoding) UnmarshalJSON(data []byte)error
typeDataframeAnalysisFeatureProcessorTargetMeanEncoding¶
type DataframeAnalysisFeatureProcessorTargetMeanEncoding struct {// DefaultValue The default value if field value is not found in the target_map.DefaultValueint `json:"default_value"`// FeatureName The resulting feature name.FeatureNamestring `json:"feature_name"`// Field The name of the field to encode.Fieldstring `json:"field"`// TargetMap The field value to target mean transition map.TargetMap map[string]json.RawMessage `json:"target_map"`}DataframeAnalysisFeatureProcessorTargetMeanEncoding type.
funcNewDataframeAnalysisFeatureProcessorTargetMeanEncoding¶added inv8.5.0
func NewDataframeAnalysisFeatureProcessorTargetMeanEncoding() *DataframeAnalysisFeatureProcessorTargetMeanEncoding
NewDataframeAnalysisFeatureProcessorTargetMeanEncoding returns a DataframeAnalysisFeatureProcessorTargetMeanEncoding.
func (*DataframeAnalysisFeatureProcessorTargetMeanEncoding)UnmarshalJSON¶added inv8.7.1
func (s *DataframeAnalysisFeatureProcessorTargetMeanEncoding) UnmarshalJSON(data []byte)error
typeDataframeAnalysisOutlierDetection¶
type DataframeAnalysisOutlierDetection struct {// ComputeFeatureInfluence Specifies whether the feature influence calculation is enabled.ComputeFeatureInfluence *bool `json:"compute_feature_influence,omitempty"`// FeatureInfluenceThreshold The minimum outlier score that a document needs to have in order to calculate// its feature influence score. Value range: 0-1.FeatureInfluenceThreshold *Float64 `json:"feature_influence_threshold,omitempty"`// Method The method that outlier detection uses. Available methods are `lof`, `ldof`,// `distance_kth_nn`, `distance_knn`, and `ensemble`. The default value is// ensemble, which means that outlier detection uses an ensemble of different// methods and normalises and combines their individual outlier scores to obtain// the overall outlier score.Method *string `json:"method,omitempty"`// NNeighbors Defines the value for how many nearest neighbors each method of outlier// detection uses to calculate its outlier score. When the value is not set,// different values are used for different ensemble members. This default// behavior helps improve the diversity in the ensemble; only override it if you// are confident that the value you choose is appropriate for the data set.NNeighbors *int `json:"n_neighbors,omitempty"`// OutlierFraction The proportion of the data set that is assumed to be outlying prior to// outlier detection. For example, 0.05 means it is assumed that 5% of values// are real outliers and 95% are inliers.OutlierFraction *Float64 `json:"outlier_fraction,omitempty"`// StandardizationEnabled If true, the following operation is performed on the columns before computing// outlier scores: `(x_i - mean(x_i)) / sd(x_i)`.StandardizationEnabled *bool `json:"standardization_enabled,omitempty"`}DataframeAnalysisOutlierDetection type.
funcNewDataframeAnalysisOutlierDetection¶added inv8.5.0
func NewDataframeAnalysisOutlierDetection() *DataframeAnalysisOutlierDetection
NewDataframeAnalysisOutlierDetection returns a DataframeAnalysisOutlierDetection.
func (*DataframeAnalysisOutlierDetection)UnmarshalJSON¶added inv8.7.1
func (s *DataframeAnalysisOutlierDetection) UnmarshalJSON(data []byte)error
typeDataframeAnalysisRegression¶
type DataframeAnalysisRegression struct {// Alpha Advanced configuration option. Machine learning uses loss guided tree// growing, which means that the decision trees grow where the regularized loss// decreases most quickly. This parameter affects loss calculations by acting as// a multiplier of the tree depth. Higher alpha values result in shallower trees// and faster training times. By default, this value is calculated during// hyperparameter optimization. It must be greater than or equal to zero.Alpha *Float64 `json:"alpha,omitempty"`// DependentVariable Defines which field of the document is to be predicted. It must match one of// the fields in the index being used to train. If this field is missing from a// document, then that document will not be used for training, but a prediction// with the trained model will be generated for it. It is also known as// continuous target variable.// For classification analysis, the data type of the field must be numeric// (`integer`, `short`, `long`, `byte`), categorical (`ip` or `keyword`), or// `boolean`. There must be no more than 30 different values in this field.// For regression analysis, the data type of the field must be numeric.DependentVariablestring `json:"dependent_variable"`// DownsampleFactor Advanced configuration option. Controls the fraction of data that is used to// compute the derivatives of the loss function for tree training. A small value// results in the use of a small fraction of the data. If this value is set to// be less than 1, accuracy typically improves. However, too small a value may// result in poor convergence for the ensemble and so require more trees. By// default, this value is calculated during hyperparameter optimization. It must// be greater than zero and less than or equal to 1.DownsampleFactor *Float64 `json:"downsample_factor,omitempty"`// EarlyStoppingEnabled Advanced configuration option. Specifies whether the training process should// finish if it is not finding any better performing models. If disabled, the// training process can take significantly longer and the chance of finding a// better performing model is unremarkable.EarlyStoppingEnabled *bool `json:"early_stopping_enabled,omitempty"`// Eta Advanced configuration option. The shrinkage applied to the weights. Smaller// values result in larger forests which have a better generalization error.// However, larger forests cause slower training. By default, this value is// calculated during hyperparameter optimization. It must be a value between// 0.001 and 1.Eta *Float64 `json:"eta,omitempty"`// EtaGrowthRatePerTree Advanced configuration option. Specifies the rate at which `eta` increases// for each new tree that is added to the forest. For example, a rate of 1.05// increases `eta` by 5% for each extra tree. By default, this value is// calculated during hyperparameter optimization. It must be between 0.5 and 2.EtaGrowthRatePerTree *Float64 `json:"eta_growth_rate_per_tree,omitempty"`// FeatureBagFraction Advanced configuration option. Defines the fraction of features that will be// used when selecting a random bag for each candidate split. By default, this// value is calculated during hyperparameter optimization.FeatureBagFraction *Float64 `json:"feature_bag_fraction,omitempty"`// FeatureProcessors Advanced configuration option. A collection of feature preprocessors that// modify one or more included fields. The analysis uses the resulting one or// more features instead of the original document field. However, these features// are ephemeral; they are not stored in the destination index. Multiple// `feature_processors` entries can refer to the same document fields. Automatic// categorical feature encoding still occurs for the fields that are unprocessed// by a custom processor or that have categorical values. Use this property only// if you want to override the automatic feature encoding of the specified// fields.FeatureProcessors []DataframeAnalysisFeatureProcessor `json:"feature_processors,omitempty"`// Gamma Advanced configuration option. Regularization parameter to prevent// overfitting on the training data set. Multiplies a linear penalty associated// with the size of individual trees in the forest. A high gamma value causes// training to prefer small trees. A small gamma value results in larger// individual trees and slower training. By default, this value is calculated// during hyperparameter optimization. It must be a nonnegative value.Gamma *Float64 `json:"gamma,omitempty"`// Lambda Advanced configuration option. Regularization parameter to prevent// overfitting on the training data set. Multiplies an L2 regularization term// which applies to leaf weights of the individual trees in the forest. A high// lambda value causes training to favor small leaf weights. This behavior makes// the prediction function smoother at the expense of potentially not being able// to capture relevant relationships between the features and the dependent// variable. A small lambda value results in large individual trees and slower// training. By default, this value is calculated during hyperparameter// optimization. It must be a nonnegative value.Lambda *Float64 `json:"lambda,omitempty"`// LossFunction The loss function used during regression. Available options are `mse` (mean// squared error), `msle` (mean squared logarithmic error), `huber`// (Pseudo-Huber loss).LossFunction *string `json:"loss_function,omitempty"`// LossFunctionParameter A positive number that is used as a parameter to the `loss_function`.LossFunctionParameter *Float64 `json:"loss_function_parameter,omitempty"`// MaxOptimizationRoundsPerHyperparameter Advanced configuration option. A multiplier responsible for determining the// maximum number of hyperparameter optimization steps in the Bayesian// optimization procedure. The maximum number of steps is determined based on// the number of undefined hyperparameters times the maximum optimization rounds// per hyperparameter. By default, this value is calculated during// hyperparameter optimization.MaxOptimizationRoundsPerHyperparameter *int `json:"max_optimization_rounds_per_hyperparameter,omitempty"`// MaxTrees Advanced configuration option. Defines the maximum number of decision trees// in the forest. The maximum value is 2000. By default, this value is// calculated during hyperparameter optimization.MaxTrees *int `json:"max_trees,omitempty"`// NumTopFeatureImportanceValues Advanced configuration option. Specifies the maximum number of feature// importance values per document to return. By default, no feature importance// calculation occurs.NumTopFeatureImportanceValues *int `json:"num_top_feature_importance_values,omitempty"`// PredictionFieldName Defines the name of the prediction field in the results. Defaults to// `<dependent_variable>_prediction`.PredictionFieldName *string `json:"prediction_field_name,omitempty"`// RandomizeSeed Defines the seed for the random generator that is used to pick training data.// By default, it is randomly generated. Set it to a specific value to use the// same training data each time you start a job (assuming other related// parameters such as `source` and `analyzed_fields` are the same).RandomizeSeed *Float64 `json:"randomize_seed,omitempty"`// SoftTreeDepthLimit Advanced configuration option. Machine learning uses loss guided tree// growing, which means that the decision trees grow where the regularized loss// decreases most quickly. This soft limit combines with the// `soft_tree_depth_tolerance` to penalize trees that exceed the specified// depth; the regularized loss increases quickly beyond this depth. By default,// this value is calculated during hyperparameter optimization. It must be// greater than or equal to 0.SoftTreeDepthLimit *int `json:"soft_tree_depth_limit,omitempty"`// SoftTreeDepthTolerance Advanced configuration option. This option controls how quickly the// regularized loss increases when the tree depth exceeds// `soft_tree_depth_limit`. By default, this value is calculated during// hyperparameter optimization. It must be greater than or equal to 0.01.SoftTreeDepthTolerance *Float64 `json:"soft_tree_depth_tolerance,omitempty"`// TrainingPercent Defines what percentage of the eligible documents that will be used for// training. Documents that are ignored by the analysis (for example those that// contain arrays with more than one value) won’t be included in the calculation// for used percentage.TrainingPercentPercentage `json:"training_percent,omitempty"`}DataframeAnalysisRegression type.
funcNewDataframeAnalysisRegression¶added inv8.5.0
func NewDataframeAnalysisRegression() *DataframeAnalysisRegression
NewDataframeAnalysisRegression returns a DataframeAnalysisRegression.
func (*DataframeAnalysisRegression)UnmarshalJSON¶added inv8.7.1
func (s *DataframeAnalysisRegression) UnmarshalJSON(data []byte)error
typeDataframeAnalytics¶
type DataframeAnalytics struct {// AnalysisStats An object containing information about the analysis job.AnalysisStats *DataframeAnalyticsStatsContainer `json:"analysis_stats,omitempty"`// AssignmentExplanation For running jobs only, contains messages relating to the selection of a node// to run the job.AssignmentExplanation *string `json:"assignment_explanation,omitempty"`// DataCounts An object that provides counts for the quantity of documents skipped, used in// training, or available for testing.DataCountsDataframeAnalyticsStatsDataCounts `json:"data_counts"`// Id The unique identifier of the data frame analytics job.Idstring `json:"id"`// MemoryUsage An object describing memory usage of the analytics. It is present only after// the job is started and memory usage is reported.MemoryUsageDataframeAnalyticsStatsMemoryUsage `json:"memory_usage"`// Node Contains properties for the node that runs the job. This information is// available only for running jobs.Node *NodeAttributes `json:"node,omitempty"`// Progress The progress report of the data frame analytics job by phase.Progress []DataframeAnalyticsStatsProgress `json:"progress"`// State The status of the data frame analytics job, which can be one of the following// values: failed, started, starting, stopping, stopped.Statedataframestate.DataframeState `json:"state"`}DataframeAnalytics type.
funcNewDataframeAnalytics¶added inv8.5.0
func NewDataframeAnalytics() *DataframeAnalytics
NewDataframeAnalytics returns a DataframeAnalytics.
func (*DataframeAnalytics)UnmarshalJSON¶added inv8.7.1
func (s *DataframeAnalytics) UnmarshalJSON(data []byte)error
typeDataframeAnalyticsAuthorization¶
type DataframeAnalyticsAuthorization struct {// ApiKey If an API key was used for the most recent update to the job, its name and// identifier are listed in the response.ApiKey *ApiKeyAuthorization `json:"api_key,omitempty"`// Roles If a user ID was used for the most recent update to the job, its roles at the// time of the update are listed in the response.Roles []string `json:"roles,omitempty"`// ServiceAccount If a service account was used for the most recent update to the job, the// account name is listed in the response.ServiceAccount *string `json:"service_account,omitempty"`}DataframeAnalyticsAuthorization type.
funcNewDataframeAnalyticsAuthorization¶added inv8.5.0
func NewDataframeAnalyticsAuthorization() *DataframeAnalyticsAuthorization
NewDataframeAnalyticsAuthorization returns a DataframeAnalyticsAuthorization.
func (*DataframeAnalyticsAuthorization)UnmarshalJSON¶added inv8.9.0
func (s *DataframeAnalyticsAuthorization) UnmarshalJSON(data []byte)error
typeDataframeAnalyticsDestination¶
type DataframeAnalyticsDestination struct {// Index Defines the destination index to store the results of the data frame// analytics job.Indexstring `json:"index"`// ResultsField Defines the name of the field in which to store the results of the analysis.// Defaults to `ml`.ResultsField *string `json:"results_field,omitempty"`}DataframeAnalyticsDestination type.
funcNewDataframeAnalyticsDestination¶added inv8.5.0
func NewDataframeAnalyticsDestination() *DataframeAnalyticsDestination
NewDataframeAnalyticsDestination returns a DataframeAnalyticsDestination.
func (*DataframeAnalyticsDestination)UnmarshalJSON¶added inv8.7.1
func (s *DataframeAnalyticsDestination) UnmarshalJSON(data []byte)error
typeDataframeAnalyticsFieldSelection¶
type DataframeAnalyticsFieldSelection struct {// FeatureType The feature type of this field for the analysis. May be categorical or// numerical.FeatureType *string `json:"feature_type,omitempty"`// IsIncluded Whether the field is selected to be included in the analysis.IsIncludedbool `json:"is_included"`// IsRequired Whether the field is required.IsRequiredbool `json:"is_required"`// MappingTypes The mapping types of the field.MappingTypes []string `json:"mapping_types"`// Name The field name.Namestring `json:"name"`// Reason The reason a field is not selected to be included in the analysis.Reason *string `json:"reason,omitempty"`}DataframeAnalyticsFieldSelection type.
funcNewDataframeAnalyticsFieldSelection¶added inv8.5.0
func NewDataframeAnalyticsFieldSelection() *DataframeAnalyticsFieldSelection
NewDataframeAnalyticsFieldSelection returns a DataframeAnalyticsFieldSelection.
func (*DataframeAnalyticsFieldSelection)UnmarshalJSON¶added inv8.7.1
func (s *DataframeAnalyticsFieldSelection) UnmarshalJSON(data []byte)error
typeDataframeAnalyticsMemoryEstimation¶
type DataframeAnalyticsMemoryEstimation struct {// ExpectedMemoryWithDisk Estimated memory usage under the assumption that overflowing to disk is// allowed during data frame analytics. expected_memory_with_disk is usually// smaller than expected_memory_without_disk as using disk allows to limit the// main memory needed to perform data frame analytics.ExpectedMemoryWithDiskstring `json:"expected_memory_with_disk"`// ExpectedMemoryWithoutDisk Estimated memory usage under the assumption that the whole data frame// analytics should happen in memory (i.e. without overflowing to disk).ExpectedMemoryWithoutDiskstring `json:"expected_memory_without_disk"`}DataframeAnalyticsMemoryEstimation type.
funcNewDataframeAnalyticsMemoryEstimation¶added inv8.5.0
func NewDataframeAnalyticsMemoryEstimation() *DataframeAnalyticsMemoryEstimation
NewDataframeAnalyticsMemoryEstimation returns a DataframeAnalyticsMemoryEstimation.
func (*DataframeAnalyticsMemoryEstimation)UnmarshalJSON¶added inv8.9.0
func (s *DataframeAnalyticsMemoryEstimation) UnmarshalJSON(data []byte)error
typeDataframeAnalyticsSource¶
type DataframeAnalyticsSource struct {// Index Index or indices on which to perform the analysis. It can be a single index// or index pattern as well as an array of indices or patterns. NOTE: If your// source indices contain documents with the same IDs, only the document that is// indexed last appears in the destination index.Index []string `json:"index"`// Query The Elasticsearch query domain-specific language (DSL). This value// corresponds to the query object in an Elasticsearch search POST body. All the// options that are supported by Elasticsearch can be used, as this object is// passed verbatim to Elasticsearch. By default, this property has the following// value: {"match_all": {}}.Query *Query `json:"query,omitempty"`// RuntimeMappings Definitions of runtime fields that will become part of the mapping of the// destination index.RuntimeMappingsRuntimeFields `json:"runtime_mappings,omitempty"`// Source_ Specify `includes` and/or `excludes patterns to select which fields will be// present in the destination. Fields that are excluded cannot be included in// the analysis.Source_ *DataframeAnalysisAnalyzedFields `json:"_source,omitempty"`}DataframeAnalyticsSource type.
funcNewDataframeAnalyticsSource¶added inv8.5.0
func NewDataframeAnalyticsSource() *DataframeAnalyticsSource
NewDataframeAnalyticsSource returns a DataframeAnalyticsSource.
func (*DataframeAnalyticsSource)UnmarshalJSON¶added inv8.7.1
func (s *DataframeAnalyticsSource) UnmarshalJSON(data []byte)error
typeDataframeAnalyticsStatsContainer¶
type DataframeAnalyticsStatsContainer struct {AdditionalDataframeAnalyticsStatsContainerProperty map[string]json.RawMessage `json:"-"`// ClassificationStats An object containing information about the classification analysis job.ClassificationStats *DataframeAnalyticsStatsHyperparameters `json:"classification_stats,omitempty"`// OutlierDetectionStats An object containing information about the outlier detection job.OutlierDetectionStats *DataframeAnalyticsStatsOutlierDetection `json:"outlier_detection_stats,omitempty"`// RegressionStats An object containing information about the regression analysis.RegressionStats *DataframeAnalyticsStatsHyperparameters `json:"regression_stats,omitempty"`}DataframeAnalyticsStatsContainer type.
funcNewDataframeAnalyticsStatsContainer¶added inv8.5.0
func NewDataframeAnalyticsStatsContainer() *DataframeAnalyticsStatsContainer
NewDataframeAnalyticsStatsContainer returns a DataframeAnalyticsStatsContainer.
func (DataframeAnalyticsStatsContainer)MarshalJSON¶added inv8.18.0
func (sDataframeAnalyticsStatsContainer) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
typeDataframeAnalyticsStatsDataCounts¶
type DataframeAnalyticsStatsDataCounts struct {// SkippedDocsCount The number of documents that are skipped during the analysis because they// contained values that are not supported by the analysis. For example, outlier// detection does not support missing fields so it skips documents with missing// fields. Likewise, all types of analysis skip documents that contain arrays// with more than one element.SkippedDocsCountint `json:"skipped_docs_count"`// TestDocsCount The number of documents that are not used for training the model and can be// used for testing.TestDocsCountint `json:"test_docs_count"`// TrainingDocsCount The number of documents that are used for training the model.TrainingDocsCountint `json:"training_docs_count"`}DataframeAnalyticsStatsDataCounts type.
funcNewDataframeAnalyticsStatsDataCounts¶added inv8.5.0
func NewDataframeAnalyticsStatsDataCounts() *DataframeAnalyticsStatsDataCounts
NewDataframeAnalyticsStatsDataCounts returns a DataframeAnalyticsStatsDataCounts.
func (*DataframeAnalyticsStatsDataCounts)UnmarshalJSON¶added inv8.7.1
func (s *DataframeAnalyticsStatsDataCounts) UnmarshalJSON(data []byte)error
typeDataframeAnalyticsStatsHyperparameters¶
type DataframeAnalyticsStatsHyperparameters struct {// Hyperparameters An object containing the parameters of the classification analysis job.HyperparametersHyperparameters `json:"hyperparameters"`// Iteration The number of iterations on the analysis.Iterationint `json:"iteration"`// Timestamp The timestamp when the statistics were reported in milliseconds since the// epoch.Timestampint64 `json:"timestamp"`// TimingStats An object containing time statistics about the data frame analytics job.TimingStatsTimingStats `json:"timing_stats"`// ValidationLoss An object containing information about validation loss.ValidationLossValidationLoss `json:"validation_loss"`}DataframeAnalyticsStatsHyperparameters type.
funcNewDataframeAnalyticsStatsHyperparameters¶added inv8.5.0
func NewDataframeAnalyticsStatsHyperparameters() *DataframeAnalyticsStatsHyperparameters
NewDataframeAnalyticsStatsHyperparameters returns a DataframeAnalyticsStatsHyperparameters.
func (*DataframeAnalyticsStatsHyperparameters)UnmarshalJSON¶added inv8.7.1
func (s *DataframeAnalyticsStatsHyperparameters) UnmarshalJSON(data []byte)error
typeDataframeAnalyticsStatsMemoryUsage¶
type DataframeAnalyticsStatsMemoryUsage struct {// MemoryReestimateBytes This value is present when the status is hard_limit and it is a new estimate// of how much memory the job needs.MemoryReestimateBytes *int64 `json:"memory_reestimate_bytes,omitempty"`// PeakUsageBytes The number of bytes used at the highest peak of memory usage.PeakUsageBytesint64 `json:"peak_usage_bytes"`// Status The memory usage status.Statusstring `json:"status"`// Timestamp The timestamp when memory usage was calculated.Timestamp *int64 `json:"timestamp,omitempty"`}DataframeAnalyticsStatsMemoryUsage type.
funcNewDataframeAnalyticsStatsMemoryUsage¶added inv8.5.0
func NewDataframeAnalyticsStatsMemoryUsage() *DataframeAnalyticsStatsMemoryUsage
NewDataframeAnalyticsStatsMemoryUsage returns a DataframeAnalyticsStatsMemoryUsage.
func (*DataframeAnalyticsStatsMemoryUsage)UnmarshalJSON¶added inv8.7.1
func (s *DataframeAnalyticsStatsMemoryUsage) UnmarshalJSON(data []byte)error
typeDataframeAnalyticsStatsOutlierDetection¶
type DataframeAnalyticsStatsOutlierDetection struct {// Parameters The list of job parameters specified by the user or determined by algorithmic// heuristics.ParametersOutlierDetectionParameters `json:"parameters"`// Timestamp The timestamp when the statistics were reported in milliseconds since the// epoch.Timestampint64 `json:"timestamp"`// TimingStats An object containing time statistics about the data frame analytics job.TimingStatsTimingStats `json:"timing_stats"`}DataframeAnalyticsStatsOutlierDetection type.
funcNewDataframeAnalyticsStatsOutlierDetection¶added inv8.5.0
func NewDataframeAnalyticsStatsOutlierDetection() *DataframeAnalyticsStatsOutlierDetection
NewDataframeAnalyticsStatsOutlierDetection returns a DataframeAnalyticsStatsOutlierDetection.
func (*DataframeAnalyticsStatsOutlierDetection)UnmarshalJSON¶added inv8.7.1
func (s *DataframeAnalyticsStatsOutlierDetection) UnmarshalJSON(data []byte)error
typeDataframeAnalyticsStatsProgress¶
type DataframeAnalyticsStatsProgress struct {// Phase Defines the phase of the data frame analytics job.Phasestring `json:"phase"`// ProgressPercent The progress that the data frame analytics job has made expressed in// percentage.ProgressPercentint `json:"progress_percent"`}DataframeAnalyticsStatsProgress type.
funcNewDataframeAnalyticsStatsProgress¶added inv8.5.0
func NewDataframeAnalyticsStatsProgress() *DataframeAnalyticsStatsProgress
NewDataframeAnalyticsStatsProgress returns a DataframeAnalyticsStatsProgress.
func (*DataframeAnalyticsStatsProgress)UnmarshalJSON¶added inv8.7.1
func (s *DataframeAnalyticsStatsProgress) UnmarshalJSON(data []byte)error
typeDataframeAnalyticsSummary¶
type DataframeAnalyticsSummary struct {AllowLazyStart *bool `json:"allow_lazy_start,omitempty"`AnalysisDataframeAnalysisContainer `json:"analysis"`AnalyzedFields *DataframeAnalysisAnalyzedFields `json:"analyzed_fields,omitempty"`// Authorization The security privileges that the job uses to run its queries. If Elastic// Stack security features were disabled at the time of the most recent update// to the job, this property is omitted.Authorization *DataframeAnalyticsAuthorization `json:"authorization,omitempty"`CreateTime *int64 `json:"create_time,omitempty"`Description *string `json:"description,omitempty"`DestDataframeAnalyticsDestination `json:"dest"`Idstring `json:"id"`MaxNumThreads *int `json:"max_num_threads,omitempty"`Meta_Metadata `json:"_meta,omitempty"`ModelMemoryLimit *string `json:"model_memory_limit,omitempty"`SourceDataframeAnalyticsSource `json:"source"`Version *string `json:"version,omitempty"`}DataframeAnalyticsSummary type.
funcNewDataframeAnalyticsSummary¶added inv8.5.0
func NewDataframeAnalyticsSummary() *DataframeAnalyticsSummary
NewDataframeAnalyticsSummary returns a DataframeAnalyticsSummary.
func (*DataframeAnalyticsSummary)UnmarshalJSON¶added inv8.7.1
func (s *DataframeAnalyticsSummary) UnmarshalJSON(data []byte)error
typeDataframeClassificationSummary¶
type DataframeClassificationSummary struct {// Accuracy Accuracy of predictions (per-class and overall).Accuracy *DataframeClassificationSummaryAccuracy `json:"accuracy,omitempty"`// AucRoc The AUC ROC (area under the curve of the receiver operating characteristic)// score and optionally the curve.// It is calculated for a specific class (provided as "class_name") treated as// positive.AucRoc *DataframeEvaluationSummaryAucRoc `json:"auc_roc,omitempty"`// MulticlassConfusionMatrix Multiclass confusion matrix.MulticlassConfusionMatrix *DataframeClassificationSummaryMulticlassConfusionMatrix `json:"multiclass_confusion_matrix,omitempty"`// Precision Precision of predictions (per-class and average).Precision *DataframeClassificationSummaryPrecision `json:"precision,omitempty"`// Recall Recall of predictions (per-class and average).Recall *DataframeClassificationSummaryRecall `json:"recall,omitempty"`}DataframeClassificationSummary type.
funcNewDataframeClassificationSummary¶added inv8.5.0
func NewDataframeClassificationSummary() *DataframeClassificationSummary
NewDataframeClassificationSummary returns a DataframeClassificationSummary.
typeDataframeClassificationSummaryAccuracy¶
type DataframeClassificationSummaryAccuracy struct {Classes []DataframeEvaluationClass `json:"classes"`OverallAccuracyFloat64 `json:"overall_accuracy"`}DataframeClassificationSummaryAccuracy type.
funcNewDataframeClassificationSummaryAccuracy¶added inv8.5.0
func NewDataframeClassificationSummaryAccuracy() *DataframeClassificationSummaryAccuracy
NewDataframeClassificationSummaryAccuracy returns a DataframeClassificationSummaryAccuracy.
func (*DataframeClassificationSummaryAccuracy)UnmarshalJSON¶added inv8.7.1
func (s *DataframeClassificationSummaryAccuracy) UnmarshalJSON(data []byte)error
typeDataframeClassificationSummaryMulticlassConfusionMatrix¶
type DataframeClassificationSummaryMulticlassConfusionMatrix struct {ConfusionMatrix []ConfusionMatrixItem `json:"confusion_matrix"`OtherActualClassCountint `json:"other_actual_class_count"`}DataframeClassificationSummaryMulticlassConfusionMatrix type.
funcNewDataframeClassificationSummaryMulticlassConfusionMatrix¶added inv8.5.0
func NewDataframeClassificationSummaryMulticlassConfusionMatrix() *DataframeClassificationSummaryMulticlassConfusionMatrix
NewDataframeClassificationSummaryMulticlassConfusionMatrix returns a DataframeClassificationSummaryMulticlassConfusionMatrix.
func (*DataframeClassificationSummaryMulticlassConfusionMatrix)UnmarshalJSON¶added inv8.7.1
func (s *DataframeClassificationSummaryMulticlassConfusionMatrix) UnmarshalJSON(data []byte)error
typeDataframeClassificationSummaryPrecision¶
type DataframeClassificationSummaryPrecision struct {AvgPrecisionFloat64 `json:"avg_precision"`Classes []DataframeEvaluationClass `json:"classes"`}DataframeClassificationSummaryPrecision type.
funcNewDataframeClassificationSummaryPrecision¶added inv8.5.0
func NewDataframeClassificationSummaryPrecision() *DataframeClassificationSummaryPrecision
NewDataframeClassificationSummaryPrecision returns a DataframeClassificationSummaryPrecision.
func (*DataframeClassificationSummaryPrecision)UnmarshalJSON¶added inv8.7.1
func (s *DataframeClassificationSummaryPrecision) UnmarshalJSON(data []byte)error
typeDataframeClassificationSummaryRecall¶
type DataframeClassificationSummaryRecall struct {AvgRecallFloat64 `json:"avg_recall"`Classes []DataframeEvaluationClass `json:"classes"`}DataframeClassificationSummaryRecall type.
funcNewDataframeClassificationSummaryRecall¶added inv8.5.0
func NewDataframeClassificationSummaryRecall() *DataframeClassificationSummaryRecall
NewDataframeClassificationSummaryRecall returns a DataframeClassificationSummaryRecall.
func (*DataframeClassificationSummaryRecall)UnmarshalJSON¶added inv8.7.1
func (s *DataframeClassificationSummaryRecall) UnmarshalJSON(data []byte)error
typeDataframeEvaluationClass¶
type DataframeEvaluationClass struct {ClassNamestring `json:"class_name"`ValueFloat64 `json:"value"`}DataframeEvaluationClass type.
funcNewDataframeEvaluationClass¶added inv8.5.0
func NewDataframeEvaluationClass() *DataframeEvaluationClass
NewDataframeEvaluationClass returns a DataframeEvaluationClass.
func (*DataframeEvaluationClass)UnmarshalJSON¶added inv8.7.1
func (s *DataframeEvaluationClass) UnmarshalJSON(data []byte)error
typeDataframeEvaluationClassification¶
type DataframeEvaluationClassification struct {// ActualField The field of the index which contains the ground truth. The data type of this// field can be boolean or integer. If the data type is integer, the value has// to be either 0 (false) or 1 (true).ActualFieldstring `json:"actual_field"`// Metrics Specifies the metrics that are used for the evaluation.Metrics *DataframeEvaluationClassificationMetrics `json:"metrics,omitempty"`// PredictedField The field in the index which contains the predicted value, in other words the// results of the classification analysis.PredictedField *string `json:"predicted_field,omitempty"`// TopClassesField The field of the index which is an array of documents of the form {// "class_name": XXX, "class_probability": YYY }. This field must be defined as// nested in the mappings.TopClassesField *string `json:"top_classes_field,omitempty"`}DataframeEvaluationClassification type.
funcNewDataframeEvaluationClassification¶added inv8.5.0
func NewDataframeEvaluationClassification() *DataframeEvaluationClassification
NewDataframeEvaluationClassification returns a DataframeEvaluationClassification.
func (*DataframeEvaluationClassification)UnmarshalJSON¶added inv8.7.1
func (s *DataframeEvaluationClassification) UnmarshalJSON(data []byte)error
typeDataframeEvaluationClassificationMetrics¶
type DataframeEvaluationClassificationMetrics struct {// Accuracy Accuracy of predictions (per-class and overall).Accuracy map[string]json.RawMessage `json:"accuracy,omitempty"`// AucRoc The AUC ROC (area under the curve of the receiver operating characteristic)// score and optionally the curve. It is calculated for a specific class// (provided as "class_name") treated as positive.AucRoc *DataframeEvaluationClassificationMetricsAucRoc `json:"auc_roc,omitempty"`// MulticlassConfusionMatrix Multiclass confusion matrix.MulticlassConfusionMatrix map[string]json.RawMessage `json:"multiclass_confusion_matrix,omitempty"`// Precision Precision of predictions (per-class and average).Precision map[string]json.RawMessage `json:"precision,omitempty"`// Recall Recall of predictions (per-class and average).Recall map[string]json.RawMessage `json:"recall,omitempty"`}DataframeEvaluationClassificationMetrics type.
funcNewDataframeEvaluationClassificationMetrics¶added inv8.5.0
func NewDataframeEvaluationClassificationMetrics() *DataframeEvaluationClassificationMetrics
NewDataframeEvaluationClassificationMetrics returns a DataframeEvaluationClassificationMetrics.
typeDataframeEvaluationClassificationMetricsAucRoc¶
type DataframeEvaluationClassificationMetricsAucRoc struct {// ClassName Name of the only class that is treated as positive during AUC ROC// calculation. Other classes are treated as negative ("one-vs-all" strategy).// All the evaluated documents must have class_name in the list of their top// classes.ClassName *string `json:"class_name,omitempty"`// IncludeCurve Whether or not the curve should be returned in addition to the score. Default// value is false.IncludeCurve *bool `json:"include_curve,omitempty"`}DataframeEvaluationClassificationMetricsAucRoc type.
funcNewDataframeEvaluationClassificationMetricsAucRoc¶added inv8.5.0
func NewDataframeEvaluationClassificationMetricsAucRoc() *DataframeEvaluationClassificationMetricsAucRoc
NewDataframeEvaluationClassificationMetricsAucRoc returns a DataframeEvaluationClassificationMetricsAucRoc.
func (*DataframeEvaluationClassificationMetricsAucRoc)UnmarshalJSON¶added inv8.7.1
func (s *DataframeEvaluationClassificationMetricsAucRoc) UnmarshalJSON(data []byte)error
typeDataframeEvaluationContainer¶
type DataframeEvaluationContainer struct {AdditionalDataframeEvaluationContainerProperty map[string]json.RawMessage `json:"-"`// Classification Classification evaluation evaluates the results of a classification analysis// which outputs a prediction that identifies to which of the classes each// document belongs.Classification *DataframeEvaluationClassification `json:"classification,omitempty"`// OutlierDetection Outlier detection evaluates the results of an outlier detection analysis// which outputs the probability that each document is an outlier.OutlierDetection *DataframeEvaluationOutlierDetection `json:"outlier_detection,omitempty"`// Regression Regression evaluation evaluates the results of a regression analysis which// outputs a prediction of values.Regression *DataframeEvaluationRegression `json:"regression,omitempty"`}DataframeEvaluationContainer type.
funcNewDataframeEvaluationContainer¶added inv8.5.0
func NewDataframeEvaluationContainer() *DataframeEvaluationContainer
NewDataframeEvaluationContainer returns a DataframeEvaluationContainer.
func (DataframeEvaluationContainer)MarshalJSON¶added inv8.18.0
func (sDataframeEvaluationContainer) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
typeDataframeEvaluationOutlierDetection¶
type DataframeEvaluationOutlierDetection struct {// ActualField The field of the index which contains the ground truth. The data type of this// field can be boolean or integer. If the data type is integer, the value has// to be either 0 (false) or 1 (true).ActualFieldstring `json:"actual_field"`// Metrics Specifies the metrics that are used for the evaluation.Metrics *DataframeEvaluationOutlierDetectionMetrics `json:"metrics,omitempty"`// PredictedProbabilityField The field of the index that defines the probability of whether the item// belongs to the class in question or not. It’s the field that contains the// results of the analysis.PredictedProbabilityFieldstring `json:"predicted_probability_field"`}DataframeEvaluationOutlierDetection type.
funcNewDataframeEvaluationOutlierDetection¶added inv8.5.0
func NewDataframeEvaluationOutlierDetection() *DataframeEvaluationOutlierDetection
NewDataframeEvaluationOutlierDetection returns a DataframeEvaluationOutlierDetection.
func (*DataframeEvaluationOutlierDetection)UnmarshalJSON¶added inv8.7.1
func (s *DataframeEvaluationOutlierDetection) UnmarshalJSON(data []byte)error
typeDataframeEvaluationOutlierDetectionMetrics¶
type DataframeEvaluationOutlierDetectionMetrics struct {// AucRoc The AUC ROC (area under the curve of the receiver operating characteristic)// score and optionally the curve. It is calculated for a specific class// (provided as "class_name") treated as positive.AucRoc *DataframeEvaluationClassificationMetricsAucRoc `json:"auc_roc,omitempty"`// ConfusionMatrix Accuracy of predictions (per-class and overall).ConfusionMatrix map[string]json.RawMessage `json:"confusion_matrix,omitempty"`// Precision Precision of predictions (per-class and average).Precision map[string]json.RawMessage `json:"precision,omitempty"`// Recall Recall of predictions (per-class and average).Recall map[string]json.RawMessage `json:"recall,omitempty"`}DataframeEvaluationOutlierDetectionMetrics type.
funcNewDataframeEvaluationOutlierDetectionMetrics¶added inv8.5.0
func NewDataframeEvaluationOutlierDetectionMetrics() *DataframeEvaluationOutlierDetectionMetrics
NewDataframeEvaluationOutlierDetectionMetrics returns a DataframeEvaluationOutlierDetectionMetrics.
typeDataframeEvaluationRegression¶
type DataframeEvaluationRegression struct {// ActualField The field of the index which contains the ground truth. The data type of this// field must be numerical.ActualFieldstring `json:"actual_field"`// Metrics Specifies the metrics that are used for the evaluation. For more information// on mse, msle, and huber, consult the Jupyter notebook on regression loss// functions.Metrics *DataframeEvaluationRegressionMetrics `json:"metrics,omitempty"`// PredictedField The field in the index that contains the predicted value, in other words the// results of the regression analysis.PredictedFieldstring `json:"predicted_field"`}DataframeEvaluationRegression type.
funcNewDataframeEvaluationRegression¶added inv8.5.0
func NewDataframeEvaluationRegression() *DataframeEvaluationRegression
NewDataframeEvaluationRegression returns a DataframeEvaluationRegression.
func (*DataframeEvaluationRegression)UnmarshalJSON¶added inv8.7.1
func (s *DataframeEvaluationRegression) UnmarshalJSON(data []byte)error
typeDataframeEvaluationRegressionMetrics¶
type DataframeEvaluationRegressionMetrics struct {// Huber Pseudo Huber loss function.Huber *DataframeEvaluationRegressionMetricsHuber `json:"huber,omitempty"`// Mse Average squared difference between the predicted values and the actual// (ground truth) value. For more information, read this wiki article.Mse map[string]json.RawMessage `json:"mse,omitempty"`// Msle Average squared difference between the logarithm of the predicted values and// the logarithm of the actual (ground truth) value.Msle *DataframeEvaluationRegressionMetricsMsle `json:"msle,omitempty"`// RSquared Proportion of the variance in the dependent variable that is predictable from// the independent variables.RSquared map[string]json.RawMessage `json:"r_squared,omitempty"`}DataframeEvaluationRegressionMetrics type.
funcNewDataframeEvaluationRegressionMetrics¶added inv8.5.0
func NewDataframeEvaluationRegressionMetrics() *DataframeEvaluationRegressionMetrics
NewDataframeEvaluationRegressionMetrics returns a DataframeEvaluationRegressionMetrics.
typeDataframeEvaluationRegressionMetricsHuber¶
type DataframeEvaluationRegressionMetricsHuber struct {// Delta Approximates 1/2 (prediction - actual)2 for values much less than delta and// approximates a straight line with slope delta for values much larger than// delta. Defaults to 1. Delta needs to be greater than 0.Delta *Float64 `json:"delta,omitempty"`}DataframeEvaluationRegressionMetricsHuber type.
funcNewDataframeEvaluationRegressionMetricsHuber¶added inv8.5.0
func NewDataframeEvaluationRegressionMetricsHuber() *DataframeEvaluationRegressionMetricsHuber
NewDataframeEvaluationRegressionMetricsHuber returns a DataframeEvaluationRegressionMetricsHuber.
func (*DataframeEvaluationRegressionMetricsHuber)UnmarshalJSON¶added inv8.7.1
func (s *DataframeEvaluationRegressionMetricsHuber) UnmarshalJSON(data []byte)error
typeDataframeEvaluationRegressionMetricsMsle¶
type DataframeEvaluationRegressionMetricsMsle struct {// Offset Defines the transition point at which you switch from minimizing quadratic// error to minimizing quadratic log error. Defaults to 1.Offset *Float64 `json:"offset,omitempty"`}DataframeEvaluationRegressionMetricsMsle type.
funcNewDataframeEvaluationRegressionMetricsMsle¶added inv8.5.0
func NewDataframeEvaluationRegressionMetricsMsle() *DataframeEvaluationRegressionMetricsMsle
NewDataframeEvaluationRegressionMetricsMsle returns a DataframeEvaluationRegressionMetricsMsle.
func (*DataframeEvaluationRegressionMetricsMsle)UnmarshalJSON¶added inv8.7.1
func (s *DataframeEvaluationRegressionMetricsMsle) UnmarshalJSON(data []byte)error
typeDataframeEvaluationSummaryAucRoc¶
type DataframeEvaluationSummaryAucRoc struct {Curve []DataframeEvaluationSummaryAucRocCurveItem `json:"curve,omitempty"`ValueFloat64 `json:"value"`}DataframeEvaluationSummaryAucRoc type.
funcNewDataframeEvaluationSummaryAucRoc¶added inv8.5.0
func NewDataframeEvaluationSummaryAucRoc() *DataframeEvaluationSummaryAucRoc
NewDataframeEvaluationSummaryAucRoc returns a DataframeEvaluationSummaryAucRoc.
func (*DataframeEvaluationSummaryAucRoc)UnmarshalJSON¶added inv8.7.1
func (s *DataframeEvaluationSummaryAucRoc) UnmarshalJSON(data []byte)error
typeDataframeEvaluationSummaryAucRocCurveItem¶
type DataframeEvaluationSummaryAucRocCurveItem struct {FprFloat64 `json:"fpr"`ThresholdFloat64 `json:"threshold"`TprFloat64 `json:"tpr"`}DataframeEvaluationSummaryAucRocCurveItem type.
funcNewDataframeEvaluationSummaryAucRocCurveItem¶added inv8.5.0
func NewDataframeEvaluationSummaryAucRocCurveItem() *DataframeEvaluationSummaryAucRocCurveItem
NewDataframeEvaluationSummaryAucRocCurveItem returns a DataframeEvaluationSummaryAucRocCurveItem.
func (*DataframeEvaluationSummaryAucRocCurveItem)UnmarshalJSON¶added inv8.7.1
func (s *DataframeEvaluationSummaryAucRocCurveItem) UnmarshalJSON(data []byte)error
typeDataframeEvaluationValue¶
type DataframeEvaluationValue struct {ValueFloat64 `json:"value"`}DataframeEvaluationValue type.
funcNewDataframeEvaluationValue¶added inv8.5.0
func NewDataframeEvaluationValue() *DataframeEvaluationValue
NewDataframeEvaluationValue returns a DataframeEvaluationValue.
func (*DataframeEvaluationValue)UnmarshalJSON¶added inv8.7.1
func (s *DataframeEvaluationValue) UnmarshalJSON(data []byte)error
typeDataframeOutlierDetectionSummary¶
type DataframeOutlierDetectionSummary struct {// AucRoc The AUC ROC (area under the curve of the receiver operating characteristic)// score and optionally the curve.AucRoc *DataframeEvaluationSummaryAucRoc `json:"auc_roc,omitempty"`// ConfusionMatrix Set the different thresholds of the outlier score at where the metrics (`tp`// - true positive, `fp` - false positive, `tn` - true negative, `fn` - false// negative) are calculated.ConfusionMatrix map[string]ConfusionMatrixThreshold `json:"confusion_matrix,omitempty"`// Precision Set the different thresholds of the outlier score at where the metric is// calculated.Precision map[string]Float64 `json:"precision,omitempty"`// Recall Set the different thresholds of the outlier score at where the metric is// calculated.Recall map[string]Float64 `json:"recall,omitempty"`}DataframeOutlierDetectionSummary type.
funcNewDataframeOutlierDetectionSummary¶added inv8.5.0
func NewDataframeOutlierDetectionSummary() *DataframeOutlierDetectionSummary
NewDataframeOutlierDetectionSummary returns a DataframeOutlierDetectionSummary.
typeDataframePreviewConfig¶
type DataframePreviewConfig struct {AnalysisDataframeAnalysisContainer `json:"analysis"`AnalyzedFields *DataframeAnalysisAnalyzedFields `json:"analyzed_fields,omitempty"`MaxNumThreads *int `json:"max_num_threads,omitempty"`ModelMemoryLimit *string `json:"model_memory_limit,omitempty"`SourceDataframeAnalyticsSource `json:"source"`}DataframePreviewConfig type.
funcNewDataframePreviewConfig¶added inv8.5.0
func NewDataframePreviewConfig() *DataframePreviewConfig
NewDataframePreviewConfig returns a DataframePreviewConfig.
func (*DataframePreviewConfig)UnmarshalJSON¶added inv8.7.1
func (s *DataframePreviewConfig) UnmarshalJSON(data []byte)error
typeDataframeRegressionSummary¶
type DataframeRegressionSummary struct {// Huber Pseudo Huber loss function.Huber *DataframeEvaluationValue `json:"huber,omitempty"`// Mse Average squared difference between the predicted values and the actual// (`ground truth`) value.Mse *DataframeEvaluationValue `json:"mse,omitempty"`// Msle Average squared difference between the logarithm of the predicted values and// the logarithm of the actual (`ground truth`) value.Msle *DataframeEvaluationValue `json:"msle,omitempty"`// RSquared Proportion of the variance in the dependent variable that is predictable from// the independent variables.RSquared *DataframeEvaluationValue `json:"r_squared,omitempty"`}DataframeRegressionSummary type.
funcNewDataframeRegressionSummary¶added inv8.5.0
func NewDataframeRegressionSummary() *DataframeRegressionSummary
NewDataframeRegressionSummary returns a DataframeRegressionSummary.
typeDateDecayFunction¶
type DateDecayFunction struct {DecayFunctionBaseDateMathDuration map[string]DecayPlacementDateMathDuration `json:"-"`// MultiValueMode Determines how the distance is calculated when a field used for computing the// decay contains multiple values.MultiValueMode *multivaluemode.MultiValueMode `json:"multi_value_mode,omitempty"`}DateDecayFunction type.
funcNewDateDecayFunction¶added inv8.5.0
func NewDateDecayFunction() *DateDecayFunction
NewDateDecayFunction returns a DateDecayFunction.
func (DateDecayFunction)MarshalJSON¶
func (sDateDecayFunction) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
typeDateDistanceFeatureQuery¶
type DateDistanceFeatureQuery struct {// Boost Floating point number used to decrease or increase the relevance scores of// the query.// Boost values are relative to the default value of 1.0.// A boost value between 0 and 1.0 decreases the relevance score.// A value greater than 1.0 increases the relevance score.Boost *float32 `json:"boost,omitempty"`// Field Name of the field used to calculate distances. This field must meet the// following criteria:// be a `date`, `date_nanos` or `geo_point` field;// have an `index` mapping parameter value of `true`, which is the default;// have an `doc_values` mapping parameter value of `true`, which is the default.Fieldstring `json:"field"`// Origin Date or point of origin used to calculate distances.// If the `field` value is a `date` or `date_nanos` field, the `origin` value// must be a date.// Date Math, such as `now-1h`, is supported.// If the field value is a `geo_point` field, the `origin` value must be a// geopoint.Originstring `json:"origin"`// Pivot Distance from the `origin` at which relevance scores receive half of the// `boost` value.// If the `field` value is a `date` or `date_nanos` field, the `pivot` value// must be a time unit, such as `1h` or `10d`. If the `field` value is a// `geo_point` field, the `pivot` value must be a distance unit, such as `1km`// or `12m`.PivotDuration `json:"pivot"`QueryName_ *string `json:"_name,omitempty"`}DateDistanceFeatureQuery type.
funcNewDateDistanceFeatureQuery¶added inv8.5.0
func NewDateDistanceFeatureQuery() *DateDistanceFeatureQuery
NewDateDistanceFeatureQuery returns a DateDistanceFeatureQuery.
func (*DateDistanceFeatureQuery)UnmarshalJSON¶added inv8.7.1
func (s *DateDistanceFeatureQuery) UnmarshalJSON(data []byte)error
typeDateHistogramAggregate¶
type DateHistogramAggregate struct {BucketsBucketsDateHistogramBucket `json:"buckets"`MetaMetadata `json:"meta,omitempty"`}DateHistogramAggregate type.
funcNewDateHistogramAggregate¶added inv8.5.0
func NewDateHistogramAggregate() *DateHistogramAggregate
NewDateHistogramAggregate returns a DateHistogramAggregate.
func (*DateHistogramAggregate)UnmarshalJSON¶added inv8.7.0
func (s *DateHistogramAggregate) UnmarshalJSON(data []byte)error
typeDateHistogramAggregation¶
type DateHistogramAggregation struct {// CalendarInterval Calendar-aware interval.// Can be specified using the unit name, such as `month`, or as a single unit// quantity, such as `1M`.CalendarInterval *calendarinterval.CalendarInterval `json:"calendar_interval,omitempty"`// ExtendedBounds Enables extending the bounds of the histogram beyond the data itself.ExtendedBounds *ExtendedBoundsFieldDateMath `json:"extended_bounds,omitempty"`// Field The date field whose values are use to build a histogram.Field *string `json:"field,omitempty"`// FixedInterval Fixed intervals: a fixed number of SI units and never deviate, regardless of// where they fall on the calendar.FixedIntervalDuration `json:"fixed_interval,omitempty"`// Format The date format used to format `key_as_string` in the response.// If no `format` is specified, the first date format specified in the field// mapping is used.Format *string `json:"format,omitempty"`// HardBounds Limits the histogram to specified bounds.HardBounds *ExtendedBoundsFieldDateMath `json:"hard_bounds,omitempty"`IntervalDuration `json:"interval,omitempty"`// Keyed Set to `true` to associate a unique string key with each bucket and return// the ranges as a hash rather than an array.Keyed *bool `json:"keyed,omitempty"`// MinDocCount Only returns buckets that have `min_doc_count` number of documents.// By default, all buckets between the first bucket that matches documents and// the last one are returned.MinDocCount *int `json:"min_doc_count,omitempty"`// Missing The value to apply to documents that do not have a value.// By default, documents without a value are ignored.MissingDateTime `json:"missing,omitempty"`// Offset Changes the start value of each bucket by the specified positive (`+`) or// negative offset (`-`) duration.OffsetDuration `json:"offset,omitempty"`// Order The sort order of the returned buckets.OrderAggregateOrder `json:"order,omitempty"`Params map[string]json.RawMessage `json:"params,omitempty"`Script *Script `json:"script,omitempty"`// TimeZone Time zone used for bucketing and rounding.// Defaults to Coordinated Universal Time (UTC).TimeZone *string `json:"time_zone,omitempty"`}DateHistogramAggregation type.
funcNewDateHistogramAggregation¶added inv8.5.0
func NewDateHistogramAggregation() *DateHistogramAggregation
NewDateHistogramAggregation returns a DateHistogramAggregation.
func (*DateHistogramAggregation)UnmarshalJSON¶added inv8.7.0
func (s *DateHistogramAggregation) UnmarshalJSON(data []byte)error
typeDateHistogramBucket¶
type DateHistogramBucket struct {Aggregations map[string]Aggregate `json:"-"`DocCountint64 `json:"doc_count"`Keyint64 `json:"key"`KeyAsString *string `json:"key_as_string,omitempty"`}DateHistogramBucket type.
funcNewDateHistogramBucket¶added inv8.5.0
func NewDateHistogramBucket() *DateHistogramBucket
NewDateHistogramBucket returns a DateHistogramBucket.
func (DateHistogramBucket)MarshalJSON¶
func (sDateHistogramBucket) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
func (*DateHistogramBucket)UnmarshalJSON¶added inv8.7.0
func (s *DateHistogramBucket) UnmarshalJSON(data []byte)error
typeDateHistogramGrouping¶
type DateHistogramGrouping struct {// CalendarInterval The interval of time buckets to be generated when rolling up.CalendarIntervalDuration `json:"calendar_interval,omitempty"`// Delay How long to wait before rolling up new documents.// By default, the indexer attempts to roll up all data that is available.// However, it is not uncommon for data to arrive out of order.// The indexer is unable to deal with data that arrives after a time-span has// been rolled up.// You need to specify a delay that matches the longest period of time you// expect out-of-order data to arrive.DelayDuration `json:"delay,omitempty"`// Field The date field that is to be rolled up.Fieldstring `json:"field"`// FixedInterval The interval of time buckets to be generated when rolling up.FixedIntervalDuration `json:"fixed_interval,omitempty"`Format *string `json:"format,omitempty"`IntervalDuration `json:"interval,omitempty"`// TimeZone Defines what `time_zone` the rollup documents are stored as.// Unlike raw data, which can shift timezones on the fly, rolled documents have// to be stored with a specific timezone.// By default, rollup documents are stored in `UTC`.TimeZone *string `json:"time_zone,omitempty"`}DateHistogramGrouping type.
funcNewDateHistogramGrouping¶added inv8.5.0
func NewDateHistogramGrouping() *DateHistogramGrouping
NewDateHistogramGrouping returns a DateHistogramGrouping.
func (*DateHistogramGrouping)UnmarshalJSON¶added inv8.7.1
func (s *DateHistogramGrouping) UnmarshalJSON(data []byte)error
typeDateIndexNameProcessor¶
type DateIndexNameProcessor struct {// DateFormats An array of the expected date formats for parsing dates / timestamps in the// document being preprocessed.// Can be a java time pattern or one of the following formats: ISO8601, UNIX,// UNIX_MS, or TAI64N.DateFormats []string `json:"date_formats"`// DateRounding How to round the date when formatting the date into the index name. Valid// values are:// `y` (year), `M` (month), `w` (week), `d` (day), `h` (hour), `m` (minute) and// `s` (second).// Supports template snippets.DateRoundingstring `json:"date_rounding"`// Description Description of the processor.// Useful for describing the purpose of the processor or its configuration.Description *string `json:"description,omitempty"`// Field The field to get the date or timestamp from.Fieldstring `json:"field"`// If Conditionally execute the processor.If *string `json:"if,omitempty"`// IgnoreFailure Ignore failures for the processor.IgnoreFailure *bool `json:"ignore_failure,omitempty"`// IndexNameFormat The format to be used when printing the parsed date into the index name.// A valid java time pattern is expected here.// Supports template snippets.IndexNameFormat *string `json:"index_name_format,omitempty"`// IndexNamePrefix A prefix of the index name to be prepended before the printed date.// Supports template snippets.IndexNamePrefix *string `json:"index_name_prefix,omitempty"`// Locale The locale to use when parsing the date from the document being preprocessed,// relevant when parsing month names or week days.Locale *string `json:"locale,omitempty"`// OnFailure Handle failures for the processor.OnFailure []ProcessorContainer `json:"on_failure,omitempty"`// Tag Identifier for the processor.// Useful for debugging and metrics.Tag *string `json:"tag,omitempty"`// Timezone The timezone to use when parsing the date and when date math index supports// resolves expressions into concrete index names.Timezone *string `json:"timezone,omitempty"`}DateIndexNameProcessor type.
funcNewDateIndexNameProcessor¶added inv8.5.0
func NewDateIndexNameProcessor() *DateIndexNameProcessor
NewDateIndexNameProcessor returns a DateIndexNameProcessor.
func (*DateIndexNameProcessor)UnmarshalJSON¶added inv8.7.1
func (s *DateIndexNameProcessor) UnmarshalJSON(data []byte)error
typeDateNanosProperty¶
type DateNanosProperty struct {Boost *Float64 `json:"boost,omitempty"`CopyTo []string `json:"copy_to,omitempty"`DocValues *bool `json:"doc_values,omitempty"`Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`Fields map[string]Property `json:"fields,omitempty"`Format *string `json:"format,omitempty"`IgnoreAbove *int `json:"ignore_above,omitempty"`IgnoreMalformed *bool `json:"ignore_malformed,omitempty"`Index *bool `json:"index,omitempty"`// Meta Metadata about the field.Meta map[string]string `json:"meta,omitempty"`NullValueDateTime `json:"null_value,omitempty"`OnScriptError *onscripterror.OnScriptError `json:"on_script_error,omitempty"`PrecisionStep *int `json:"precision_step,omitempty"`Properties map[string]Property `json:"properties,omitempty"`Script *Script `json:"script,omitempty"`Store *bool `json:"store,omitempty"`SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`Typestring `json:"type,omitempty"`}DateNanosProperty type.
funcNewDateNanosProperty¶added inv8.5.0
func NewDateNanosProperty() *DateNanosProperty
NewDateNanosProperty returns a DateNanosProperty.
func (DateNanosProperty)MarshalJSON¶added inv8.9.0
func (sDateNanosProperty) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*DateNanosProperty)UnmarshalJSON¶added inv8.7.0
func (s *DateNanosProperty) UnmarshalJSON(data []byte)error
typeDateProcessor¶
type DateProcessor struct {// Description Description of the processor.// Useful for describing the purpose of the processor or its configuration.Description *string `json:"description,omitempty"`// Field The field to get the date from.Fieldstring `json:"field"`// Formats An array of the expected date formats.// Can be a java time pattern or one of the following formats: ISO8601, UNIX,// UNIX_MS, or TAI64N.Formats []string `json:"formats"`// If Conditionally execute the processor.If *string `json:"if,omitempty"`// IgnoreFailure Ignore failures for the processor.IgnoreFailure *bool `json:"ignore_failure,omitempty"`// Locale The locale to use when parsing the date, relevant when parsing month names or// week days.// Supports template snippets.Locale *string `json:"locale,omitempty"`// OnFailure Handle failures for the processor.OnFailure []ProcessorContainer `json:"on_failure,omitempty"`// OutputFormat The format to use when writing the date to target_field. Must be a valid// java time pattern.OutputFormat *string `json:"output_format,omitempty"`// Tag Identifier for the processor.// Useful for debugging and metrics.Tag *string `json:"tag,omitempty"`// TargetField The field that will hold the parsed date.TargetField *string `json:"target_field,omitempty"`// Timezone The timezone to use when parsing the date.// Supports template snippets.Timezone *string `json:"timezone,omitempty"`}DateProcessor type.
funcNewDateProcessor¶added inv8.5.0
func NewDateProcessor() *DateProcessor
NewDateProcessor returns a DateProcessor.
func (*DateProcessor)UnmarshalJSON¶added inv8.7.1
func (s *DateProcessor) UnmarshalJSON(data []byte)error
typeDateProperty¶
type DateProperty struct {Boost *Float64 `json:"boost,omitempty"`CopyTo []string `json:"copy_to,omitempty"`DocValues *bool `json:"doc_values,omitempty"`Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`Fielddata *NumericFielddata `json:"fielddata,omitempty"`Fields map[string]Property `json:"fields,omitempty"`Format *string `json:"format,omitempty"`IgnoreAbove *int `json:"ignore_above,omitempty"`IgnoreMalformed *bool `json:"ignore_malformed,omitempty"`Index *bool `json:"index,omitempty"`Locale *string `json:"locale,omitempty"`// Meta Metadata about the field.Meta map[string]string `json:"meta,omitempty"`NullValueDateTime `json:"null_value,omitempty"`OnScriptError *onscripterror.OnScriptError `json:"on_script_error,omitempty"`PrecisionStep *int `json:"precision_step,omitempty"`Properties map[string]Property `json:"properties,omitempty"`Script *Script `json:"script,omitempty"`Store *bool `json:"store,omitempty"`SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`Typestring `json:"type,omitempty"`}DateProperty type.
funcNewDateProperty¶added inv8.5.0
func NewDateProperty() *DateProperty
NewDateProperty returns a DateProperty.
func (DateProperty)MarshalJSON¶added inv8.9.0
func (sDateProperty) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*DateProperty)UnmarshalJSON¶added inv8.7.0
func (s *DateProperty) UnmarshalJSON(data []byte)error
typeDateRangeAggregate¶
type DateRangeAggregate struct {BucketsBucketsRangeBucket `json:"buckets"`MetaMetadata `json:"meta,omitempty"`}DateRangeAggregate type.
funcNewDateRangeAggregate¶added inv8.5.0
func NewDateRangeAggregate() *DateRangeAggregate
NewDateRangeAggregate returns a DateRangeAggregate.
func (*DateRangeAggregate)UnmarshalJSON¶added inv8.7.0
func (s *DateRangeAggregate) UnmarshalJSON(data []byte)error
typeDateRangeAggregation¶
type DateRangeAggregation struct {// Field The date field whose values are use to build ranges.Field *string `json:"field,omitempty"`// Format The date format used to format `from` and `to` in the response.Format *string `json:"format,omitempty"`// Keyed Set to `true` to associate a unique string key with each bucket and returns// the ranges as a hash rather than an array.Keyed *bool `json:"keyed,omitempty"`// Missing The value to apply to documents that do not have a value.// By default, documents without a value are ignored.MissingMissing `json:"missing,omitempty"`// Ranges Array of date ranges.Ranges []DateRangeExpression `json:"ranges,omitempty"`// TimeZone Time zone used to convert dates from another time zone to UTC.TimeZone *string `json:"time_zone,omitempty"`}DateRangeAggregation type.
funcNewDateRangeAggregation¶added inv8.5.0
func NewDateRangeAggregation() *DateRangeAggregation
NewDateRangeAggregation returns a DateRangeAggregation.
func (*DateRangeAggregation)UnmarshalJSON¶added inv8.7.1
func (s *DateRangeAggregation) UnmarshalJSON(data []byte)error
typeDateRangeExpression¶
type DateRangeExpression struct {// From Start of the range (inclusive).FromFieldDateMath `json:"from,omitempty"`// Key Custom key to return the range with.Key *string `json:"key,omitempty"`// To End of the range (exclusive).ToFieldDateMath `json:"to,omitempty"`}DateRangeExpression type.
funcNewDateRangeExpression¶added inv8.5.0
func NewDateRangeExpression() *DateRangeExpression
NewDateRangeExpression returns a DateRangeExpression.
func (*DateRangeExpression)UnmarshalJSON¶added inv8.7.1
func (s *DateRangeExpression) UnmarshalJSON(data []byte)error
typeDateRangeProperty¶
type DateRangeProperty struct {Boost *Float64 `json:"boost,omitempty"`Coerce *bool `json:"coerce,omitempty"`CopyTo []string `json:"copy_to,omitempty"`DocValues *bool `json:"doc_values,omitempty"`Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`Fields map[string]Property `json:"fields,omitempty"`Format *string `json:"format,omitempty"`IgnoreAbove *int `json:"ignore_above,omitempty"`Index *bool `json:"index,omitempty"`// Meta Metadata about the field.Meta map[string]string `json:"meta,omitempty"`Properties map[string]Property `json:"properties,omitempty"`Store *bool `json:"store,omitempty"`SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`Typestring `json:"type,omitempty"`}DateRangeProperty type.
funcNewDateRangeProperty¶added inv8.5.0
func NewDateRangeProperty() *DateRangeProperty
NewDateRangeProperty returns a DateRangeProperty.
func (DateRangeProperty)MarshalJSON¶added inv8.9.0
func (sDateRangeProperty) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*DateRangeProperty)UnmarshalJSON¶added inv8.7.0
func (s *DateRangeProperty) UnmarshalJSON(data []byte)error
typeDateRangeQuery¶
type DateRangeQuery struct {// Boost Floating point number used to decrease or increase the relevance scores of// the query.// Boost values are relative to the default value of 1.0.// A boost value between 0 and 1.0 decreases the relevance score.// A value greater than 1.0 increases the relevance score.Boost *float32 `json:"boost,omitempty"`// Format Date format used to convert `date` values in the query.Format *string `json:"format,omitempty"`From *string `json:"from,omitempty"`// Gt Greater than.Gt *string `json:"gt,omitempty"`// Gte Greater than or equal to.Gte *string `json:"gte,omitempty"`// Lt Less than.Lt *string `json:"lt,omitempty"`// Lte Less than or equal to.Lte *string `json:"lte,omitempty"`QueryName_ *string `json:"_name,omitempty"`// Relation Indicates how the range query matches values for `range` fields.Relation *rangerelation.RangeRelation `json:"relation,omitempty"`// TimeZone Coordinated Universal Time (UTC) offset or IANA time zone used to convert// `date` values in the query to UTC.TimeZone *string `json:"time_zone,omitempty"`To *string `json:"to,omitempty"`}DateRangeQuery type.
funcNewDateRangeQuery¶added inv8.5.0
func NewDateRangeQuery() *DateRangeQuery
NewDateRangeQuery returns a DateRangeQuery.
func (*DateRangeQuery)UnmarshalJSON¶added inv8.7.1
func (s *DateRangeQuery) UnmarshalJSON(data []byte)error
typeDecayFunction¶
type DecayFunctionany
DecayFunction holds the union for the following types:
UntypedDecayFunctionDateDecayFunctionNumericDecayFunctionGeoDecayFunction
typeDecayPlacement¶added inv8.15.0
type DecayPlacement struct {// Decay Defines how documents are scored at the distance given at scale.Decay *Float64 `json:"decay,omitempty"`// Offset If defined, the decay function will only compute the decay function for// documents with a distance greater than the defined `offset`.Offsetjson.RawMessage `json:"offset,omitempty"`// Origin The point of origin used for calculating distance. Must be given as a number// for numeric field, date for date fields and geo point for geo fields.Originjson.RawMessage `json:"origin,omitempty"`// Scale Defines the distance from origin + offset at which the computed score will// equal `decay` parameter.Scalejson.RawMessage `json:"scale,omitempty"`}DecayPlacement type.
funcNewDecayPlacement¶added inv8.15.0
func NewDecayPlacement() *DecayPlacement
NewDecayPlacement returns a DecayPlacement.
func (*DecayPlacement)UnmarshalJSON¶added inv8.15.0
func (s *DecayPlacement) UnmarshalJSON(data []byte)error
typeDecayPlacementDateMathDuration¶
type DecayPlacementDateMathDuration struct {// Decay Defines how documents are scored at the distance given at scale.Decay *Float64 `json:"decay,omitempty"`// Offset If defined, the decay function will only compute the decay function for// documents with a distance greater than the defined `offset`.OffsetDuration `json:"offset,omitempty"`// Origin The point of origin used for calculating distance. Must be given as a number// for numeric field, date for date fields and geo point for geo fields.Origin *string `json:"origin,omitempty"`// Scale Defines the distance from origin + offset at which the computed score will// equal `decay` parameter.ScaleDuration `json:"scale,omitempty"`}DecayPlacementDateMathDuration type.
funcNewDecayPlacementDateMathDuration¶added inv8.5.0
func NewDecayPlacementDateMathDuration() *DecayPlacementDateMathDuration
NewDecayPlacementDateMathDuration returns a DecayPlacementDateMathDuration.
func (*DecayPlacementDateMathDuration)UnmarshalJSON¶added inv8.7.1
func (s *DecayPlacementDateMathDuration) UnmarshalJSON(data []byte)error
typeDecayPlacementGeoLocationDistance¶
type DecayPlacementGeoLocationDistance struct {// Decay Defines how documents are scored at the distance given at scale.Decay *Float64 `json:"decay,omitempty"`// Offset If defined, the decay function will only compute the decay function for// documents with a distance greater than the defined `offset`.Offset *string `json:"offset,omitempty"`// Origin The point of origin used for calculating distance. Must be given as a number// for numeric field, date for date fields and geo point for geo fields.OriginGeoLocation `json:"origin,omitempty"`// Scale Defines the distance from origin + offset at which the computed score will// equal `decay` parameter.Scale *string `json:"scale,omitempty"`}DecayPlacementGeoLocationDistance type.
funcNewDecayPlacementGeoLocationDistance¶added inv8.5.0
func NewDecayPlacementGeoLocationDistance() *DecayPlacementGeoLocationDistance
NewDecayPlacementGeoLocationDistance returns a DecayPlacementGeoLocationDistance.
func (*DecayPlacementGeoLocationDistance)UnmarshalJSON¶added inv8.7.1
func (s *DecayPlacementGeoLocationDistance) UnmarshalJSON(data []byte)error
typeDecayPlacementdoubledouble¶
type DecayPlacementdoubledouble struct {// Decay Defines how documents are scored at the distance given at scale.Decay *Float64 `json:"decay,omitempty"`// Offset If defined, the decay function will only compute the decay function for// documents with a distance greater than the defined `offset`.Offset *Float64 `json:"offset,omitempty"`// Origin The point of origin used for calculating distance. Must be given as a number// for numeric field, date for date fields and geo point for geo fields.Origin *Float64 `json:"origin,omitempty"`// Scale Defines the distance from origin + offset at which the computed score will// equal `decay` parameter.Scale *Float64 `json:"scale,omitempty"`}DecayPlacementdoubledouble type.
funcNewDecayPlacementdoubledouble¶added inv8.5.0
func NewDecayPlacementdoubledouble() *DecayPlacementdoubledouble
NewDecayPlacementdoubledouble returns a DecayPlacementdoubledouble.
func (*DecayPlacementdoubledouble)UnmarshalJSON¶added inv8.7.1
func (s *DecayPlacementdoubledouble) UnmarshalJSON(data []byte)error
typeDecimalDigitTokenFilter¶added inv8.18.1
type DecimalDigitTokenFilter struct {Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}DecimalDigitTokenFilter type.
funcNewDecimalDigitTokenFilter¶added inv8.18.1
func NewDecimalDigitTokenFilter() *DecimalDigitTokenFilter
NewDecimalDigitTokenFilter returns a DecimalDigitTokenFilter.
func (DecimalDigitTokenFilter)MarshalJSON¶added inv8.18.1
func (sDecimalDigitTokenFilter) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*DecimalDigitTokenFilter)UnmarshalJSON¶added inv8.18.1
func (s *DecimalDigitTokenFilter) UnmarshalJSON(data []byte)error
typeDeepSeekServiceSettings¶added inv8.19.0
type DeepSeekServiceSettings struct {// ApiKey A valid API key for your DeepSeek account.// You can find or create your DeepSeek API keys on the DeepSeek API key page.//// IMPORTANT: You need to provide the API key only once, during the inference// model creation.// The get inference endpoint API does not retrieve your API key.// After creating the inference model, you cannot change the associated API key.// If you want to use a different API key, delete the inference model and// recreate it with the same name and the updated API key.ApiKeystring `json:"api_key"`// ModelId For a `completion` or `chat_completion` task, the name of the model to use// for the inference task.//// For the available `completion` and `chat_completion` models, refer to the// [DeepSeek Models & Pricing// docs](https://api-docs.deepseek.com/quick_start/pricing).ModelIdstring `json:"model_id"`// Url The URL endpoint to use for the requests. Defaults to// `https://api.deepseek.com/chat/completions`.Url *string `json:"url,omitempty"`}DeepSeekServiceSettings type.
funcNewDeepSeekServiceSettings¶added inv8.19.0
func NewDeepSeekServiceSettings() *DeepSeekServiceSettings
NewDeepSeekServiceSettings returns a DeepSeekServiceSettings.
func (*DeepSeekServiceSettings)UnmarshalJSON¶added inv8.19.0
func (s *DeepSeekServiceSettings) UnmarshalJSON(data []byte)error
typeDefaults¶
type Defaults struct {AnomalyDetectorsAnomalyDetectors `json:"anomaly_detectors"`DatafeedsDatafeeds `json:"datafeeds"`}Defaults type.
typeDefinition¶
type Definition struct {// Preprocessors Collection of preprocessorsPreprocessors []Preprocessor `json:"preprocessors,omitempty"`// TrainedModel The definition of the trained model.TrainedModelTrainedModel `json:"trained_model"`}Definition type.
typeDelayedDataCheckConfig¶
type DelayedDataCheckConfig struct {// CheckWindow The window of time that is searched for late data. This window of time ends// with the latest finalized bucket.// It defaults to null, which causes an appropriate `check_window` to be// calculated when the real-time datafeed runs.// In particular, the default `check_window` span calculation is based on the// maximum of `2h` or `8 * bucket_span`.CheckWindowDuration `json:"check_window,omitempty"`// Enabled Specifies whether the datafeed periodically checks for delayed data.Enabledbool `json:"enabled"`}DelayedDataCheckConfig type.
funcNewDelayedDataCheckConfig¶added inv8.5.0
func NewDelayedDataCheckConfig() *DelayedDataCheckConfig
NewDelayedDataCheckConfig returns a DelayedDataCheckConfig.
func (*DelayedDataCheckConfig)UnmarshalJSON¶added inv8.7.1
func (s *DelayedDataCheckConfig) UnmarshalJSON(data []byte)error
typeDeleteAction¶added inv8.15.0
type DeleteAction struct {DeleteSearchableSnapshot *bool `json:"delete_searchable_snapshot,omitempty"`}DeleteAction type.
funcNewDeleteAction¶added inv8.15.0
func NewDeleteAction() *DeleteAction
NewDeleteAction returns a DeleteAction.
func (*DeleteAction)UnmarshalJSON¶added inv8.15.0
func (s *DeleteAction) UnmarshalJSON(data []byte)error
typeDeleteOperation¶added inv8.9.0
type DeleteOperation struct {// Id_ The document ID.Id_ *string `json:"_id,omitempty"`IfPrimaryTerm *int64 `json:"if_primary_term,omitempty"`IfSeqNo *int64 `json:"if_seq_no,omitempty"`// Index_ The name of the index or index alias to perform the action on.Index_ *string `json:"_index,omitempty"`// Routing A custom value used to route operations to a specific shard.Routing *string `json:"routing,omitempty"`Version *int64 `json:"version,omitempty"`VersionType *versiontype.VersionType `json:"version_type,omitempty"`}DeleteOperation type.
funcNewDeleteOperation¶added inv8.9.0
func NewDeleteOperation() *DeleteOperation
NewDeleteOperation returns a DeleteOperation.
func (*DeleteOperation)UnmarshalJSON¶added inv8.9.0
func (s *DeleteOperation) UnmarshalJSON(data []byte)error
typeDelimitedPayloadTokenFilter¶
type DelimitedPayloadTokenFilter struct {// Delimiter Character used to separate tokens from payloads. Defaults to `|`.Delimiter *string `json:"delimiter,omitempty"`// Encoding Data type for the stored payload.Encoding *delimitedpayloadencoding.DelimitedPayloadEncoding `json:"encoding,omitempty"`Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}DelimitedPayloadTokenFilter type.
funcNewDelimitedPayloadTokenFilter¶added inv8.5.0
func NewDelimitedPayloadTokenFilter() *DelimitedPayloadTokenFilter
NewDelimitedPayloadTokenFilter returns a DelimitedPayloadTokenFilter.
func (DelimitedPayloadTokenFilter)MarshalJSON¶added inv8.9.0
func (sDelimitedPayloadTokenFilter) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*DelimitedPayloadTokenFilter)UnmarshalJSON¶added inv8.7.1
func (s *DelimitedPayloadTokenFilter) UnmarshalJSON(data []byte)error
typeDenseVectorIndexOptions¶
type DenseVectorIndexOptions struct {// ConfidenceInterval The confidence interval to use when quantizing the vectors. Can be any value// between and including `0.90` and// `1.0` or exactly `0`. When the value is `0`, this indicates that dynamic// quantiles should be calculated for// optimized quantization. When between `0.90` and `1.0`, this value restricts// the values used when calculating// the quantization thresholds.//// For example, a value of `0.95` will only use the middle `95%` of the values// when calculating the quantization// thresholds (e.g. the highest and lowest `2.5%` of values will be ignored).//// Defaults to `1/(dims + 1)` for `int8` quantized vectors and `0` for `int4`// for dynamic quantile calculation.//// Only applicable to `int8_hnsw`, `int4_hnsw`, `int8_flat`, and `int4_flat`// index types.ConfidenceInterval *float32 `json:"confidence_interval,omitempty"`// EfConstruction The number of candidates to track while assembling the list of nearest// neighbors for each new node.//// Only applicable to `hnsw`, `int8_hnsw`, `bbq_hnsw`, and `int4_hnsw` index// types.EfConstruction *int `json:"ef_construction,omitempty"`// M The number of neighbors each node will be connected to in the HNSW graph.//// Only applicable to `hnsw`, `int8_hnsw`, `bbq_hnsw`, and `int4_hnsw` index// types.M *int `json:"m,omitempty"`// Type The type of kNN algorithm to use.Typedensevectorindexoptionstype.DenseVectorIndexOptionsType `json:"type"`}DenseVectorIndexOptions type.
funcNewDenseVectorIndexOptions¶added inv8.5.0
func NewDenseVectorIndexOptions() *DenseVectorIndexOptions
NewDenseVectorIndexOptions returns a DenseVectorIndexOptions.
func (*DenseVectorIndexOptions)UnmarshalJSON¶added inv8.7.1
func (s *DenseVectorIndexOptions) UnmarshalJSON(data []byte)error
typeDenseVectorOffHeapStats¶added inv8.19.0
type DenseVectorOffHeapStats struct {Fielddata map[string]map[string]int64 `json:"fielddata,omitempty"`TotalSizeByteSize `json:"total_size,omitempty"`TotalSizeBytesint64 `json:"total_size_bytes"`TotalVebSizeByteSize `json:"total_veb_size,omitempty"`TotalVebSizeBytesint64 `json:"total_veb_size_bytes"`TotalVecSizeByteSize `json:"total_vec_size,omitempty"`TotalVecSizeBytesint64 `json:"total_vec_size_bytes"`TotalVeqSizeByteSize `json:"total_veq_size,omitempty"`TotalVeqSizeBytesint64 `json:"total_veq_size_bytes"`TotalVexSizeByteSize `json:"total_vex_size,omitempty"`TotalVexSizeBytesint64 `json:"total_vex_size_bytes"`}DenseVectorOffHeapStats type.
funcNewDenseVectorOffHeapStats¶added inv8.19.0
func NewDenseVectorOffHeapStats() *DenseVectorOffHeapStats
NewDenseVectorOffHeapStats returns a DenseVectorOffHeapStats.
func (*DenseVectorOffHeapStats)UnmarshalJSON¶added inv8.19.0
func (s *DenseVectorOffHeapStats) UnmarshalJSON(data []byte)error
typeDenseVectorProperty¶
type DenseVectorProperty struct {// Dims Number of vector dimensions. Can't exceed `4096`. If `dims` is not specified,// it will be set to the length of// the first vector added to the field.Dims *int `json:"dims,omitempty"`Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`// ElementType The data type used to encode vectors. The supported data types are `float`// (default), `byte`, and `bit`.ElementType *densevectorelementtype.DenseVectorElementType `json:"element_type,omitempty"`Fields map[string]Property `json:"fields,omitempty"`IgnoreAbove *int `json:"ignore_above,omitempty"`// Index If `true`, you can search this field using the kNN search API.Index *bool `json:"index,omitempty"`// IndexOptions An optional section that configures the kNN indexing algorithm. The HNSW// algorithm has two internal parameters// that influence how the data structure is built. These can be adjusted to// improve the accuracy of results, at the// expense of slower indexing speed.//// This parameter can only be specified when `index` is `true`.IndexOptions *DenseVectorIndexOptions `json:"index_options,omitempty"`// Meta Metadata about the field.Meta map[string]string `json:"meta,omitempty"`Properties map[string]Property `json:"properties,omitempty"`// Similarity The vector similarity metric to use in kNN search.//// Documents are ranked by their vector field's similarity to the query vector.// The `_score` of each document will// be derived from the similarity, in a way that ensures scores are positive and// that a larger score corresponds// to a higher ranking.//// Defaults to `l2_norm` when `element_type` is `bit` otherwise defaults to// `cosine`.//// `bit` vectors only support `l2_norm` as their similarity metric.//// This parameter can only be specified when `index` is `true`.Similarity *densevectorsimilarity.DenseVectorSimilarity `json:"similarity,omitempty"`SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`Typestring `json:"type,omitempty"`}DenseVectorProperty type.
funcNewDenseVectorProperty¶added inv8.5.0
func NewDenseVectorProperty() *DenseVectorProperty
NewDenseVectorProperty returns a DenseVectorProperty.
func (DenseVectorProperty)MarshalJSON¶added inv8.9.0
func (sDenseVectorProperty) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*DenseVectorProperty)UnmarshalJSON¶added inv8.7.0
func (s *DenseVectorProperty) UnmarshalJSON(data []byte)error
typeDenseVectorStats¶added inv8.19.0
type DenseVectorStats struct {OffHeap *DenseVectorOffHeapStats `json:"off_heap,omitempty"`ValueCountint64 `json:"value_count"`}DenseVectorStats type.
funcNewDenseVectorStats¶added inv8.19.0
func NewDenseVectorStats() *DenseVectorStats
NewDenseVectorStats returns a DenseVectorStats.
func (*DenseVectorStats)UnmarshalJSON¶added inv8.19.0
func (s *DenseVectorStats) UnmarshalJSON(data []byte)error
typeDependency¶added inv8.15.0
type Dependency struct {Fieldstring `json:"field"`ValueScalarValue `json:"value"`}Dependency type.
funcNewDependency¶added inv8.15.0
func NewDependency() *Dependency
NewDependency returns a Dependency.
func (*Dependency)UnmarshalJSON¶added inv8.15.0
func (s *Dependency) UnmarshalJSON(data []byte)error
typeDeprecation¶
type Deprecation struct {// Details Optional details about the deprecation warning.Details *string `json:"details,omitempty"`// Level The level property describes the significance of the issue.Leveldeprecationlevel.DeprecationLevel `json:"level"`// Message Descriptive information about the deprecation warning.Messagestring `json:"message"`Meta_ map[string]json.RawMessage `json:"_meta,omitempty"`ResolveDuringRollingUpgradebool `json:"resolve_during_rolling_upgrade"`// Url A link to the breaking change documentation, where you can find more// information about this change.Urlstring `json:"url"`}Deprecation type.
funcNewDeprecation¶added inv8.5.0
func NewDeprecation() *Deprecation
NewDeprecation returns a Deprecation.
func (*Deprecation)UnmarshalJSON¶added inv8.9.0
func (s *Deprecation) UnmarshalJSON(data []byte)error
typeDeprecationIndexing¶
type DeprecationIndexing struct {Enabledstring `json:"enabled"`}DeprecationIndexing type.
funcNewDeprecationIndexing¶added inv8.5.0
func NewDeprecationIndexing() *DeprecationIndexing
NewDeprecationIndexing returns a DeprecationIndexing.
func (*DeprecationIndexing)UnmarshalJSON¶added inv8.7.1
func (s *DeprecationIndexing) UnmarshalJSON(data []byte)error
typeDerivativeAggregate¶
type DerivativeAggregate struct {MetaMetadata `json:"meta,omitempty"`NormalizedValue *Float64 `json:"normalized_value,omitempty"`NormalizedValueAsString *string `json:"normalized_value_as_string,omitempty"`// Value The metric value. A missing value generally means that there was no data to// aggregate,// unless specified otherwise.Value *Float64 `json:"value,omitempty"`ValueAsString *string `json:"value_as_string,omitempty"`}DerivativeAggregate type.
funcNewDerivativeAggregate¶added inv8.5.0
func NewDerivativeAggregate() *DerivativeAggregate
NewDerivativeAggregate returns a DerivativeAggregate.
func (*DerivativeAggregate)UnmarshalJSON¶added inv8.7.1
func (s *DerivativeAggregate) UnmarshalJSON(data []byte)error
typeDerivativeAggregation¶
type DerivativeAggregation struct {// BucketsPath Path to the buckets that contain one set of values to correlate.BucketsPathBucketsPath `json:"buckets_path,omitempty"`// Format `DecimalFormat` pattern for the output value.// If specified, the formatted value is returned in the aggregation’s// `value_as_string` property.Format *string `json:"format,omitempty"`// GapPolicy Policy to apply when gaps are found in the data.GapPolicy *gappolicy.GapPolicy `json:"gap_policy,omitempty"`}DerivativeAggregation type.
funcNewDerivativeAggregation¶added inv8.5.0
func NewDerivativeAggregation() *DerivativeAggregation
NewDerivativeAggregation returns a DerivativeAggregation.
func (*DerivativeAggregation)UnmarshalJSON¶added inv8.7.0
func (s *DerivativeAggregation) UnmarshalJSON(data []byte)error
typeDetailsInfo¶added inv8.18.0
type DetailsInfo struct {// Blob A description of the blob that was written and read.BlobBlobDetails `json:"blob"`// OverwriteElapsed The elapsed time spent overwriting the blob.// If the blob was not overwritten, this information is omitted.OverwriteElapsedDuration `json:"overwrite_elapsed,omitempty"`// OverwriteElapsedNanos The elapsed time spent overwriting the blob, in nanoseconds.// If the blob was not overwritten, this information is omitted.OverwriteElapsedNanos *int64 `json:"overwrite_elapsed_nanos,omitempty"`// WriteElapsed The elapsed time spent writing the blob.WriteElapsedDuration `json:"write_elapsed"`// WriteElapsedNanos The elapsed time spent writing the blob, in nanoseconds.WriteElapsedNanosint64 `json:"write_elapsed_nanos"`// WriteThrottled The length of time spent waiting for the `max_snapshot_bytes_per_sec` (or// `indices.recovery.max_bytes_per_sec` if the recovery settings for managed// services are set) throttle while writing the blob.WriteThrottledDuration `json:"write_throttled"`// WriteThrottledNanos The length of time spent waiting for the `max_snapshot_bytes_per_sec` (or// `indices.recovery.max_bytes_per_sec` if the recovery settings for managed// services are set) throttle while writing the blob, in nanoseconds.WriteThrottledNanosint64 `json:"write_throttled_nanos"`// WriterNode The node which wrote the blob and coordinated the read operations.WriterNodeSnapshotNodeInfo `json:"writer_node"`}DetailsInfo type.
funcNewDetailsInfo¶added inv8.18.0
func NewDetailsInfo() *DetailsInfo
NewDetailsInfo returns a DetailsInfo.
func (*DetailsInfo)UnmarshalJSON¶added inv8.18.0
func (s *DetailsInfo) UnmarshalJSON(data []byte)error
typeDetectionRule¶
type DetectionRule struct {// Actions The set of actions to be triggered when the rule applies. If more than one// action is specified the effects of all actions are combined.Actions []ruleaction.RuleAction `json:"actions,omitempty"`// Conditions An array of numeric conditions when the rule applies. A rule must either have// a non-empty scope or at least one condition. Multiple conditions are combined// together with a logical AND.Conditions []RuleCondition `json:"conditions,omitempty"`// Scope A scope of series where the rule applies. A rule must either have a non-empty// scope or at least one condition. By default, the scope includes all series.// Scoping is allowed for any of the fields that are also specified in// `by_field_name`, `over_field_name`, or `partition_field_name`.Scope map[string]FilterRef `json:"scope,omitempty"`}DetectionRule type.
funcNewDetectionRule¶added inv8.5.0
func NewDetectionRule() *DetectionRule
NewDetectionRule returns a DetectionRule.
typeDetector¶
type Detector struct {// ByFieldName The field used to split the data. In particular, this property is used for// analyzing the splits with respect to their own history. It is used for// finding unusual values in the context of the split.ByFieldName *string `json:"by_field_name,omitempty"`// CustomRules Custom rules enable you to customize the way detectors operate. For example,// a rule may dictate conditions under which results should be skipped. Kibana// refers to custom rules as job rules.CustomRules []DetectionRule `json:"custom_rules,omitempty"`// DetectorDescription A description of the detector.DetectorDescription *string `json:"detector_description,omitempty"`// DetectorIndex A unique identifier for the detector. This identifier is based on the order// of the detectors in the `analysis_config`, starting at zero. If you specify a// value for this property, it is ignored.DetectorIndex *int `json:"detector_index,omitempty"`// ExcludeFrequent If set, frequent entities are excluded from influencing the anomaly results.// Entities can be considered frequent over time or frequent in a population. If// you are working with both over and by fields, you can set `exclude_frequent`// to `all` for both fields, or to `by` or `over` for those specific fields.ExcludeFrequent *excludefrequent.ExcludeFrequent `json:"exclude_frequent,omitempty"`// FieldName The field that the detector uses in the function. If you use an event rate// function such as count or rare, do not specify this field. The `field_name`// cannot contain double quotes or backslashes.FieldName *string `json:"field_name,omitempty"`// Function The analysis function that is used. For example, `count`, `rare`, `mean`,// `min`, `max`, or `sum`.Function *string `json:"function,omitempty"`// OverFieldName The field used to split the data. In particular, this property is used for// analyzing the splits with respect to the history of all splits. It is used// for finding unusual values in the population of all splits.OverFieldName *string `json:"over_field_name,omitempty"`// PartitionFieldName The field used to segment the analysis. When you use this property, you have// completely independent baselines for each value of this field.PartitionFieldName *string `json:"partition_field_name,omitempty"`// UseNull Defines whether a new series is used as the null series when there is no// value for the by or partition fields.UseNull *bool `json:"use_null,omitempty"`}Detector type.
func (*Detector)UnmarshalJSON¶added inv8.7.1
typeDetectorRead¶
type DetectorRead struct {// ByFieldName The field used to split the data.// In particular, this property is used for analyzing the splits with respect to// their own history.// It is used for finding unusual values in the context of the split.ByFieldName *string `json:"by_field_name,omitempty"`// CustomRules An array of custom rule objects, which enable you to customize the way// detectors operate.// For example, a rule may dictate to the detector conditions under which// results should be skipped.// Kibana refers to custom rules as job rules.CustomRules []DetectionRule `json:"custom_rules,omitempty"`// DetectorDescription A description of the detector.DetectorDescription *string `json:"detector_description,omitempty"`// DetectorIndex A unique identifier for the detector.// This identifier is based on the order of the detectors in the// `analysis_config`, starting at zero.DetectorIndex *int `json:"detector_index,omitempty"`// ExcludeFrequent Contains one of the following values: `all`, `none`, `by`, or `over`.// If set, frequent entities are excluded from influencing the anomaly results.// Entities can be considered frequent over time or frequent in a population.// If you are working with both over and by fields, then you can set// `exclude_frequent` to all for both fields, or to `by` or `over` for those// specific fields.ExcludeFrequent *excludefrequent.ExcludeFrequent `json:"exclude_frequent,omitempty"`// FieldName The field that the detector uses in the function.// If you use an event rate function such as `count` or `rare`, do not specify// this field.FieldName *string `json:"field_name,omitempty"`// Function The analysis function that is used.// For example, `count`, `rare`, `mean`, `min`, `max`, and `sum`.Functionstring `json:"function"`// OverFieldName The field used to split the data.// In particular, this property is used for analyzing the splits with respect to// the history of all splits.// It is used for finding unusual values in the population of all splits.OverFieldName *string `json:"over_field_name,omitempty"`// PartitionFieldName The field used to segment the analysis.// When you use this property, you have completely independent baselines for// each value of this field.PartitionFieldName *string `json:"partition_field_name,omitempty"`// UseNull Defines whether a new series is used as the null series when there is no// value for the by or partition fields.UseNull *bool `json:"use_null,omitempty"`}DetectorRead type.
funcNewDetectorRead¶added inv8.5.0
func NewDetectorRead() *DetectorRead
NewDetectorRead returns a DetectorRead.
func (*DetectorRead)UnmarshalJSON¶added inv8.7.1
func (s *DetectorRead) UnmarshalJSON(data []byte)error
typeDetectorUpdate¶added inv8.17.0
type DetectorUpdate struct {// CustomRules An array of custom rule objects, which enable you to customize the way// detectors operate.// For example, a rule may dictate to the detector conditions under which// results should be skipped.// Kibana refers to custom rules as job rules.CustomRules []DetectionRule `json:"custom_rules,omitempty"`// Description A description of the detector.Description *string `json:"description,omitempty"`// DetectorIndex A unique identifier for the detector.// This identifier is based on the order of the detectors in the// `analysis_config`, starting at zero.DetectorIndexint `json:"detector_index"`}DetectorUpdate type.
funcNewDetectorUpdate¶added inv8.17.0
func NewDetectorUpdate() *DetectorUpdate
NewDetectorUpdate returns a DetectorUpdate.
func (*DetectorUpdate)UnmarshalJSON¶added inv8.17.0
func (s *DetectorUpdate) UnmarshalJSON(data []byte)error
typeDfsKnnProfile¶added inv8.16.0
type DfsKnnProfile struct {Collector []KnnCollectorResult `json:"collector"`Query []KnnQueryProfileResult `json:"query"`RewriteTimeint64 `json:"rewrite_time"`VectorOperationsCount *int64 `json:"vector_operations_count,omitempty"`}DfsKnnProfile type.
funcNewDfsKnnProfile¶added inv8.16.0
func NewDfsKnnProfile() *DfsKnnProfile
NewDfsKnnProfile returns a DfsKnnProfile.
func (*DfsKnnProfile)UnmarshalJSON¶added inv8.16.0
func (s *DfsKnnProfile) UnmarshalJSON(data []byte)error
typeDfsProfile¶added inv8.16.0
type DfsProfile struct {Knn []DfsKnnProfile `json:"knn,omitempty"`Statistics *DfsStatisticsProfile `json:"statistics,omitempty"`}DfsProfile type.
funcNewDfsProfile¶added inv8.16.0
func NewDfsProfile() *DfsProfile
NewDfsProfile returns a DfsProfile.
typeDfsStatisticsBreakdown¶added inv8.16.0
type DfsStatisticsBreakdown struct {CollectionStatisticsint64 `json:"collection_statistics"`CollectionStatisticsCountint64 `json:"collection_statistics_count"`CreateWeightint64 `json:"create_weight"`CreateWeightCountint64 `json:"create_weight_count"`Rewriteint64 `json:"rewrite"`RewriteCountint64 `json:"rewrite_count"`TermStatisticsint64 `json:"term_statistics"`TermStatisticsCountint64 `json:"term_statistics_count"`}DfsStatisticsBreakdown type.
funcNewDfsStatisticsBreakdown¶added inv8.16.0
func NewDfsStatisticsBreakdown() *DfsStatisticsBreakdown
NewDfsStatisticsBreakdown returns a DfsStatisticsBreakdown.
func (*DfsStatisticsBreakdown)UnmarshalJSON¶added inv8.16.0
func (s *DfsStatisticsBreakdown) UnmarshalJSON(data []byte)error
typeDfsStatisticsProfile¶added inv8.16.0
type DfsStatisticsProfile struct {BreakdownDfsStatisticsBreakdown `json:"breakdown"`Children []DfsStatisticsProfile `json:"children,omitempty"`Debug map[string]json.RawMessage `json:"debug,omitempty"`Descriptionstring `json:"description"`TimeDuration `json:"time,omitempty"`TimeInNanosint64 `json:"time_in_nanos"`Typestring `json:"type"`}DfsStatisticsProfile type.
funcNewDfsStatisticsProfile¶added inv8.16.0
func NewDfsStatisticsProfile() *DfsStatisticsProfile
NewDfsStatisticsProfile returns a DfsStatisticsProfile.
func (*DfsStatisticsProfile)UnmarshalJSON¶added inv8.16.0
func (s *DfsStatisticsProfile) UnmarshalJSON(data []byte)error
typeDiagnosis¶added inv8.7.1
type Diagnosis struct {Actionstring `json:"action"`AffectedResourcesDiagnosisAffectedResources `json:"affected_resources"`Causestring `json:"cause"`HelpUrlstring `json:"help_url"`Idstring `json:"id"`}Diagnosis type.
func (*Diagnosis)UnmarshalJSON¶added inv8.9.0
typeDiagnosisAffectedResources¶added inv8.7.1
type DiagnosisAffectedResources struct {FeatureStates []string `json:"feature_states,omitempty"`Indices []string `json:"indices,omitempty"`Nodes []IndicatorNode `json:"nodes,omitempty"`SlmPolicies []string `json:"slm_policies,omitempty"`SnapshotRepositories []string `json:"snapshot_repositories,omitempty"`}DiagnosisAffectedResources type.
funcNewDiagnosisAffectedResources¶added inv8.7.1
func NewDiagnosisAffectedResources() *DiagnosisAffectedResources
NewDiagnosisAffectedResources returns a DiagnosisAffectedResources.
func (*DiagnosisAffectedResources)UnmarshalJSON¶added inv8.7.1
func (s *DiagnosisAffectedResources) UnmarshalJSON(data []byte)error
typeDictionaryDecompounderTokenFilter¶
type DictionaryDecompounderTokenFilter struct {// MaxSubwordSize Maximum subword character length. Longer subword tokens are excluded from the// output. Defaults to `15`.MaxSubwordSize *int `json:"max_subword_size,omitempty"`// MinSubwordSize Minimum subword character length. Shorter subword tokens are excluded from// the output. Defaults to `2`.MinSubwordSize *int `json:"min_subword_size,omitempty"`// MinWordSize Minimum word character length. Shorter word tokens are excluded from the// output. Defaults to `5`.MinWordSize *int `json:"min_word_size,omitempty"`// OnlyLongestMatch If `true`, only include the longest matching subword. Defaults to `false`.OnlyLongestMatch *bool `json:"only_longest_match,omitempty"`Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`// WordList A list of subwords to look for in the token stream. If found, the subword is// included in the token output.// Either this parameter or `word_list_path` must be specified.WordList []string `json:"word_list,omitempty"`// WordListPath Path to a file that contains a list of subwords to find in the token stream.// If found, the subword is included in the token output.// This path must be absolute or relative to the config location, and the file// must be UTF-8 encoded. Each token in the file must be separated by a line// break.// Either this parameter or `word_list` must be specified.WordListPath *string `json:"word_list_path,omitempty"`}DictionaryDecompounderTokenFilter type.
funcNewDictionaryDecompounderTokenFilter¶added inv8.5.0
func NewDictionaryDecompounderTokenFilter() *DictionaryDecompounderTokenFilter
NewDictionaryDecompounderTokenFilter returns a DictionaryDecompounderTokenFilter.
func (DictionaryDecompounderTokenFilter)MarshalJSON¶added inv8.9.0
func (sDictionaryDecompounderTokenFilter) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*DictionaryDecompounderTokenFilter)UnmarshalJSON¶added inv8.7.1
func (s *DictionaryDecompounderTokenFilter) UnmarshalJSON(data []byte)error
typeDirectGenerator¶
type DirectGenerator struct {// Field The field to fetch the candidate suggestions from.// Needs to be set globally or per suggestion.Fieldstring `json:"field"`// MaxEdits The maximum edit distance candidate suggestions can have in order to be// considered as a suggestion.// Can only be `1` or `2`.MaxEdits *int `json:"max_edits,omitempty"`// MaxInspections A factor that is used to multiply with the shard_size in order to inspect// more candidate spelling corrections on the shard level.// Can improve accuracy at the cost of performance.MaxInspections *float32 `json:"max_inspections,omitempty"`// MaxTermFreq The maximum threshold in number of documents in which a suggest text token// can exist in order to be included.// This can be used to exclude high frequency terms — which are usually spelled// correctly — from being spellchecked.// Can be a relative percentage number (for example `0.4`) or an absolute number// to represent document frequencies.// If a value higher than 1 is specified, then fractional can not be specified.MaxTermFreq *float32 `json:"max_term_freq,omitempty"`// MinDocFreq The minimal threshold in number of documents a suggestion should appear in.// This can improve quality by only suggesting high frequency terms.// Can be specified as an absolute number or as a relative percentage of number// of documents.// If a value higher than 1 is specified, the number cannot be fractional.MinDocFreq *float32 `json:"min_doc_freq,omitempty"`// MinWordLength The minimum length a suggest text term must have in order to be included.MinWordLength *int `json:"min_word_length,omitempty"`// PostFilter A filter (analyzer) that is applied to each of the generated tokens before// they are passed to the actual phrase scorer.PostFilter *string `json:"post_filter,omitempty"`// PreFilter A filter (analyzer) that is applied to each of the tokens passed to this// candidate generator.// This filter is applied to the original token before candidates are generated.PreFilter *string `json:"pre_filter,omitempty"`// PrefixLength The number of minimal prefix characters that must match in order be a// candidate suggestions.// Increasing this number improves spellcheck performance.PrefixLength *int `json:"prefix_length,omitempty"`// Size The maximum corrections to be returned per suggest text token.Size *int `json:"size,omitempty"`// SuggestMode Controls what suggestions are included on the suggestions generated on each// shard.SuggestMode *suggestmode.SuggestMode `json:"suggest_mode,omitempty"`}DirectGenerator type.
funcNewDirectGenerator¶added inv8.5.0
func NewDirectGenerator() *DirectGenerator
NewDirectGenerator returns a DirectGenerator.
func (*DirectGenerator)UnmarshalJSON¶added inv8.7.1
func (s *DirectGenerator) UnmarshalJSON(data []byte)error
typeDisMaxQuery¶
type DisMaxQuery struct {// Boost Floating point number used to decrease or increase the relevance scores of// the query.// Boost values are relative to the default value of 1.0.// A boost value between 0 and 1.0 decreases the relevance score.// A value greater than 1.0 increases the relevance score.Boost *float32 `json:"boost,omitempty"`// Queries One or more query clauses.// Returned documents must match one or more of these queries.// If a document matches multiple queries, Elasticsearch uses the highest// relevance score.Queries []Query `json:"queries"`QueryName_ *string `json:"_name,omitempty"`// TieBreaker Floating point number between 0 and 1.0 used to increase the relevance scores// of documents matching multiple query clauses.TieBreaker *Float64 `json:"tie_breaker,omitempty"`}DisMaxQuery type.
funcNewDisMaxQuery¶added inv8.5.0
func NewDisMaxQuery() *DisMaxQuery
NewDisMaxQuery returns a DisMaxQuery.
func (*DisMaxQuery)UnmarshalJSON¶added inv8.7.1
func (s *DisMaxQuery) UnmarshalJSON(data []byte)error
typeDiscovery¶
type Discovery struct {ClusterApplierStats *ClusterAppliedStats `json:"cluster_applier_stats,omitempty"`// ClusterStateQueue Contains statistics for the cluster state queue of the node.ClusterStateQueue *ClusterStateQueue `json:"cluster_state_queue,omitempty"`// ClusterStateUpdate Contains low-level statistics about how long various activities took during// cluster state updates while the node was the elected master.// Omitted if the node is not master-eligible.// Every field whose name ends in `_time` within this object is also represented// as a raw number of milliseconds in a field whose name ends in `_time_millis`.// The human-readable fields with a `_time` suffix are only returned if// requested with the `?human=true` query parameter.ClusterStateUpdate map[string]ClusterStateUpdate `json:"cluster_state_update,omitempty"`// PublishedClusterStates Contains statistics for the published cluster states of the node.PublishedClusterStates *PublishedClusterStates `json:"published_cluster_states,omitempty"`SerializedClusterStates *SerializedClusterState `json:"serialized_cluster_states,omitempty"`}Discovery type.
typeDiscoveryNodeCompact¶added inv8.17.0
type DiscoveryNodeCompact struct {Attributes map[string]string `json:"attributes"`EphemeralIdstring `json:"ephemeral_id"`Idstring `json:"id"`Namestring `json:"name"`TransportAddressstring `json:"transport_address"`}DiscoveryNodeCompact type.
funcNewDiscoveryNodeCompact¶added inv8.17.0
func NewDiscoveryNodeCompact() *DiscoveryNodeCompact
NewDiscoveryNodeCompact returns a DiscoveryNodeCompact.
func (*DiscoveryNodeCompact)UnmarshalJSON¶added inv8.17.0
func (s *DiscoveryNodeCompact) UnmarshalJSON(data []byte)error
typeDiscoveryNodeContent¶added inv8.17.0
type DiscoveryNodeContent struct {Attributes map[string]string `json:"attributes"`EphemeralIdstring `json:"ephemeral_id"`ExternalIdstring `json:"external_id"`MaxIndexVersionint `json:"max_index_version"`MinIndexVersionint `json:"min_index_version"`Name *string `json:"name,omitempty"`Roles []string `json:"roles"`TransportAddressstring `json:"transport_address"`Versionstring `json:"version"`}DiscoveryNodeContent type.
funcNewDiscoveryNodeContent¶added inv8.17.0
func NewDiscoveryNodeContent() *DiscoveryNodeContent
NewDiscoveryNodeContent returns a DiscoveryNodeContent.
func (*DiscoveryNodeContent)UnmarshalJSON¶added inv8.17.0
func (s *DiscoveryNodeContent) UnmarshalJSON(data []byte)error
typeDiskIndicator¶added inv8.7.1
type DiskIndicator struct {Details *DiskIndicatorDetails `json:"details,omitempty"`Diagnosis []Diagnosis `json:"diagnosis,omitempty"`Impacts []Impact `json:"impacts,omitempty"`Statusindicatorhealthstatus.IndicatorHealthStatus `json:"status"`Symptomstring `json:"symptom"`}DiskIndicator type.
funcNewDiskIndicator¶added inv8.7.1
func NewDiskIndicator() *DiskIndicator
NewDiskIndicator returns a DiskIndicator.
func (*DiskIndicator)UnmarshalJSON¶added inv8.9.0
func (s *DiskIndicator) UnmarshalJSON(data []byte)error
typeDiskIndicatorDetails¶added inv8.7.1
type DiskIndicatorDetails struct {IndicesWithReadonlyBlockint64 `json:"indices_with_readonly_block"`NodesOverFloodStageWatermarkint64 `json:"nodes_over_flood_stage_watermark"`NodesOverHighWatermarkint64 `json:"nodes_over_high_watermark"`NodesWithEnoughDiskSpaceint64 `json:"nodes_with_enough_disk_space"`NodesWithUnknownDiskStatusint64 `json:"nodes_with_unknown_disk_status"`}DiskIndicatorDetails type.
funcNewDiskIndicatorDetails¶added inv8.7.1
func NewDiskIndicatorDetails() *DiskIndicatorDetails
NewDiskIndicatorDetails returns a DiskIndicatorDetails.
func (*DiskIndicatorDetails)UnmarshalJSON¶added inv8.7.1
func (s *DiskIndicatorDetails) UnmarshalJSON(data []byte)error
typeDiskUsage¶
type DiskUsage struct {FreeBytesint64 `json:"free_bytes"`FreeDiskPercentFloat64 `json:"free_disk_percent"`Pathstring `json:"path"`TotalBytesint64 `json:"total_bytes"`UsedBytesint64 `json:"used_bytes"`UsedDiskPercentFloat64 `json:"used_disk_percent"`}DiskUsage type.
func (*DiskUsage)UnmarshalJSON¶added inv8.7.1
typeDissectProcessor¶
type DissectProcessor struct {// AppendSeparator The character(s) that separate the appended fields.AppendSeparator *string `json:"append_separator,omitempty"`// Description Description of the processor.// Useful for describing the purpose of the processor or its configuration.Description *string `json:"description,omitempty"`// Field The field to dissect.Fieldstring `json:"field"`// If Conditionally execute the processor.If *string `json:"if,omitempty"`// IgnoreFailure Ignore failures for the processor.IgnoreFailure *bool `json:"ignore_failure,omitempty"`// IgnoreMissing If `true` and `field` does not exist or is `null`, the processor quietly// exits without modifying the document.IgnoreMissing *bool `json:"ignore_missing,omitempty"`// OnFailure Handle failures for the processor.OnFailure []ProcessorContainer `json:"on_failure,omitempty"`// Pattern The pattern to apply to the field.Patternstring `json:"pattern"`// Tag Identifier for the processor.// Useful for debugging and metrics.Tag *string `json:"tag,omitempty"`}DissectProcessor type.
funcNewDissectProcessor¶added inv8.5.0
func NewDissectProcessor() *DissectProcessor
NewDissectProcessor returns a DissectProcessor.
func (*DissectProcessor)UnmarshalJSON¶added inv8.7.1
func (s *DissectProcessor) UnmarshalJSON(data []byte)error
typeDistanceFeatureQuery¶
type DistanceFeatureQueryany
DistanceFeatureQuery holds the union for the following types:
UntypedDistanceFeatureQueryGeoDistanceFeatureQueryDateDistanceFeatureQuery
typeDiversifiedSamplerAggregation¶
type DiversifiedSamplerAggregation struct {// ExecutionHint The type of value used for de-duplication.ExecutionHint *sampleraggregationexecutionhint.SamplerAggregationExecutionHint `json:"execution_hint,omitempty"`// Field The field used to provide values used for de-duplication.Field *string `json:"field,omitempty"`// MaxDocsPerValue Limits how many documents are permitted per choice of de-duplicating value.MaxDocsPerValue *int `json:"max_docs_per_value,omitempty"`Script *Script `json:"script,omitempty"`// ShardSize Limits how many top-scoring documents are collected in the sample processed// on each shard.ShardSize *int `json:"shard_size,omitempty"`}DiversifiedSamplerAggregation type.
funcNewDiversifiedSamplerAggregation¶added inv8.5.0
func NewDiversifiedSamplerAggregation() *DiversifiedSamplerAggregation
NewDiversifiedSamplerAggregation returns a DiversifiedSamplerAggregation.
func (*DiversifiedSamplerAggregation)UnmarshalJSON¶added inv8.7.1
func (s *DiversifiedSamplerAggregation) UnmarshalJSON(data []byte)error
typeDocStats¶
type DocStats struct {// Count Total number of non-deleted documents across all primary shards assigned to// selected nodes.// This number is based on documents in Lucene segments and may include// documents from nested fields.Countint64 `json:"count"`// Deleted Total number of deleted documents across all primary shards assigned to// selected nodes.// This number is based on documents in Lucene segments.// Elasticsearch reclaims the disk space of deleted Lucene documents when a// segment is merged.Deleted *int64 `json:"deleted,omitempty"`// TotalSize Human readable total_size_in_bytesTotalSizeByteSize `json:"total_size,omitempty"`// TotalSizeInBytes Returns the total size in bytes of all documents in this stats.// This value may be more reliable than store_stats.size_in_bytes in estimating// the index size.TotalSizeInBytesint64 `json:"total_size_in_bytes"`}DocStats type.
func (*DocStats)UnmarshalJSON¶added inv8.7.1
typeDocument¶
type Document struct {// Id_ Unique identifier for the document.// This ID must be unique within the `_index`.Id_ *string `json:"_id,omitempty"`// Index_ Name of the index containing the document.Index_ *string `json:"_index,omitempty"`// Source_ JSON body for the document.Source_json.RawMessage `json:"_source,omitempty"`}Document type.
func (*Document)UnmarshalJSON¶added inv8.7.1
typeDocumentRating¶
type DocumentRating struct {// Id_ The document ID.Id_string `json:"_id"`// Index_ The document’s index. For data streams, this should be the document’s backing// index.Index_string `json:"_index"`// Rating The document’s relevance with regard to this search request.Ratingint `json:"rating"`}DocumentRating type.
funcNewDocumentRating¶added inv8.5.0
func NewDocumentRating() *DocumentRating
NewDocumentRating returns a DocumentRating.
func (*DocumentRating)UnmarshalJSON¶added inv8.7.1
func (s *DocumentRating) UnmarshalJSON(data []byte)error
typeDocumentSimulation¶
type DocumentSimulation struct {DocumentSimulation map[string]string `json:"-"`// Id_ Unique identifier for the document. This ID must be unique within the// `_index`.Id_string `json:"_id"`// Index_ Name of the index containing the document.Index_string `json:"_index"`Ingest_Ingest `json:"_ingest"`// Routing_ Value used to send the document to a specific primary shard.Routing_ *string `json:"_routing,omitempty"`// Source_ JSON body for the document.Source_ map[string]json.RawMessage `json:"_source"`VersionType_ *versiontype.VersionType `json:"_version_type,omitempty"`Version_StringifiedVersionNumber `json:"_version,omitempty"`}DocumentSimulation type.
funcNewDocumentSimulation¶added inv8.5.0
func NewDocumentSimulation() *DocumentSimulation
NewDocumentSimulation returns a DocumentSimulation.
func (DocumentSimulation)MarshalJSON¶added inv8.5.0
func (sDocumentSimulation) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
func (*DocumentSimulation)UnmarshalJSON¶added inv8.7.1
func (s *DocumentSimulation) UnmarshalJSON(data []byte)error
typeDotExpanderProcessor¶
type DotExpanderProcessor struct {// Description Description of the processor.// Useful for describing the purpose of the processor or its configuration.Description *string `json:"description,omitempty"`// Field The field to expand into an object field.// If set to `*`, all top-level fields will be expanded.Fieldstring `json:"field"`// If Conditionally execute the processor.If *string `json:"if,omitempty"`// IgnoreFailure Ignore failures for the processor.IgnoreFailure *bool `json:"ignore_failure,omitempty"`// OnFailure Handle failures for the processor.OnFailure []ProcessorContainer `json:"on_failure,omitempty"`// Override Controls the behavior when there is already an existing nested object that// conflicts with the expanded field.// When `false`, the processor will merge conflicts by combining the old and the// new values into an array.// When `true`, the value from the expanded field will overwrite the existing// value.Override *bool `json:"override,omitempty"`// Path The field that contains the field to expand.// Only required if the field to expand is part another object field, because// the `field` option can only understand leaf fields.Path *string `json:"path,omitempty"`// Tag Identifier for the processor.// Useful for debugging and metrics.Tag *string `json:"tag,omitempty"`}DotExpanderProcessor type.
funcNewDotExpanderProcessor¶added inv8.5.0
func NewDotExpanderProcessor() *DotExpanderProcessor
NewDotExpanderProcessor returns a DotExpanderProcessor.
func (*DotExpanderProcessor)UnmarshalJSON¶added inv8.7.1
func (s *DotExpanderProcessor) UnmarshalJSON(data []byte)error
typeDoubleNumberProperty¶
type DoubleNumberProperty struct {Boost *Float64 `json:"boost,omitempty"`Coerce *bool `json:"coerce,omitempty"`CopyTo []string `json:"copy_to,omitempty"`DocValues *bool `json:"doc_values,omitempty"`Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`Fields map[string]Property `json:"fields,omitempty"`IgnoreAbove *int `json:"ignore_above,omitempty"`IgnoreMalformed *bool `json:"ignore_malformed,omitempty"`Index *bool `json:"index,omitempty"`// Meta Metadata about the field.Meta map[string]string `json:"meta,omitempty"`NullValue *Float64 `json:"null_value,omitempty"`OnScriptError *onscripterror.OnScriptError `json:"on_script_error,omitempty"`Properties map[string]Property `json:"properties,omitempty"`Script *Script `json:"script,omitempty"`Store *bool `json:"store,omitempty"`SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`// TimeSeriesDimension For internal use by Elastic only. Marks the field as a time series dimension.// Defaults to false.TimeSeriesDimension *bool `json:"time_series_dimension,omitempty"`// TimeSeriesMetric For internal use by Elastic only. Marks the field as a time series dimension.// Defaults to false.TimeSeriesMetric *timeseriesmetrictype.TimeSeriesMetricType `json:"time_series_metric,omitempty"`Typestring `json:"type,omitempty"`}DoubleNumberProperty type.
funcNewDoubleNumberProperty¶added inv8.5.0
func NewDoubleNumberProperty() *DoubleNumberProperty
NewDoubleNumberProperty returns a DoubleNumberProperty.
func (DoubleNumberProperty)MarshalJSON¶added inv8.9.0
func (sDoubleNumberProperty) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*DoubleNumberProperty)UnmarshalJSON¶added inv8.7.0
func (s *DoubleNumberProperty) UnmarshalJSON(data []byte)error
typeDoubleRangeProperty¶
type DoubleRangeProperty struct {Boost *Float64 `json:"boost,omitempty"`Coerce *bool `json:"coerce,omitempty"`CopyTo []string `json:"copy_to,omitempty"`DocValues *bool `json:"doc_values,omitempty"`Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`Fields map[string]Property `json:"fields,omitempty"`IgnoreAbove *int `json:"ignore_above,omitempty"`Index *bool `json:"index,omitempty"`// Meta Metadata about the field.Meta map[string]string `json:"meta,omitempty"`Properties map[string]Property `json:"properties,omitempty"`Store *bool `json:"store,omitempty"`SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`Typestring `json:"type,omitempty"`}DoubleRangeProperty type.
funcNewDoubleRangeProperty¶added inv8.5.0
func NewDoubleRangeProperty() *DoubleRangeProperty
NewDoubleRangeProperty returns a DoubleRangeProperty.
func (DoubleRangeProperty)MarshalJSON¶added inv8.9.0
func (sDoubleRangeProperty) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*DoubleRangeProperty)UnmarshalJSON¶added inv8.7.0
func (s *DoubleRangeProperty) UnmarshalJSON(data []byte)error
typeDoubleTermsAggregate¶
type DoubleTermsAggregate struct {BucketsBucketsDoubleTermsBucket `json:"buckets"`DocCountErrorUpperBound *int64 `json:"doc_count_error_upper_bound,omitempty"`MetaMetadata `json:"meta,omitempty"`SumOtherDocCount *int64 `json:"sum_other_doc_count,omitempty"`}DoubleTermsAggregate type.
funcNewDoubleTermsAggregate¶added inv8.5.0
func NewDoubleTermsAggregate() *DoubleTermsAggregate
NewDoubleTermsAggregate returns a DoubleTermsAggregate.
func (*DoubleTermsAggregate)UnmarshalJSON¶added inv8.7.0
func (s *DoubleTermsAggregate) UnmarshalJSON(data []byte)error
typeDoubleTermsBucket¶
type DoubleTermsBucket struct {Aggregations map[string]Aggregate `json:"-"`DocCountint64 `json:"doc_count"`DocCountErrorUpperBound *int64 `json:"doc_count_error_upper_bound,omitempty"`KeyFloat64 `json:"key"`KeyAsString *string `json:"key_as_string,omitempty"`}DoubleTermsBucket type.
funcNewDoubleTermsBucket¶added inv8.5.0
func NewDoubleTermsBucket() *DoubleTermsBucket
NewDoubleTermsBucket returns a DoubleTermsBucket.
func (DoubleTermsBucket)MarshalJSON¶
func (sDoubleTermsBucket) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
func (*DoubleTermsBucket)UnmarshalJSON¶added inv8.7.0
func (s *DoubleTermsBucket) UnmarshalJSON(data []byte)error
typeDownsampleAction¶added inv8.15.0
type DownsampleAction struct {FixedIntervalstring `json:"fixed_interval"`WaitTimeoutDuration `json:"wait_timeout,omitempty"`}DownsampleAction type.
funcNewDownsampleAction¶added inv8.15.0
func NewDownsampleAction() *DownsampleAction
NewDownsampleAction returns a DownsampleAction.
func (*DownsampleAction)UnmarshalJSON¶added inv8.15.0
func (s *DownsampleAction) UnmarshalJSON(data []byte)error
typeDownsampleConfig¶added inv8.5.0
type DownsampleConfig struct {// FixedInterval The interval at which to aggregate the original time series index.FixedIntervalstring `json:"fixed_interval"`}DownsampleConfig type.
funcNewDownsampleConfig¶added inv8.5.0
func NewDownsampleConfig() *DownsampleConfig
NewDownsampleConfig returns a DownsampleConfig.
func (*DownsampleConfig)UnmarshalJSON¶added inv8.7.1
func (s *DownsampleConfig) UnmarshalJSON(data []byte)error
typeDownsamplingRound¶added inv8.11.0
type DownsamplingRound struct {// After The duration since rollover when this downsampling round should executeAfterDuration `json:"after"`// Config The downsample configuration to execute.ConfigDownsampleConfig `json:"config"`}DownsamplingRound type.
funcNewDownsamplingRound¶added inv8.11.0
func NewDownsamplingRound() *DownsamplingRound
NewDownsamplingRound returns a DownsamplingRound.
func (*DownsamplingRound)UnmarshalJSON¶added inv8.11.0
func (s *DownsamplingRound) UnmarshalJSON(data []byte)error
typeDropProcessor¶
type DropProcessor struct {// Description Description of the processor.// Useful for describing the purpose of the processor or its configuration.Description *string `json:"description,omitempty"`// If Conditionally execute the processor.If *string `json:"if,omitempty"`// IgnoreFailure Ignore failures for the processor.IgnoreFailure *bool `json:"ignore_failure,omitempty"`// OnFailure Handle failures for the processor.OnFailure []ProcessorContainer `json:"on_failure,omitempty"`// Tag Identifier for the processor.// Useful for debugging and metrics.Tag *string `json:"tag,omitempty"`}DropProcessor type.
funcNewDropProcessor¶added inv8.5.0
func NewDropProcessor() *DropProcessor
NewDropProcessor returns a DropProcessor.
func (*DropProcessor)UnmarshalJSON¶added inv8.7.1
func (s *DropProcessor) UnmarshalJSON(data []byte)error
typeDurationValueUnitFloatMillis¶
type DurationValueUnitFloatMillisFloat64
DurationValueUnitFloatMillis type alias.
typeDutchAnalyzer¶
type DutchAnalyzer struct {StemExclusion []string `json:"stem_exclusion,omitempty"`StopwordsStopWords `json:"stopwords,omitempty"`StopwordsPath *string `json:"stopwords_path,omitempty"`Typestring `json:"type,omitempty"`}DutchAnalyzer type.
funcNewDutchAnalyzer¶added inv8.5.0
func NewDutchAnalyzer() *DutchAnalyzer
NewDutchAnalyzer returns a DutchAnalyzer.
func (DutchAnalyzer)MarshalJSON¶added inv8.9.0
func (sDutchAnalyzer) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*DutchAnalyzer)UnmarshalJSON¶added inv8.7.1
func (s *DutchAnalyzer) UnmarshalJSON(data []byte)error
typeDutchStemTokenFilter¶added inv8.19.0
type DutchStemTokenFilter struct {Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}DutchStemTokenFilter type.
funcNewDutchStemTokenFilter¶added inv8.19.0
func NewDutchStemTokenFilter() *DutchStemTokenFilter
NewDutchStemTokenFilter returns a DutchStemTokenFilter.
func (DutchStemTokenFilter)MarshalJSON¶added inv8.19.0
func (sDutchStemTokenFilter) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*DutchStemTokenFilter)UnmarshalJSON¶added inv8.19.0
func (s *DutchStemTokenFilter) UnmarshalJSON(data []byte)error
typeDynamicProperty¶
type DynamicProperty struct {Analyzer *string `json:"analyzer,omitempty"`Boost *Float64 `json:"boost,omitempty"`Coerce *bool `json:"coerce,omitempty"`CopyTo []string `json:"copy_to,omitempty"`DocValues *bool `json:"doc_values,omitempty"`Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`EagerGlobalOrdinals *bool `json:"eager_global_ordinals,omitempty"`Enabled *bool `json:"enabled,omitempty"`Fields map[string]Property `json:"fields,omitempty"`Format *string `json:"format,omitempty"`IgnoreAbove *int `json:"ignore_above,omitempty"`IgnoreMalformed *bool `json:"ignore_malformed,omitempty"`Index *bool `json:"index,omitempty"`IndexOptions *indexoptions.IndexOptions `json:"index_options,omitempty"`IndexPhrases *bool `json:"index_phrases,omitempty"`IndexPrefixes *TextIndexPrefixes `json:"index_prefixes,omitempty"`Locale *string `json:"locale,omitempty"`// Meta Metadata about the field.Meta map[string]string `json:"meta,omitempty"`Norms *bool `json:"norms,omitempty"`NullValueFieldValue `json:"null_value,omitempty"`OnScriptError *onscripterror.OnScriptError `json:"on_script_error,omitempty"`PositionIncrementGap *int `json:"position_increment_gap,omitempty"`PrecisionStep *int `json:"precision_step,omitempty"`Properties map[string]Property `json:"properties,omitempty"`Script *Script `json:"script,omitempty"`SearchAnalyzer *string `json:"search_analyzer,omitempty"`SearchQuoteAnalyzer *string `json:"search_quote_analyzer,omitempty"`Store *bool `json:"store,omitempty"`SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`TermVector *termvectoroption.TermVectorOption `json:"term_vector,omitempty"`TimeSeriesMetric *timeseriesmetrictype.TimeSeriesMetricType `json:"time_series_metric,omitempty"`Typestring `json:"type,omitempty"`}DynamicProperty type.
funcNewDynamicProperty¶added inv8.5.0
func NewDynamicProperty() *DynamicProperty
NewDynamicProperty returns a DynamicProperty.
func (DynamicProperty)MarshalJSON¶added inv8.9.0
func (sDynamicProperty) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*DynamicProperty)UnmarshalJSON¶added inv8.7.0
func (s *DynamicProperty) UnmarshalJSON(data []byte)error
typeDynamicTemplate¶
type DynamicTemplate struct {AdditionalDynamicTemplateProperty map[string]json.RawMessage `json:"-"`MappingProperty `json:"mapping,omitempty"`Match []string `json:"match,omitempty"`MatchMappingType []string `json:"match_mapping_type,omitempty"`MatchPattern *matchtype.MatchType `json:"match_pattern,omitempty"`PathMatch []string `json:"path_match,omitempty"`PathUnmatch []string `json:"path_unmatch,omitempty"`Runtime *RuntimeField `json:"runtime,omitempty"`Unmatch []string `json:"unmatch,omitempty"`UnmatchMappingType []string `json:"unmatch_mapping_type,omitempty"`}DynamicTemplate type.
funcNewDynamicTemplate¶added inv8.5.0
func NewDynamicTemplate() *DynamicTemplate
NewDynamicTemplate returns a DynamicTemplate.
func (DynamicTemplate)MarshalJSON¶added inv8.18.0
func (sDynamicTemplate) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
func (*DynamicTemplate)UnmarshalJSON¶added inv8.7.0
func (s *DynamicTemplate) UnmarshalJSON(data []byte)error
typeEdgeNGramTokenFilter¶
type EdgeNGramTokenFilter struct {// MaxGram Maximum character length of a gram. For custom token filters, defaults to// `2`. For the built-in edge_ngram filter, defaults to `1`.MaxGram *int `json:"max_gram,omitempty"`// MinGram Minimum character length of a gram. Defaults to `1`.MinGram *int `json:"min_gram,omitempty"`// PreserveOriginal Emits original token when set to `true`. Defaults to `false`.PreserveOriginalStringifiedboolean `json:"preserve_original,omitempty"`// Side Indicates whether to truncate tokens from the `front` or `back`. Defaults to// `front`.Side *edgengramside.EdgeNGramSide `json:"side,omitempty"`Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}EdgeNGramTokenFilter type.
funcNewEdgeNGramTokenFilter¶added inv8.5.0
func NewEdgeNGramTokenFilter() *EdgeNGramTokenFilter
NewEdgeNGramTokenFilter returns a EdgeNGramTokenFilter.
func (EdgeNGramTokenFilter)MarshalJSON¶added inv8.9.0
func (sEdgeNGramTokenFilter) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*EdgeNGramTokenFilter)UnmarshalJSON¶added inv8.7.1
func (s *EdgeNGramTokenFilter) UnmarshalJSON(data []byte)error
typeEdgeNGramTokenizer¶
type EdgeNGramTokenizer struct {CustomTokenChars *string `json:"custom_token_chars,omitempty"`MaxGram *int `json:"max_gram,omitempty"`MinGram *int `json:"min_gram,omitempty"`TokenChars []tokenchar.TokenChar `json:"token_chars,omitempty"`Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}EdgeNGramTokenizer type.
funcNewEdgeNGramTokenizer¶added inv8.5.0
func NewEdgeNGramTokenizer() *EdgeNGramTokenizer
NewEdgeNGramTokenizer returns a EdgeNGramTokenizer.
func (EdgeNGramTokenizer)MarshalJSON¶added inv8.9.0
func (sEdgeNGramTokenizer) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*EdgeNGramTokenizer)UnmarshalJSON¶added inv8.7.1
func (s *EdgeNGramTokenizer) UnmarshalJSON(data []byte)error
typeElasticsearchError¶added inv8.7.0
type ElasticsearchError struct {ErrorCauseErrorCause `json:"error"`Statusint `json:"status"`}An ElasticsearchError represent the exception raisedby the server and sent as json payloads.
funcNewElasticsearchError¶added inv8.7.0
func NewElasticsearchError() *ElasticsearchError
NewElasticsearchError returns a ElasticsearchError.
func (ElasticsearchError)As¶added inv8.7.0
func (eElasticsearchError) As(err interface{})bool
As implements errors.As interface to allow type matching of ElasticsearchError.
func (ElasticsearchError)Error¶added inv8.7.0
func (eElasticsearchError) Error()string
Error implements error string serialization of the ElasticsearchError.
func (ElasticsearchError)Is¶added inv8.7.0
func (eElasticsearchError) Is(errerror)bool
Is implements errors.Is interface to allow value comparison within ElasticsearchError.It checks for always present values only: Status & ErrorCause.Type.
func (*ElasticsearchError)UnmarshalJSON¶added inv8.19.0
func (e *ElasticsearchError) UnmarshalJSON(data []byte)error
typeElasticsearchServiceSettings¶added inv8.18.0
type ElasticsearchServiceSettings struct {// AdaptiveAllocations Adaptive allocations configuration details.// If `enabled` is true, the number of allocations of the model is set based on// the current load the process gets.// When the load is high, a new model allocation is automatically created,// respecting the value of `max_number_of_allocations` if it's set.// When the load is low, a model allocation is automatically removed, respecting// the value of `min_number_of_allocations` if it's set.// If `enabled` is true, do not set the number of allocations manually.AdaptiveAllocations *AdaptiveAllocations `json:"adaptive_allocations,omitempty"`// DeploymentId The deployment identifier for a trained model deployment.// When `deployment_id` is used the `model_id` is optional.DeploymentId *string `json:"deployment_id,omitempty"`// ModelId The name of the model to use for the inference task.// It can be the ID of a built-in model (for example, `.multilingual-e5-small`// for E5) or a text embedding model that was uploaded by using the Eland// client.ModelIdstring `json:"model_id"`// NumAllocations The total number of allocations that are assigned to the model across machine// learning nodes.// Increasing this value generally increases the throughput.// If adaptive allocations are enabled, do not set this value because it's// automatically set.NumAllocations *int `json:"num_allocations,omitempty"`// NumThreads The number of threads used by each model allocation during inference.// This setting generally increases the speed per inference request.// The inference process is a compute-bound process; `threads_per_allocations`// must not exceed the number of available allocated processors per node.// The value must be a power of 2.// The maximum value is 32.NumThreadsint `json:"num_threads"`}ElasticsearchServiceSettings type.
funcNewElasticsearchServiceSettings¶added inv8.18.0
func NewElasticsearchServiceSettings() *ElasticsearchServiceSettings
NewElasticsearchServiceSettings returns a ElasticsearchServiceSettings.
func (*ElasticsearchServiceSettings)UnmarshalJSON¶added inv8.18.0
func (s *ElasticsearchServiceSettings) UnmarshalJSON(data []byte)error
typeElasticsearchTaskSettings¶added inv8.18.0
type ElasticsearchTaskSettings struct {// ReturnDocuments For a `rerank` task, return the document instead of only the index.ReturnDocuments *bool `json:"return_documents,omitempty"`}ElasticsearchTaskSettings type.
funcNewElasticsearchTaskSettings¶added inv8.18.0
func NewElasticsearchTaskSettings() *ElasticsearchTaskSettings
NewElasticsearchTaskSettings returns a ElasticsearchTaskSettings.
func (*ElasticsearchTaskSettings)UnmarshalJSON¶added inv8.18.0
func (s *ElasticsearchTaskSettings) UnmarshalJSON(data []byte)error
typeElasticsearchVersionInfo¶
type ElasticsearchVersionInfo struct {// BuildDate The Elasticsearch Git commit's date.BuildDateDateTime `json:"build_date"`// BuildFlavor The build flavor. For example, `default`.BuildFlavorstring `json:"build_flavor"`// BuildHash The Elasticsearch Git commit's SHA hash.BuildHashstring `json:"build_hash"`// BuildSnapshot Indicates whether the Elasticsearch build was a snapshot.BuildSnapshotbool `json:"build_snapshot"`// BuildType The build type that corresponds to how Elasticsearch was installed.// For example, `docker`, `rpm`, or `tar`.BuildTypestring `json:"build_type"`// Int The Elasticsearch version number.//// ::: IMPORTANT: For Serverless deployments, this static value is always// `8.11.0` and is used solely for backward compatibility with legacy clients.////Serverless environments are versionless and automatically upgraded, so this//// value can be safely ignored.Intstring `json:"number"`// LuceneVersion The version number of Elasticsearch's underlying Lucene software.LuceneVersionstring `json:"lucene_version"`// MinimumIndexCompatibilityVersion The minimum index version with which the responding node can read from disk.MinimumIndexCompatibilityVersionstring `json:"minimum_index_compatibility_version"`// MinimumWireCompatibilityVersion The minimum node version with which the responding node can communicate.// Also the minimum version from which you can perform a rolling upgrade.MinimumWireCompatibilityVersionstring `json:"minimum_wire_compatibility_version"`}ElasticsearchVersionInfo type.
funcNewElasticsearchVersionInfo¶added inv8.5.0
func NewElasticsearchVersionInfo() *ElasticsearchVersionInfo
NewElasticsearchVersionInfo returns a ElasticsearchVersionInfo.
func (*ElasticsearchVersionInfo)UnmarshalJSON¶added inv8.7.1
func (s *ElasticsearchVersionInfo) UnmarshalJSON(data []byte)error
typeElasticsearchVersionMinInfo¶added inv8.13.0
type ElasticsearchVersionMinInfo struct {BuildFlavorstring `json:"build_flavor"`Intstring `json:"number"`MinimumIndexCompatibilityVersionstring `json:"minimum_index_compatibility_version"`MinimumWireCompatibilityVersionstring `json:"minimum_wire_compatibility_version"`}ElasticsearchVersionMinInfo type.
funcNewElasticsearchVersionMinInfo¶added inv8.13.0
func NewElasticsearchVersionMinInfo() *ElasticsearchVersionMinInfo
NewElasticsearchVersionMinInfo returns a ElasticsearchVersionMinInfo.
func (*ElasticsearchVersionMinInfo)UnmarshalJSON¶added inv8.13.0
func (s *ElasticsearchVersionMinInfo) UnmarshalJSON(data []byte)error
typeElisionTokenFilter¶
type ElisionTokenFilter struct {// Articles List of elisions to remove.// To be removed, the elision must be at the beginning of a token and be// immediately followed by an apostrophe. Both the elision and apostrophe are// removed.// For custom `elision` filters, either this parameter or `articles_path` must// be specified.Articles []string `json:"articles,omitempty"`// ArticlesCase If `true`, elision matching is case insensitive. If `false`, elision matching// is case sensitive. Defaults to `false`.ArticlesCaseStringifiedboolean `json:"articles_case,omitempty"`// ArticlesPath Path to a file that contains a list of elisions to remove.// This path must be absolute or relative to the `config` location, and the file// must be UTF-8 encoded. Each elision in the file must be separated by a line// break.// To be removed, the elision must be at the beginning of a token and be// immediately followed by an apostrophe. Both the elision and apostrophe are// removed.// For custom `elision` filters, either this parameter or `articles` must be// specified.ArticlesPath *string `json:"articles_path,omitempty"`Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}ElisionTokenFilter type.
funcNewElisionTokenFilter¶added inv8.5.0
func NewElisionTokenFilter() *ElisionTokenFilter
NewElisionTokenFilter returns a ElisionTokenFilter.
func (ElisionTokenFilter)MarshalJSON¶added inv8.9.0
func (sElisionTokenFilter) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*ElisionTokenFilter)UnmarshalJSON¶added inv8.7.1
func (s *ElisionTokenFilter) UnmarshalJSON(data []byte)error
typeElserServiceSettings¶added inv8.18.0
type ElserServiceSettings struct {// AdaptiveAllocations Adaptive allocations configuration details.// If `enabled` is true, the number of allocations of the model is set based on// the current load the process gets.// When the load is high, a new model allocation is automatically created,// respecting the value of `max_number_of_allocations` if it's set.// When the load is low, a model allocation is automatically removed, respecting// the value of `min_number_of_allocations` if it's set.// If `enabled` is true, do not set the number of allocations manually.AdaptiveAllocations *AdaptiveAllocations `json:"adaptive_allocations,omitempty"`// NumAllocations The total number of allocations this model is assigned across machine// learning nodes.// Increasing this value generally increases the throughput.// If adaptive allocations is enabled, do not set this value because it's// automatically set.NumAllocationsint `json:"num_allocations"`// NumThreads The number of threads used by each model allocation during inference.// Increasing this value generally increases the speed per inference request.// The inference process is a compute-bound process; `threads_per_allocations`// must not exceed the number of available allocated processors per node.// The value must be a power of 2.// The maximum value is 32.//// > info// > If you want to optimize your ELSER endpoint for ingest, set the number of// threads to 1. If you want to optimize your ELSER endpoint for search, set the// number of threads to greater than 1.NumThreadsint `json:"num_threads"`}ElserServiceSettings type.
funcNewElserServiceSettings¶added inv8.18.0
func NewElserServiceSettings() *ElserServiceSettings
NewElserServiceSettings returns a ElserServiceSettings.
func (*ElserServiceSettings)UnmarshalJSON¶added inv8.18.0
func (s *ElserServiceSettings) UnmarshalJSON(data []byte)error
typeEmail¶
type Email struct {Attachments map[string]EmailAttachmentContainer `json:"attachments,omitempty"`Bcc []string `json:"bcc,omitempty"`Body *EmailBody `json:"body,omitempty"`Cc []string `json:"cc,omitempty"`From *string `json:"from,omitempty"`Id *string `json:"id,omitempty"`Priority *emailpriority.EmailPriority `json:"priority,omitempty"`ReplyTo []string `json:"reply_to,omitempty"`SentDateDateTime `json:"sent_date,omitempty"`Subjectstring `json:"subject"`To []string `json:"to"`}Email type.
func (*Email)UnmarshalJSON¶added inv8.7.1
typeEmailAction¶
type EmailAction struct {Attachments map[string]EmailAttachmentContainer `json:"attachments,omitempty"`Bcc []string `json:"bcc,omitempty"`Body *EmailBody `json:"body,omitempty"`Cc []string `json:"cc,omitempty"`From *string `json:"from,omitempty"`Id *string `json:"id,omitempty"`Priority *emailpriority.EmailPriority `json:"priority,omitempty"`ReplyTo []string `json:"reply_to,omitempty"`SentDateDateTime `json:"sent_date,omitempty"`Subjectstring `json:"subject"`To []string `json:"to"`}EmailAction type.
funcNewEmailAction¶added inv8.5.0
func NewEmailAction() *EmailAction
NewEmailAction returns a EmailAction.
func (*EmailAction)UnmarshalJSON¶added inv8.7.1
func (s *EmailAction) UnmarshalJSON(data []byte)error
typeEmailAttachmentContainer¶
type EmailAttachmentContainer struct {AdditionalEmailAttachmentContainerProperty map[string]json.RawMessage `json:"-"`Data *DataEmailAttachment `json:"data,omitempty"`Http *HttpEmailAttachment `json:"http,omitempty"`Reporting *ReportingEmailAttachment `json:"reporting,omitempty"`}EmailAttachmentContainer type.
funcNewEmailAttachmentContainer¶added inv8.5.0
func NewEmailAttachmentContainer() *EmailAttachmentContainer
NewEmailAttachmentContainer returns a EmailAttachmentContainer.
func (EmailAttachmentContainer)MarshalJSON¶added inv8.18.0
func (sEmailAttachmentContainer) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
typeEmailResult¶
type EmailResult struct {Account *string `json:"account,omitempty"`MessageEmail `json:"message"`Reason *string `json:"reason,omitempty"`}EmailResult type.
funcNewEmailResult¶added inv8.5.0
func NewEmailResult() *EmailResult
NewEmailResult returns a EmailResult.
func (*EmailResult)UnmarshalJSON¶added inv8.9.0
func (s *EmailResult) UnmarshalJSON(data []byte)error
typeEmptyObject¶
type EmptyObject struct {}EmptyObject type.
funcNewEmptyObject¶added inv8.5.0
func NewEmptyObject() *EmptyObject
NewEmptyObject returns a EmptyObject.
typeEnglishAnalyzer¶added inv8.16.0
type EnglishAnalyzer struct {StemExclusion []string `json:"stem_exclusion,omitempty"`StopwordsStopWords `json:"stopwords,omitempty"`StopwordsPath *string `json:"stopwords_path,omitempty"`Typestring `json:"type,omitempty"`}EnglishAnalyzer type.
funcNewEnglishAnalyzer¶added inv8.16.0
func NewEnglishAnalyzer() *EnglishAnalyzer
NewEnglishAnalyzer returns a EnglishAnalyzer.
func (EnglishAnalyzer)MarshalJSON¶added inv8.16.0
func (sEnglishAnalyzer) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*EnglishAnalyzer)UnmarshalJSON¶added inv8.16.0
func (s *EnglishAnalyzer) UnmarshalJSON(data []byte)error
typeEnrichPolicy¶added inv8.5.0
type EnrichPolicy struct {ElasticsearchVersion *string `json:"elasticsearch_version,omitempty"`EnrichFields []string `json:"enrich_fields"`Indices []string `json:"indices"`MatchFieldstring `json:"match_field"`Name *string `json:"name,omitempty"`Query *Query `json:"query,omitempty"`}EnrichPolicy type.
funcNewEnrichPolicy¶added inv8.5.0
func NewEnrichPolicy() *EnrichPolicy
NewEnrichPolicy returns a EnrichPolicy.
func (*EnrichPolicy)UnmarshalJSON¶added inv8.7.1
func (s *EnrichPolicy) UnmarshalJSON(data []byte)error
typeEnrichProcessor¶
type EnrichProcessor struct {// Description Description of the processor.// Useful for describing the purpose of the processor or its configuration.Description *string `json:"description,omitempty"`// Field The field in the input document that matches the policies match_field used to// retrieve the enrichment data.// Supports template snippets.Fieldstring `json:"field"`// If Conditionally execute the processor.If *string `json:"if,omitempty"`// IgnoreFailure Ignore failures for the processor.IgnoreFailure *bool `json:"ignore_failure,omitempty"`// IgnoreMissing If `true` and `field` does not exist, the processor quietly exits without// modifying the document.IgnoreMissing *bool `json:"ignore_missing,omitempty"`// MaxMatches The maximum number of matched documents to include under the configured// target field.// The `target_field` will be turned into a json array if `max_matches` is// higher than 1, otherwise `target_field` will become a json object.// In order to avoid documents getting too large, the maximum allowed value is// 128.MaxMatches *int `json:"max_matches,omitempty"`// OnFailure Handle failures for the processor.OnFailure []ProcessorContainer `json:"on_failure,omitempty"`// Override If processor will update fields with pre-existing non-null-valued field.// When set to `false`, such fields will not be touched.Override *bool `json:"override,omitempty"`// PolicyName The name of the enrich policy to use.PolicyNamestring `json:"policy_name"`// ShapeRelation A spatial relation operator used to match the geoshape of incoming documents// to documents in the enrich index.// This option is only used for `geo_match` enrich policy types.ShapeRelation *geoshaperelation.GeoShapeRelation `json:"shape_relation,omitempty"`// Tag Identifier for the processor.// Useful for debugging and metrics.Tag *string `json:"tag,omitempty"`// TargetField Field added to incoming documents to contain enrich data. This field contains// both the `match_field` and `enrich_fields` specified in the enrich policy.// Supports template snippets.TargetFieldstring `json:"target_field"`}EnrichProcessor type.
funcNewEnrichProcessor¶added inv8.5.0
func NewEnrichProcessor() *EnrichProcessor
NewEnrichProcessor returns a EnrichProcessor.
func (*EnrichProcessor)UnmarshalJSON¶added inv8.7.1
func (s *EnrichProcessor) UnmarshalJSON(data []byte)error
typeEnsemble¶
type Ensemble struct {AggregateOutput *AggregateOutput `json:"aggregate_output,omitempty"`ClassificationLabels []string `json:"classification_labels,omitempty"`FeatureNames []string `json:"feature_names,omitempty"`TargetType *string `json:"target_type,omitempty"`TrainedModels []TrainedModel `json:"trained_models"`}Ensemble type.
func (*Ensemble)UnmarshalJSON¶added inv8.9.0
typeEql¶
type Eql struct {Availablebool `json:"available"`Enabledbool `json:"enabled"`FeaturesEqlFeatures `json:"features"`Queries map[string]XpackQuery `json:"queries"`}Eql type.
func (*Eql)UnmarshalJSON¶added inv8.7.1
typeEqlFeatures¶
type EqlFeatures struct {Eventuint `json:"event"`Joinuint `json:"join"`JoinsEqlFeaturesJoin `json:"joins"`KeysEqlFeaturesKeys `json:"keys"`PipesEqlFeaturesPipes `json:"pipes"`Sequenceuint `json:"sequence"`SequencesEqlFeaturesSequences `json:"sequences"`}EqlFeatures type.
funcNewEqlFeatures¶added inv8.5.0
func NewEqlFeatures() *EqlFeatures
NewEqlFeatures returns a EqlFeatures.
typeEqlFeaturesJoin¶
type EqlFeaturesJoin struct {JoinQueriesFiveOrMoreuint `json:"join_queries_five_or_more"`JoinQueriesFouruint `json:"join_queries_four"`JoinQueriesThreeuint `json:"join_queries_three"`JoinQueriesTwouint `json:"join_queries_two"`JoinUntiluint `json:"join_until"`}EqlFeaturesJoin type.
funcNewEqlFeaturesJoin¶added inv8.5.0
func NewEqlFeaturesJoin() *EqlFeaturesJoin
NewEqlFeaturesJoin returns a EqlFeaturesJoin.
typeEqlFeaturesKeys¶
type EqlFeaturesKeys struct {JoinKeysFiveOrMoreuint `json:"join_keys_five_or_more"`JoinKeysFouruint `json:"join_keys_four"`JoinKeysOneuint `json:"join_keys_one"`JoinKeysThreeuint `json:"join_keys_three"`JoinKeysTwouint `json:"join_keys_two"`}EqlFeaturesKeys type.
funcNewEqlFeaturesKeys¶added inv8.5.0
func NewEqlFeaturesKeys() *EqlFeaturesKeys
NewEqlFeaturesKeys returns a EqlFeaturesKeys.
typeEqlFeaturesPipes¶
EqlFeaturesPipes type.
funcNewEqlFeaturesPipes¶added inv8.5.0
func NewEqlFeaturesPipes() *EqlFeaturesPipes
NewEqlFeaturesPipes returns a EqlFeaturesPipes.
typeEqlFeaturesSequences¶
type EqlFeaturesSequences struct {SequenceMaxspanuint `json:"sequence_maxspan"`SequenceQueriesFiveOrMoreuint `json:"sequence_queries_five_or_more"`SequenceQueriesFouruint `json:"sequence_queries_four"`SequenceQueriesThreeuint `json:"sequence_queries_three"`SequenceQueriesTwouint `json:"sequence_queries_two"`SequenceUntiluint `json:"sequence_until"`}EqlFeaturesSequences type.
funcNewEqlFeaturesSequences¶added inv8.5.0
func NewEqlFeaturesSequences() *EqlFeaturesSequences
NewEqlFeaturesSequences returns a EqlFeaturesSequences.
typeEqlHits¶
type EqlHits struct {// Events Contains events matching the query. Each object represents a matching event.Events []HitsEvent `json:"events,omitempty"`// Sequences Contains event sequences matching the query. Each object represents a// matching sequence. This parameter is only returned for EQL queries containing// a sequence.Sequences []HitsSequence `json:"sequences,omitempty"`// Total Metadata about the number of matching events or sequences.Total *TotalHits `json:"total,omitempty"`}EqlHits type.
typeErrorCause¶
type ErrorCause struct {CausedBy *ErrorCause `json:"caused_by,omitempty"`Metadata map[string]json.RawMessage `json:"-"`// Reason A human-readable explanation of the error, in English.Reason *string `json:"reason,omitempty"`RootCause []ErrorCause `json:"root_cause,omitempty"`// StackTrace The server stack trace. Present only if the `error_trace=true` parameter was// sent with the request.StackTrace *string `json:"stack_trace,omitempty"`Suppressed []ErrorCause `json:"suppressed,omitempty"`// Type The type of errorTypestring `json:"type"`}ErrorCause type.
func (ErrorCause)MarshalJSON¶
func (sErrorCause) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
func (*ErrorCause)UnmarshalJSON¶added inv8.9.0
func (s *ErrorCause) UnmarshalJSON(data []byte)error
typeErrorResponseBase¶
type ErrorResponseBase struct {ErrorErrorCause `json:"error"`Statusint `json:"status"`}ErrorResponseBase type.
funcNewErrorResponseBase¶added inv8.12.0
func NewErrorResponseBase() *ErrorResponseBase
NewErrorResponseBase returns a ErrorResponseBase.
func (*ErrorResponseBase)UnmarshalJSON¶added inv8.12.0
func (s *ErrorResponseBase) UnmarshalJSON(data []byte)error
typeEsqlClusterDetails¶added inv8.19.0
type EsqlClusterDetails struct {Indicesstring `json:"indices"`Shards_ *EsqlShardInfo `json:"_shards,omitempty"`Statusesqlclusterstatus.EsqlClusterStatus `json:"status"`Took *int64 `json:"took,omitempty"`}EsqlClusterDetails type.
funcNewEsqlClusterDetails¶added inv8.19.0
func NewEsqlClusterDetails() *EsqlClusterDetails
NewEsqlClusterDetails returns a EsqlClusterDetails.
func (*EsqlClusterDetails)UnmarshalJSON¶added inv8.19.0
func (s *EsqlClusterDetails) UnmarshalJSON(data []byte)error
typeEsqlClusterInfo¶added inv8.19.0
type EsqlClusterInfo struct {Details map[string]EsqlClusterDetails `json:"details"`Failedint `json:"failed"`Partialint `json:"partial"`Runningint `json:"running"`Skippedint `json:"skipped"`Successfulint `json:"successful"`Totalint `json:"total"`}EsqlClusterInfo type.
funcNewEsqlClusterInfo¶added inv8.19.0
func NewEsqlClusterInfo() *EsqlClusterInfo
NewEsqlClusterInfo returns a EsqlClusterInfo.
func (*EsqlClusterInfo)UnmarshalJSON¶added inv8.19.0
func (s *EsqlClusterInfo) UnmarshalJSON(data []byte)error
typeEsqlColumnInfo¶added inv8.19.0
EsqlColumnInfo type.
funcNewEsqlColumnInfo¶added inv8.19.0
func NewEsqlColumnInfo() *EsqlColumnInfo
NewEsqlColumnInfo returns a EsqlColumnInfo.
func (*EsqlColumnInfo)UnmarshalJSON¶added inv8.19.0
func (s *EsqlColumnInfo) UnmarshalJSON(data []byte)error
typeEsqlShardFailure¶added inv8.19.0
type EsqlShardFailure struct {Indexstring `json:"index"`Node *string `json:"node,omitempty"`ReasonErrorCause `json:"reason"`Shardstring `json:"shard"`}EsqlShardFailure type.
funcNewEsqlShardFailure¶added inv8.19.0
func NewEsqlShardFailure() *EsqlShardFailure
NewEsqlShardFailure returns a EsqlShardFailure.
func (*EsqlShardFailure)UnmarshalJSON¶added inv8.19.0
func (s *EsqlShardFailure) UnmarshalJSON(data []byte)error
typeEsqlShardInfo¶added inv8.19.0
type EsqlShardInfo struct {Failed *int `json:"failed,omitempty"`Failures []EsqlShardFailure `json:"failures,omitempty"`Skipped *int `json:"skipped,omitempty"`Successful *int `json:"successful,omitempty"`Totalint `json:"total"`}EsqlShardInfo type.
funcNewEsqlShardInfo¶added inv8.19.0
func NewEsqlShardInfo() *EsqlShardInfo
NewEsqlShardInfo returns a EsqlShardInfo.
func (*EsqlShardInfo)UnmarshalJSON¶added inv8.19.0
func (s *EsqlShardInfo) UnmarshalJSON(data []byte)error
typeEstonianAnalyzer¶added inv8.16.0
type EstonianAnalyzer struct {StopwordsStopWords `json:"stopwords,omitempty"`StopwordsPath *string `json:"stopwords_path,omitempty"`Typestring `json:"type,omitempty"`}EstonianAnalyzer type.
funcNewEstonianAnalyzer¶added inv8.16.0
func NewEstonianAnalyzer() *EstonianAnalyzer
NewEstonianAnalyzer returns a EstonianAnalyzer.
func (EstonianAnalyzer)MarshalJSON¶added inv8.16.0
func (sEstonianAnalyzer) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*EstonianAnalyzer)UnmarshalJSON¶added inv8.16.0
func (s *EstonianAnalyzer) UnmarshalJSON(data []byte)error
typeEventDataStream¶added inv8.8.0
type EventDataStream struct {Namestring `json:"name"`}EventDataStream type.
funcNewEventDataStream¶added inv8.8.0
func NewEventDataStream() *EventDataStream
NewEventDataStream returns a EventDataStream.
func (*EventDataStream)UnmarshalJSON¶added inv8.8.0
func (s *EventDataStream) UnmarshalJSON(data []byte)error
typeEwmaModelSettings¶
type EwmaModelSettings struct {Alpha *float32 `json:"alpha,omitempty"`}EwmaModelSettings type.
funcNewEwmaModelSettings¶added inv8.5.0
func NewEwmaModelSettings() *EwmaModelSettings
NewEwmaModelSettings returns a EwmaModelSettings.
func (*EwmaModelSettings)UnmarshalJSON¶added inv8.7.1
func (s *EwmaModelSettings) UnmarshalJSON(data []byte)error
typeEwmaMovingAverageAggregation¶
type EwmaMovingAverageAggregation struct {// BucketsPath Path to the buckets that contain one set of values to correlate.BucketsPathBucketsPath `json:"buckets_path,omitempty"`// Format `DecimalFormat` pattern for the output value.// If specified, the formatted value is returned in the aggregation’s// `value_as_string` property.Format *string `json:"format,omitempty"`// GapPolicy Policy to apply when gaps are found in the data.GapPolicy *gappolicy.GapPolicy `json:"gap_policy,omitempty"`Minimize *bool `json:"minimize,omitempty"`Modelstring `json:"model,omitempty"`Predict *int `json:"predict,omitempty"`SettingsEwmaModelSettings `json:"settings"`Window *int `json:"window,omitempty"`}EwmaMovingAverageAggregation type.
funcNewEwmaMovingAverageAggregation¶added inv8.5.0
func NewEwmaMovingAverageAggregation() *EwmaMovingAverageAggregation
NewEwmaMovingAverageAggregation returns a EwmaMovingAverageAggregation.
func (EwmaMovingAverageAggregation)MarshalJSON¶added inv8.9.0
func (sEwmaMovingAverageAggregation) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*EwmaMovingAverageAggregation)UnmarshalJSON¶added inv8.7.0
func (s *EwmaMovingAverageAggregation) UnmarshalJSON(data []byte)error
typeExecuteEnrichPolicyStatus¶
type ExecuteEnrichPolicyStatus struct {Phaseenrichpolicyphase.EnrichPolicyPhase `json:"phase"`Step *string `json:"step,omitempty"`}ExecuteEnrichPolicyStatus type.
funcNewExecuteEnrichPolicyStatus¶added inv8.5.0
func NewExecuteEnrichPolicyStatus() *ExecuteEnrichPolicyStatus
NewExecuteEnrichPolicyStatus returns a ExecuteEnrichPolicyStatus.
func (*ExecuteEnrichPolicyStatus)UnmarshalJSON¶added inv8.18.0
func (s *ExecuteEnrichPolicyStatus) UnmarshalJSON(data []byte)error
typeExecutingPolicy¶
ExecutingPolicy type.
funcNewExecutingPolicy¶added inv8.5.0
func NewExecutingPolicy() *ExecutingPolicy
NewExecutingPolicy returns a ExecutingPolicy.
func (*ExecutingPolicy)UnmarshalJSON¶added inv8.7.1
func (s *ExecutingPolicy) UnmarshalJSON(data []byte)error
typeExecutionResult¶
type ExecutionResult struct {Actions []ExecutionResultAction `json:"actions"`ConditionExecutionResultCondition `json:"condition"`ExecutionDurationint64 `json:"execution_duration"`ExecutionTimeDateTime `json:"execution_time"`InputExecutionResultInput `json:"input"`}ExecutionResult type.
funcNewExecutionResult¶added inv8.5.0
func NewExecutionResult() *ExecutionResult
NewExecutionResult returns a ExecutionResult.
func (*ExecutionResult)UnmarshalJSON¶added inv8.7.1
func (s *ExecutionResult) UnmarshalJSON(data []byte)error
typeExecutionResultAction¶
type ExecutionResultAction struct {Email *EmailResult `json:"email,omitempty"`Error *ErrorCause `json:"error,omitempty"`Idstring `json:"id"`Index *IndexResult `json:"index,omitempty"`Logging *LoggingResult `json:"logging,omitempty"`Pagerduty *PagerDutyResult `json:"pagerduty,omitempty"`Reason *string `json:"reason,omitempty"`Slack *SlackResult `json:"slack,omitempty"`Statusactionstatusoptions.ActionStatusOptions `json:"status"`Typeactiontype.ActionType `json:"type"`Webhook *WebhookResult `json:"webhook,omitempty"`}ExecutionResultAction type.
funcNewExecutionResultAction¶added inv8.5.0
func NewExecutionResultAction() *ExecutionResultAction
NewExecutionResultAction returns a ExecutionResultAction.
func (*ExecutionResultAction)UnmarshalJSON¶added inv8.7.1
func (s *ExecutionResultAction) UnmarshalJSON(data []byte)error
typeExecutionResultCondition¶
type ExecutionResultCondition struct {Metbool `json:"met"`Statusactionstatusoptions.ActionStatusOptions `json:"status"`Typeconditiontype.ConditionType `json:"type"`}ExecutionResultCondition type.
funcNewExecutionResultCondition¶added inv8.5.0
func NewExecutionResultCondition() *ExecutionResultCondition
NewExecutionResultCondition returns a ExecutionResultCondition.
func (*ExecutionResultCondition)UnmarshalJSON¶added inv8.7.1
func (s *ExecutionResultCondition) UnmarshalJSON(data []byte)error
typeExecutionResultInput¶
type ExecutionResultInput struct {Payload map[string]json.RawMessage `json:"payload"`Statusactionstatusoptions.ActionStatusOptions `json:"status"`Typeinputtype.InputType `json:"type"`}ExecutionResultInput type.
funcNewExecutionResultInput¶added inv8.5.0
func NewExecutionResultInput() *ExecutionResultInput
NewExecutionResultInput returns a ExecutionResultInput.
typeExecutionState¶
type ExecutionState struct {Reason *string `json:"reason,omitempty"`Successfulbool `json:"successful"`TimestampDateTime `json:"timestamp"`}ExecutionState type.
funcNewExecutionState¶added inv8.5.0
func NewExecutionState() *ExecutionState
NewExecutionState returns a ExecutionState.
func (*ExecutionState)UnmarshalJSON¶added inv8.7.1
func (s *ExecutionState) UnmarshalJSON(data []byte)error
typeExecutionThreadPool¶
type ExecutionThreadPool struct {// MaxSize The largest size of the execution thread pool, which indicates the largest// number of concurrent running watches.MaxSizeint64 `json:"max_size"`// QueueSize The number of watches that were triggered and are currently queued.QueueSizeint64 `json:"queue_size"`}ExecutionThreadPool type.
funcNewExecutionThreadPool¶added inv8.5.0
func NewExecutionThreadPool() *ExecutionThreadPool
NewExecutionThreadPool returns a ExecutionThreadPool.
func (*ExecutionThreadPool)UnmarshalJSON¶added inv8.7.1
func (s *ExecutionThreadPool) UnmarshalJSON(data []byte)error
typeExistsQuery¶
type ExistsQuery struct {// Boost Floating point number used to decrease or increase the relevance scores of// the query.// Boost values are relative to the default value of 1.0.// A boost value between 0 and 1.0 decreases the relevance score.// A value greater than 1.0 increases the relevance score.Boost *float32 `json:"boost,omitempty"`// Field Name of the field you wish to search.Fieldstring `json:"field"`QueryName_ *string `json:"_name,omitempty"`}ExistsQuery type.
funcNewExistsQuery¶added inv8.5.0
func NewExistsQuery() *ExistsQuery
NewExistsQuery returns a ExistsQuery.
func (*ExistsQuery)UnmarshalJSON¶added inv8.7.1
func (s *ExistsQuery) UnmarshalJSON(data []byte)error
typeExplainAnalyzeToken¶
type ExplainAnalyzeToken struct {Bytesstring `json:"bytes"`EndOffsetint64 `json:"end_offset"`ExplainAnalyzeToken map[string]json.RawMessage `json:"-"`Keyword *bool `json:"keyword,omitempty"`Positionint64 `json:"position"`PositionLengthint64 `json:"positionLength"`StartOffsetint64 `json:"start_offset"`TermFrequencyint64 `json:"termFrequency"`Tokenstring `json:"token"`Typestring `json:"type"`}ExplainAnalyzeToken type.
funcNewExplainAnalyzeToken¶added inv8.5.0
func NewExplainAnalyzeToken() *ExplainAnalyzeToken
NewExplainAnalyzeToken returns a ExplainAnalyzeToken.
func (ExplainAnalyzeToken)MarshalJSON¶
func (sExplainAnalyzeToken) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
func (*ExplainAnalyzeToken)UnmarshalJSON¶added inv8.7.1
func (s *ExplainAnalyzeToken) UnmarshalJSON(data []byte)error
typeExplanation¶
type Explanation struct {Descriptionstring `json:"description"`Details []ExplanationDetail `json:"details"`Valuefloat32 `json:"value"`}Explanation type.
funcNewExplanation¶added inv8.5.0
func NewExplanation() *Explanation
NewExplanation returns a Explanation.
func (*Explanation)UnmarshalJSON¶added inv8.7.1
func (s *Explanation) UnmarshalJSON(data []byte)error
typeExplanationDetail¶
type ExplanationDetail struct {Descriptionstring `json:"description"`Details []ExplanationDetail `json:"details,omitempty"`Valuefloat32 `json:"value"`}ExplanationDetail type.
funcNewExplanationDetail¶added inv8.5.0
func NewExplanationDetail() *ExplanationDetail
NewExplanationDetail returns a ExplanationDetail.
func (*ExplanationDetail)UnmarshalJSON¶added inv8.7.1
func (s *ExplanationDetail) UnmarshalJSON(data []byte)error
typeExploreControls¶
type ExploreControls struct {// SampleDiversity To avoid the top-matching documents sample being dominated by a single source// of results, it is sometimes necessary to request diversity in the sample.// You can do this by selecting a single-value field and setting a maximum// number of documents per value for that field.SampleDiversity *SampleDiversity `json:"sample_diversity,omitempty"`// SampleSize Each hop considers a sample of the best-matching documents on each shard.// Using samples improves the speed of execution and keeps exploration focused// on meaningfully-connected terms.// Very small values (less than 50) might not provide sufficient// weight-of-evidence to identify significant connections between terms.// Very large sample sizes can dilute the quality of the results and increase// execution times.SampleSize *int `json:"sample_size,omitempty"`// Timeout The length of time in milliseconds after which exploration will be halted and// the results gathered so far are returned.// This timeout is honored on a best-effort basis.// Execution might overrun this timeout if, for example, a long pause is// encountered while FieldData is loaded for a field.TimeoutDuration `json:"timeout,omitempty"`// UseSignificance Filters associated terms so only those that are significantly associated with// your query are included.UseSignificancebool `json:"use_significance"`}ExploreControls type.
funcNewExploreControls¶added inv8.5.0
func NewExploreControls() *ExploreControls
NewExploreControls returns a ExploreControls.
func (*ExploreControls)UnmarshalJSON¶added inv8.7.1
func (s *ExploreControls) UnmarshalJSON(data []byte)error
typeExponentialAverageCalculationContext¶added inv8.17.0
type ExponentialAverageCalculationContext struct {IncrementalMetricValueMsFloat64 `json:"incremental_metric_value_ms"`LatestTimestamp *int64 `json:"latest_timestamp,omitempty"`PreviousExponentialAverageMsFloat64 `json:"previous_exponential_average_ms,omitempty"`}ExponentialAverageCalculationContext type.
funcNewExponentialAverageCalculationContext¶added inv8.17.0
func NewExponentialAverageCalculationContext() *ExponentialAverageCalculationContext
NewExponentialAverageCalculationContext returns a ExponentialAverageCalculationContext.
func (*ExponentialAverageCalculationContext)UnmarshalJSON¶added inv8.17.0
func (s *ExponentialAverageCalculationContext) UnmarshalJSON(data []byte)error
typeExtendedBoundsFieldDateMath¶
type ExtendedBoundsFieldDateMath struct {// Max Maximum value for the bound.MaxFieldDateMath `json:"max,omitempty"`// Min Minimum value for the bound.MinFieldDateMath `json:"min,omitempty"`}ExtendedBoundsFieldDateMath type.
funcNewExtendedBoundsFieldDateMath¶added inv8.5.0
func NewExtendedBoundsFieldDateMath() *ExtendedBoundsFieldDateMath
NewExtendedBoundsFieldDateMath returns a ExtendedBoundsFieldDateMath.
func (*ExtendedBoundsFieldDateMath)UnmarshalJSON¶added inv8.7.1
func (s *ExtendedBoundsFieldDateMath) UnmarshalJSON(data []byte)error
typeExtendedBoundsdouble¶
type ExtendedBoundsdouble struct {// Max Maximum value for the bound.Max *Float64 `json:"max,omitempty"`// Min Minimum value for the bound.Min *Float64 `json:"min,omitempty"`}ExtendedBoundsdouble type.
funcNewExtendedBoundsdouble¶added inv8.5.0
func NewExtendedBoundsdouble() *ExtendedBoundsdouble
NewExtendedBoundsdouble returns a ExtendedBoundsdouble.
func (*ExtendedBoundsdouble)UnmarshalJSON¶added inv8.7.1
func (s *ExtendedBoundsdouble) UnmarshalJSON(data []byte)error
typeExtendedMemoryStats¶
type ExtendedMemoryStats struct {// AdjustedTotalInBytes If the amount of physical memory has been overridden using the// `es`.`total_memory_bytes` system property then this reports the overridden// value in bytes.// Otherwise it reports the same value as `total_in_bytes`.AdjustedTotalInBytes *int64 `json:"adjusted_total_in_bytes,omitempty"`// FreeInBytes Amount of free physical memory in bytes.FreeInBytes *int64 `json:"free_in_bytes,omitempty"`// FreePercent Percentage of free memory.FreePercent *int `json:"free_percent,omitempty"`Resident *string `json:"resident,omitempty"`ResidentInBytes *int64 `json:"resident_in_bytes,omitempty"`Share *string `json:"share,omitempty"`ShareInBytes *int64 `json:"share_in_bytes,omitempty"`// TotalInBytes Total amount of physical memory in bytes.TotalInBytes *int64 `json:"total_in_bytes,omitempty"`TotalVirtual *string `json:"total_virtual,omitempty"`TotalVirtualInBytes *int64 `json:"total_virtual_in_bytes,omitempty"`// UsedInBytes Amount of used physical memory in bytes.UsedInBytes *int64 `json:"used_in_bytes,omitempty"`// UsedPercent Percentage of used memory.UsedPercent *int `json:"used_percent,omitempty"`}ExtendedMemoryStats type.
funcNewExtendedMemoryStats¶added inv8.5.0
func NewExtendedMemoryStats() *ExtendedMemoryStats
NewExtendedMemoryStats returns a ExtendedMemoryStats.
func (*ExtendedMemoryStats)UnmarshalJSON¶added inv8.7.1
func (s *ExtendedMemoryStats) UnmarshalJSON(data []byte)error
typeExtendedStatsAggregate¶
type ExtendedStatsAggregate struct {Avg *Float64 `json:"avg,omitempty"`AvgAsString *string `json:"avg_as_string,omitempty"`Countint64 `json:"count"`Max *Float64 `json:"max,omitempty"`MaxAsString *string `json:"max_as_string,omitempty"`MetaMetadata `json:"meta,omitempty"`Min *Float64 `json:"min,omitempty"`MinAsString *string `json:"min_as_string,omitempty"`StdDeviation *Float64 `json:"std_deviation,omitempty"`StdDeviationAsString *string `json:"std_deviation_as_string,omitempty"`StdDeviationBounds *StandardDeviationBounds `json:"std_deviation_bounds,omitempty"`StdDeviationBoundsAsString *StandardDeviationBoundsAsString `json:"std_deviation_bounds_as_string,omitempty"`StdDeviationPopulation *Float64 `json:"std_deviation_population,omitempty"`StdDeviationSampling *Float64 `json:"std_deviation_sampling,omitempty"`SumFloat64 `json:"sum"`SumAsString *string `json:"sum_as_string,omitempty"`SumOfSquares *Float64 `json:"sum_of_squares,omitempty"`SumOfSquaresAsString *string `json:"sum_of_squares_as_string,omitempty"`Variance *Float64 `json:"variance,omitempty"`VarianceAsString *string `json:"variance_as_string,omitempty"`VariancePopulation *Float64 `json:"variance_population,omitempty"`VariancePopulationAsString *string `json:"variance_population_as_string,omitempty"`VarianceSampling *Float64 `json:"variance_sampling,omitempty"`VarianceSamplingAsString *string `json:"variance_sampling_as_string,omitempty"`}ExtendedStatsAggregate type.
funcNewExtendedStatsAggregate¶added inv8.5.0
func NewExtendedStatsAggregate() *ExtendedStatsAggregate
NewExtendedStatsAggregate returns a ExtendedStatsAggregate.
func (*ExtendedStatsAggregate)UnmarshalJSON¶added inv8.7.1
func (s *ExtendedStatsAggregate) UnmarshalJSON(data []byte)error
typeExtendedStatsAggregation¶
type ExtendedStatsAggregation struct {// Field The field on which to run the aggregation.Field *string `json:"field,omitempty"`Format *string `json:"format,omitempty"`// Missing The value to apply to documents that do not have a value.// By default, documents without a value are ignored.MissingMissing `json:"missing,omitempty"`Script *Script `json:"script,omitempty"`// Sigma The number of standard deviations above/below the mean to display.Sigma *Float64 `json:"sigma,omitempty"`}ExtendedStatsAggregation type.
funcNewExtendedStatsAggregation¶added inv8.5.0
func NewExtendedStatsAggregation() *ExtendedStatsAggregation
NewExtendedStatsAggregation returns a ExtendedStatsAggregation.
func (*ExtendedStatsAggregation)UnmarshalJSON¶added inv8.7.1
func (s *ExtendedStatsAggregation) UnmarshalJSON(data []byte)error
typeExtendedStatsBucketAggregate¶
type ExtendedStatsBucketAggregate struct {Avg *Float64 `json:"avg,omitempty"`AvgAsString *string `json:"avg_as_string,omitempty"`Countint64 `json:"count"`Max *Float64 `json:"max,omitempty"`MaxAsString *string `json:"max_as_string,omitempty"`MetaMetadata `json:"meta,omitempty"`Min *Float64 `json:"min,omitempty"`MinAsString *string `json:"min_as_string,omitempty"`StdDeviation *Float64 `json:"std_deviation,omitempty"`StdDeviationAsString *string `json:"std_deviation_as_string,omitempty"`StdDeviationBounds *StandardDeviationBounds `json:"std_deviation_bounds,omitempty"`StdDeviationBoundsAsString *StandardDeviationBoundsAsString `json:"std_deviation_bounds_as_string,omitempty"`StdDeviationPopulation *Float64 `json:"std_deviation_population,omitempty"`StdDeviationSampling *Float64 `json:"std_deviation_sampling,omitempty"`SumFloat64 `json:"sum"`SumAsString *string `json:"sum_as_string,omitempty"`SumOfSquares *Float64 `json:"sum_of_squares,omitempty"`SumOfSquaresAsString *string `json:"sum_of_squares_as_string,omitempty"`Variance *Float64 `json:"variance,omitempty"`VarianceAsString *string `json:"variance_as_string,omitempty"`VariancePopulation *Float64 `json:"variance_population,omitempty"`VariancePopulationAsString *string `json:"variance_population_as_string,omitempty"`VarianceSampling *Float64 `json:"variance_sampling,omitempty"`VarianceSamplingAsString *string `json:"variance_sampling_as_string,omitempty"`}ExtendedStatsBucketAggregate type.
funcNewExtendedStatsBucketAggregate¶added inv8.5.0
func NewExtendedStatsBucketAggregate() *ExtendedStatsBucketAggregate
NewExtendedStatsBucketAggregate returns a ExtendedStatsBucketAggregate.
func (*ExtendedStatsBucketAggregate)UnmarshalJSON¶added inv8.7.1
func (s *ExtendedStatsBucketAggregate) UnmarshalJSON(data []byte)error
typeExtendedStatsBucketAggregation¶
type ExtendedStatsBucketAggregation struct {// BucketsPath Path to the buckets that contain one set of values to correlate.BucketsPathBucketsPath `json:"buckets_path,omitempty"`// Format `DecimalFormat` pattern for the output value.// If specified, the formatted value is returned in the aggregation’s// `value_as_string` property.Format *string `json:"format,omitempty"`// GapPolicy Policy to apply when gaps are found in the data.GapPolicy *gappolicy.GapPolicy `json:"gap_policy,omitempty"`// Sigma The number of standard deviations above/below the mean to display.Sigma *Float64 `json:"sigma,omitempty"`}ExtendedStatsBucketAggregation type.
funcNewExtendedStatsBucketAggregation¶added inv8.5.0
func NewExtendedStatsBucketAggregation() *ExtendedStatsBucketAggregation
NewExtendedStatsBucketAggregation returns a ExtendedStatsBucketAggregation.
func (*ExtendedStatsBucketAggregation)UnmarshalJSON¶added inv8.7.0
func (s *ExtendedStatsBucketAggregation) UnmarshalJSON(data []byte)error
typeFailProcessor¶
type FailProcessor struct {// Description Description of the processor.// Useful for describing the purpose of the processor or its configuration.Description *string `json:"description,omitempty"`// If Conditionally execute the processor.If *string `json:"if,omitempty"`// IgnoreFailure Ignore failures for the processor.IgnoreFailure *bool `json:"ignore_failure,omitempty"`// Message The error message thrown by the processor.// Supports template snippets.Messagestring `json:"message"`// OnFailure Handle failures for the processor.OnFailure []ProcessorContainer `json:"on_failure,omitempty"`// Tag Identifier for the processor.// Useful for debugging and metrics.Tag *string `json:"tag,omitempty"`}FailProcessor type.
funcNewFailProcessor¶added inv8.5.0
func NewFailProcessor() *FailProcessor
NewFailProcessor returns a FailProcessor.
func (*FailProcessor)UnmarshalJSON¶added inv8.7.1
func (s *FailProcessor) UnmarshalJSON(data []byte)error
typeFailureStore¶added inv8.16.0
type FailureStore struct {Enabledbool `json:"enabled"`Indices []DataStreamIndex `json:"indices"`RolloverOnWritebool `json:"rollover_on_write"`}FailureStore type.
funcNewFailureStore¶added inv8.16.0
func NewFailureStore() *FailureStore
NewFailureStore returns a FailureStore.
func (*FailureStore)UnmarshalJSON¶added inv8.16.0
func (s *FailureStore) UnmarshalJSON(data []byte)error
typeFeatureEnabled¶added inv8.15.0
type FeatureEnabled struct {Enabledbool `json:"enabled"`}FeatureEnabled type.
funcNewFeatureEnabled¶added inv8.15.0
func NewFeatureEnabled() *FeatureEnabled
NewFeatureEnabled returns a FeatureEnabled.
func (*FeatureEnabled)UnmarshalJSON¶added inv8.15.0
func (s *FeatureEnabled) UnmarshalJSON(data []byte)error
typeFeatureExtractor¶added inv8.18.0
type FeatureExtractorQueryFeatureExtractor
FeatureExtractor type alias.
typeFeatureToggle¶
type FeatureToggle struct {Enabledbool `json:"enabled"`}FeatureToggle type.
funcNewFeatureToggle¶added inv8.5.0
func NewFeatureToggle() *FeatureToggle
NewFeatureToggle returns a FeatureToggle.
func (*FeatureToggle)UnmarshalJSON¶added inv8.7.1
func (s *FeatureToggle) UnmarshalJSON(data []byte)error
typeFetchProfile¶
type FetchProfile struct {BreakdownFetchProfileBreakdown `json:"breakdown"`Children []FetchProfile `json:"children,omitempty"`Debug *FetchProfileDebug `json:"debug,omitempty"`Descriptionstring `json:"description"`TimeInNanosint64 `json:"time_in_nanos"`Typestring `json:"type"`}FetchProfile type.
funcNewFetchProfile¶added inv8.5.0
func NewFetchProfile() *FetchProfile
NewFetchProfile returns a FetchProfile.
func (*FetchProfile)UnmarshalJSON¶added inv8.7.1
func (s *FetchProfile) UnmarshalJSON(data []byte)error
typeFetchProfileBreakdown¶
type FetchProfileBreakdown struct {LoadSource *int `json:"load_source,omitempty"`LoadSourceCount *int `json:"load_source_count,omitempty"`LoadStoredFields *int `json:"load_stored_fields,omitempty"`LoadStoredFieldsCount *int `json:"load_stored_fields_count,omitempty"`NextReader *int `json:"next_reader,omitempty"`NextReaderCount *int `json:"next_reader_count,omitempty"`Process *int `json:"process,omitempty"`ProcessCount *int `json:"process_count,omitempty"`}FetchProfileBreakdown type.
funcNewFetchProfileBreakdown¶added inv8.5.0
func NewFetchProfileBreakdown() *FetchProfileBreakdown
NewFetchProfileBreakdown returns a FetchProfileBreakdown.
func (*FetchProfileBreakdown)UnmarshalJSON¶added inv8.7.1
func (s *FetchProfileBreakdown) UnmarshalJSON(data []byte)error
typeFetchProfileDebug¶
type FetchProfileDebug struct {FastPath *int `json:"fast_path,omitempty"`StoredFields []string `json:"stored_fields,omitempty"`}FetchProfileDebug type.
funcNewFetchProfileDebug¶added inv8.5.0
func NewFetchProfileDebug() *FetchProfileDebug
NewFetchProfileDebug returns a FetchProfileDebug.
func (*FetchProfileDebug)UnmarshalJSON¶added inv8.7.1
func (s *FetchProfileDebug) UnmarshalJSON(data []byte)error
typeFieldAliasProperty¶
type FieldAliasProperty struct {Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`Fields map[string]Property `json:"fields,omitempty"`IgnoreAbove *int `json:"ignore_above,omitempty"`// Meta Metadata about the field.Meta map[string]string `json:"meta,omitempty"`Path *string `json:"path,omitempty"`Properties map[string]Property `json:"properties,omitempty"`SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`Typestring `json:"type,omitempty"`}FieldAliasProperty type.
funcNewFieldAliasProperty¶added inv8.5.0
func NewFieldAliasProperty() *FieldAliasProperty
NewFieldAliasProperty returns a FieldAliasProperty.
func (FieldAliasProperty)MarshalJSON¶added inv8.9.0
func (sFieldAliasProperty) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*FieldAliasProperty)UnmarshalJSON¶added inv8.7.0
func (s *FieldAliasProperty) UnmarshalJSON(data []byte)error
typeFieldAndFormat¶
type FieldAndFormat struct {// Field A wildcard pattern. The request returns values for field names matching this// pattern.Fieldstring `json:"field"`// Format The format in which the values are returned.Format *string `json:"format,omitempty"`IncludeUnmapped *bool `json:"include_unmapped,omitempty"`}FieldAndFormat type.
funcNewFieldAndFormat¶added inv8.5.0
func NewFieldAndFormat() *FieldAndFormat
NewFieldAndFormat returns a FieldAndFormat.
func (*FieldAndFormat)UnmarshalJSON¶added inv8.7.1
func (s *FieldAndFormat) UnmarshalJSON(data []byte)error
typeFieldCapability¶
type FieldCapability struct {// Aggregatable Whether this field can be aggregated on all indices.Aggregatablebool `json:"aggregatable"`// Indices The list of indices where this field has the same type family, or null if all// indices have the same type family for the field.Indices []string `json:"indices,omitempty"`// Meta Merged metadata across all indices as a map of string keys to arrays of// values. A value length of 1 indicates that all indices had the same value for// this key, while a length of 2 or more indicates that not all indices had the// same value for this key.MetaMetadata `json:"meta,omitempty"`// MetadataField Whether this field is registered as a metadata field.MetadataField *bool `json:"metadata_field,omitempty"`// MetricConflictsIndices The list of indices where this field is present if these indices// don’t have the same `time_series_metric` value for this field.MetricConflictsIndices []string `json:"metric_conflicts_indices,omitempty"`// NonAggregatableIndices The list of indices where this field is not aggregatable, or null if all// indices have the same definition for the field.NonAggregatableIndices []string `json:"non_aggregatable_indices,omitempty"`// NonDimensionIndices If this list is present in response then some indices have the// field marked as a dimension and other indices, the ones in this list, do not.NonDimensionIndices []string `json:"non_dimension_indices,omitempty"`// NonSearchableIndices The list of indices where this field is not searchable, or null if all// indices have the same definition for the field.NonSearchableIndices []string `json:"non_searchable_indices,omitempty"`// Searchable Whether this field is indexed for search on all indices.Searchablebool `json:"searchable"`// TimeSeriesDimension Whether this field is used as a time series dimension.TimeSeriesDimension *bool `json:"time_series_dimension,omitempty"`// TimeSeriesMetric Contains metric type if this fields is used as a time series// metrics, absent if the field is not used as metric.TimeSeriesMetric *timeseriesmetrictype.TimeSeriesMetricType `json:"time_series_metric,omitempty"`Typestring `json:"type"`}FieldCapability type.
funcNewFieldCapability¶added inv8.5.0
func NewFieldCapability() *FieldCapability
NewFieldCapability returns a FieldCapability.
func (*FieldCapability)UnmarshalJSON¶added inv8.7.1
func (s *FieldCapability) UnmarshalJSON(data []byte)error
typeFieldCollapse¶
type FieldCollapse struct {Collapse *FieldCollapse `json:"collapse,omitempty"`// Field The field to collapse the result set onFieldstring `json:"field"`// InnerHits The number of inner hits and their sort orderInnerHits []InnerHits `json:"inner_hits,omitempty"`// MaxConcurrentGroupSearches The number of concurrent requests allowed to retrieve the inner_hits per// groupMaxConcurrentGroupSearches *int `json:"max_concurrent_group_searches,omitempty"`}FieldCollapse type.
funcNewFieldCollapse¶added inv8.5.0
func NewFieldCollapse() *FieldCollapse
NewFieldCollapse returns a FieldCollapse.
func (*FieldCollapse)UnmarshalJSON¶added inv8.7.1
func (s *FieldCollapse) UnmarshalJSON(data []byte)error
typeFieldDateMath¶
type FieldDateMathany
FieldDateMath holds the union for the following types:
stringFloat64
typeFieldLookup¶
type FieldLookup struct {// Id `id` of the document.Idstring `json:"id"`// Index Index from which to retrieve the document.Index *string `json:"index,omitempty"`// Path Name of the field.Path *string `json:"path,omitempty"`// Routing Custom routing value.Routing *string `json:"routing,omitempty"`}FieldLookup type.
funcNewFieldLookup¶added inv8.5.0
func NewFieldLookup() *FieldLookup
NewFieldLookup returns a FieldLookup.
func (*FieldLookup)UnmarshalJSON¶added inv8.7.1
func (s *FieldLookup) UnmarshalJSON(data []byte)error
typeFieldMapping¶
type FieldMapping struct {FullNamestring `json:"full_name"`Mapping map[string]Property `json:"mapping"`}FieldMapping type.
funcNewFieldMapping¶added inv8.5.0
func NewFieldMapping() *FieldMapping
NewFieldMapping returns a FieldMapping.
func (*FieldMapping)UnmarshalJSON¶added inv8.7.0
func (s *FieldMapping) UnmarshalJSON(data []byte)error
typeFieldMemoryUsage¶
type FieldMemoryUsage struct {MemorySizeByteSize `json:"memory_size,omitempty"`MemorySizeInBytesint64 `json:"memory_size_in_bytes"`}FieldMemoryUsage type.
funcNewFieldMemoryUsage¶added inv8.5.0
func NewFieldMemoryUsage() *FieldMemoryUsage
NewFieldMemoryUsage returns a FieldMemoryUsage.
func (*FieldMemoryUsage)UnmarshalJSON¶added inv8.7.1
func (s *FieldMemoryUsage) UnmarshalJSON(data []byte)error
typeFieldMetric¶
type FieldMetric struct {// Field The field to collect metrics for. This must be a numeric of some kind.Fieldstring `json:"field"`// Metrics An array of metrics to collect for the field. At least one metric must be// configured.Metrics []metric.Metric `json:"metrics"`}FieldMetric type.
funcNewFieldMetric¶added inv8.5.0
func NewFieldMetric() *FieldMetric
NewFieldMetric returns a FieldMetric.
func (*FieldMetric)UnmarshalJSON¶added inv8.7.1
func (s *FieldMetric) UnmarshalJSON(data []byte)error
typeFieldNamesField¶
type FieldNamesField struct {Enabledbool `json:"enabled"`}FieldNamesField type.
funcNewFieldNamesField¶added inv8.5.0
func NewFieldNamesField() *FieldNamesField
NewFieldNamesField returns a FieldNamesField.
func (*FieldNamesField)UnmarshalJSON¶added inv8.7.1
func (s *FieldNamesField) UnmarshalJSON(data []byte)error
typeFieldRule¶
type FieldRule struct {AdditionalFieldRuleProperty map[string]json.RawMessage `json:"-"`Dn []string `json:"dn,omitempty"`Groups []string `json:"groups,omitempty"`Username []string `json:"username,omitempty"`}FieldRule type.
func (FieldRule)MarshalJSON¶added inv8.18.0
MarhsalJSON overrides marshalling for types with additional properties
func (*FieldRule)UnmarshalJSON¶added inv8.7.1
typeFieldSecurity¶
type FieldSecurity struct {Except []string `json:"except,omitempty"`Grant []string `json:"grant,omitempty"`}FieldSecurity type.
funcNewFieldSecurity¶added inv8.5.0
func NewFieldSecurity() *FieldSecurity
NewFieldSecurity returns a FieldSecurity.
func (*FieldSecurity)UnmarshalJSON¶added inv8.7.1
func (s *FieldSecurity) UnmarshalJSON(data []byte)error
typeFieldSizeUsage¶
type FieldSizeUsage struct {SizeByteSize `json:"size,omitempty"`SizeInBytesint64 `json:"size_in_bytes"`}FieldSizeUsage type.
funcNewFieldSizeUsage¶added inv8.5.0
func NewFieldSizeUsage() *FieldSizeUsage
NewFieldSizeUsage returns a FieldSizeUsage.
func (*FieldSizeUsage)UnmarshalJSON¶added inv8.7.1
func (s *FieldSizeUsage) UnmarshalJSON(data []byte)error
typeFieldSort¶
type FieldSort struct {Format *string `json:"format,omitempty"`MissingMissing `json:"missing,omitempty"`Mode *sortmode.SortMode `json:"mode,omitempty"`Nested *NestedSortValue `json:"nested,omitempty"`NumericType *fieldsortnumerictype.FieldSortNumericType `json:"numeric_type,omitempty"`Order *sortorder.SortOrder `json:"order,omitempty"`UnmappedType *fieldtype.FieldType `json:"unmapped_type,omitempty"`}FieldSort type.
func (*FieldSort)UnmarshalJSON¶added inv8.7.1
typeFieldStat¶added inv8.9.0
type FieldStat struct {Cardinalityint `json:"cardinality"`Countint `json:"count"`Earliest *string `json:"earliest,omitempty"`Latest *string `json:"latest,omitempty"`MaxValue *int `json:"max_value,omitempty"`MeanValue *int `json:"mean_value,omitempty"`MedianValue *int `json:"median_value,omitempty"`MinValue *int `json:"min_value,omitempty"`TopHits []TopHit `json:"top_hits"`}FieldStat type.
func (*FieldStat)UnmarshalJSON¶added inv8.9.0
typeFieldStatistics¶
type FieldStatistics struct {DocCountint `json:"doc_count"`SumDocFreqint64 `json:"sum_doc_freq"`SumTtfint64 `json:"sum_ttf"`}FieldStatistics type.
funcNewFieldStatistics¶added inv8.5.0
func NewFieldStatistics() *FieldStatistics
NewFieldStatistics returns a FieldStatistics.
func (*FieldStatistics)UnmarshalJSON¶added inv8.7.1
func (s *FieldStatistics) UnmarshalJSON(data []byte)error
typeFieldSuggester¶
type FieldSuggester struct {AdditionalFieldSuggesterProperty map[string]json.RawMessage `json:"-"`// Completion Provides auto-complete/search-as-you-type functionality.Completion *CompletionSuggester `json:"completion,omitempty"`// Phrase Provides access to word alternatives on a per token basis within a certain// string distance.Phrase *PhraseSuggester `json:"phrase,omitempty"`// Prefix Prefix used to search for suggestions.Prefix *string `json:"prefix,omitempty"`// Regex A prefix expressed as a regular expression.Regex *string `json:"regex,omitempty"`// Term Suggests terms based on edit distance.Term *TermSuggester `json:"term,omitempty"`// Text The text to use as input for the suggester.// Needs to be set globally or per suggestion.Text *string `json:"text,omitempty"`}FieldSuggester type.
funcNewFieldSuggester¶added inv8.5.0
func NewFieldSuggester() *FieldSuggester
NewFieldSuggester returns a FieldSuggester.
func (FieldSuggester)MarshalJSON¶added inv8.18.0
func (sFieldSuggester) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
func (*FieldSuggester)UnmarshalJSON¶added inv8.9.0
func (s *FieldSuggester) UnmarshalJSON(data []byte)error
typeFieldSummary¶
type FieldSummary struct {Anyuint `json:"any"`DocValuesuint `json:"doc_values"`InvertedIndexInvertedIndex `json:"inverted_index"`KnnVectorsuint `json:"knn_vectors"`Normsuint `json:"norms"`Pointsuint `json:"points"`StoredFieldsuint `json:"stored_fields"`TermVectorsuint `json:"term_vectors"`}FieldSummary type.
funcNewFieldSummary¶added inv8.5.0
func NewFieldSummary() *FieldSummary
NewFieldSummary returns a FieldSummary.
typeFieldTypes¶
type FieldTypes struct {// Count The number of occurrences of the field type in selected nodes.Countint `json:"count"`// IndexCount The number of indices containing the field type in selected nodes.IndexCountint `json:"index_count"`// IndexedVectorCount For dense_vector field types, number of indexed vector types in selected// nodes.IndexedVectorCount *int `json:"indexed_vector_count,omitempty"`// IndexedVectorDimMax For dense_vector field types, the maximum dimension of all indexed vector// types in selected nodes.IndexedVectorDimMax *int `json:"indexed_vector_dim_max,omitempty"`// IndexedVectorDimMin For dense_vector field types, the minimum dimension of all indexed vector// types in selected nodes.IndexedVectorDimMin *int `json:"indexed_vector_dim_min,omitempty"`// Name The name for the field type in selected nodes.Namestring `json:"name"`// ScriptCount The number of fields that declare a script.ScriptCount *int `json:"script_count,omitempty"`// VectorElementTypeCount For dense_vector field types, count of mappings by element typeVectorElementTypeCount map[string]int `json:"vector_element_type_count,omitempty"`// VectorIndexTypeCount For dense_vector field types, count of mappings by index typeVectorIndexTypeCount map[string]int `json:"vector_index_type_count,omitempty"`// VectorSimilarityTypeCount For dense_vector field types, count of mappings by similarityVectorSimilarityTypeCount map[string]int `json:"vector_similarity_type_count,omitempty"`}FieldTypes type.
func (*FieldTypes)UnmarshalJSON¶added inv8.7.1
func (s *FieldTypes) UnmarshalJSON(data []byte)error
typeFieldTypesMappings¶
type FieldTypesMappings struct {// FieldTypes Contains statistics about field data types used in selected nodes.FieldTypes []FieldTypes `json:"field_types"`// RuntimeFieldTypes Contains statistics about runtime field data types used in selected nodes.RuntimeFieldTypes []ClusterRuntimeFieldTypes `json:"runtime_field_types"`// SourceModes Source mode usage count.SourceModes map[string]int `json:"source_modes"`// TotalDeduplicatedFieldCount Total number of fields in all non-system indices, accounting for mapping// deduplication.TotalDeduplicatedFieldCount *int64 `json:"total_deduplicated_field_count,omitempty"`// TotalDeduplicatedMappingSize Total size of all mappings after deduplication and compression.TotalDeduplicatedMappingSizeByteSize `json:"total_deduplicated_mapping_size,omitempty"`// TotalDeduplicatedMappingSizeInBytes Total size of all mappings, in bytes, after deduplication and compression.TotalDeduplicatedMappingSizeInBytes *int64 `json:"total_deduplicated_mapping_size_in_bytes,omitempty"`// TotalFieldCount Total number of fields in all non-system indices.TotalFieldCount *int64 `json:"total_field_count,omitempty"`}FieldTypesMappings type.
funcNewFieldTypesMappings¶added inv8.5.0
func NewFieldTypesMappings() *FieldTypesMappings
NewFieldTypesMappings returns a FieldTypesMappings.
func (*FieldTypesMappings)UnmarshalJSON¶added inv8.7.1
func (s *FieldTypesMappings) UnmarshalJSON(data []byte)error
typeFieldValue¶
type FieldValueany
FieldValue holds the union for the following types:
int64Float64stringboolniljson.RawMessage
typeFieldValueFactorScoreFunction¶
type FieldValueFactorScoreFunction struct {// Factor Optional factor to multiply the field value with.Factor *Float64 `json:"factor,omitempty"`// Field Field to be extracted from the document.Fieldstring `json:"field"`// Missing Value used if the document doesn’t have that field.// The modifier and factor are still applied to it as though it were read from// the document.Missing *Float64 `json:"missing,omitempty"`// Modifier Modifier to apply to the field value.Modifier *fieldvaluefactormodifier.FieldValueFactorModifier `json:"modifier,omitempty"`}FieldValueFactorScoreFunction type.
funcNewFieldValueFactorScoreFunction¶added inv8.5.0
func NewFieldValueFactorScoreFunction() *FieldValueFactorScoreFunction
NewFieldValueFactorScoreFunction returns a FieldValueFactorScoreFunction.
func (*FieldValueFactorScoreFunction)UnmarshalJSON¶added inv8.7.1
func (s *FieldValueFactorScoreFunction) UnmarshalJSON(data []byte)error
typeFielddataFrequencyFilter¶
type FielddataFrequencyFilter struct {MaxFloat64 `json:"max"`MinFloat64 `json:"min"`MinSegmentSizeint `json:"min_segment_size"`}FielddataFrequencyFilter type.
funcNewFielddataFrequencyFilter¶added inv8.5.0
func NewFielddataFrequencyFilter() *FielddataFrequencyFilter
NewFielddataFrequencyFilter returns a FielddataFrequencyFilter.
func (*FielddataFrequencyFilter)UnmarshalJSON¶added inv8.7.1
func (s *FielddataFrequencyFilter) UnmarshalJSON(data []byte)error
typeFielddataRecord¶
type FielddataRecord struct {// Field field nameField *string `json:"field,omitempty"`// Host host nameHost *string `json:"host,omitempty"`// Id node idId *string `json:"id,omitempty"`// Ip ip addressIp *string `json:"ip,omitempty"`// Node node nameNode *string `json:"node,omitempty"`// Size field data usageSize *string `json:"size,omitempty"`}FielddataRecord type.
funcNewFielddataRecord¶added inv8.5.0
func NewFielddataRecord() *FielddataRecord
NewFielddataRecord returns a FielddataRecord.
func (*FielddataRecord)UnmarshalJSON¶added inv8.9.0
func (s *FielddataRecord) UnmarshalJSON(data []byte)error
typeFielddataStats¶
type FielddataStats struct {Evictions *int64 `json:"evictions,omitempty"`Fields map[string]FieldMemoryUsage `json:"fields,omitempty"`GlobalOrdinalsGlobalOrdinalsStats `json:"global_ordinals"`MemorySizeByteSize `json:"memory_size,omitempty"`MemorySizeInBytesint64 `json:"memory_size_in_bytes"`}FielddataStats type.
funcNewFielddataStats¶added inv8.5.0
func NewFielddataStats() *FielddataStats
NewFielddataStats returns a FielddataStats.
func (*FielddataStats)UnmarshalJSON¶added inv8.7.1
func (s *FielddataStats) UnmarshalJSON(data []byte)error
typeFileCountSnapshotStats¶
type FileCountSnapshotStats struct {FileCountint `json:"file_count"`SizeInBytesint64 `json:"size_in_bytes"`}FileCountSnapshotStats type.
funcNewFileCountSnapshotStats¶added inv8.5.0
func NewFileCountSnapshotStats() *FileCountSnapshotStats
NewFileCountSnapshotStats returns a FileCountSnapshotStats.
func (*FileCountSnapshotStats)UnmarshalJSON¶added inv8.7.1
func (s *FileCountSnapshotStats) UnmarshalJSON(data []byte)error
typeFileDetails¶
type FileDetails struct {Lengthint64 `json:"length"`Namestring `json:"name"`Recoveredint64 `json:"recovered"`}FileDetails type.
funcNewFileDetails¶added inv8.5.0
func NewFileDetails() *FileDetails
NewFileDetails returns a FileDetails.
func (*FileDetails)UnmarshalJSON¶added inv8.7.1
func (s *FileDetails) UnmarshalJSON(data []byte)error
typeFileSystem¶
type FileSystem struct {// Data List of all file stores.Data []DataPathStats `json:"data,omitempty"`// IoStats Contains I/O statistics for the node.IoStats *IoStats `json:"io_stats,omitempty"`// Timestamp Last time the file stores statistics were refreshed.// Recorded in milliseconds since the Unix Epoch.Timestamp *int64 `json:"timestamp,omitempty"`// Total Contains statistics for all file stores of the node.Total *FileSystemTotal `json:"total,omitempty"`}FileSystem type.
func (*FileSystem)UnmarshalJSON¶added inv8.7.1
func (s *FileSystem) UnmarshalJSON(data []byte)error
typeFileSystemTotal¶
type FileSystemTotal struct {// Available Total disk space available to this Java virtual machine on all file stores.// Depending on OS or process level restrictions, this might appear less than// `free`.// This is the actual amount of free disk space the Elasticsearch node can// utilise.Available *string `json:"available,omitempty"`// AvailableInBytes Total number of bytes available to this Java virtual machine on all file// stores.// Depending on OS or process level restrictions, this might appear less than// `free_in_bytes`.// This is the actual amount of free disk space the Elasticsearch node can// utilise.AvailableInBytes *int64 `json:"available_in_bytes,omitempty"`// Free Total unallocated disk space in all file stores.Free *string `json:"free,omitempty"`// FreeInBytes Total number of unallocated bytes in all file stores.FreeInBytes *int64 `json:"free_in_bytes,omitempty"`// Total Total size of all file stores.Total *string `json:"total,omitempty"`// TotalInBytes Total size of all file stores in bytes.TotalInBytes *int64 `json:"total_in_bytes,omitempty"`}FileSystemTotal type.
funcNewFileSystemTotal¶added inv8.5.0
func NewFileSystemTotal() *FileSystemTotal
NewFileSystemTotal returns a FileSystemTotal.
func (*FileSystemTotal)UnmarshalJSON¶added inv8.7.1
func (s *FileSystemTotal) UnmarshalJSON(data []byte)error
typeFillMaskInferenceOptions¶
type FillMaskInferenceOptions struct {// MaskToken The string/token which will be removed from incoming documents and replaced// with the inference prediction(s).// In a response, this field contains the mask token for the specified// model/tokenizer. Each model and tokenizer// has a predefined mask token which cannot be changed. Thus, it is recommended// not to set this value in requests.// However, if this field is present in a request, its value must match the// predefined value for that model/tokenizer,// otherwise the request will fail.MaskToken *string `json:"mask_token,omitempty"`// NumTopClasses Specifies the number of top class predictions to return. Defaults to 0.NumTopClasses *int `json:"num_top_classes,omitempty"`// ResultsField The field that is added to incoming documents to contain the inference// prediction. Defaults to predicted_value.ResultsField *string `json:"results_field,omitempty"`// Tokenization The tokenization options to update when inferringTokenization *TokenizationConfigContainer `json:"tokenization,omitempty"`VocabularyVocabulary `json:"vocabulary"`}FillMaskInferenceOptions type.
funcNewFillMaskInferenceOptions¶added inv8.5.0
func NewFillMaskInferenceOptions() *FillMaskInferenceOptions
NewFillMaskInferenceOptions returns a FillMaskInferenceOptions.
func (*FillMaskInferenceOptions)UnmarshalJSON¶added inv8.7.1
func (s *FillMaskInferenceOptions) UnmarshalJSON(data []byte)error
typeFillMaskInferenceUpdateOptions¶
type FillMaskInferenceUpdateOptions struct {// NumTopClasses Specifies the number of top class predictions to return. Defaults to 0.NumTopClasses *int `json:"num_top_classes,omitempty"`// ResultsField The field that is added to incoming documents to contain the inference// prediction. Defaults to predicted_value.ResultsField *string `json:"results_field,omitempty"`// Tokenization The tokenization options to update when inferringTokenization *NlpTokenizationUpdateOptions `json:"tokenization,omitempty"`}FillMaskInferenceUpdateOptions type.
funcNewFillMaskInferenceUpdateOptions¶added inv8.5.0
func NewFillMaskInferenceUpdateOptions() *FillMaskInferenceUpdateOptions
NewFillMaskInferenceUpdateOptions returns a FillMaskInferenceUpdateOptions.
func (*FillMaskInferenceUpdateOptions)UnmarshalJSON¶added inv8.7.1
func (s *FillMaskInferenceUpdateOptions) UnmarshalJSON(data []byte)error
typeFilterAggregate¶
type FilterAggregate struct {Aggregations map[string]Aggregate `json:"-"`DocCountint64 `json:"doc_count"`MetaMetadata `json:"meta,omitempty"`}FilterAggregate type.
funcNewFilterAggregate¶added inv8.5.0
func NewFilterAggregate() *FilterAggregate
NewFilterAggregate returns a FilterAggregate.
func (FilterAggregate)MarshalJSON¶
func (sFilterAggregate) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
func (*FilterAggregate)UnmarshalJSON¶added inv8.7.0
func (s *FilterAggregate) UnmarshalJSON(data []byte)error
typeFilterRef¶
type FilterRef struct {// FilterId The identifier for the filter.FilterIdstring `json:"filter_id"`// FilterType If set to `include`, the rule applies for values in the filter. If set to// `exclude`, the rule applies for values not in the filter.FilterType *filtertype.FilterType `json:"filter_type,omitempty"`}FilterRef type.
func (*FilterRef)UnmarshalJSON¶added inv8.7.1
typeFilteringAdvancedSnippet¶added inv8.15.0
type FilteringAdvancedSnippet struct {CreatedAtDateTime `json:"created_at,omitempty"`UpdatedAtDateTime `json:"updated_at,omitempty"`Valuejson.RawMessage `json:"value,omitempty"`}FilteringAdvancedSnippet type.
funcNewFilteringAdvancedSnippet¶added inv8.15.0
func NewFilteringAdvancedSnippet() *FilteringAdvancedSnippet
NewFilteringAdvancedSnippet returns a FilteringAdvancedSnippet.
func (*FilteringAdvancedSnippet)UnmarshalJSON¶added inv8.15.0
func (s *FilteringAdvancedSnippet) UnmarshalJSON(data []byte)error
typeFilteringConfig¶added inv8.15.0
type FilteringConfig struct {ActiveFilteringRules `json:"active"`Domain *string `json:"domain,omitempty"`DraftFilteringRules `json:"draft"`}FilteringConfig type.
funcNewFilteringConfig¶added inv8.15.0
func NewFilteringConfig() *FilteringConfig
NewFilteringConfig returns a FilteringConfig.
func (*FilteringConfig)UnmarshalJSON¶added inv8.15.0
func (s *FilteringConfig) UnmarshalJSON(data []byte)error
typeFilteringRule¶added inv8.15.0
type FilteringRule struct {CreatedAtDateTime `json:"created_at,omitempty"`Fieldstring `json:"field"`Idstring `json:"id"`Orderint `json:"order"`Policyfilteringpolicy.FilteringPolicy `json:"policy"`Rulefilteringrulerule.FilteringRuleRule `json:"rule"`UpdatedAtDateTime `json:"updated_at,omitempty"`Valuestring `json:"value"`}FilteringRule type.
funcNewFilteringRule¶added inv8.15.0
func NewFilteringRule() *FilteringRule
NewFilteringRule returns a FilteringRule.
func (*FilteringRule)UnmarshalJSON¶added inv8.15.0
func (s *FilteringRule) UnmarshalJSON(data []byte)error
typeFilteringRules¶added inv8.15.0
type FilteringRules struct {AdvancedSnippetFilteringAdvancedSnippet `json:"advanced_snippet"`Rules []FilteringRule `json:"rules"`ValidationFilteringRulesValidation `json:"validation"`}FilteringRules type.
funcNewFilteringRules¶added inv8.15.0
func NewFilteringRules() *FilteringRules
NewFilteringRules returns a FilteringRules.
typeFilteringRulesValidation¶added inv8.15.0
type FilteringRulesValidation struct {Errors []FilteringValidation `json:"errors"`Statefilteringvalidationstate.FilteringValidationState `json:"state"`}FilteringRulesValidation type.
funcNewFilteringRulesValidation¶added inv8.15.0
func NewFilteringRulesValidation() *FilteringRulesValidation
NewFilteringRulesValidation returns a FilteringRulesValidation.
typeFilteringValidation¶added inv8.15.0
FilteringValidation type.
funcNewFilteringValidation¶added inv8.15.0
func NewFilteringValidation() *FilteringValidation
NewFilteringValidation returns a FilteringValidation.
typeFiltersAggregate¶
type FiltersAggregate struct {BucketsBucketsFiltersBucket `json:"buckets"`MetaMetadata `json:"meta,omitempty"`}FiltersAggregate type.
funcNewFiltersAggregate¶added inv8.5.0
func NewFiltersAggregate() *FiltersAggregate
NewFiltersAggregate returns a FiltersAggregate.
func (*FiltersAggregate)UnmarshalJSON¶added inv8.7.0
func (s *FiltersAggregate) UnmarshalJSON(data []byte)error
typeFiltersAggregation¶
type FiltersAggregation struct {// Filters Collection of queries from which to build buckets.FiltersBucketsQuery `json:"filters,omitempty"`// Keyed By default, the named filters aggregation returns the buckets as an object.// Set to `false` to return the buckets as an array of objects.Keyed *bool `json:"keyed,omitempty"`// OtherBucket Set to `true` to add a bucket to the response which will contain all// documents that do not match any of the given filters.OtherBucket *bool `json:"other_bucket,omitempty"`// OtherBucketKey The key with which the other bucket is returned.OtherBucketKey *string `json:"other_bucket_key,omitempty"`}FiltersAggregation type.
funcNewFiltersAggregation¶added inv8.5.0
func NewFiltersAggregation() *FiltersAggregation
NewFiltersAggregation returns a FiltersAggregation.
func (*FiltersAggregation)UnmarshalJSON¶added inv8.7.1
func (s *FiltersAggregation) UnmarshalJSON(data []byte)error
typeFiltersBucket¶
type FiltersBucket struct {Aggregations map[string]Aggregate `json:"-"`DocCountint64 `json:"doc_count"`Key *string `json:"key,omitempty"`}FiltersBucket type.
funcNewFiltersBucket¶added inv8.5.0
func NewFiltersBucket() *FiltersBucket
NewFiltersBucket returns a FiltersBucket.
func (FiltersBucket)MarshalJSON¶
func (sFiltersBucket) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
func (*FiltersBucket)UnmarshalJSON¶added inv8.7.0
func (s *FiltersBucket) UnmarshalJSON(data []byte)error
typeFingerprintAnalyzer¶
type FingerprintAnalyzer struct {MaxOutputSizeint `json:"max_output_size"`PreserveOriginalbool `json:"preserve_original"`Separatorstring `json:"separator"`StopwordsStopWords `json:"stopwords,omitempty"`StopwordsPath *string `json:"stopwords_path,omitempty"`Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}FingerprintAnalyzer type.
funcNewFingerprintAnalyzer¶added inv8.5.0
func NewFingerprintAnalyzer() *FingerprintAnalyzer
NewFingerprintAnalyzer returns a FingerprintAnalyzer.
func (FingerprintAnalyzer)MarshalJSON¶added inv8.9.0
func (sFingerprintAnalyzer) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*FingerprintAnalyzer)UnmarshalJSON¶added inv8.7.1
func (s *FingerprintAnalyzer) UnmarshalJSON(data []byte)error
typeFingerprintProcessor¶added inv8.16.0
type FingerprintProcessor struct {// Description Description of the processor.// Useful for describing the purpose of the processor or its configuration.Description *string `json:"description,omitempty"`// Fields Array of fields to include in the fingerprint. For objects, the processor// hashes both the field key and value. For other fields, the processor hashes// only the field value.Fields []string `json:"fields"`// If Conditionally execute the processor.If *string `json:"if,omitempty"`// IgnoreFailure Ignore failures for the processor.IgnoreFailure *bool `json:"ignore_failure,omitempty"`// IgnoreMissing If true, the processor ignores any missing fields. If all fields are// missing, the processor silently exits without modifying the document.IgnoreMissing *bool `json:"ignore_missing,omitempty"`// Method The hash method used to compute the fingerprint. Must be one of MD5, SHA-1,// SHA-256, SHA-512, or MurmurHash3.Method *fingerprintdigest.FingerprintDigest `json:"method,omitempty"`// OnFailure Handle failures for the processor.OnFailure []ProcessorContainer `json:"on_failure,omitempty"`// Salt Salt value for the hash function.Salt *string `json:"salt,omitempty"`// Tag Identifier for the processor.// Useful for debugging and metrics.Tag *string `json:"tag,omitempty"`// TargetField Output field for the fingerprint.TargetField *string `json:"target_field,omitempty"`}FingerprintProcessor type.
funcNewFingerprintProcessor¶added inv8.16.0
func NewFingerprintProcessor() *FingerprintProcessor
NewFingerprintProcessor returns a FingerprintProcessor.
func (*FingerprintProcessor)UnmarshalJSON¶added inv8.16.0
func (s *FingerprintProcessor) UnmarshalJSON(data []byte)error
typeFingerprintTokenFilter¶
type FingerprintTokenFilter struct {// MaxOutputSize Maximum character length, including whitespace, of the output token. Defaults// to `255`. Concatenated tokens longer than this will result in no token// output.MaxOutputSize *int `json:"max_output_size,omitempty"`// Separator Character to use to concatenate the token stream input. Defaults to a space.Separator *string `json:"separator,omitempty"`Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}FingerprintTokenFilter type.
funcNewFingerprintTokenFilter¶added inv8.5.0
func NewFingerprintTokenFilter() *FingerprintTokenFilter
NewFingerprintTokenFilter returns a FingerprintTokenFilter.
func (FingerprintTokenFilter)MarshalJSON¶added inv8.9.0
func (sFingerprintTokenFilter) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*FingerprintTokenFilter)UnmarshalJSON¶added inv8.7.1
func (s *FingerprintTokenFilter) UnmarshalJSON(data []byte)error
typeFinnishAnalyzer¶added inv8.16.0
type FinnishAnalyzer struct {StemExclusion []string `json:"stem_exclusion,omitempty"`StopwordsStopWords `json:"stopwords,omitempty"`StopwordsPath *string `json:"stopwords_path,omitempty"`Typestring `json:"type,omitempty"`}FinnishAnalyzer type.
funcNewFinnishAnalyzer¶added inv8.16.0
func NewFinnishAnalyzer() *FinnishAnalyzer
NewFinnishAnalyzer returns a FinnishAnalyzer.
func (FinnishAnalyzer)MarshalJSON¶added inv8.16.0
func (sFinnishAnalyzer) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*FinnishAnalyzer)UnmarshalJSON¶added inv8.16.0
func (s *FinnishAnalyzer) UnmarshalJSON(data []byte)error
typeFlattenGraphTokenFilter¶added inv8.18.1
type FlattenGraphTokenFilter struct {Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}FlattenGraphTokenFilter type.
funcNewFlattenGraphTokenFilter¶added inv8.18.1
func NewFlattenGraphTokenFilter() *FlattenGraphTokenFilter
NewFlattenGraphTokenFilter returns a FlattenGraphTokenFilter.
func (FlattenGraphTokenFilter)MarshalJSON¶added inv8.18.1
func (sFlattenGraphTokenFilter) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*FlattenGraphTokenFilter)UnmarshalJSON¶added inv8.18.1
func (s *FlattenGraphTokenFilter) UnmarshalJSON(data []byte)error
typeFlattened¶
type Flattened struct {Availablebool `json:"available"`Enabledbool `json:"enabled"`FieldCountint `json:"field_count"`}Flattened type.
func (*Flattened)UnmarshalJSON¶added inv8.7.1
typeFlattenedProperty¶
type FlattenedProperty struct {Boost *Float64 `json:"boost,omitempty"`DepthLimit *int `json:"depth_limit,omitempty"`DocValues *bool `json:"doc_values,omitempty"`Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`EagerGlobalOrdinals *bool `json:"eager_global_ordinals,omitempty"`Fields map[string]Property `json:"fields,omitempty"`IgnoreAbove *int `json:"ignore_above,omitempty"`Index *bool `json:"index,omitempty"`IndexOptions *indexoptions.IndexOptions `json:"index_options,omitempty"`// Meta Metadata about the field.Meta map[string]string `json:"meta,omitempty"`NullValue *string `json:"null_value,omitempty"`Properties map[string]Property `json:"properties,omitempty"`Similarity *string `json:"similarity,omitempty"`SplitQueriesOnWhitespace *bool `json:"split_queries_on_whitespace,omitempty"`SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`TimeSeriesDimensions []string `json:"time_series_dimensions,omitempty"`Typestring `json:"type,omitempty"`}FlattenedProperty type.
funcNewFlattenedProperty¶added inv8.5.0
func NewFlattenedProperty() *FlattenedProperty
NewFlattenedProperty returns a FlattenedProperty.
func (FlattenedProperty)MarshalJSON¶added inv8.9.0
func (sFlattenedProperty) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*FlattenedProperty)UnmarshalJSON¶added inv8.7.0
func (s *FlattenedProperty) UnmarshalJSON(data []byte)error
typeFloat64¶added inv8.7.0
type Float64float64
Float64 custom type for Inf & NaN handling.
func (Float64)MarshalJSON¶added inv8.7.0
MarshalJSON implements Marshaler interface.
func (*Float64)UnmarshalJSON¶added inv8.7.0
UnmarshalJSON implements Unmarshaler interface.
typeFloatNumberProperty¶
type FloatNumberProperty struct {Boost *Float64 `json:"boost,omitempty"`Coerce *bool `json:"coerce,omitempty"`CopyTo []string `json:"copy_to,omitempty"`DocValues *bool `json:"doc_values,omitempty"`Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`Fields map[string]Property `json:"fields,omitempty"`IgnoreAbove *int `json:"ignore_above,omitempty"`IgnoreMalformed *bool `json:"ignore_malformed,omitempty"`Index *bool `json:"index,omitempty"`// Meta Metadata about the field.Meta map[string]string `json:"meta,omitempty"`NullValue *float32 `json:"null_value,omitempty"`OnScriptError *onscripterror.OnScriptError `json:"on_script_error,omitempty"`Properties map[string]Property `json:"properties,omitempty"`Script *Script `json:"script,omitempty"`Store *bool `json:"store,omitempty"`SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`// TimeSeriesDimension For internal use by Elastic only. Marks the field as a time series dimension.// Defaults to false.TimeSeriesDimension *bool `json:"time_series_dimension,omitempty"`// TimeSeriesMetric For internal use by Elastic only. Marks the field as a time series dimension.// Defaults to false.TimeSeriesMetric *timeseriesmetrictype.TimeSeriesMetricType `json:"time_series_metric,omitempty"`Typestring `json:"type,omitempty"`}FloatNumberProperty type.
funcNewFloatNumberProperty¶added inv8.5.0
func NewFloatNumberProperty() *FloatNumberProperty
NewFloatNumberProperty returns a FloatNumberProperty.
func (FloatNumberProperty)MarshalJSON¶added inv8.9.0
func (sFloatNumberProperty) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*FloatNumberProperty)UnmarshalJSON¶added inv8.7.0
func (s *FloatNumberProperty) UnmarshalJSON(data []byte)error
typeFloatRangeProperty¶
type FloatRangeProperty struct {Boost *Float64 `json:"boost,omitempty"`Coerce *bool `json:"coerce,omitempty"`CopyTo []string `json:"copy_to,omitempty"`DocValues *bool `json:"doc_values,omitempty"`Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`Fields map[string]Property `json:"fields,omitempty"`IgnoreAbove *int `json:"ignore_above,omitempty"`Index *bool `json:"index,omitempty"`// Meta Metadata about the field.Meta map[string]string `json:"meta,omitempty"`Properties map[string]Property `json:"properties,omitempty"`Store *bool `json:"store,omitempty"`SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`Typestring `json:"type,omitempty"`}FloatRangeProperty type.
funcNewFloatRangeProperty¶added inv8.5.0
func NewFloatRangeProperty() *FloatRangeProperty
NewFloatRangeProperty returns a FloatRangeProperty.
func (FloatRangeProperty)MarshalJSON¶added inv8.9.0
func (sFloatRangeProperty) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*FloatRangeProperty)UnmarshalJSON¶added inv8.7.0
func (s *FloatRangeProperty) UnmarshalJSON(data []byte)error
typeFlushStats¶
type FlushStats struct {Periodicint64 `json:"periodic"`Totalint64 `json:"total"`TotalTimeDuration `json:"total_time,omitempty"`TotalTimeInMillisint64 `json:"total_time_in_millis"`}FlushStats type.
func (*FlushStats)UnmarshalJSON¶added inv8.7.1
func (s *FlushStats) UnmarshalJSON(data []byte)error
typeFollowIndexStats¶
type FollowIndexStats struct {// Index The name of the follower index.Indexstring `json:"index"`// Shards An array of shard-level following task statistics.Shards []CcrShardStats `json:"shards"`}FollowIndexStats type.
funcNewFollowIndexStats¶added inv8.5.0
func NewFollowIndexStats() *FollowIndexStats
NewFollowIndexStats returns a FollowIndexStats.
func (*FollowIndexStats)UnmarshalJSON¶added inv8.7.1
func (s *FollowIndexStats) UnmarshalJSON(data []byte)error
typeFollowStats¶
type FollowStats struct {Indices []FollowIndexStats `json:"indices"`}FollowStats type.
funcNewFollowStats¶added inv8.5.0
func NewFollowStats() *FollowStats
NewFollowStats returns a FollowStats.
typeFollowerIndex¶
type FollowerIndex struct {// FollowerIndex The name of the follower index.FollowerIndexstring `json:"follower_index"`// LeaderIndex The name of the index in the leader cluster that is followed.LeaderIndexstring `json:"leader_index"`// Parameters An object that encapsulates cross-cluster replication parameters. If the// follower index's status is paused, this object is omitted.Parameters *FollowerIndexParameters `json:"parameters,omitempty"`// RemoteCluster The remote cluster that contains the leader index.RemoteClusterstring `json:"remote_cluster"`// Status The status of the index following: `active` or `paused`.Statusfollowerindexstatus.FollowerIndexStatus `json:"status"`}FollowerIndex type.
funcNewFollowerIndex¶added inv8.5.0
func NewFollowerIndex() *FollowerIndex
NewFollowerIndex returns a FollowerIndex.
func (*FollowerIndex)UnmarshalJSON¶added inv8.7.1
func (s *FollowerIndex) UnmarshalJSON(data []byte)error
typeFollowerIndexParameters¶
type FollowerIndexParameters struct {// MaxOutstandingReadRequests The maximum number of outstanding reads requests from the remote cluster.MaxOutstandingReadRequests *int64 `json:"max_outstanding_read_requests,omitempty"`// MaxOutstandingWriteRequests The maximum number of outstanding write requests on the follower.MaxOutstandingWriteRequests *int `json:"max_outstanding_write_requests,omitempty"`// MaxReadRequestOperationCount The maximum number of operations to pull per read from the remote cluster.MaxReadRequestOperationCount *int `json:"max_read_request_operation_count,omitempty"`// MaxReadRequestSize The maximum size in bytes of per read of a batch of operations pulled from// the remote cluster.MaxReadRequestSizeByteSize `json:"max_read_request_size,omitempty"`// MaxRetryDelay The maximum time to wait before retrying an operation that failed// exceptionally. An exponential backoff strategy is employed when// retrying.MaxRetryDelayDuration `json:"max_retry_delay,omitempty"`// MaxWriteBufferCount The maximum number of operations that can be queued for writing. When this// limit is reached, reads from the remote cluster will be// deferred until the number of queued operations goes below the limit.MaxWriteBufferCount *int `json:"max_write_buffer_count,omitempty"`// MaxWriteBufferSize The maximum total bytes of operations that can be queued for writing. When// this limit is reached, reads from the remote cluster will// be deferred until the total bytes of queued operations goes below the limit.MaxWriteBufferSizeByteSize `json:"max_write_buffer_size,omitempty"`// MaxWriteRequestOperationCount The maximum number of operations per bulk write request executed on the// follower.MaxWriteRequestOperationCount *int `json:"max_write_request_operation_count,omitempty"`// MaxWriteRequestSize The maximum total bytes of operations per bulk write request executed on the// follower.MaxWriteRequestSizeByteSize `json:"max_write_request_size,omitempty"`// ReadPollTimeout The maximum time to wait for new operations on the remote cluster when the// follower index is synchronized with the leader index.// When the timeout has elapsed, the poll for operations will return to the// follower so that it can update some statistics.// Then the follower will immediately attempt to read from the leader again.ReadPollTimeoutDuration `json:"read_poll_timeout,omitempty"`}FollowerIndexParameters type.
funcNewFollowerIndexParameters¶added inv8.5.0
func NewFollowerIndexParameters() *FollowerIndexParameters
NewFollowerIndexParameters returns a FollowerIndexParameters.
func (*FollowerIndexParameters)UnmarshalJSON¶added inv8.7.1
func (s *FollowerIndexParameters) UnmarshalJSON(data []byte)error
typeForceMergeAction¶added inv8.15.0
type ForceMergeAction struct {IndexCodec *string `json:"index_codec,omitempty"`MaxNumSegmentsint `json:"max_num_segments"`}ForceMergeAction type.
funcNewForceMergeAction¶added inv8.15.0
func NewForceMergeAction() *ForceMergeAction
NewForceMergeAction returns a ForceMergeAction.
func (*ForceMergeAction)UnmarshalJSON¶added inv8.15.0
func (s *ForceMergeAction) UnmarshalJSON(data []byte)error
typeForeachProcessor¶
type ForeachProcessor struct {// Description Description of the processor.// Useful for describing the purpose of the processor or its configuration.Description *string `json:"description,omitempty"`// Field Field containing array or object values.Fieldstring `json:"field"`// If Conditionally execute the processor.If *string `json:"if,omitempty"`// IgnoreFailure Ignore failures for the processor.IgnoreFailure *bool `json:"ignore_failure,omitempty"`// IgnoreMissing If `true`, the processor silently exits without changing the document if the// `field` is `null` or missing.IgnoreMissing *bool `json:"ignore_missing,omitempty"`// OnFailure Handle failures for the processor.OnFailure []ProcessorContainer `json:"on_failure,omitempty"`// Processor Ingest processor to run on each element.ProcessorProcessorContainer `json:"processor"`// Tag Identifier for the processor.// Useful for debugging and metrics.Tag *string `json:"tag,omitempty"`}ForeachProcessor type.
funcNewForeachProcessor¶added inv8.5.0
func NewForeachProcessor() *ForeachProcessor
NewForeachProcessor returns a ForeachProcessor.
func (*ForeachProcessor)UnmarshalJSON¶added inv8.7.1
func (s *ForeachProcessor) UnmarshalJSON(data []byte)error
typeFoundStatus¶
type FoundStatus struct {Foundbool `json:"found"`}FoundStatus type.
funcNewFoundStatus¶added inv8.5.0
func NewFoundStatus() *FoundStatus
NewFoundStatus returns a FoundStatus.
func (*FoundStatus)UnmarshalJSON¶added inv8.7.1
func (s *FoundStatus) UnmarshalJSON(data []byte)error
typeFrenchAnalyzer¶added inv8.16.0
type FrenchAnalyzer struct {StemExclusion []string `json:"stem_exclusion,omitempty"`StopwordsStopWords `json:"stopwords,omitempty"`StopwordsPath *string `json:"stopwords_path,omitempty"`Typestring `json:"type,omitempty"`}FrenchAnalyzer type.
funcNewFrenchAnalyzer¶added inv8.16.0
func NewFrenchAnalyzer() *FrenchAnalyzer
NewFrenchAnalyzer returns a FrenchAnalyzer.
func (FrenchAnalyzer)MarshalJSON¶added inv8.16.0
func (sFrenchAnalyzer) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*FrenchAnalyzer)UnmarshalJSON¶added inv8.16.0
func (s *FrenchAnalyzer) UnmarshalJSON(data []byte)error
typeFrenchStemTokenFilter¶added inv8.19.0
type FrenchStemTokenFilter struct {Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}FrenchStemTokenFilter type.
funcNewFrenchStemTokenFilter¶added inv8.19.0
func NewFrenchStemTokenFilter() *FrenchStemTokenFilter
NewFrenchStemTokenFilter returns a FrenchStemTokenFilter.
func (FrenchStemTokenFilter)MarshalJSON¶added inv8.19.0
func (sFrenchStemTokenFilter) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*FrenchStemTokenFilter)UnmarshalJSON¶added inv8.19.0
func (s *FrenchStemTokenFilter) UnmarshalJSON(data []byte)error
typeFrequencyEncodingPreprocessor¶
type FrequencyEncodingPreprocessor struct {FeatureNamestring `json:"feature_name"`Fieldstring `json:"field"`FrequencyMap map[string]Float64 `json:"frequency_map"`}FrequencyEncodingPreprocessor type.
funcNewFrequencyEncodingPreprocessor¶added inv8.5.0
func NewFrequencyEncodingPreprocessor() *FrequencyEncodingPreprocessor
NewFrequencyEncodingPreprocessor returns a FrequencyEncodingPreprocessor.
func (*FrequencyEncodingPreprocessor)UnmarshalJSON¶added inv8.7.1
func (s *FrequencyEncodingPreprocessor) UnmarshalJSON(data []byte)error
typeFrequentItemSetsAggregate¶added inv8.8.0
type FrequentItemSetsAggregate struct {BucketsBucketsFrequentItemSetsBucket `json:"buckets"`MetaMetadata `json:"meta,omitempty"`}FrequentItemSetsAggregate type.
funcNewFrequentItemSetsAggregate¶added inv8.8.0
func NewFrequentItemSetsAggregate() *FrequentItemSetsAggregate
NewFrequentItemSetsAggregate returns a FrequentItemSetsAggregate.
func (*FrequentItemSetsAggregate)UnmarshalJSON¶added inv8.8.0
func (s *FrequentItemSetsAggregate) UnmarshalJSON(data []byte)error
typeFrequentItemSetsAggregation¶added inv8.8.0
type FrequentItemSetsAggregation struct {// Fields Fields to analyze.Fields []FrequentItemSetsField `json:"fields"`// Filter Query that filters documents from analysis.Filter *Query `json:"filter,omitempty"`// MinimumSetSize The minimum size of one item set.MinimumSetSize *int `json:"minimum_set_size,omitempty"`// MinimumSupport The minimum support of one item set.MinimumSupport *Float64 `json:"minimum_support,omitempty"`// Size The number of top item sets to return.Size *int `json:"size,omitempty"`}FrequentItemSetsAggregation type.
funcNewFrequentItemSetsAggregation¶added inv8.8.0
func NewFrequentItemSetsAggregation() *FrequentItemSetsAggregation
NewFrequentItemSetsAggregation returns a FrequentItemSetsAggregation.
func (*FrequentItemSetsAggregation)UnmarshalJSON¶added inv8.8.0
func (s *FrequentItemSetsAggregation) UnmarshalJSON(data []byte)error
typeFrequentItemSetsBucket¶added inv8.8.0
type FrequentItemSetsBucket struct {Aggregations map[string]Aggregate `json:"-"`DocCountint64 `json:"doc_count"`Key map[string][]string `json:"key"`SupportFloat64 `json:"support"`}FrequentItemSetsBucket type.
funcNewFrequentItemSetsBucket¶added inv8.8.0
func NewFrequentItemSetsBucket() *FrequentItemSetsBucket
NewFrequentItemSetsBucket returns a FrequentItemSetsBucket.
func (FrequentItemSetsBucket)MarshalJSON¶added inv8.8.0
func (sFrequentItemSetsBucket) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
func (*FrequentItemSetsBucket)UnmarshalJSON¶added inv8.8.0
func (s *FrequentItemSetsBucket) UnmarshalJSON(data []byte)error
typeFrequentItemSetsField¶added inv8.8.0
type FrequentItemSetsField struct {// Exclude Values to exclude.// Can be regular expression strings or arrays of strings of exact terms.Exclude []string `json:"exclude,omitempty"`Fieldstring `json:"field"`// Include Values to include.// Can be regular expression strings or arrays of strings of exact terms.IncludeTermsInclude `json:"include,omitempty"`}FrequentItemSetsField type.
funcNewFrequentItemSetsField¶added inv8.8.0
func NewFrequentItemSetsField() *FrequentItemSetsField
NewFrequentItemSetsField returns a FrequentItemSetsField.
func (*FrequentItemSetsField)UnmarshalJSON¶added inv8.8.0
func (s *FrequentItemSetsField) UnmarshalJSON(data []byte)error
typeFrozenIndices¶
type FrozenIndices struct {Availablebool `json:"available"`Enabledbool `json:"enabled"`IndicesCountint64 `json:"indices_count"`}FrozenIndices type.
funcNewFrozenIndices¶added inv8.5.0
func NewFrozenIndices() *FrozenIndices
NewFrozenIndices returns a FrozenIndices.
func (*FrozenIndices)UnmarshalJSON¶added inv8.7.1
func (s *FrozenIndices) UnmarshalJSON(data []byte)error
typeFunctionScore¶added inv8.5.0
type FunctionScore struct {AdditionalFunctionScoreProperty map[string]json.RawMessage `json:"-"`// Exp Function that scores a document with a exponential decay, depending on the// distance of a numeric field value of the document from an origin.ExpDecayFunction `json:"exp,omitempty"`// FieldValueFactor Function allows you to use a field from a document to influence the score.// It’s similar to using the script_score function, however, it avoids the// overhead of scripting.FieldValueFactor *FieldValueFactorScoreFunction `json:"field_value_factor,omitempty"`Filter *Query `json:"filter,omitempty"`// Gauss Function that scores a document with a normal decay, depending on the// distance of a numeric field value of the document from an origin.GaussDecayFunction `json:"gauss,omitempty"`// Linear Function that scores a document with a linear decay, depending on the// distance of a numeric field value of the document from an origin.LinearDecayFunction `json:"linear,omitempty"`// RandomScore Generates scores that are uniformly distributed from 0 up to but not// including 1.// In case you want scores to be reproducible, it is possible to provide a// `seed` and `field`.RandomScore *RandomScoreFunction `json:"random_score,omitempty"`// ScriptScore Enables you to wrap another query and customize the scoring of it optionally// with a computation derived from other numeric field values in the doc using a// script expression.ScriptScore *ScriptScoreFunction `json:"script_score,omitempty"`Weight *Float64 `json:"weight,omitempty"`}FunctionScore type.
funcNewFunctionScore¶added inv8.5.0
func NewFunctionScore() *FunctionScore
NewFunctionScore returns a FunctionScore.
func (FunctionScore)MarshalJSON¶added inv8.18.0
func (sFunctionScore) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
func (*FunctionScore)UnmarshalJSON¶added inv8.7.1
func (s *FunctionScore) UnmarshalJSON(data []byte)error
typeFunctionScoreQuery¶
type FunctionScoreQuery struct {// Boost Floating point number used to decrease or increase the relevance scores of// the query.// Boost values are relative to the default value of 1.0.// A boost value between 0 and 1.0 decreases the relevance score.// A value greater than 1.0 increases the relevance score.Boost *float32 `json:"boost,omitempty"`// BoostMode Defines how he newly computed score is combined with the score of the queryBoostMode *functionboostmode.FunctionBoostMode `json:"boost_mode,omitempty"`// Functions One or more functions that compute a new score for each document returned by// the query.Functions []FunctionScore `json:"functions,omitempty"`// MaxBoost Restricts the new score to not exceed the provided limit.MaxBoost *Float64 `json:"max_boost,omitempty"`// MinScore Excludes documents that do not meet the provided score threshold.MinScore *Float64 `json:"min_score,omitempty"`// Query A query that determines the documents for which a new score is computed.Query *Query `json:"query,omitempty"`QueryName_ *string `json:"_name,omitempty"`// ScoreMode Specifies how the computed scores are combinedScoreMode *functionscoremode.FunctionScoreMode `json:"score_mode,omitempty"`}FunctionScoreQuery type.
funcNewFunctionScoreQuery¶added inv8.5.0
func NewFunctionScoreQuery() *FunctionScoreQuery
NewFunctionScoreQuery returns a FunctionScoreQuery.
func (*FunctionScoreQuery)UnmarshalJSON¶added inv8.7.1
func (s *FunctionScoreQuery) UnmarshalJSON(data []byte)error
typeFuzzyQuery¶
type FuzzyQuery struct {// Boost Floating point number used to decrease or increase the relevance scores of// the query.// Boost values are relative to the default value of 1.0.// A boost value between 0 and 1.0 decreases the relevance score.// A value greater than 1.0 increases the relevance score.Boost *float32 `json:"boost,omitempty"`// Fuzziness Maximum edit distance allowed for matching.FuzzinessFuzziness `json:"fuzziness,omitempty"`// MaxExpansions Maximum number of variations created.MaxExpansions *int `json:"max_expansions,omitempty"`// PrefixLength Number of beginning characters left unchanged when creating expansions.PrefixLength *int `json:"prefix_length,omitempty"`QueryName_ *string `json:"_name,omitempty"`// Rewrite Number of beginning characters left unchanged when creating expansions.Rewrite *string `json:"rewrite,omitempty"`// Transpositions Indicates whether edits include transpositions of two adjacent characters// (for example `ab` to `ba`).Transpositions *bool `json:"transpositions,omitempty"`// Value Term you wish to find in the provided field.Valuestring `json:"value"`}FuzzyQuery type.
func (*FuzzyQuery)UnmarshalJSON¶added inv8.7.1
func (s *FuzzyQuery) UnmarshalJSON(data []byte)error
typeGalicianAnalyzer¶added inv8.16.0
type GalicianAnalyzer struct {StemExclusion []string `json:"stem_exclusion,omitempty"`StopwordsStopWords `json:"stopwords,omitempty"`StopwordsPath *string `json:"stopwords_path,omitempty"`Typestring `json:"type,omitempty"`}GalicianAnalyzer type.
funcNewGalicianAnalyzer¶added inv8.16.0
func NewGalicianAnalyzer() *GalicianAnalyzer
NewGalicianAnalyzer returns a GalicianAnalyzer.
func (GalicianAnalyzer)MarshalJSON¶added inv8.16.0
func (sGalicianAnalyzer) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*GalicianAnalyzer)UnmarshalJSON¶added inv8.16.0
func (s *GalicianAnalyzer) UnmarshalJSON(data []byte)error
typeGarbageCollector¶
type GarbageCollector struct {// Collectors Contains statistics about JVM garbage collectors for the node.Collectors map[string]GarbageCollectorTotal `json:"collectors,omitempty"`}GarbageCollector type.
funcNewGarbageCollector¶added inv8.5.0
func NewGarbageCollector() *GarbageCollector
NewGarbageCollector returns a GarbageCollector.
typeGarbageCollectorTotal¶
type GarbageCollectorTotal struct {// CollectionCount Total number of JVM garbage collectors that collect objects.CollectionCount *int64 `json:"collection_count,omitempty"`// CollectionTime Total time spent by JVM collecting objects.CollectionTime *string `json:"collection_time,omitempty"`// CollectionTimeInMillis Total time, in milliseconds, spent by JVM collecting objects.CollectionTimeInMillis *int64 `json:"collection_time_in_millis,omitempty"`}GarbageCollectorTotal type.
funcNewGarbageCollectorTotal¶added inv8.5.0
func NewGarbageCollectorTotal() *GarbageCollectorTotal
NewGarbageCollectorTotal returns a GarbageCollectorTotal.
func (*GarbageCollectorTotal)UnmarshalJSON¶added inv8.7.1
func (s *GarbageCollectorTotal) UnmarshalJSON(data []byte)error
typeGcsRepository¶added inv8.13.0
type GcsRepository struct {SettingsGcsRepositorySettings `json:"settings"`Typestring `json:"type,omitempty"`Uuid *string `json:"uuid,omitempty"`}GcsRepository type.
funcNewGcsRepository¶added inv8.13.0
func NewGcsRepository() *GcsRepository
NewGcsRepository returns a GcsRepository.
func (GcsRepository)MarshalJSON¶added inv8.13.0
func (sGcsRepository) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*GcsRepository)UnmarshalJSON¶added inv8.13.0
func (s *GcsRepository) UnmarshalJSON(data []byte)error
typeGcsRepositorySettings¶added inv8.13.0
type GcsRepositorySettings struct {ApplicationName *string `json:"application_name,omitempty"`BasePath *string `json:"base_path,omitempty"`Bucketstring `json:"bucket"`ChunkSizeByteSize `json:"chunk_size,omitempty"`Client *string `json:"client,omitempty"`Compress *bool `json:"compress,omitempty"`MaxRestoreBytesPerSecByteSize `json:"max_restore_bytes_per_sec,omitempty"`MaxSnapshotBytesPerSecByteSize `json:"max_snapshot_bytes_per_sec,omitempty"`Readonly *bool `json:"readonly,omitempty"`}GcsRepositorySettings type.
funcNewGcsRepositorySettings¶added inv8.13.0
func NewGcsRepositorySettings() *GcsRepositorySettings
NewGcsRepositorySettings returns a GcsRepositorySettings.
func (*GcsRepositorySettings)UnmarshalJSON¶added inv8.13.0
func (s *GcsRepositorySettings) UnmarshalJSON(data []byte)error
typeGeoBoundingBoxQuery¶
type GeoBoundingBoxQuery struct {// Boost Floating point number used to decrease or increase the relevance scores of// the query.// Boost values are relative to the default value of 1.0.// A boost value between 0 and 1.0 decreases the relevance score.// A value greater than 1.0 increases the relevance score.Boost *float32 `json:"boost,omitempty"`GeoBoundingBoxQuery map[string]GeoBounds `json:"-"`// IgnoreUnmapped Set to `true` to ignore an unmapped field and not match any documents for// this query.// Set to `false` to throw an exception if the field is not mapped.IgnoreUnmapped *bool `json:"ignore_unmapped,omitempty"`QueryName_ *string `json:"_name,omitempty"`Type *geoexecution.GeoExecution `json:"type,omitempty"`// ValidationMethod Set to `IGNORE_MALFORMED` to accept geo points with invalid latitude or// longitude.// Set to `COERCE` to also try to infer correct latitude or longitude.ValidationMethod *geovalidationmethod.GeoValidationMethod `json:"validation_method,omitempty"`}GeoBoundingBoxQuery type.
funcNewGeoBoundingBoxQuery¶added inv8.5.0
func NewGeoBoundingBoxQuery() *GeoBoundingBoxQuery
NewGeoBoundingBoxQuery returns a GeoBoundingBoxQuery.
func (GeoBoundingBoxQuery)MarshalJSON¶
func (sGeoBoundingBoxQuery) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
func (*GeoBoundingBoxQuery)UnmarshalJSON¶added inv8.7.1
func (s *GeoBoundingBoxQuery) UnmarshalJSON(data []byte)error
typeGeoBounds¶
type GeoBoundsany
GeoBounds holds the union for the following types:
CoordsGeoBoundsTopLeftBottomRightGeoBoundsTopRightBottomLeftGeoBoundsWktGeoBounds
typeGeoBoundsAggregate¶
type GeoBoundsAggregate struct {BoundsGeoBounds `json:"bounds,omitempty"`MetaMetadata `json:"meta,omitempty"`}GeoBoundsAggregate type.
funcNewGeoBoundsAggregate¶added inv8.5.0
func NewGeoBoundsAggregate() *GeoBoundsAggregate
NewGeoBoundsAggregate returns a GeoBoundsAggregate.
func (*GeoBoundsAggregate)UnmarshalJSON¶added inv8.7.1
func (s *GeoBoundsAggregate) UnmarshalJSON(data []byte)error
typeGeoBoundsAggregation¶
type GeoBoundsAggregation struct {// Field The field on which to run the aggregation.Field *string `json:"field,omitempty"`// Missing The value to apply to documents that do not have a value.// By default, documents without a value are ignored.MissingMissing `json:"missing,omitempty"`Script *Script `json:"script,omitempty"`// WrapLongitude Specifies whether the bounding box should be allowed to overlap the// international date line.WrapLongitude *bool `json:"wrap_longitude,omitempty"`}GeoBoundsAggregation type.
funcNewGeoBoundsAggregation¶added inv8.5.0
func NewGeoBoundsAggregation() *GeoBoundsAggregation
NewGeoBoundsAggregation returns a GeoBoundsAggregation.
func (*GeoBoundsAggregation)UnmarshalJSON¶added inv8.7.1
func (s *GeoBoundsAggregation) UnmarshalJSON(data []byte)error
typeGeoCentroidAggregate¶
type GeoCentroidAggregate struct {Countint64 `json:"count"`LocationGeoLocation `json:"location,omitempty"`MetaMetadata `json:"meta,omitempty"`}GeoCentroidAggregate type.
funcNewGeoCentroidAggregate¶added inv8.5.0
func NewGeoCentroidAggregate() *GeoCentroidAggregate
NewGeoCentroidAggregate returns a GeoCentroidAggregate.
func (*GeoCentroidAggregate)UnmarshalJSON¶added inv8.7.1
func (s *GeoCentroidAggregate) UnmarshalJSON(data []byte)error
typeGeoCentroidAggregation¶
type GeoCentroidAggregation struct {Count *int64 `json:"count,omitempty"`// Field The field on which to run the aggregation.Field *string `json:"field,omitempty"`LocationGeoLocation `json:"location,omitempty"`// Missing The value to apply to documents that do not have a value.// By default, documents without a value are ignored.MissingMissing `json:"missing,omitempty"`Script *Script `json:"script,omitempty"`}GeoCentroidAggregation type.
funcNewGeoCentroidAggregation¶added inv8.5.0
func NewGeoCentroidAggregation() *GeoCentroidAggregation
NewGeoCentroidAggregation returns a GeoCentroidAggregation.
func (*GeoCentroidAggregation)UnmarshalJSON¶added inv8.7.1
func (s *GeoCentroidAggregation) UnmarshalJSON(data []byte)error
typeGeoDecayFunction¶
type GeoDecayFunction struct {DecayFunctionBaseGeoLocationDistance map[string]DecayPlacementGeoLocationDistance `json:"-"`// MultiValueMode Determines how the distance is calculated when a field used for computing the// decay contains multiple values.MultiValueMode *multivaluemode.MultiValueMode `json:"multi_value_mode,omitempty"`}GeoDecayFunction type.
funcNewGeoDecayFunction¶added inv8.5.0
func NewGeoDecayFunction() *GeoDecayFunction
NewGeoDecayFunction returns a GeoDecayFunction.
func (GeoDecayFunction)MarshalJSON¶
func (sGeoDecayFunction) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
typeGeoDistanceAggregate¶
type GeoDistanceAggregate struct {BucketsBucketsRangeBucket `json:"buckets"`MetaMetadata `json:"meta,omitempty"`}GeoDistanceAggregate type.
funcNewGeoDistanceAggregate¶added inv8.5.0
func NewGeoDistanceAggregate() *GeoDistanceAggregate
NewGeoDistanceAggregate returns a GeoDistanceAggregate.
func (*GeoDistanceAggregate)UnmarshalJSON¶added inv8.7.0
func (s *GeoDistanceAggregate) UnmarshalJSON(data []byte)error
typeGeoDistanceAggregation¶
type GeoDistanceAggregation struct {// DistanceType The distance calculation type.DistanceType *geodistancetype.GeoDistanceType `json:"distance_type,omitempty"`// Field A field of type `geo_point` used to evaluate the distance.Field *string `json:"field,omitempty"`// Origin The origin used to evaluate the distance.OriginGeoLocation `json:"origin,omitempty"`// Ranges An array of ranges used to bucket documents.Ranges []AggregationRange `json:"ranges,omitempty"`// Unit The distance unit.Unit *distanceunit.DistanceUnit `json:"unit,omitempty"`}GeoDistanceAggregation type.
funcNewGeoDistanceAggregation¶added inv8.5.0
func NewGeoDistanceAggregation() *GeoDistanceAggregation
NewGeoDistanceAggregation returns a GeoDistanceAggregation.
func (*GeoDistanceAggregation)UnmarshalJSON¶added inv8.7.1
func (s *GeoDistanceAggregation) UnmarshalJSON(data []byte)error
typeGeoDistanceFeatureQuery¶
type GeoDistanceFeatureQuery struct {// Boost Floating point number used to decrease or increase the relevance scores of// the query.// Boost values are relative to the default value of 1.0.// A boost value between 0 and 1.0 decreases the relevance score.// A value greater than 1.0 increases the relevance score.Boost *float32 `json:"boost,omitempty"`// Field Name of the field used to calculate distances. This field must meet the// following criteria:// be a `date`, `date_nanos` or `geo_point` field;// have an `index` mapping parameter value of `true`, which is the default;// have an `doc_values` mapping parameter value of `true`, which is the default.Fieldstring `json:"field"`// Origin Date or point of origin used to calculate distances.// If the `field` value is a `date` or `date_nanos` field, the `origin` value// must be a date.// Date Math, such as `now-1h`, is supported.// If the field value is a `geo_point` field, the `origin` value must be a// geopoint.OriginGeoLocation `json:"origin"`// Pivot Distance from the `origin` at which relevance scores receive half of the// `boost` value.// If the `field` value is a `date` or `date_nanos` field, the `pivot` value// must be a time unit, such as `1h` or `10d`. If the `field` value is a// `geo_point` field, the `pivot` value must be a distance unit, such as `1km`// or `12m`.Pivotstring `json:"pivot"`QueryName_ *string `json:"_name,omitempty"`}GeoDistanceFeatureQuery type.
funcNewGeoDistanceFeatureQuery¶added inv8.5.0
func NewGeoDistanceFeatureQuery() *GeoDistanceFeatureQuery
NewGeoDistanceFeatureQuery returns a GeoDistanceFeatureQuery.
func (*GeoDistanceFeatureQuery)UnmarshalJSON¶added inv8.7.1
func (s *GeoDistanceFeatureQuery) UnmarshalJSON(data []byte)error
typeGeoDistanceQuery¶
type GeoDistanceQuery struct {// Boost Floating point number used to decrease or increase the relevance scores of// the query.// Boost values are relative to the default value of 1.0.// A boost value between 0 and 1.0 decreases the relevance score.// A value greater than 1.0 increases the relevance score.Boost *float32 `json:"boost,omitempty"`// Distance The radius of the circle centred on the specified location.// Points which fall into this circle are considered to be matches.Distancestring `json:"distance"`// DistanceType How to compute the distance.// Set to `plane` for a faster calculation that's inaccurate on long distances// and close to the poles.DistanceType *geodistancetype.GeoDistanceType `json:"distance_type,omitempty"`GeoDistanceQuery map[string]GeoLocation `json:"-"`// IgnoreUnmapped Set to `true` to ignore an unmapped field and not match any documents for// this query.// Set to `false` to throw an exception if the field is not mapped.IgnoreUnmapped *bool `json:"ignore_unmapped,omitempty"`QueryName_ *string `json:"_name,omitempty"`// ValidationMethod Set to `IGNORE_MALFORMED` to accept geo points with invalid latitude or// longitude.// Set to `COERCE` to also try to infer correct latitude or longitude.ValidationMethod *geovalidationmethod.GeoValidationMethod `json:"validation_method,omitempty"`}GeoDistanceQuery type.
funcNewGeoDistanceQuery¶added inv8.5.0
func NewGeoDistanceQuery() *GeoDistanceQuery
NewGeoDistanceQuery returns a GeoDistanceQuery.
func (GeoDistanceQuery)MarshalJSON¶
func (sGeoDistanceQuery) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
func (*GeoDistanceQuery)UnmarshalJSON¶added inv8.7.1
func (s *GeoDistanceQuery) UnmarshalJSON(data []byte)error
typeGeoDistanceSort¶
type GeoDistanceSort struct {DistanceType *geodistancetype.GeoDistanceType `json:"distance_type,omitempty"`GeoDistanceSort map[string][]GeoLocation `json:"-"`IgnoreUnmapped *bool `json:"ignore_unmapped,omitempty"`Mode *sortmode.SortMode `json:"mode,omitempty"`Nested *NestedSortValue `json:"nested,omitempty"`Order *sortorder.SortOrder `json:"order,omitempty"`Unit *distanceunit.DistanceUnit `json:"unit,omitempty"`}GeoDistanceSort type.
funcNewGeoDistanceSort¶added inv8.5.0
func NewGeoDistanceSort() *GeoDistanceSort
NewGeoDistanceSort returns a GeoDistanceSort.
func (GeoDistanceSort)MarshalJSON¶
func (sGeoDistanceSort) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
func (*GeoDistanceSort)UnmarshalJSON¶added inv8.7.1
func (s *GeoDistanceSort) UnmarshalJSON(data []byte)error
typeGeoGridProcessor¶added inv8.16.0
type GeoGridProcessor struct {// ChildrenField If specified and children tiles exist, save those tile addresses to this// field as an array of strings.ChildrenField *string `json:"children_field,omitempty"`// Description Description of the processor.// Useful for describing the purpose of the processor or its configuration.Description *string `json:"description,omitempty"`// Field The field to interpret as a geo-tile.=// The field format is determined by the `tile_type`.Fieldstring `json:"field"`// If Conditionally execute the processor.If *string `json:"if,omitempty"`// IgnoreFailure Ignore failures for the processor.IgnoreFailure *bool `json:"ignore_failure,omitempty"`// IgnoreMissing If `true` and `field` does not exist, the processor quietly exits without// modifying the document.IgnoreMissing *bool `json:"ignore_missing,omitempty"`// NonChildrenField If specified and intersecting non-child tiles exist, save their addresses to// this field as an array of strings.NonChildrenField *string `json:"non_children_field,omitempty"`// OnFailure Handle failures for the processor.OnFailure []ProcessorContainer `json:"on_failure,omitempty"`// ParentField If specified and a parent tile exists, save that tile address to this field.ParentField *string `json:"parent_field,omitempty"`// PrecisionField If specified, save the tile precision (zoom) as an integer to this field.PrecisionField *string `json:"precision_field,omitempty"`// Tag Identifier for the processor.// Useful for debugging and metrics.Tag *string `json:"tag,omitempty"`// TargetField The field to assign the polygon shape to, by default, the `field` is updated// in-place.TargetField *string `json:"target_field,omitempty"`// TargetFormat Which format to save the generated polygon in.TargetFormat *geogridtargetformat.GeoGridTargetFormat `json:"target_format,omitempty"`// TileType Three tile formats are understood: geohash, geotile and geohex.TileTypegeogridtiletype.GeoGridTileType `json:"tile_type"`}GeoGridProcessor type.
funcNewGeoGridProcessor¶added inv8.16.0
func NewGeoGridProcessor() *GeoGridProcessor
NewGeoGridProcessor returns a GeoGridProcessor.
func (*GeoGridProcessor)UnmarshalJSON¶added inv8.16.0
func (s *GeoGridProcessor) UnmarshalJSON(data []byte)error
typeGeoGridQuery¶added inv8.18.0
type GeoGridQuery struct {AdditionalGeoGridQueryProperty map[string]json.RawMessage `json:"-"`// Boost Floating point number used to decrease or increase the relevance scores of// the query.// Boost values are relative to the default value of 1.0.// A boost value between 0 and 1.0 decreases the relevance score.// A value greater than 1.0 increases the relevance score.Boost *float32 `json:"boost,omitempty"`Geohash *string `json:"geohash,omitempty"`Geohex *string `json:"geohex,omitempty"`Geotile *string `json:"geotile,omitempty"`QueryName_ *string `json:"_name,omitempty"`}GeoGridQuery type.
funcNewGeoGridQuery¶added inv8.18.0
func NewGeoGridQuery() *GeoGridQuery
NewGeoGridQuery returns a GeoGridQuery.
func (GeoGridQuery)MarshalJSON¶added inv8.18.0
func (sGeoGridQuery) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
func (*GeoGridQuery)UnmarshalJSON¶added inv8.18.0
func (s *GeoGridQuery) UnmarshalJSON(data []byte)error
typeGeoHashGridAggregate¶
type GeoHashGridAggregate struct {BucketsBucketsGeoHashGridBucket `json:"buckets"`MetaMetadata `json:"meta,omitempty"`}GeoHashGridAggregate type.
funcNewGeoHashGridAggregate¶added inv8.5.0
func NewGeoHashGridAggregate() *GeoHashGridAggregate
NewGeoHashGridAggregate returns a GeoHashGridAggregate.
func (*GeoHashGridAggregate)UnmarshalJSON¶added inv8.7.0
func (s *GeoHashGridAggregate) UnmarshalJSON(data []byte)error
typeGeoHashGridAggregation¶
type GeoHashGridAggregation struct {// Bounds The bounding box to filter the points in each bucket.BoundsGeoBounds `json:"bounds,omitempty"`// Field Field containing indexed `geo_point` or `geo_shape` values.// If the field contains an array, `geohash_grid` aggregates all array values.Field *string `json:"field,omitempty"`// Precision The string length of the geohashes used to define cells/buckets in the// results.PrecisionGeoHashPrecision `json:"precision,omitempty"`// ShardSize Allows for more accurate counting of the top cells returned in the final// result the aggregation.// Defaults to returning `max(10,(size x number-of-shards))` buckets from each// shard.ShardSize *int `json:"shard_size,omitempty"`// Size The maximum number of geohash buckets to return.Size *int `json:"size,omitempty"`}GeoHashGridAggregation type.
funcNewGeoHashGridAggregation¶added inv8.5.0
func NewGeoHashGridAggregation() *GeoHashGridAggregation
NewGeoHashGridAggregation returns a GeoHashGridAggregation.
func (*GeoHashGridAggregation)UnmarshalJSON¶added inv8.7.1
func (s *GeoHashGridAggregation) UnmarshalJSON(data []byte)error
typeGeoHashGridBucket¶
type GeoHashGridBucket struct {Aggregations map[string]Aggregate `json:"-"`DocCountint64 `json:"doc_count"`Keystring `json:"key"`}GeoHashGridBucket type.
funcNewGeoHashGridBucket¶added inv8.5.0
func NewGeoHashGridBucket() *GeoHashGridBucket
NewGeoHashGridBucket returns a GeoHashGridBucket.
func (GeoHashGridBucket)MarshalJSON¶
func (sGeoHashGridBucket) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
func (*GeoHashGridBucket)UnmarshalJSON¶added inv8.7.0
func (s *GeoHashGridBucket) UnmarshalJSON(data []byte)error
typeGeoHashLocation¶
type GeoHashLocation struct {Geohashstring `json:"geohash"`}GeoHashLocation type.
funcNewGeoHashLocation¶added inv8.5.0
func NewGeoHashLocation() *GeoHashLocation
NewGeoHashLocation returns a GeoHashLocation.
func (*GeoHashLocation)UnmarshalJSON¶added inv8.7.1
func (s *GeoHashLocation) UnmarshalJSON(data []byte)error
typeGeoHashPrecision¶
type GeoHashPrecisionany
GeoHashPrecision holds the union for the following types:
intstring
typeGeoHexGridAggregate¶added inv8.5.0
type GeoHexGridAggregate struct {BucketsBucketsGeoHexGridBucket `json:"buckets"`MetaMetadata `json:"meta,omitempty"`}GeoHexGridAggregate type.
funcNewGeoHexGridAggregate¶added inv8.5.0
func NewGeoHexGridAggregate() *GeoHexGridAggregate
NewGeoHexGridAggregate returns a GeoHexGridAggregate.
func (*GeoHexGridAggregate)UnmarshalJSON¶added inv8.7.0
func (s *GeoHexGridAggregate) UnmarshalJSON(data []byte)error
typeGeoHexGridBucket¶added inv8.5.0
type GeoHexGridBucket struct {Aggregations map[string]Aggregate `json:"-"`DocCountint64 `json:"doc_count"`Keystring `json:"key"`}GeoHexGridBucket type.
funcNewGeoHexGridBucket¶added inv8.5.0
func NewGeoHexGridBucket() *GeoHexGridBucket
NewGeoHexGridBucket returns a GeoHexGridBucket.
func (GeoHexGridBucket)MarshalJSON¶added inv8.5.0
func (sGeoHexGridBucket) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
func (*GeoHexGridBucket)UnmarshalJSON¶added inv8.7.0
func (s *GeoHexGridBucket) UnmarshalJSON(data []byte)error
typeGeoIpDownloadStatistics¶
type GeoIpDownloadStatistics struct {// DatabasesCount Current number of databases available for use.DatabasesCountint `json:"databases_count"`// ExpiredDatabases Total number of databases not updated after 30 daysExpiredDatabasesint `json:"expired_databases"`// FailedDownloads Total number of failed database downloads.FailedDownloadsint `json:"failed_downloads"`// SkippedUpdates Total number of database updates skipped.SkippedUpdatesint `json:"skipped_updates"`// SuccessfulDownloads Total number of successful database downloads.SuccessfulDownloadsint `json:"successful_downloads"`// TotalDownloadTime Total milliseconds spent downloading databases.TotalDownloadTimeint64 `json:"total_download_time"`}GeoIpDownloadStatistics type.
funcNewGeoIpDownloadStatistics¶added inv8.5.0
func NewGeoIpDownloadStatistics() *GeoIpDownloadStatistics
NewGeoIpDownloadStatistics returns a GeoIpDownloadStatistics.
func (*GeoIpDownloadStatistics)UnmarshalJSON¶added inv8.7.1
func (s *GeoIpDownloadStatistics) UnmarshalJSON(data []byte)error
typeGeoIpNodeDatabaseName¶
type GeoIpNodeDatabaseName struct {// Name Name of the database.Namestring `json:"name"`}GeoIpNodeDatabaseName type.
funcNewGeoIpNodeDatabaseName¶added inv8.5.0
func NewGeoIpNodeDatabaseName() *GeoIpNodeDatabaseName
NewGeoIpNodeDatabaseName returns a GeoIpNodeDatabaseName.
func (*GeoIpNodeDatabaseName)UnmarshalJSON¶added inv8.7.1
func (s *GeoIpNodeDatabaseName) UnmarshalJSON(data []byte)error
typeGeoIpNodeDatabases¶
type GeoIpNodeDatabases struct {// Databases Downloaded databases for the node.Databases []GeoIpNodeDatabaseName `json:"databases"`// FilesInTemp Downloaded database files, including related license files. Elasticsearch// stores these files in the node’s temporary directory:// $ES_TMPDIR/geoip-databases/<node_id>.FilesInTemp []string `json:"files_in_temp"`}GeoIpNodeDatabases type.
funcNewGeoIpNodeDatabases¶added inv8.5.0
func NewGeoIpNodeDatabases() *GeoIpNodeDatabases
NewGeoIpNodeDatabases returns a GeoIpNodeDatabases.
typeGeoIpProcessor¶
type GeoIpProcessor struct {// DatabaseFile The database filename referring to a database the module ships with// (GeoLite2-City.mmdb, GeoLite2-Country.mmdb, or GeoLite2-ASN.mmdb) or a custom// database in the ingest-geoip config directory.DatabaseFile *string `json:"database_file,omitempty"`// Description Description of the processor.// Useful for describing the purpose of the processor or its configuration.Description *string `json:"description,omitempty"`// DownloadDatabaseOnPipelineCreation If `true` (and if `ingest.geoip.downloader.eager.download` is `false`), the// missing database is downloaded when the pipeline is created.// Else, the download is triggered by when the pipeline is used as the// `default_pipeline` or `final_pipeline` in an index.DownloadDatabaseOnPipelineCreation *bool `json:"download_database_on_pipeline_creation,omitempty"`// Field The field to get the ip address from for the geographical lookup.Fieldstring `json:"field"`// FirstOnly If `true`, only the first found geoip data will be returned, even if the// field contains an array.FirstOnly *bool `json:"first_only,omitempty"`// If Conditionally execute the processor.If *string `json:"if,omitempty"`// IgnoreFailure Ignore failures for the processor.IgnoreFailure *bool `json:"ignore_failure,omitempty"`// IgnoreMissing If `true` and `field` does not exist, the processor quietly exits without// modifying the document.IgnoreMissing *bool `json:"ignore_missing,omitempty"`// OnFailure Handle failures for the processor.OnFailure []ProcessorContainer `json:"on_failure,omitempty"`// Properties Controls what properties are added to the `target_field` based on the geoip// lookup.Properties []string `json:"properties,omitempty"`// Tag Identifier for the processor.// Useful for debugging and metrics.Tag *string `json:"tag,omitempty"`// TargetField The field that will hold the geographical information looked up from the// MaxMind database.TargetField *string `json:"target_field,omitempty"`}GeoIpProcessor type.
funcNewGeoIpProcessor¶added inv8.5.0
func NewGeoIpProcessor() *GeoIpProcessor
NewGeoIpProcessor returns a GeoIpProcessor.
func (*GeoIpProcessor)UnmarshalJSON¶added inv8.7.1
func (s *GeoIpProcessor) UnmarshalJSON(data []byte)error
typeGeoLine¶
type GeoLine struct {// Coordinates Array of `[lon, lat]` coordinatesCoordinates [][]Float64 `json:"coordinates"`// Type Always `"LineString"`Typestring `json:"type"`}GeoLine type.
func (*GeoLine)UnmarshalJSON¶added inv8.7.1
typeGeoLineAggregate¶
type GeoLineAggregate struct {GeometryGeoLine `json:"geometry"`MetaMetadata `json:"meta,omitempty"`Propertiesjson.RawMessage `json:"properties,omitempty"`Typestring `json:"type"`}GeoLineAggregate type.
funcNewGeoLineAggregate¶added inv8.5.0
func NewGeoLineAggregate() *GeoLineAggregate
NewGeoLineAggregate returns a GeoLineAggregate.
func (*GeoLineAggregate)UnmarshalJSON¶added inv8.7.1
func (s *GeoLineAggregate) UnmarshalJSON(data []byte)error
typeGeoLineAggregation¶
type GeoLineAggregation struct {// IncludeSort When `true`, returns an additional array of the sort values in the feature// properties.IncludeSort *bool `json:"include_sort,omitempty"`// Point The name of the geo_point field.PointGeoLinePoint `json:"point"`// Size The maximum length of the line represented in the aggregation.// Valid sizes are between 1 and 10000.Size *int `json:"size,omitempty"`// Sort The name of the numeric field to use as the sort key for ordering the points.// When the `geo_line` aggregation is nested inside a `time_series` aggregation,// this field defaults to `@timestamp`, and any other value will result in// error.SortGeoLineSort `json:"sort"`// SortOrder The order in which the line is sorted (ascending or descending).SortOrder *sortorder.SortOrder `json:"sort_order,omitempty"`}GeoLineAggregation type.
funcNewGeoLineAggregation¶added inv8.5.0
func NewGeoLineAggregation() *GeoLineAggregation
NewGeoLineAggregation returns a GeoLineAggregation.
func (*GeoLineAggregation)UnmarshalJSON¶added inv8.7.1
func (s *GeoLineAggregation) UnmarshalJSON(data []byte)error
typeGeoLinePoint¶
type GeoLinePoint struct {// Field The name of the geo_point field.Fieldstring `json:"field"`}GeoLinePoint type.
funcNewGeoLinePoint¶added inv8.5.0
func NewGeoLinePoint() *GeoLinePoint
NewGeoLinePoint returns a GeoLinePoint.
func (*GeoLinePoint)UnmarshalJSON¶added inv8.7.1
func (s *GeoLinePoint) UnmarshalJSON(data []byte)error
typeGeoLineSort¶
type GeoLineSort struct {// Field The name of the numeric field to use as the sort key for ordering the points.Fieldstring `json:"field"`}GeoLineSort type.
funcNewGeoLineSort¶added inv8.5.0
func NewGeoLineSort() *GeoLineSort
NewGeoLineSort returns a GeoLineSort.
func (*GeoLineSort)UnmarshalJSON¶added inv8.7.1
func (s *GeoLineSort) UnmarshalJSON(data []byte)error
typeGeoLocation¶
type GeoLocationany
GeoLocation holds the union for the following types:
LatLonGeoLocationGeoHashLocation[]Float64string
typeGeoPointProperty¶
type GeoPointProperty struct {CopyTo []string `json:"copy_to,omitempty"`DocValues *bool `json:"doc_values,omitempty"`Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`Fields map[string]Property `json:"fields,omitempty"`IgnoreAbove *int `json:"ignore_above,omitempty"`IgnoreMalformed *bool `json:"ignore_malformed,omitempty"`IgnoreZValue *bool `json:"ignore_z_value,omitempty"`Index *bool `json:"index,omitempty"`// Meta Metadata about the field.Meta map[string]string `json:"meta,omitempty"`NullValueGeoLocation `json:"null_value,omitempty"`OnScriptError *onscripterror.OnScriptError `json:"on_script_error,omitempty"`Properties map[string]Property `json:"properties,omitempty"`Script *Script `json:"script,omitempty"`Store *bool `json:"store,omitempty"`SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`TimeSeriesMetric *geopointmetrictype.GeoPointMetricType `json:"time_series_metric,omitempty"`Typestring `json:"type,omitempty"`}GeoPointProperty type.
funcNewGeoPointProperty¶added inv8.5.0
func NewGeoPointProperty() *GeoPointProperty
NewGeoPointProperty returns a GeoPointProperty.
func (GeoPointProperty)MarshalJSON¶added inv8.9.0
func (sGeoPointProperty) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*GeoPointProperty)UnmarshalJSON¶added inv8.7.0
func (s *GeoPointProperty) UnmarshalJSON(data []byte)error
typeGeoPolygonPoints¶
type GeoPolygonPoints struct {Points []GeoLocation `json:"points"`}GeoPolygonPoints type.
funcNewGeoPolygonPoints¶added inv8.5.0
func NewGeoPolygonPoints() *GeoPolygonPoints
NewGeoPolygonPoints returns a GeoPolygonPoints.
typeGeoPolygonQuery¶
type GeoPolygonQuery struct {// Boost Floating point number used to decrease or increase the relevance scores of// the query.// Boost values are relative to the default value of 1.0.// A boost value between 0 and 1.0 decreases the relevance score.// A value greater than 1.0 increases the relevance score.Boost *float32 `json:"boost,omitempty"`GeoPolygonQuery map[string]GeoPolygonPoints `json:"-"`IgnoreUnmapped *bool `json:"ignore_unmapped,omitempty"`QueryName_ *string `json:"_name,omitempty"`ValidationMethod *geovalidationmethod.GeoValidationMethod `json:"validation_method,omitempty"`}GeoPolygonQuery type.
funcNewGeoPolygonQuery¶added inv8.5.0
func NewGeoPolygonQuery() *GeoPolygonQuery
NewGeoPolygonQuery returns a GeoPolygonQuery.
func (GeoPolygonQuery)MarshalJSON¶
func (sGeoPolygonQuery) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
func (*GeoPolygonQuery)UnmarshalJSON¶added inv8.7.1
func (s *GeoPolygonQuery) UnmarshalJSON(data []byte)error
typeGeoResults¶added inv8.7.0
type GeoResults struct {// ActualPoint The actual value for the bucket formatted as a `geo_point`.ActualPoint *string `json:"actual_point,omitempty"`// TypicalPoint The typical value for the bucket formatted as a `geo_point`.TypicalPoint *string `json:"typical_point,omitempty"`}GeoResults type.
func (*GeoResults)UnmarshalJSON¶added inv8.9.0
func (s *GeoResults) UnmarshalJSON(data []byte)error
typeGeoShapeFieldQuery¶
type GeoShapeFieldQuery struct {// IndexedShape Query using an indexed shape retrieved from the the specified document and// path.IndexedShape *FieldLookup `json:"indexed_shape,omitempty"`// Relation Spatial relation operator used to search a geo field.Relation *geoshaperelation.GeoShapeRelation `json:"relation,omitempty"`Shapejson.RawMessage `json:"shape,omitempty"`}GeoShapeFieldQuery type.
funcNewGeoShapeFieldQuery¶added inv8.5.0
func NewGeoShapeFieldQuery() *GeoShapeFieldQuery
NewGeoShapeFieldQuery returns a GeoShapeFieldQuery.
func (*GeoShapeFieldQuery)UnmarshalJSON¶added inv8.7.1
func (s *GeoShapeFieldQuery) UnmarshalJSON(data []byte)error
typeGeoShapeProperty¶
type GeoShapeProperty struct {Coerce *bool `json:"coerce,omitempty"`CopyTo []string `json:"copy_to,omitempty"`DocValues *bool `json:"doc_values,omitempty"`Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`Fields map[string]Property `json:"fields,omitempty"`IgnoreAbove *int `json:"ignore_above,omitempty"`IgnoreMalformed *bool `json:"ignore_malformed,omitempty"`IgnoreZValue *bool `json:"ignore_z_value,omitempty"`Index *bool `json:"index,omitempty"`// Meta Metadata about the field.Meta map[string]string `json:"meta,omitempty"`Orientation *geoorientation.GeoOrientation `json:"orientation,omitempty"`Properties map[string]Property `json:"properties,omitempty"`Store *bool `json:"store,omitempty"`Strategy *geostrategy.GeoStrategy `json:"strategy,omitempty"`SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`Typestring `json:"type,omitempty"`}GeoShapeProperty type.
funcNewGeoShapeProperty¶added inv8.5.0
func NewGeoShapeProperty() *GeoShapeProperty
NewGeoShapeProperty returns a GeoShapeProperty.
func (GeoShapeProperty)MarshalJSON¶added inv8.9.0
func (sGeoShapeProperty) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*GeoShapeProperty)UnmarshalJSON¶added inv8.7.0
func (s *GeoShapeProperty) UnmarshalJSON(data []byte)error
typeGeoShapeQuery¶
type GeoShapeQuery struct {// Boost Floating point number used to decrease or increase the relevance scores of// the query.// Boost values are relative to the default value of 1.0.// A boost value between 0 and 1.0 decreases the relevance score.// A value greater than 1.0 increases the relevance score.Boost *float32 `json:"boost,omitempty"`GeoShapeQuery map[string]GeoShapeFieldQuery `json:"-"`// IgnoreUnmapped Set to `true` to ignore an unmapped field and not match any documents for// this query.// Set to `false` to throw an exception if the field is not mapped.IgnoreUnmapped *bool `json:"ignore_unmapped,omitempty"`QueryName_ *string `json:"_name,omitempty"`}GeoShapeQuery type.
funcNewGeoShapeQuery¶added inv8.5.0
func NewGeoShapeQuery() *GeoShapeQuery
NewGeoShapeQuery returns a GeoShapeQuery.
func (GeoShapeQuery)MarshalJSON¶
func (sGeoShapeQuery) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
func (*GeoShapeQuery)UnmarshalJSON¶added inv8.7.1
func (s *GeoShapeQuery) UnmarshalJSON(data []byte)error
typeGeoTileGridAggregate¶
type GeoTileGridAggregate struct {BucketsBucketsGeoTileGridBucket `json:"buckets"`MetaMetadata `json:"meta,omitempty"`}GeoTileGridAggregate type.
funcNewGeoTileGridAggregate¶added inv8.5.0
func NewGeoTileGridAggregate() *GeoTileGridAggregate
NewGeoTileGridAggregate returns a GeoTileGridAggregate.
func (*GeoTileGridAggregate)UnmarshalJSON¶added inv8.7.0
func (s *GeoTileGridAggregate) UnmarshalJSON(data []byte)error
typeGeoTileGridAggregation¶
type GeoTileGridAggregation struct {// Bounds A bounding box to filter the geo-points or geo-shapes in each bucket.BoundsGeoBounds `json:"bounds,omitempty"`// Field Field containing indexed `geo_point` or `geo_shape` values.// If the field contains an array, `geotile_grid` aggregates all array values.Field *string `json:"field,omitempty"`// Precision Integer zoom of the key used to define cells/buckets in the results.// Values outside of the range [0,29] will be rejected.Precision *int `json:"precision,omitempty"`// ShardSize Allows for more accurate counting of the top cells returned in the final// result the aggregation.// Defaults to returning `max(10,(size x number-of-shards))` buckets from each// shard.ShardSize *int `json:"shard_size,omitempty"`// Size The maximum number of buckets to return.Size *int `json:"size,omitempty"`}GeoTileGridAggregation type.
funcNewGeoTileGridAggregation¶added inv8.5.0
func NewGeoTileGridAggregation() *GeoTileGridAggregation
NewGeoTileGridAggregation returns a GeoTileGridAggregation.
func (*GeoTileGridAggregation)UnmarshalJSON¶added inv8.7.1
func (s *GeoTileGridAggregation) UnmarshalJSON(data []byte)error
typeGeoTileGridBucket¶
type GeoTileGridBucket struct {Aggregations map[string]Aggregate `json:"-"`DocCountint64 `json:"doc_count"`Keystring `json:"key"`}GeoTileGridBucket type.
funcNewGeoTileGridBucket¶added inv8.5.0
func NewGeoTileGridBucket() *GeoTileGridBucket
NewGeoTileGridBucket returns a GeoTileGridBucket.
func (GeoTileGridBucket)MarshalJSON¶
func (sGeoTileGridBucket) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
func (*GeoTileGridBucket)UnmarshalJSON¶added inv8.7.0
func (s *GeoTileGridBucket) UnmarshalJSON(data []byte)error
typeGeohexGridAggregation¶
type GeohexGridAggregation struct {// Bounds Bounding box used to filter the geo-points in each bucket.BoundsGeoBounds `json:"bounds,omitempty"`// Field Field containing indexed `geo_point` or `geo_shape` values.// If the field contains an array, `geohex_grid` aggregates all array values.Fieldstring `json:"field"`// Precision Integer zoom of the key used to defined cells or buckets// in the results. Value should be between 0-15.Precision *int `json:"precision,omitempty"`// ShardSize Number of buckets returned from each shard.ShardSize *int `json:"shard_size,omitempty"`// Size Maximum number of buckets to return.Size *int `json:"size,omitempty"`}GeohexGridAggregation type.
funcNewGeohexGridAggregation¶added inv8.5.0
func NewGeohexGridAggregation() *GeohexGridAggregation
NewGeohexGridAggregation returns a GeohexGridAggregation.
func (*GeohexGridAggregation)UnmarshalJSON¶added inv8.7.1
func (s *GeohexGridAggregation) UnmarshalJSON(data []byte)error
typeGeoipDatabaseConfigurationMetadata¶added inv8.18.0
type GeoipDatabaseConfigurationMetadata struct {DatabaseDatabaseConfiguration `json:"database"`Idstring `json:"id"`ModifiedDateMillisint64 `json:"modified_date_millis"`Versionint64 `json:"version"`}GeoipDatabaseConfigurationMetadata type.
funcNewGeoipDatabaseConfigurationMetadata¶added inv8.18.0
func NewGeoipDatabaseConfigurationMetadata() *GeoipDatabaseConfigurationMetadata
NewGeoipDatabaseConfigurationMetadata returns a GeoipDatabaseConfigurationMetadata.
func (*GeoipDatabaseConfigurationMetadata)UnmarshalJSON¶added inv8.18.0
func (s *GeoipDatabaseConfigurationMetadata) UnmarshalJSON(data []byte)error
typeGermanAnalyzer¶added inv8.16.0
type GermanAnalyzer struct {StemExclusion []string `json:"stem_exclusion,omitempty"`StopwordsStopWords `json:"stopwords,omitempty"`StopwordsPath *string `json:"stopwords_path,omitempty"`Typestring `json:"type,omitempty"`}GermanAnalyzer type.
funcNewGermanAnalyzer¶added inv8.16.0
func NewGermanAnalyzer() *GermanAnalyzer
NewGermanAnalyzer returns a GermanAnalyzer.
func (GermanAnalyzer)MarshalJSON¶added inv8.16.0
func (sGermanAnalyzer) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*GermanAnalyzer)UnmarshalJSON¶added inv8.16.0
func (s *GermanAnalyzer) UnmarshalJSON(data []byte)error
typeGermanNormalizationTokenFilter¶added inv8.18.1
type GermanNormalizationTokenFilter struct {Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}GermanNormalizationTokenFilter type.
funcNewGermanNormalizationTokenFilter¶added inv8.18.1
func NewGermanNormalizationTokenFilter() *GermanNormalizationTokenFilter
NewGermanNormalizationTokenFilter returns a GermanNormalizationTokenFilter.
func (GermanNormalizationTokenFilter)MarshalJSON¶added inv8.18.1
func (sGermanNormalizationTokenFilter) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*GermanNormalizationTokenFilter)UnmarshalJSON¶added inv8.18.1
func (s *GermanNormalizationTokenFilter) UnmarshalJSON(data []byte)error
typeGermanStemTokenFilter¶added inv8.19.0
type GermanStemTokenFilter struct {Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}GermanStemTokenFilter type.
funcNewGermanStemTokenFilter¶added inv8.19.0
func NewGermanStemTokenFilter() *GermanStemTokenFilter
NewGermanStemTokenFilter returns a GermanStemTokenFilter.
func (GermanStemTokenFilter)MarshalJSON¶added inv8.19.0
func (sGermanStemTokenFilter) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*GermanStemTokenFilter)UnmarshalJSON¶added inv8.19.0
func (s *GermanStemTokenFilter) UnmarshalJSON(data []byte)error
typeGetMigrationFeature¶added inv8.5.0
type GetMigrationFeature struct {FeatureNamestring `json:"feature_name"`Indices []MigrationFeatureIndexInfo `json:"indices"`MigrationStatusmigrationstatus.MigrationStatus `json:"migration_status"`MinimumIndexVersionstring `json:"minimum_index_version"`}GetMigrationFeature type.
funcNewGetMigrationFeature¶added inv8.5.0
func NewGetMigrationFeature() *GetMigrationFeature
NewGetMigrationFeature returns a GetMigrationFeature.
func (*GetMigrationFeature)UnmarshalJSON¶added inv8.7.1
func (s *GetMigrationFeature) UnmarshalJSON(data []byte)error
typeGetResult¶
type GetResult struct {// Fields If the `stored_fields` parameter is set to `true` and `found` is `true`, it// contains the document fields stored in the index.Fields map[string]json.RawMessage `json:"fields,omitempty"`// Found Indicates whether the document exists.Foundbool `json:"found"`// Id_ The unique identifier for the document.Id_string `json:"_id"`Ignored_ []string `json:"_ignored,omitempty"`// Index_ The name of the index the document belongs to.Index_string `json:"_index"`// PrimaryTerm_ The primary term assigned to the document for the indexing operation.PrimaryTerm_ *int64 `json:"_primary_term,omitempty"`// Routing_ The explicit routing, if set.Routing_ *string `json:"_routing,omitempty"`// SeqNo_ The sequence number assigned to the document for the indexing operation.// Sequence numbers are used to ensure an older version of a document doesn't// overwrite a newer version.SeqNo_ *int64 `json:"_seq_no,omitempty"`// Source_ If `found` is `true`, it contains the document data formatted in JSON.// If the `_source` parameter is set to `false` or the `stored_fields` parameter// is set to `true`, it is excluded.Source_json.RawMessage `json:"_source,omitempty"`// Version_ The document version, which is ncremented each time the document is updated.Version_ *int64 `json:"_version,omitempty"`}GetResult type.
func (*GetResult)UnmarshalJSON¶added inv8.7.1
typeGetScriptContext¶added inv8.5.0
type GetScriptContext struct {Methods []ContextMethod `json:"methods"`Namestring `json:"name"`}GetScriptContext type.
funcNewGetScriptContext¶added inv8.5.0
func NewGetScriptContext() *GetScriptContext
NewGetScriptContext returns a GetScriptContext.
func (*GetScriptContext)UnmarshalJSON¶added inv8.7.1
func (s *GetScriptContext) UnmarshalJSON(data []byte)error
typeGetStats¶
type GetStats struct {Currentint64 `json:"current"`ExistsTimeDuration `json:"exists_time,omitempty"`ExistsTimeInMillisint64 `json:"exists_time_in_millis"`ExistsTotalint64 `json:"exists_total"`MissingTimeDuration `json:"missing_time,omitempty"`MissingTimeInMillisint64 `json:"missing_time_in_millis"`MissingTotalint64 `json:"missing_total"`TimeDuration `json:"time,omitempty"`TimeInMillisint64 `json:"time_in_millis"`Totalint64 `json:"total"`}GetStats type.
func (*GetStats)UnmarshalJSON¶added inv8.7.1
typeGetUserProfileErrors¶added inv8.5.0
type GetUserProfileErrors struct {Countint64 `json:"count"`Details map[string]ErrorCause `json:"details"`}GetUserProfileErrors type.
funcNewGetUserProfileErrors¶added inv8.5.0
func NewGetUserProfileErrors() *GetUserProfileErrors
NewGetUserProfileErrors returns a GetUserProfileErrors.
func (*GetUserProfileErrors)UnmarshalJSON¶added inv8.7.1
func (s *GetUserProfileErrors) UnmarshalJSON(data []byte)error
typeGlobalAggregate¶
type GlobalAggregate struct {Aggregations map[string]Aggregate `json:"-"`DocCountint64 `json:"doc_count"`MetaMetadata `json:"meta,omitempty"`}GlobalAggregate type.
funcNewGlobalAggregate¶added inv8.5.0
func NewGlobalAggregate() *GlobalAggregate
NewGlobalAggregate returns a GlobalAggregate.
func (GlobalAggregate)MarshalJSON¶
func (sGlobalAggregate) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
func (*GlobalAggregate)UnmarshalJSON¶added inv8.7.0
func (s *GlobalAggregate) UnmarshalJSON(data []byte)error
typeGlobalAggregation¶
type GlobalAggregation struct {}GlobalAggregation type.
funcNewGlobalAggregation¶added inv8.5.0
func NewGlobalAggregation() *GlobalAggregation
NewGlobalAggregation returns a GlobalAggregation.
typeGlobalOrdinalFieldStats¶added inv8.19.0
type GlobalOrdinalFieldStats struct {BuildTime *string `json:"build_time,omitempty"`BuildTimeInMillisint64 `json:"build_time_in_millis"`ShardMaxValueCountint64 `json:"shard_max_value_count"`}GlobalOrdinalFieldStats type.
funcNewGlobalOrdinalFieldStats¶added inv8.19.0
func NewGlobalOrdinalFieldStats() *GlobalOrdinalFieldStats
NewGlobalOrdinalFieldStats returns a GlobalOrdinalFieldStats.
func (*GlobalOrdinalFieldStats)UnmarshalJSON¶added inv8.19.0
func (s *GlobalOrdinalFieldStats) UnmarshalJSON(data []byte)error
typeGlobalOrdinalsStats¶added inv8.19.0
type GlobalOrdinalsStats struct {BuildTime *string `json:"build_time,omitempty"`BuildTimeInMillisint64 `json:"build_time_in_millis"`Fields map[string]GlobalOrdinalFieldStats `json:"fields,omitempty"`}GlobalOrdinalsStats type.
funcNewGlobalOrdinalsStats¶added inv8.19.0
func NewGlobalOrdinalsStats() *GlobalOrdinalsStats
NewGlobalOrdinalsStats returns a GlobalOrdinalsStats.
func (*GlobalOrdinalsStats)UnmarshalJSON¶added inv8.19.0
func (s *GlobalOrdinalsStats) UnmarshalJSON(data []byte)error
typeGlobalPrivilege¶
type GlobalPrivilege struct {ApplicationApplicationGlobalUserPrivileges `json:"application"`}GlobalPrivilege type.
funcNewGlobalPrivilege¶added inv8.5.0
func NewGlobalPrivilege() *GlobalPrivilege
NewGlobalPrivilege returns a GlobalPrivilege.
typeGoogleAiStudioServiceSettings¶added inv8.18.0
type GoogleAiStudioServiceSettings struct {// ApiKey A valid API key of your Google Gemini account.ApiKeystring `json:"api_key"`// ModelId The name of the model to use for the inference task.// Refer to the Google documentation for the list of supported models.ModelIdstring `json:"model_id"`// RateLimit This setting helps to minimize the number of rate limit errors returned from// Google AI Studio.// By default, the `googleaistudio` service sets the number of requests allowed// per minute to 360.RateLimit *RateLimitSetting `json:"rate_limit,omitempty"`}GoogleAiStudioServiceSettings type.
funcNewGoogleAiStudioServiceSettings¶added inv8.18.0
func NewGoogleAiStudioServiceSettings() *GoogleAiStudioServiceSettings
NewGoogleAiStudioServiceSettings returns a GoogleAiStudioServiceSettings.
func (*GoogleAiStudioServiceSettings)UnmarshalJSON¶added inv8.18.0
func (s *GoogleAiStudioServiceSettings) UnmarshalJSON(data []byte)error
typeGoogleNormalizedDistanceHeuristic¶
type GoogleNormalizedDistanceHeuristic struct {// BackgroundIsSuperset Set to `false` if you defined a custom background filter that represents a// different set of documents that you want to compare to.BackgroundIsSuperset *bool `json:"background_is_superset,omitempty"`}GoogleNormalizedDistanceHeuristic type.
funcNewGoogleNormalizedDistanceHeuristic¶added inv8.5.0
func NewGoogleNormalizedDistanceHeuristic() *GoogleNormalizedDistanceHeuristic
NewGoogleNormalizedDistanceHeuristic returns a GoogleNormalizedDistanceHeuristic.
func (*GoogleNormalizedDistanceHeuristic)UnmarshalJSON¶added inv8.7.1
func (s *GoogleNormalizedDistanceHeuristic) UnmarshalJSON(data []byte)error
typeGoogleVertexAIServiceSettings¶added inv8.18.0
type GoogleVertexAIServiceSettings struct {// Location The name of the location to use for the inference task.// Refer to the Google documentation for the list of supported locations.Locationstring `json:"location"`// ModelId The name of the model to use for the inference task.// Refer to the Google documentation for the list of supported models.ModelIdstring `json:"model_id"`// ProjectId The name of the project to use for the inference task.ProjectIdstring `json:"project_id"`// RateLimit This setting helps to minimize the number of rate limit errors returned from// Google Vertex AI.// By default, the `googlevertexai` service sets the number of requests allowed// per minute to 30.000.RateLimit *RateLimitSetting `json:"rate_limit,omitempty"`// ServiceAccountJson A valid service account in JSON format for the Google Vertex AI API.ServiceAccountJsonstring `json:"service_account_json"`}GoogleVertexAIServiceSettings type.
funcNewGoogleVertexAIServiceSettings¶added inv8.18.0
func NewGoogleVertexAIServiceSettings() *GoogleVertexAIServiceSettings
NewGoogleVertexAIServiceSettings returns a GoogleVertexAIServiceSettings.
func (*GoogleVertexAIServiceSettings)UnmarshalJSON¶added inv8.18.0
func (s *GoogleVertexAIServiceSettings) UnmarshalJSON(data []byte)error
typeGoogleVertexAITaskSettings¶added inv8.18.0
type GoogleVertexAITaskSettings struct {// AutoTruncate For a `text_embedding` task, truncate inputs longer than the maximum token// length automatically.AutoTruncate *bool `json:"auto_truncate,omitempty"`// TopN For a `rerank` task, the number of the top N documents that should be// returned.TopN *int `json:"top_n,omitempty"`}GoogleVertexAITaskSettings type.
funcNewGoogleVertexAITaskSettings¶added inv8.18.0
func NewGoogleVertexAITaskSettings() *GoogleVertexAITaskSettings
NewGoogleVertexAITaskSettings returns a GoogleVertexAITaskSettings.
func (*GoogleVertexAITaskSettings)UnmarshalJSON¶added inv8.18.0
func (s *GoogleVertexAITaskSettings) UnmarshalJSON(data []byte)error
typeGrantApiKey¶
type GrantApiKey struct {// Expiration Expiration time for the API key. By default, API keys never expire.Expiration *string `json:"expiration,omitempty"`// Metadata Arbitrary metadata that you want to associate with the API key.// It supports nested data structure.// Within the `metadata` object, keys beginning with `_` are reserved for system// usage.MetadataMetadata `json:"metadata,omitempty"`Namestring `json:"name"`// RoleDescriptors The role descriptors for this API key.// When it is not specified or is an empty array, the API key has a point in// time snapshot of permissions of the specified user or access token.// If you supply role descriptors, the resultant permissions are an intersection// of API keys permissions and the permissions of the user or access token.RoleDescriptors []map[string]RoleDescriptor `json:"role_descriptors,omitempty"`}GrantApiKey type.
funcNewGrantApiKey¶added inv8.5.0
func NewGrantApiKey() *GrantApiKey
NewGrantApiKey returns a GrantApiKey.
func (*GrantApiKey)UnmarshalJSON¶added inv8.7.1
func (s *GrantApiKey) UnmarshalJSON(data []byte)error
typeGreaterThanValidation¶added inv8.15.0
type GreaterThanValidation struct {ConstraintFloat64 `json:"constraint"`Typestring `json:"type,omitempty"`}GreaterThanValidation type.
funcNewGreaterThanValidation¶added inv8.15.0
func NewGreaterThanValidation() *GreaterThanValidation
NewGreaterThanValidation returns a GreaterThanValidation.
func (GreaterThanValidation)MarshalJSON¶added inv8.15.0
func (sGreaterThanValidation) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*GreaterThanValidation)UnmarshalJSON¶added inv8.15.0
func (s *GreaterThanValidation) UnmarshalJSON(data []byte)error
typeGreekAnalyzer¶added inv8.16.0
type GreekAnalyzer struct {StopwordsStopWords `json:"stopwords,omitempty"`StopwordsPath *string `json:"stopwords_path,omitempty"`Typestring `json:"type,omitempty"`}GreekAnalyzer type.
funcNewGreekAnalyzer¶added inv8.16.0
func NewGreekAnalyzer() *GreekAnalyzer
NewGreekAnalyzer returns a GreekAnalyzer.
func (GreekAnalyzer)MarshalJSON¶added inv8.16.0
func (sGreekAnalyzer) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*GreekAnalyzer)UnmarshalJSON¶added inv8.16.0
func (s *GreekAnalyzer) UnmarshalJSON(data []byte)error
typeGrokProcessor¶
type GrokProcessor struct {// Description Description of the processor.// Useful for describing the purpose of the processor or its configuration.Description *string `json:"description,omitempty"`// EcsCompatibility Must be disabled or v1. If v1, the processor uses patterns with Elastic// Common Schema (ECS) field names.EcsCompatibility *string `json:"ecs_compatibility,omitempty"`// Field The field to use for grok expression parsing.Fieldstring `json:"field"`// If Conditionally execute the processor.If *string `json:"if,omitempty"`// IgnoreFailure Ignore failures for the processor.IgnoreFailure *bool `json:"ignore_failure,omitempty"`// IgnoreMissing If `true` and `field` does not exist or is `null`, the processor quietly// exits without modifying the document.IgnoreMissing *bool `json:"ignore_missing,omitempty"`// OnFailure Handle failures for the processor.OnFailure []ProcessorContainer `json:"on_failure,omitempty"`// PatternDefinitions A map of pattern-name and pattern tuples defining custom patterns to be used// by the current processor.// Patterns matching existing names will override the pre-existing definition.PatternDefinitions map[string]string `json:"pattern_definitions,omitempty"`// Patterns An ordered list of grok expression to match and extract named captures with.// Returns on the first expression in the list that matches.Patterns []string `json:"patterns"`// Tag Identifier for the processor.// Useful for debugging and metrics.Tag *string `json:"tag,omitempty"`// TraceMatch When `true`, `_ingest._grok_match_index` will be inserted into your matched// document’s metadata with the index into the pattern found in `patterns` that// matched.TraceMatch *bool `json:"trace_match,omitempty"`}GrokProcessor type.
funcNewGrokProcessor¶added inv8.5.0
func NewGrokProcessor() *GrokProcessor
NewGrokProcessor returns a GrokProcessor.
func (*GrokProcessor)UnmarshalJSON¶added inv8.7.1
func (s *GrokProcessor) UnmarshalJSON(data []byte)error
typeGroupings¶
type Groupings struct {// DateHistogram A date histogram group aggregates a date field into time-based buckets.// This group is mandatory; you currently cannot roll up documents without a// timestamp and a `date_histogram` group.DateHistogram *DateHistogramGrouping `json:"date_histogram,omitempty"`// Histogram The histogram group aggregates one or more numeric fields into numeric// histogram intervals.Histogram *HistogramGrouping `json:"histogram,omitempty"`// Terms The terms group can be used on keyword or numeric fields to allow bucketing// via the terms aggregation at a later point.// The indexer enumerates and stores all values of a field for each time-period.// This can be potentially costly for high-cardinality groups such as IP// addresses, especially if the time-bucket is particularly sparse.Terms *TermsGrouping `json:"terms,omitempty"`}Groupings type.
typeGsubProcessor¶
type GsubProcessor struct {// Description Description of the processor.// Useful for describing the purpose of the processor or its configuration.Description *string `json:"description,omitempty"`// Field The field to apply the replacement to.Fieldstring `json:"field"`// If Conditionally execute the processor.If *string `json:"if,omitempty"`// IgnoreFailure Ignore failures for the processor.IgnoreFailure *bool `json:"ignore_failure,omitempty"`// IgnoreMissing If `true` and `field` does not exist or is `null`, the processor quietly// exits without modifying the document.IgnoreMissing *bool `json:"ignore_missing,omitempty"`// OnFailure Handle failures for the processor.OnFailure []ProcessorContainer `json:"on_failure,omitempty"`// Pattern The pattern to be replaced.Patternstring `json:"pattern"`// Replacement The string to replace the matching patterns with.Replacementstring `json:"replacement"`// Tag Identifier for the processor.// Useful for debugging and metrics.Tag *string `json:"tag,omitempty"`// TargetField The field to assign the converted value to// By default, the `field` is updated in-place.TargetField *string `json:"target_field,omitempty"`}GsubProcessor type.
funcNewGsubProcessor¶added inv8.5.0
func NewGsubProcessor() *GsubProcessor
NewGsubProcessor returns a GsubProcessor.
func (*GsubProcessor)UnmarshalJSON¶added inv8.7.1
func (s *GsubProcessor) UnmarshalJSON(data []byte)error
typeHalfFloatNumberProperty¶
type HalfFloatNumberProperty struct {Boost *Float64 `json:"boost,omitempty"`Coerce *bool `json:"coerce,omitempty"`CopyTo []string `json:"copy_to,omitempty"`DocValues *bool `json:"doc_values,omitempty"`Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`Fields map[string]Property `json:"fields,omitempty"`IgnoreAbove *int `json:"ignore_above,omitempty"`IgnoreMalformed *bool `json:"ignore_malformed,omitempty"`Index *bool `json:"index,omitempty"`// Meta Metadata about the field.Meta map[string]string `json:"meta,omitempty"`NullValue *float32 `json:"null_value,omitempty"`OnScriptError *onscripterror.OnScriptError `json:"on_script_error,omitempty"`Properties map[string]Property `json:"properties,omitempty"`Script *Script `json:"script,omitempty"`Store *bool `json:"store,omitempty"`SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`// TimeSeriesDimension For internal use by Elastic only. Marks the field as a time series dimension.// Defaults to false.TimeSeriesDimension *bool `json:"time_series_dimension,omitempty"`// TimeSeriesMetric For internal use by Elastic only. Marks the field as a time series dimension.// Defaults to false.TimeSeriesMetric *timeseriesmetrictype.TimeSeriesMetricType `json:"time_series_metric,omitempty"`Typestring `json:"type,omitempty"`}HalfFloatNumberProperty type.
funcNewHalfFloatNumberProperty¶added inv8.5.0
func NewHalfFloatNumberProperty() *HalfFloatNumberProperty
NewHalfFloatNumberProperty returns a HalfFloatNumberProperty.
func (HalfFloatNumberProperty)MarshalJSON¶added inv8.9.0
func (sHalfFloatNumberProperty) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*HalfFloatNumberProperty)UnmarshalJSON¶added inv8.7.0
func (s *HalfFloatNumberProperty) UnmarshalJSON(data []byte)error
typeHasChildQuery¶
type HasChildQuery struct {// Boost Floating point number used to decrease or increase the relevance scores of// the query.// Boost values are relative to the default value of 1.0.// A boost value between 0 and 1.0 decreases the relevance score.// A value greater than 1.0 increases the relevance score.Boost *float32 `json:"boost,omitempty"`// IgnoreUnmapped Indicates whether to ignore an unmapped `type` and not return any documents// instead of an error.IgnoreUnmapped *bool `json:"ignore_unmapped,omitempty"`// InnerHits If defined, each search hit will contain inner hits.InnerHits *InnerHits `json:"inner_hits,omitempty"`// MaxChildren Maximum number of child documents that match the query allowed for a returned// parent document.// If the parent document exceeds this limit, it is excluded from the search// results.MaxChildren *int `json:"max_children,omitempty"`// MinChildren Minimum number of child documents that match the query required to match the// query for a returned parent document.// If the parent document does not meet this limit, it is excluded from the// search results.MinChildren *int `json:"min_children,omitempty"`// Query Query you wish to run on child documents of the `type` field.// If a child document matches the search, the query returns the parent// document.QueryQuery `json:"query"`QueryName_ *string `json:"_name,omitempty"`// ScoreMode Indicates how scores for matching child documents affect the root parent// document’s relevance score.ScoreMode *childscoremode.ChildScoreMode `json:"score_mode,omitempty"`// Type Name of the child relationship mapped for the `join` field.Typestring `json:"type"`}HasChildQuery type.
funcNewHasChildQuery¶added inv8.5.0
func NewHasChildQuery() *HasChildQuery
NewHasChildQuery returns a HasChildQuery.
func (*HasChildQuery)UnmarshalJSON¶added inv8.7.1
func (s *HasChildQuery) UnmarshalJSON(data []byte)error
typeHasParentQuery¶
type HasParentQuery struct {// Boost Floating point number used to decrease or increase the relevance scores of// the query.// Boost values are relative to the default value of 1.0.// A boost value between 0 and 1.0 decreases the relevance score.// A value greater than 1.0 increases the relevance score.Boost *float32 `json:"boost,omitempty"`// IgnoreUnmapped Indicates whether to ignore an unmapped `parent_type` and not return any// documents instead of an error.// You can use this parameter to query multiple indices that may not contain the// `parent_type`.IgnoreUnmapped *bool `json:"ignore_unmapped,omitempty"`// InnerHits If defined, each search hit will contain inner hits.InnerHits *InnerHits `json:"inner_hits,omitempty"`// ParentType Name of the parent relationship mapped for the `join` field.ParentTypestring `json:"parent_type"`// Query Query you wish to run on parent documents of the `parent_type` field.// If a parent document matches the search, the query returns its child// documents.QueryQuery `json:"query"`QueryName_ *string `json:"_name,omitempty"`// Score Indicates whether the relevance score of a matching parent document is// aggregated into its child documents.Score *bool `json:"score,omitempty"`}HasParentQuery type.
funcNewHasParentQuery¶added inv8.5.0
func NewHasParentQuery() *HasParentQuery
NewHasParentQuery returns a HasParentQuery.
func (*HasParentQuery)UnmarshalJSON¶added inv8.7.1
func (s *HasParentQuery) UnmarshalJSON(data []byte)error
typeHasPrivilegesUserProfileErrors¶added inv8.5.0
type HasPrivilegesUserProfileErrors struct {Countint64 `json:"count"`Details map[string]ErrorCause `json:"details"`}HasPrivilegesUserProfileErrors type.
funcNewHasPrivilegesUserProfileErrors¶added inv8.5.0
func NewHasPrivilegesUserProfileErrors() *HasPrivilegesUserProfileErrors
NewHasPrivilegesUserProfileErrors returns a HasPrivilegesUserProfileErrors.
func (*HasPrivilegesUserProfileErrors)UnmarshalJSON¶added inv8.7.1
func (s *HasPrivilegesUserProfileErrors) UnmarshalJSON(data []byte)error
typeHdrMethod¶
type HdrMethod struct {// NumberOfSignificantValueDigits Specifies the resolution of values for the histogram in number of significant// digits.NumberOfSignificantValueDigits *int `json:"number_of_significant_value_digits,omitempty"`}HdrMethod type.
func (*HdrMethod)UnmarshalJSON¶added inv8.7.1
typeHdrPercentileRanksAggregate¶
type HdrPercentileRanksAggregate struct {MetaMetadata `json:"meta,omitempty"`ValuesPercentiles `json:"values"`}HdrPercentileRanksAggregate type.
funcNewHdrPercentileRanksAggregate¶added inv8.5.0
func NewHdrPercentileRanksAggregate() *HdrPercentileRanksAggregate
NewHdrPercentileRanksAggregate returns a HdrPercentileRanksAggregate.
func (*HdrPercentileRanksAggregate)UnmarshalJSON¶added inv8.7.1
func (s *HdrPercentileRanksAggregate) UnmarshalJSON(data []byte)error
typeHdrPercentilesAggregate¶
type HdrPercentilesAggregate struct {MetaMetadata `json:"meta,omitempty"`ValuesPercentiles `json:"values"`}HdrPercentilesAggregate type.
funcNewHdrPercentilesAggregate¶added inv8.5.0
func NewHdrPercentilesAggregate() *HdrPercentilesAggregate
NewHdrPercentilesAggregate returns a HdrPercentilesAggregate.
func (*HdrPercentilesAggregate)UnmarshalJSON¶added inv8.7.1
func (s *HdrPercentilesAggregate) UnmarshalJSON(data []byte)error
typeHealthRecord¶
type HealthRecord struct {// ActiveShardsPercent active number of shards in percentActiveShardsPercent *string `json:"active_shards_percent,omitempty"`// Cluster cluster nameCluster *string `json:"cluster,omitempty"`// Epoch seconds since 1970-01-01 00:00:00EpochStringifiedEpochTimeUnitSeconds `json:"epoch,omitempty"`// Init number of initializing nodesInit *string `json:"init,omitempty"`// MaxTaskWaitTime wait time of longest task pendingMaxTaskWaitTime *string `json:"max_task_wait_time,omitempty"`// NodeData number of nodes that can store dataNodeData *string `json:"node.data,omitempty"`// NodeTotal total number of nodesNodeTotal *string `json:"node.total,omitempty"`// PendingTasks number of pending tasksPendingTasks *string `json:"pending_tasks,omitempty"`// Pri number of primary shardsPri *string `json:"pri,omitempty"`// Relo number of relocating nodesRelo *string `json:"relo,omitempty"`// Shards total number of shardsShards *string `json:"shards,omitempty"`// Status health statusStatus *string `json:"status,omitempty"`// Timestamp time in HH:MM:SSTimestamp *string `json:"timestamp,omitempty"`// Unassign number of unassigned shardsUnassign *string `json:"unassign,omitempty"`// UnassignPri number of unassigned primary shardsUnassignPri *string `json:"unassign.pri,omitempty"`}HealthRecord type.
funcNewHealthRecord¶added inv8.5.0
func NewHealthRecord() *HealthRecord
NewHealthRecord returns a HealthRecord.
func (*HealthRecord)UnmarshalJSON¶added inv8.7.1
func (s *HealthRecord) UnmarshalJSON(data []byte)error
typeHealthStatistics¶added inv8.7.0
type HealthStatistics struct {Availablebool `json:"available"`Enabledbool `json:"enabled"`InvocationsInvocations `json:"invocations"`}HealthStatistics type.
funcNewHealthStatistics¶added inv8.7.0
func NewHealthStatistics() *HealthStatistics
NewHealthStatistics returns a HealthStatistics.
func (*HealthStatistics)UnmarshalJSON¶added inv8.7.1
func (s *HealthStatistics) UnmarshalJSON(data []byte)error
typeHighlight¶
type Highlight struct {// BoundaryChars A string that contains each boundary character.BoundaryChars *string `json:"boundary_chars,omitempty"`// BoundaryMaxScan How far to scan for boundary characters.BoundaryMaxScan *int `json:"boundary_max_scan,omitempty"`// BoundaryScanner Specifies how to break the highlighted fragments: chars, sentence, or word.// Only valid for the unified and fvh highlighters.// Defaults to `sentence` for the `unified` highlighter. Defaults to `chars` for// the `fvh` highlighter.BoundaryScanner *boundaryscanner.BoundaryScanner `json:"boundary_scanner,omitempty"`// BoundaryScannerLocale Controls which locale is used to search for sentence and word boundaries.// This parameter takes a form of a language tag, for example: `"en-US"`,// `"fr-FR"`, `"ja-JP"`.BoundaryScannerLocale *string `json:"boundary_scanner_locale,omitempty"`Encoder *highlighterencoder.HighlighterEncoder `json:"encoder,omitempty"`Fields map[string]HighlightField `json:"fields"`ForceSource *bool `json:"force_source,omitempty"`// FragmentSize The size of the highlighted fragment in characters.FragmentSize *int `json:"fragment_size,omitempty"`// Fragmenter Specifies how text should be broken up in highlight snippets: `simple` or// `span`.// Only valid for the `plain` highlighter.Fragmenter *highlighterfragmenter.HighlighterFragmenter `json:"fragmenter,omitempty"`HighlightFilter *bool `json:"highlight_filter,omitempty"`// HighlightQuery Highlight matches for a query other than the search query.// This is especially useful if you use a rescore query because those are not// taken into account by highlighting by default.HighlightQuery *Query `json:"highlight_query,omitempty"`// MaxAnalyzedOffset If set to a non-negative value, highlighting stops at this defined maximum// limit.// The rest of the text is not processed, thus not highlighted and no error is// returned// The `max_analyzed_offset` query setting does not override the// `index.highlight.max_analyzed_offset` setting, which prevails when it’s set// to lower value than the query setting.MaxAnalyzedOffset *int `json:"max_analyzed_offset,omitempty"`MaxFragmentLength *int `json:"max_fragment_length,omitempty"`// NoMatchSize The amount of text you want to return from the beginning of the field if// there are no matching fragments to highlight.NoMatchSize *int `json:"no_match_size,omitempty"`// NumberOfFragments The maximum number of fragments to return.// If the number of fragments is set to `0`, no fragments are returned.// Instead, the entire field contents are highlighted and returned.// This can be handy when you need to highlight short texts such as a title or// address, but fragmentation is not required.// If `number_of_fragments` is `0`, `fragment_size` is ignored.NumberOfFragments *int `json:"number_of_fragments,omitempty"`Options map[string]json.RawMessage `json:"options,omitempty"`// Order Sorts highlighted fragments by score when set to `score`.// By default, fragments will be output in the order they appear in the field// (order: `none`).// Setting this option to `score` will output the most relevant fragments first.// Each highlighter applies its own logic to compute relevancy scores.Order *highlighterorder.HighlighterOrder `json:"order,omitempty"`// PhraseLimit Controls the number of matching phrases in a document that are considered.// Prevents the `fvh` highlighter from analyzing too many phrases and consuming// too much memory.// When using `matched_fields`, `phrase_limit` phrases per matched field are// considered. Raising the limit increases query time and consumes more memory.// Only supported by the `fvh` highlighter.PhraseLimit *int `json:"phrase_limit,omitempty"`// PostTags Use in conjunction with `pre_tags` to define the HTML tags to use for the// highlighted text.// By default, highlighted text is wrapped in `<em>` and `</em>` tags.PostTags []string `json:"post_tags,omitempty"`// PreTags Use in conjunction with `post_tags` to define the HTML tags to use for the// highlighted text.// By default, highlighted text is wrapped in `<em>` and `</em>` tags.PreTags []string `json:"pre_tags,omitempty"`// RequireFieldMatch By default, only fields that contains a query match are highlighted.// Set to `false` to highlight all fields.RequireFieldMatch *bool `json:"require_field_match,omitempty"`// TagsSchema Set to `styled` to use the built-in tag schema.TagsSchema *highlightertagsschema.HighlighterTagsSchema `json:"tags_schema,omitempty"`Type *highlightertype.HighlighterType `json:"type,omitempty"`}Highlight type.
func (*Highlight)UnmarshalJSON¶added inv8.7.1
typeHighlightField¶
type HighlightField struct {// BoundaryChars A string that contains each boundary character.BoundaryChars *string `json:"boundary_chars,omitempty"`// BoundaryMaxScan How far to scan for boundary characters.BoundaryMaxScan *int `json:"boundary_max_scan,omitempty"`// BoundaryScanner Specifies how to break the highlighted fragments: chars, sentence, or word.// Only valid for the unified and fvh highlighters.// Defaults to `sentence` for the `unified` highlighter. Defaults to `chars` for// the `fvh` highlighter.BoundaryScanner *boundaryscanner.BoundaryScanner `json:"boundary_scanner,omitempty"`// BoundaryScannerLocale Controls which locale is used to search for sentence and word boundaries.// This parameter takes a form of a language tag, for example: `"en-US"`,// `"fr-FR"`, `"ja-JP"`.BoundaryScannerLocale *string `json:"boundary_scanner_locale,omitempty"`ForceSource *bool `json:"force_source,omitempty"`FragmentOffset *int `json:"fragment_offset,omitempty"`// FragmentSize The size of the highlighted fragment in characters.FragmentSize *int `json:"fragment_size,omitempty"`// Fragmenter Specifies how text should be broken up in highlight snippets: `simple` or// `span`.// Only valid for the `plain` highlighter.Fragmenter *highlighterfragmenter.HighlighterFragmenter `json:"fragmenter,omitempty"`HighlightFilter *bool `json:"highlight_filter,omitempty"`// HighlightQuery Highlight matches for a query other than the search query.// This is especially useful if you use a rescore query because those are not// taken into account by highlighting by default.HighlightQuery *Query `json:"highlight_query,omitempty"`MatchedFields []string `json:"matched_fields,omitempty"`// MaxAnalyzedOffset If set to a non-negative value, highlighting stops at this defined maximum// limit.// The rest of the text is not processed, thus not highlighted and no error is// returned// The `max_analyzed_offset` query setting does not override the// `index.highlight.max_analyzed_offset` setting, which prevails when it’s set// to lower value than the query setting.MaxAnalyzedOffset *int `json:"max_analyzed_offset,omitempty"`MaxFragmentLength *int `json:"max_fragment_length,omitempty"`// NoMatchSize The amount of text you want to return from the beginning of the field if// there are no matching fragments to highlight.NoMatchSize *int `json:"no_match_size,omitempty"`// NumberOfFragments The maximum number of fragments to return.// If the number of fragments is set to `0`, no fragments are returned.// Instead, the entire field contents are highlighted and returned.// This can be handy when you need to highlight short texts such as a title or// address, but fragmentation is not required.// If `number_of_fragments` is `0`, `fragment_size` is ignored.NumberOfFragments *int `json:"number_of_fragments,omitempty"`Options map[string]json.RawMessage `json:"options,omitempty"`// Order Sorts highlighted fragments by score when set to `score`.// By default, fragments will be output in the order they appear in the field// (order: `none`).// Setting this option to `score` will output the most relevant fragments first.// Each highlighter applies its own logic to compute relevancy scores.Order *highlighterorder.HighlighterOrder `json:"order,omitempty"`// PhraseLimit Controls the number of matching phrases in a document that are considered.// Prevents the `fvh` highlighter from analyzing too many phrases and consuming// too much memory.// When using `matched_fields`, `phrase_limit` phrases per matched field are// considered. Raising the limit increases query time and consumes more memory.// Only supported by the `fvh` highlighter.PhraseLimit *int `json:"phrase_limit,omitempty"`// PostTags Use in conjunction with `pre_tags` to define the HTML tags to use for the// highlighted text.// By default, highlighted text is wrapped in `<em>` and `</em>` tags.PostTags []string `json:"post_tags,omitempty"`// PreTags Use in conjunction with `post_tags` to define the HTML tags to use for the// highlighted text.// By default, highlighted text is wrapped in `<em>` and `</em>` tags.PreTags []string `json:"pre_tags,omitempty"`// RequireFieldMatch By default, only fields that contains a query match are highlighted.// Set to `false` to highlight all fields.RequireFieldMatch *bool `json:"require_field_match,omitempty"`// TagsSchema Set to `styled` to use the built-in tag schema.TagsSchema *highlightertagsschema.HighlighterTagsSchema `json:"tags_schema,omitempty"`Type *highlightertype.HighlighterType `json:"type,omitempty"`}HighlightField type.
funcNewHighlightField¶added inv8.5.0
func NewHighlightField() *HighlightField
NewHighlightField returns a HighlightField.
func (*HighlightField)UnmarshalJSON¶added inv8.7.0
func (s *HighlightField) UnmarshalJSON(data []byte)error
typeHindiAnalyzer¶added inv8.16.0
type HindiAnalyzer struct {StemExclusion []string `json:"stem_exclusion,omitempty"`StopwordsStopWords `json:"stopwords,omitempty"`StopwordsPath *string `json:"stopwords_path,omitempty"`Typestring `json:"type,omitempty"`}HindiAnalyzer type.
funcNewHindiAnalyzer¶added inv8.16.0
func NewHindiAnalyzer() *HindiAnalyzer
NewHindiAnalyzer returns a HindiAnalyzer.
func (HindiAnalyzer)MarshalJSON¶added inv8.16.0
func (sHindiAnalyzer) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*HindiAnalyzer)UnmarshalJSON¶added inv8.16.0
func (s *HindiAnalyzer) UnmarshalJSON(data []byte)error
typeHindiNormalizationTokenFilter¶added inv8.18.1
type HindiNormalizationTokenFilter struct {Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}HindiNormalizationTokenFilter type.
funcNewHindiNormalizationTokenFilter¶added inv8.18.1
func NewHindiNormalizationTokenFilter() *HindiNormalizationTokenFilter
NewHindiNormalizationTokenFilter returns a HindiNormalizationTokenFilter.
func (HindiNormalizationTokenFilter)MarshalJSON¶added inv8.18.1
func (sHindiNormalizationTokenFilter) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*HindiNormalizationTokenFilter)UnmarshalJSON¶added inv8.18.1
func (s *HindiNormalizationTokenFilter) UnmarshalJSON(data []byte)error
typeHint¶
type Hint struct {// Labels A single key-value pair to match against the labels section// of a profile. A profile is considered matching if it matches// at least one of the strings.Labels map[string][]string `json:"labels,omitempty"`// Uids A list of profile UIDs to match against.Uids []string `json:"uids,omitempty"`}Hint type.
typeHistogramAggregate¶
type HistogramAggregate struct {BucketsBucketsHistogramBucket `json:"buckets"`MetaMetadata `json:"meta,omitempty"`}HistogramAggregate type.
funcNewHistogramAggregate¶added inv8.5.0
func NewHistogramAggregate() *HistogramAggregate
NewHistogramAggregate returns a HistogramAggregate.
func (*HistogramAggregate)UnmarshalJSON¶added inv8.7.0
func (s *HistogramAggregate) UnmarshalJSON(data []byte)error
typeHistogramAggregation¶
type HistogramAggregation struct {// ExtendedBounds Enables extending the bounds of the histogram beyond the data itself.ExtendedBounds *ExtendedBoundsdouble `json:"extended_bounds,omitempty"`// Field The name of the field to aggregate on.Field *string `json:"field,omitempty"`Format *string `json:"format,omitempty"`// HardBounds Limits the range of buckets in the histogram.// It is particularly useful in the case of open data ranges that can result in// a very large number of buckets.HardBounds *ExtendedBoundsdouble `json:"hard_bounds,omitempty"`// Interval The interval for the buckets.// Must be a positive decimal.Interval *Float64 `json:"interval,omitempty"`// Keyed If `true`, returns buckets as a hash instead of an array, keyed by the bucket// keys.Keyed *bool `json:"keyed,omitempty"`// MinDocCount Only returns buckets that have `min_doc_count` number of documents.// By default, the response will fill gaps in the histogram with empty buckets.MinDocCount *int `json:"min_doc_count,omitempty"`// Missing The value to apply to documents that do not have a value.// By default, documents without a value are ignored.Missing *Float64 `json:"missing,omitempty"`// Offset By default, the bucket keys start with 0 and then continue in even spaced// steps of `interval`.// The bucket boundaries can be shifted by using the `offset` option.Offset *Float64 `json:"offset,omitempty"`// Order The sort order of the returned buckets.// By default, the returned buckets are sorted by their key ascending.OrderAggregateOrder `json:"order,omitempty"`Script *Script `json:"script,omitempty"`}HistogramAggregation type.
funcNewHistogramAggregation¶added inv8.5.0
func NewHistogramAggregation() *HistogramAggregation
NewHistogramAggregation returns a HistogramAggregation.
func (*HistogramAggregation)UnmarshalJSON¶added inv8.7.0
func (s *HistogramAggregation) UnmarshalJSON(data []byte)error
typeHistogramBucket¶
type HistogramBucket struct {Aggregations map[string]Aggregate `json:"-"`DocCountint64 `json:"doc_count"`KeyFloat64 `json:"key"`KeyAsString *string `json:"key_as_string,omitempty"`}HistogramBucket type.
funcNewHistogramBucket¶added inv8.5.0
func NewHistogramBucket() *HistogramBucket
NewHistogramBucket returns a HistogramBucket.
func (HistogramBucket)MarshalJSON¶
func (sHistogramBucket) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
func (*HistogramBucket)UnmarshalJSON¶added inv8.7.0
func (s *HistogramBucket) UnmarshalJSON(data []byte)error
typeHistogramGrouping¶
type HistogramGrouping struct {// Fields The set of fields that you wish to build histograms for.// All fields specified must be some kind of numeric.// Order does not matter.Fields []string `json:"fields"`// Interval The interval of histogram buckets to be generated when rolling up.// For example, a value of `5` creates buckets that are five units wide (`0-5`,// `5-10`, etc).// Note that only one interval can be specified in the histogram group, meaning// that all fields being grouped via the histogram must share the same interval.Intervalint64 `json:"interval"`}HistogramGrouping type.
funcNewHistogramGrouping¶added inv8.5.0
func NewHistogramGrouping() *HistogramGrouping
NewHistogramGrouping returns a HistogramGrouping.
func (*HistogramGrouping)UnmarshalJSON¶added inv8.7.1
func (s *HistogramGrouping) UnmarshalJSON(data []byte)error
typeHistogramProperty¶
type HistogramProperty struct {Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`Fields map[string]Property `json:"fields,omitempty"`IgnoreAbove *int `json:"ignore_above,omitempty"`IgnoreMalformed *bool `json:"ignore_malformed,omitempty"`// Meta Metadata about the field.Meta map[string]string `json:"meta,omitempty"`Properties map[string]Property `json:"properties,omitempty"`SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`Typestring `json:"type,omitempty"`}HistogramProperty type.
funcNewHistogramProperty¶added inv8.5.0
func NewHistogramProperty() *HistogramProperty
NewHistogramProperty returns a HistogramProperty.
func (HistogramProperty)MarshalJSON¶added inv8.9.0
func (sHistogramProperty) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*HistogramProperty)UnmarshalJSON¶added inv8.7.0
func (s *HistogramProperty) UnmarshalJSON(data []byte)error
typeHit¶
type Hit struct {Explanation_ *Explanation `json:"_explanation,omitempty"`Fields map[string]json.RawMessage `json:"fields,omitempty"`Highlight map[string][]string `json:"highlight,omitempty"`Id_ *string `json:"_id,omitempty"`IgnoredFieldValues map[string][]FieldValue `json:"ignored_field_values,omitempty"`Ignored_ []string `json:"_ignored,omitempty"`Index_string `json:"_index"`InnerHits map[string]InnerHitsResult `json:"inner_hits,omitempty"`MatchedQueriesany `json:"matched_queries,omitempty"`Nested_ *NestedIdentity `json:"_nested,omitempty"`Node_ *string `json:"_node,omitempty"`PrimaryTerm_ *int64 `json:"_primary_term,omitempty"`Rank_ *int `json:"_rank,omitempty"`Routing_ *string `json:"_routing,omitempty"`Score_ *Float64 `json:"_score,omitempty"`SeqNo_ *int64 `json:"_seq_no,omitempty"`Shard_ *string `json:"_shard,omitempty"`Sort []FieldValue `json:"sort,omitempty"`Source_json.RawMessage `json:"_source,omitempty"`Version_ *int64 `json:"_version,omitempty"`}Hit type.
func (*Hit)UnmarshalJSON¶added inv8.7.1
typeHitsEvent¶
type HitsEvent struct {Fields map[string][]json.RawMessage `json:"fields,omitempty"`// Id_ Unique identifier for the event. This ID is only unique within the index.Id_string `json:"_id"`// Index_ Name of the index containing the event.Index_string `json:"_index"`// Missing Set to `true` for events in a timespan-constrained sequence that do not meet// a given condition.Missing *bool `json:"missing,omitempty"`// Source_ Original JSON body passed for the event at index time.Source_json.RawMessage `json:"_source,omitempty"`}HitsEvent type.
func (*HitsEvent)UnmarshalJSON¶added inv8.7.1
typeHitsMetadata¶
type HitsMetadata struct {Hits []Hit `json:"hits"`MaxScore *Float64 `json:"max_score,omitempty"`// Total Total hit count information, present only if `track_total_hits` wasn't// `false` in the search request.Total *TotalHits `json:"total,omitempty"`}HitsMetadata type.
funcNewHitsMetadata¶added inv8.5.0
func NewHitsMetadata() *HitsMetadata
NewHitsMetadata returns a HitsMetadata.
func (*HitsMetadata)UnmarshalJSON¶added inv8.7.1
func (s *HitsMetadata) UnmarshalJSON(data []byte)error
typeHitsSequence¶
type HitsSequence struct {// Events Contains events matching the query. Each object represents a matching event.Events []HitsEvent `json:"events"`// JoinKeys Shared field values used to constrain matches in the sequence. These are// defined using the by keyword in the EQL query syntax.JoinKeys []json.RawMessage `json:"join_keys,omitempty"`}HitsSequence type.
funcNewHitsSequence¶added inv8.5.0
func NewHitsSequence() *HitsSequence
NewHitsSequence returns a HitsSequence.
typeHoltLinearModelSettings¶
type HoltLinearModelSettings struct {Alpha *float32 `json:"alpha,omitempty"`Beta *float32 `json:"beta,omitempty"`}HoltLinearModelSettings type.
funcNewHoltLinearModelSettings¶added inv8.5.0
func NewHoltLinearModelSettings() *HoltLinearModelSettings
NewHoltLinearModelSettings returns a HoltLinearModelSettings.
func (*HoltLinearModelSettings)UnmarshalJSON¶added inv8.7.1
func (s *HoltLinearModelSettings) UnmarshalJSON(data []byte)error
typeHoltMovingAverageAggregation¶
type HoltMovingAverageAggregation struct {// BucketsPath Path to the buckets that contain one set of values to correlate.BucketsPathBucketsPath `json:"buckets_path,omitempty"`// Format `DecimalFormat` pattern for the output value.// If specified, the formatted value is returned in the aggregation’s// `value_as_string` property.Format *string `json:"format,omitempty"`// GapPolicy Policy to apply when gaps are found in the data.GapPolicy *gappolicy.GapPolicy `json:"gap_policy,omitempty"`Minimize *bool `json:"minimize,omitempty"`Modelstring `json:"model,omitempty"`Predict *int `json:"predict,omitempty"`SettingsHoltLinearModelSettings `json:"settings"`Window *int `json:"window,omitempty"`}HoltMovingAverageAggregation type.
funcNewHoltMovingAverageAggregation¶added inv8.5.0
func NewHoltMovingAverageAggregation() *HoltMovingAverageAggregation
NewHoltMovingAverageAggregation returns a HoltMovingAverageAggregation.
func (HoltMovingAverageAggregation)MarshalJSON¶added inv8.9.0
func (sHoltMovingAverageAggregation) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*HoltMovingAverageAggregation)UnmarshalJSON¶added inv8.7.0
func (s *HoltMovingAverageAggregation) UnmarshalJSON(data []byte)error
typeHoltWintersModelSettings¶
type HoltWintersModelSettings struct {Alpha *float32 `json:"alpha,omitempty"`Beta *float32 `json:"beta,omitempty"`Gamma *float32 `json:"gamma,omitempty"`Pad *bool `json:"pad,omitempty"`Period *int `json:"period,omitempty"`Type *holtwinterstype.HoltWintersType `json:"type,omitempty"`}HoltWintersModelSettings type.
funcNewHoltWintersModelSettings¶added inv8.5.0
func NewHoltWintersModelSettings() *HoltWintersModelSettings
NewHoltWintersModelSettings returns a HoltWintersModelSettings.
func (*HoltWintersModelSettings)UnmarshalJSON¶added inv8.7.1
func (s *HoltWintersModelSettings) UnmarshalJSON(data []byte)error
typeHoltWintersMovingAverageAggregation¶
type HoltWintersMovingAverageAggregation struct {// BucketsPath Path to the buckets that contain one set of values to correlate.BucketsPathBucketsPath `json:"buckets_path,omitempty"`// Format `DecimalFormat` pattern for the output value.// If specified, the formatted value is returned in the aggregation’s// `value_as_string` property.Format *string `json:"format,omitempty"`// GapPolicy Policy to apply when gaps are found in the data.GapPolicy *gappolicy.GapPolicy `json:"gap_policy,omitempty"`Minimize *bool `json:"minimize,omitempty"`Modelstring `json:"model,omitempty"`Predict *int `json:"predict,omitempty"`SettingsHoltWintersModelSettings `json:"settings"`Window *int `json:"window,omitempty"`}HoltWintersMovingAverageAggregation type.
funcNewHoltWintersMovingAverageAggregation¶added inv8.5.0
func NewHoltWintersMovingAverageAggregation() *HoltWintersMovingAverageAggregation
NewHoltWintersMovingAverageAggregation returns a HoltWintersMovingAverageAggregation.
func (HoltWintersMovingAverageAggregation)MarshalJSON¶added inv8.9.0
func (sHoltWintersMovingAverageAggregation) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*HoltWintersMovingAverageAggregation)UnmarshalJSON¶added inv8.7.0
func (s *HoltWintersMovingAverageAggregation) UnmarshalJSON(data []byte)error
typeHop¶
type Hop struct {// Connections Specifies one or more fields from which you want to extract terms that are// associated with the specified vertices.Connections *Hop `json:"connections,omitempty"`// Query An optional guiding query that constrains the Graph API as it explores// connected terms.QueryQuery `json:"query"`// Vertices Contains the fields you are interested in.Vertices []VertexDefinition `json:"vertices"`}Hop type.
typeHourAndMinute¶
HourAndMinute type.
funcNewHourAndMinute¶added inv8.5.0
func NewHourAndMinute() *HourAndMinute
NewHourAndMinute returns a HourAndMinute.
typeHourlySchedule¶
type HourlySchedule struct {Minute []int `json:"minute"`}HourlySchedule type.
funcNewHourlySchedule¶added inv8.5.0
func NewHourlySchedule() *HourlySchedule
NewHourlySchedule returns a HourlySchedule.
typeHtmlStripCharFilter¶
type HtmlStripCharFilter struct {EscapedTags []string `json:"escaped_tags,omitempty"`Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}HtmlStripCharFilter type.
funcNewHtmlStripCharFilter¶added inv8.5.0
func NewHtmlStripCharFilter() *HtmlStripCharFilter
NewHtmlStripCharFilter returns a HtmlStripCharFilter.
func (HtmlStripCharFilter)MarshalJSON¶added inv8.9.0
func (sHtmlStripCharFilter) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*HtmlStripCharFilter)UnmarshalJSON¶added inv8.7.1
func (s *HtmlStripCharFilter) UnmarshalJSON(data []byte)error
typeHtmlStripProcessor¶added inv8.16.0
type HtmlStripProcessor struct {// Description Description of the processor.// Useful for describing the purpose of the processor or its configuration.Description *string `json:"description,omitempty"`// Field The string-valued field to remove HTML tags from.Fieldstring `json:"field"`// If Conditionally execute the processor.If *string `json:"if,omitempty"`// IgnoreFailure Ignore failures for the processor.IgnoreFailure *bool `json:"ignore_failure,omitempty"`// IgnoreMissing If `true` and `field` does not exist or is `null`, the processor quietly// exits without modifying the document,IgnoreMissing *bool `json:"ignore_missing,omitempty"`// OnFailure Handle failures for the processor.OnFailure []ProcessorContainer `json:"on_failure,omitempty"`// Tag Identifier for the processor.// Useful for debugging and metrics.Tag *string `json:"tag,omitempty"`// TargetField The field to assign the converted value to// By default, the `field` is updated in-place.TargetField *string `json:"target_field,omitempty"`}HtmlStripProcessor type.
funcNewHtmlStripProcessor¶added inv8.16.0
func NewHtmlStripProcessor() *HtmlStripProcessor
NewHtmlStripProcessor returns a HtmlStripProcessor.
func (*HtmlStripProcessor)UnmarshalJSON¶added inv8.16.0
func (s *HtmlStripProcessor) UnmarshalJSON(data []byte)error
typeHttp¶
type Http struct {// Clients Information on current and recently-closed HTTP client connections.// Clients that have been closed longer than the// `http.client_stats.closed_channels.max_age` setting will not be represented// here.Clients []Client `json:"clients,omitempty"`// CurrentOpen Current number of open HTTP connections for the node.CurrentOpen *int `json:"current_open,omitempty"`// Routes Detailed HTTP stats broken down by routeRoutes map[string]HttpRoute `json:"routes"`// TotalOpened Total number of HTTP connections opened for the node.TotalOpened *int64 `json:"total_opened,omitempty"`}Http type.
func (*Http)UnmarshalJSON¶added inv8.7.1
typeHttpEmailAttachment¶
type HttpEmailAttachment struct {ContentType *string `json:"content_type,omitempty"`Inline *bool `json:"inline,omitempty"`Request *HttpInputRequestDefinition `json:"request,omitempty"`}HttpEmailAttachment type.
funcNewHttpEmailAttachment¶added inv8.5.0
func NewHttpEmailAttachment() *HttpEmailAttachment
NewHttpEmailAttachment returns a HttpEmailAttachment.
func (*HttpEmailAttachment)UnmarshalJSON¶added inv8.7.1
func (s *HttpEmailAttachment) UnmarshalJSON(data []byte)error
typeHttpHeaders¶
HttpHeaders type alias.
typeHttpInput¶
type HttpInput struct {Extract []string `json:"extract,omitempty"`Request *HttpInputRequestDefinition `json:"request,omitempty"`ResponseContentType *responsecontenttype.ResponseContentType `json:"response_content_type,omitempty"`}HttpInput type.
typeHttpInputAuthentication¶
type HttpInputAuthentication struct {BasicHttpInputBasicAuthentication `json:"basic"`}HttpInputAuthentication type.
funcNewHttpInputAuthentication¶added inv8.5.0
func NewHttpInputAuthentication() *HttpInputAuthentication
NewHttpInputAuthentication returns a HttpInputAuthentication.
typeHttpInputBasicAuthentication¶
type HttpInputBasicAuthentication struct {Passwordstring `json:"password"`Usernamestring `json:"username"`}HttpInputBasicAuthentication type.
funcNewHttpInputBasicAuthentication¶added inv8.5.0
func NewHttpInputBasicAuthentication() *HttpInputBasicAuthentication
NewHttpInputBasicAuthentication returns a HttpInputBasicAuthentication.
func (*HttpInputBasicAuthentication)UnmarshalJSON¶added inv8.7.1
func (s *HttpInputBasicAuthentication) UnmarshalJSON(data []byte)error
typeHttpInputProxy¶
HttpInputProxy type.
funcNewHttpInputProxy¶added inv8.5.0
func NewHttpInputProxy() *HttpInputProxy
NewHttpInputProxy returns a HttpInputProxy.
func (*HttpInputProxy)UnmarshalJSON¶added inv8.7.1
func (s *HttpInputProxy) UnmarshalJSON(data []byte)error
typeHttpInputRequestDefinition¶
type HttpInputRequestDefinition struct {Auth *HttpInputAuthentication `json:"auth,omitempty"`Body *string `json:"body,omitempty"`ConnectionTimeoutDuration `json:"connection_timeout,omitempty"`Headers map[string]string `json:"headers,omitempty"`Host *string `json:"host,omitempty"`Method *httpinputmethod.HttpInputMethod `json:"method,omitempty"`Params map[string]string `json:"params,omitempty"`Path *string `json:"path,omitempty"`Port *uint `json:"port,omitempty"`Proxy *HttpInputProxy `json:"proxy,omitempty"`ReadTimeoutDuration `json:"read_timeout,omitempty"`Scheme *connectionscheme.ConnectionScheme `json:"scheme,omitempty"`Url *string `json:"url,omitempty"`}HttpInputRequestDefinition type.
funcNewHttpInputRequestDefinition¶added inv8.5.0
func NewHttpInputRequestDefinition() *HttpInputRequestDefinition
NewHttpInputRequestDefinition returns a HttpInputRequestDefinition.
func (*HttpInputRequestDefinition)UnmarshalJSON¶added inv8.7.1
func (s *HttpInputRequestDefinition) UnmarshalJSON(data []byte)error
typeHttpInputRequestResult¶
type HttpInputRequestResult struct {Auth *HttpInputAuthentication `json:"auth,omitempty"`Body *string `json:"body,omitempty"`ConnectionTimeoutDuration `json:"connection_timeout,omitempty"`Headers map[string]string `json:"headers,omitempty"`Host *string `json:"host,omitempty"`Method *httpinputmethod.HttpInputMethod `json:"method,omitempty"`Params map[string]string `json:"params,omitempty"`Path *string `json:"path,omitempty"`Port *uint `json:"port,omitempty"`Proxy *HttpInputProxy `json:"proxy,omitempty"`ReadTimeoutDuration `json:"read_timeout,omitempty"`Scheme *connectionscheme.ConnectionScheme `json:"scheme,omitempty"`Url *string `json:"url,omitempty"`}HttpInputRequestResult type.
funcNewHttpInputRequestResult¶added inv8.5.0
func NewHttpInputRequestResult() *HttpInputRequestResult
NewHttpInputRequestResult returns a HttpInputRequestResult.
func (*HttpInputRequestResult)UnmarshalJSON¶added inv8.7.1
func (s *HttpInputRequestResult) UnmarshalJSON(data []byte)error
typeHttpInputResponseResult¶
type HttpInputResponseResult struct {Bodystring `json:"body"`HeadersHttpHeaders `json:"headers"`Statusint `json:"status"`}HttpInputResponseResult type.
funcNewHttpInputResponseResult¶added inv8.5.0
func NewHttpInputResponseResult() *HttpInputResponseResult
NewHttpInputResponseResult returns a HttpInputResponseResult.
func (*HttpInputResponseResult)UnmarshalJSON¶added inv8.7.1
func (s *HttpInputResponseResult) UnmarshalJSON(data []byte)error
typeHttpRoute¶added inv8.16.0
type HttpRoute struct {RequestsHttpRouteRequests `json:"requests"`ResponsesHttpRouteResponses `json:"responses"`}HttpRoute type.
typeHttpRouteRequests¶added inv8.16.0
type HttpRouteRequests struct {Countint64 `json:"count"`SizeHistogram []SizeHttpHistogram `json:"size_histogram"`TotalSizeInBytesint64 `json:"total_size_in_bytes"`}HttpRouteRequests type.
funcNewHttpRouteRequests¶added inv8.16.0
func NewHttpRouteRequests() *HttpRouteRequests
NewHttpRouteRequests returns a HttpRouteRequests.
func (*HttpRouteRequests)UnmarshalJSON¶added inv8.16.0
func (s *HttpRouteRequests) UnmarshalJSON(data []byte)error
typeHttpRouteResponses¶added inv8.16.0
type HttpRouteResponses struct {Countint64 `json:"count"`HandlingTimeHistogram []TimeHttpHistogram `json:"handling_time_histogram"`SizeHistogram []SizeHttpHistogram `json:"size_histogram"`TotalSizeInBytesint64 `json:"total_size_in_bytes"`}HttpRouteResponses type.
funcNewHttpRouteResponses¶added inv8.16.0
func NewHttpRouteResponses() *HttpRouteResponses
NewHttpRouteResponses returns a HttpRouteResponses.
func (*HttpRouteResponses)UnmarshalJSON¶added inv8.16.0
func (s *HttpRouteResponses) UnmarshalJSON(data []byte)error
typeHuggingFaceServiceSettings¶added inv8.18.0
type HuggingFaceServiceSettings struct {// ApiKey A valid access token for your HuggingFace account.// You can create or find your access tokens on the HuggingFace settings page.//// IMPORTANT: You need to provide the API key only once, during the inference// model creation.// The get inference endpoint API does not retrieve your API key.// After creating the inference model, you cannot change the associated API key.// If you want to use a different API key, delete the inference model and// recreate it with the same name and the updated API key.ApiKeystring `json:"api_key"`// ModelId The name of the HuggingFace model to use for the inference task.// For `completion` and `chat_completion` tasks, this field is optional but may// be required for certain models — particularly when using serverless inference// endpoints.// For the `text_embedding` task, this field should not be included. Otherwise,// the request will fail.ModelId *string `json:"model_id,omitempty"`// RateLimit This setting helps to minimize the number of rate limit errors returned from// Hugging Face.// By default, the `hugging_face` service sets the number of requests allowed// per minute to 3000 for all supported tasks.// Hugging Face does not publish a universal rate limit — actual limits may// vary.// It is recommended to adjust this value based on the capacity and limits of// your specific deployment environment.RateLimit *RateLimitSetting `json:"rate_limit,omitempty"`// Url The URL endpoint to use for the requests.// For `completion` and `chat_completion` tasks, the deployed model must be// compatible with the Hugging Face Chat Completion interface (see the linked// external documentation for details). The endpoint URL for the request must// include `/v1/chat/completions`.// If the model supports the OpenAI Chat Completion schema, a toggle should// appear in the interface. Enabling this toggle doesn't change any model// behavior, it reveals the full endpoint URL needed (which should include// `/v1/chat/completions`) when configuring the inference endpoint in// Elasticsearch. If the model doesn't support this schema, the toggle may not// be shown.Urlstring `json:"url"`}HuggingFaceServiceSettings type.
funcNewHuggingFaceServiceSettings¶added inv8.18.0
func NewHuggingFaceServiceSettings() *HuggingFaceServiceSettings
NewHuggingFaceServiceSettings returns a HuggingFaceServiceSettings.
func (*HuggingFaceServiceSettings)UnmarshalJSON¶added inv8.18.0
func (s *HuggingFaceServiceSettings) UnmarshalJSON(data []byte)error
typeHuggingFaceTaskSettings¶added inv8.19.0
type HuggingFaceTaskSettings struct {// ReturnDocuments For a `rerank` task, return doc text within the results.ReturnDocuments *bool `json:"return_documents,omitempty"`// TopN For a `rerank` task, the number of most relevant documents to return.// It defaults to the number of the documents.TopN *int `json:"top_n,omitempty"`}HuggingFaceTaskSettings type.
funcNewHuggingFaceTaskSettings¶added inv8.19.0
func NewHuggingFaceTaskSettings() *HuggingFaceTaskSettings
NewHuggingFaceTaskSettings returns a HuggingFaceTaskSettings.
func (*HuggingFaceTaskSettings)UnmarshalJSON¶added inv8.19.0
func (s *HuggingFaceTaskSettings) UnmarshalJSON(data []byte)error
typeHungarianAnalyzer¶added inv8.16.0
type HungarianAnalyzer struct {StemExclusion []string `json:"stem_exclusion,omitempty"`StopwordsStopWords `json:"stopwords,omitempty"`StopwordsPath *string `json:"stopwords_path,omitempty"`Typestring `json:"type,omitempty"`}HungarianAnalyzer type.
funcNewHungarianAnalyzer¶added inv8.16.0
func NewHungarianAnalyzer() *HungarianAnalyzer
NewHungarianAnalyzer returns a HungarianAnalyzer.
func (HungarianAnalyzer)MarshalJSON¶added inv8.16.0
func (sHungarianAnalyzer) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*HungarianAnalyzer)UnmarshalJSON¶added inv8.16.0
func (s *HungarianAnalyzer) UnmarshalJSON(data []byte)error
typeHunspellTokenFilter¶
type HunspellTokenFilter struct {// Dedup If `true`, duplicate tokens are removed from the filter’s output. Defaults to// `true`.Dedup *bool `json:"dedup,omitempty"`// Dictionary One or more `.dic` files (e.g, `en_US.dic`, my_custom.dic) to use for the// Hunspell dictionary.// By default, the `hunspell` filter uses all `.dic` files in the// `<$ES_PATH_CONF>/hunspell/<locale>` directory specified using the `lang`,// `language`, or `locale` parameter.Dictionary *string `json:"dictionary,omitempty"`// Locale Locale directory used to specify the `.aff` and `.dic` files for a Hunspell// dictionary.Localestring `json:"locale"`// LongestOnly If `true`, only the longest stemmed version of each token is included in the// output. If `false`, all stemmed versions of the token are included. Defaults// to `false`.LongestOnly *bool `json:"longest_only,omitempty"`Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}HunspellTokenFilter type.
funcNewHunspellTokenFilter¶added inv8.5.0
func NewHunspellTokenFilter() *HunspellTokenFilter
NewHunspellTokenFilter returns a HunspellTokenFilter.
func (HunspellTokenFilter)MarshalJSON¶added inv8.9.0
func (sHunspellTokenFilter) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*HunspellTokenFilter)UnmarshalJSON¶added inv8.7.1
func (s *HunspellTokenFilter) UnmarshalJSON(data []byte)error
typeHyperparameter¶
type Hyperparameter struct {// AbsoluteImportance A positive number showing how much the parameter influences the variation of// the loss function. For hyperparameters with values that are not specified by// the user but tuned during hyperparameter optimization.AbsoluteImportance *Float64 `json:"absolute_importance,omitempty"`// Name Name of the hyperparameter.Namestring `json:"name"`// RelativeImportance A number between 0 and 1 showing the proportion of influence on the variation// of the loss function among all tuned hyperparameters. For hyperparameters// with values that are not specified by the user but tuned during// hyperparameter optimization.RelativeImportance *Float64 `json:"relative_importance,omitempty"`// Supplied Indicates if the hyperparameter is specified by the user (true) or optimized// (false).Suppliedbool `json:"supplied"`// Value The value of the hyperparameter, either optimized or specified by the user.ValueFloat64 `json:"value"`}Hyperparameter type.
funcNewHyperparameter¶added inv8.5.0
func NewHyperparameter() *Hyperparameter
NewHyperparameter returns a Hyperparameter.
func (*Hyperparameter)UnmarshalJSON¶added inv8.7.1
func (s *Hyperparameter) UnmarshalJSON(data []byte)error
typeHyperparameters¶
type Hyperparameters struct {// Alpha Advanced configuration option.// Machine learning uses loss guided tree growing, which means that the decision// trees grow where the regularized loss decreases most quickly.// This parameter affects loss calculations by acting as a multiplier of the// tree depth.// Higher alpha values result in shallower trees and faster training times.// By default, this value is calculated during hyperparameter optimization.// It must be greater than or equal to zero.Alpha *Float64 `json:"alpha,omitempty"`// DownsampleFactor Advanced configuration option.// Controls the fraction of data that is used to compute the derivatives of the// loss function for tree training.// A small value results in the use of a small fraction of the data.// If this value is set to be less than 1, accuracy typically improves.// However, too small a value may result in poor convergence for the ensemble// and so require more trees.// By default, this value is calculated during hyperparameter optimization.// It must be greater than zero and less than or equal to 1.DownsampleFactor *Float64 `json:"downsample_factor,omitempty"`// Eta Advanced configuration option.// The shrinkage applied to the weights.// Smaller values result in larger forests which have a better generalization// error.// However, larger forests cause slower training.// By default, this value is calculated during hyperparameter optimization.// It must be a value between `0.001` and `1`.Eta *Float64 `json:"eta,omitempty"`// EtaGrowthRatePerTree Advanced configuration option.// Specifies the rate at which `eta` increases for each new tree that is added// to the forest.// For example, a rate of 1.05 increases `eta` by 5% for each extra tree.// By default, this value is calculated during hyperparameter optimization.// It must be between `0.5` and `2`.EtaGrowthRatePerTree *Float64 `json:"eta_growth_rate_per_tree,omitempty"`// FeatureBagFraction Advanced configuration option.// Defines the fraction of features that will be used when selecting a random// bag for each candidate split.// By default, this value is calculated during hyperparameter optimization.FeatureBagFraction *Float64 `json:"feature_bag_fraction,omitempty"`// Gamma Advanced configuration option.// Regularization parameter to prevent overfitting on the training data set.// Multiplies a linear penalty associated with the size of individual trees in// the forest.// A high gamma value causes training to prefer small trees.// A small gamma value results in larger individual trees and slower training.// By default, this value is calculated during hyperparameter optimization.// It must be a nonnegative value.Gamma *Float64 `json:"gamma,omitempty"`// Lambda Advanced configuration option.// Regularization parameter to prevent overfitting on the training data set.// Multiplies an L2 regularization term which applies to leaf weights of the// individual trees in the forest.// A high lambda value causes training to favor small leaf weights.// This behavior makes the prediction function smoother at the expense of// potentially not being able to capture relevant relationships between the// features and the dependent variable.// A small lambda value results in large individual trees and slower training.// By default, this value is calculated during hyperparameter optimization.// It must be a nonnegative value.Lambda *Float64 `json:"lambda,omitempty"`// MaxAttemptsToAddTree If the algorithm fails to determine a non-trivial tree (more than a single// leaf), this parameter determines how many of such consecutive failures are// tolerated.// Once the number of attempts exceeds the threshold, the forest training stops.MaxAttemptsToAddTree *int `json:"max_attempts_to_add_tree,omitempty"`// MaxOptimizationRoundsPerHyperparameter Advanced configuration option.// A multiplier responsible for determining the maximum number of hyperparameter// optimization steps in the Bayesian optimization procedure.// The maximum number of steps is determined based on the number of undefined// hyperparameters times the maximum optimization rounds per hyperparameter.// By default, this value is calculated during hyperparameter optimization.MaxOptimizationRoundsPerHyperparameter *int `json:"max_optimization_rounds_per_hyperparameter,omitempty"`// MaxTrees Advanced configuration option.// Defines the maximum number of decision trees in the forest.// The maximum value is 2000.// By default, this value is calculated during hyperparameter optimization.MaxTrees *int `json:"max_trees,omitempty"`// NumFolds The maximum number of folds for the cross-validation procedure.NumFolds *int `json:"num_folds,omitempty"`// NumSplitsPerFeature Determines the maximum number of splits for every feature that can occur in a// decision tree when the tree is trained.NumSplitsPerFeature *int `json:"num_splits_per_feature,omitempty"`// SoftTreeDepthLimit Advanced configuration option.// Machine learning uses loss guided tree growing, which means that the decision// trees grow where the regularized loss decreases most quickly.// This soft limit combines with the `soft_tree_depth_tolerance` to penalize// trees that exceed the specified depth; the regularized loss increases quickly// beyond this depth.// By default, this value is calculated during hyperparameter optimization.// It must be greater than or equal to 0.SoftTreeDepthLimit *int `json:"soft_tree_depth_limit,omitempty"`// SoftTreeDepthTolerance Advanced configuration option.// This option controls how quickly the regularized loss increases when the tree// depth exceeds `soft_tree_depth_limit`.// By default, this value is calculated during hyperparameter optimization.// It must be greater than or equal to 0.01.SoftTreeDepthTolerance *Float64 `json:"soft_tree_depth_tolerance,omitempty"`}Hyperparameters type.
funcNewHyperparameters¶added inv8.5.0
func NewHyperparameters() *Hyperparameters
NewHyperparameters returns a Hyperparameters.
func (*Hyperparameters)UnmarshalJSON¶added inv8.7.1
func (s *Hyperparameters) UnmarshalJSON(data []byte)error
typeHyphenationDecompounderTokenFilter¶
type HyphenationDecompounderTokenFilter struct {// HyphenationPatternsPath Path to an Apache FOP (Formatting Objects Processor) XML hyphenation pattern// file.// This path must be absolute or relative to the `config` location. Only FOP// v1.2 compatible files are supported.HyphenationPatternsPathstring `json:"hyphenation_patterns_path"`// MaxSubwordSize Maximum subword character length. Longer subword tokens are excluded from the// output. Defaults to `15`.MaxSubwordSize *int `json:"max_subword_size,omitempty"`// MinSubwordSize Minimum subword character length. Shorter subword tokens are excluded from// the output. Defaults to `2`.MinSubwordSize *int `json:"min_subword_size,omitempty"`// MinWordSize Minimum word character length. Shorter word tokens are excluded from the// output. Defaults to `5`.MinWordSize *int `json:"min_word_size,omitempty"`// NoOverlappingMatches If `true`, do not allow overlapping tokens. Defaults to `false`.NoOverlappingMatches *bool `json:"no_overlapping_matches,omitempty"`// NoSubMatches If `true`, do not match sub tokens in tokens that are in the word list.// Defaults to `false`.NoSubMatches *bool `json:"no_sub_matches,omitempty"`// OnlyLongestMatch If `true`, only include the longest matching subword. Defaults to `false`.OnlyLongestMatch *bool `json:"only_longest_match,omitempty"`Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`// WordList A list of subwords to look for in the token stream. If found, the subword is// included in the token output.// Either this parameter or `word_list_path` must be specified.WordList []string `json:"word_list,omitempty"`// WordListPath Path to a file that contains a list of subwords to find in the token stream.// If found, the subword is included in the token output.// This path must be absolute or relative to the config location, and the file// must be UTF-8 encoded. Each token in the file must be separated by a line// break.// Either this parameter or `word_list` must be specified.WordListPath *string `json:"word_list_path,omitempty"`}HyphenationDecompounderTokenFilter type.
funcNewHyphenationDecompounderTokenFilter¶added inv8.5.0
func NewHyphenationDecompounderTokenFilter() *HyphenationDecompounderTokenFilter
NewHyphenationDecompounderTokenFilter returns a HyphenationDecompounderTokenFilter.
func (HyphenationDecompounderTokenFilter)MarshalJSON¶added inv8.9.0
func (sHyphenationDecompounderTokenFilter) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*HyphenationDecompounderTokenFilter)UnmarshalJSON¶added inv8.7.1
func (s *HyphenationDecompounderTokenFilter) UnmarshalJSON(data []byte)error
typeIcuAnalyzer¶
type IcuAnalyzer struct {Methodicunormalizationtype.IcuNormalizationType `json:"method"`Modeicunormalizationmode.IcuNormalizationMode `json:"mode"`Typestring `json:"type,omitempty"`}IcuAnalyzer type.
funcNewIcuAnalyzer¶added inv8.5.0
func NewIcuAnalyzer() *IcuAnalyzer
NewIcuAnalyzer returns a IcuAnalyzer.
func (IcuAnalyzer)MarshalJSON¶added inv8.9.0
func (sIcuAnalyzer) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
typeIcuCollationProperty¶added inv8.14.0
type IcuCollationProperty struct {Alternate *icucollationalternate.IcuCollationAlternate `json:"alternate,omitempty"`CaseFirst *icucollationcasefirst.IcuCollationCaseFirst `json:"case_first,omitempty"`CaseLevel *bool `json:"case_level,omitempty"`CopyTo []string `json:"copy_to,omitempty"`Country *string `json:"country,omitempty"`Decomposition *icucollationdecomposition.IcuCollationDecomposition `json:"decomposition,omitempty"`DocValues *bool `json:"doc_values,omitempty"`Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`Fields map[string]Property `json:"fields,omitempty"`HiraganaQuaternaryMode *bool `json:"hiragana_quaternary_mode,omitempty"`IgnoreAbove *int `json:"ignore_above,omitempty"`// Index Should the field be searchable?Index *bool `json:"index,omitempty"`IndexOptions *indexoptions.IndexOptions `json:"index_options,omitempty"`Language *string `json:"language,omitempty"`// Meta Metadata about the field.Meta map[string]string `json:"meta,omitempty"`Norms *bool `json:"norms,omitempty"`// NullValue Accepts a string value which is substituted for any explicit null values.// Defaults to null, which means the field is treated as missing.NullValue *string `json:"null_value,omitempty"`Numeric *bool `json:"numeric,omitempty"`Properties map[string]Property `json:"properties,omitempty"`Rules *string `json:"rules,omitempty"`Store *bool `json:"store,omitempty"`Strength *icucollationstrength.IcuCollationStrength `json:"strength,omitempty"`SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`Typestring `json:"type,omitempty"`VariableTop *string `json:"variable_top,omitempty"`Variant *string `json:"variant,omitempty"`}IcuCollationProperty type.
funcNewIcuCollationProperty¶added inv8.14.0
func NewIcuCollationProperty() *IcuCollationProperty
NewIcuCollationProperty returns a IcuCollationProperty.
func (IcuCollationProperty)MarshalJSON¶added inv8.14.0
func (sIcuCollationProperty) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*IcuCollationProperty)UnmarshalJSON¶added inv8.14.0
func (s *IcuCollationProperty) UnmarshalJSON(data []byte)error
typeIcuCollationTokenFilter¶
type IcuCollationTokenFilter struct {Alternate *icucollationalternate.IcuCollationAlternate `json:"alternate,omitempty"`CaseFirst *icucollationcasefirst.IcuCollationCaseFirst `json:"caseFirst,omitempty"`CaseLevel *bool `json:"caseLevel,omitempty"`Country *string `json:"country,omitempty"`Decomposition *icucollationdecomposition.IcuCollationDecomposition `json:"decomposition,omitempty"`HiraganaQuaternaryMode *bool `json:"hiraganaQuaternaryMode,omitempty"`Language *string `json:"language,omitempty"`Numeric *bool `json:"numeric,omitempty"`Rules *string `json:"rules,omitempty"`Strength *icucollationstrength.IcuCollationStrength `json:"strength,omitempty"`Typestring `json:"type,omitempty"`VariableTop *string `json:"variableTop,omitempty"`Variant *string `json:"variant,omitempty"`Version *string `json:"version,omitempty"`}IcuCollationTokenFilter type.
funcNewIcuCollationTokenFilter¶added inv8.5.0
func NewIcuCollationTokenFilter() *IcuCollationTokenFilter
NewIcuCollationTokenFilter returns a IcuCollationTokenFilter.
func (IcuCollationTokenFilter)MarshalJSON¶added inv8.9.0
func (sIcuCollationTokenFilter) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*IcuCollationTokenFilter)UnmarshalJSON¶added inv8.7.1
func (s *IcuCollationTokenFilter) UnmarshalJSON(data []byte)error
typeIcuFoldingTokenFilter¶
type IcuFoldingTokenFilter struct {Typestring `json:"type,omitempty"`UnicodeSetFilterstring `json:"unicode_set_filter"`Version *string `json:"version,omitempty"`}IcuFoldingTokenFilter type.
funcNewIcuFoldingTokenFilter¶added inv8.5.0
func NewIcuFoldingTokenFilter() *IcuFoldingTokenFilter
NewIcuFoldingTokenFilter returns a IcuFoldingTokenFilter.
func (IcuFoldingTokenFilter)MarshalJSON¶added inv8.9.0
func (sIcuFoldingTokenFilter) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*IcuFoldingTokenFilter)UnmarshalJSON¶added inv8.7.1
func (s *IcuFoldingTokenFilter) UnmarshalJSON(data []byte)error
typeIcuNormalizationCharFilter¶
type IcuNormalizationCharFilter struct {Mode *icunormalizationmode.IcuNormalizationMode `json:"mode,omitempty"`Name *icunormalizationtype.IcuNormalizationType `json:"name,omitempty"`Typestring `json:"type,omitempty"`UnicodeSetFilter *string `json:"unicode_set_filter,omitempty"`Version *string `json:"version,omitempty"`}IcuNormalizationCharFilter type.
funcNewIcuNormalizationCharFilter¶added inv8.5.0
func NewIcuNormalizationCharFilter() *IcuNormalizationCharFilter
NewIcuNormalizationCharFilter returns a IcuNormalizationCharFilter.
func (IcuNormalizationCharFilter)MarshalJSON¶added inv8.9.0
func (sIcuNormalizationCharFilter) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*IcuNormalizationCharFilter)UnmarshalJSON¶added inv8.7.1
func (s *IcuNormalizationCharFilter) UnmarshalJSON(data []byte)error
typeIcuNormalizationTokenFilter¶
type IcuNormalizationTokenFilter struct {Nameicunormalizationtype.IcuNormalizationType `json:"name"`Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}IcuNormalizationTokenFilter type.
funcNewIcuNormalizationTokenFilter¶added inv8.5.0
func NewIcuNormalizationTokenFilter() *IcuNormalizationTokenFilter
NewIcuNormalizationTokenFilter returns a IcuNormalizationTokenFilter.
func (IcuNormalizationTokenFilter)MarshalJSON¶added inv8.9.0
func (sIcuNormalizationTokenFilter) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*IcuNormalizationTokenFilter)UnmarshalJSON¶added inv8.7.1
func (s *IcuNormalizationTokenFilter) UnmarshalJSON(data []byte)error
typeIcuTokenizer¶
type IcuTokenizer struct {RuleFilesstring `json:"rule_files"`Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}IcuTokenizer type.
funcNewIcuTokenizer¶added inv8.5.0
func NewIcuTokenizer() *IcuTokenizer
NewIcuTokenizer returns a IcuTokenizer.
func (IcuTokenizer)MarshalJSON¶added inv8.9.0
func (sIcuTokenizer) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*IcuTokenizer)UnmarshalJSON¶added inv8.7.1
func (s *IcuTokenizer) UnmarshalJSON(data []byte)error
typeIcuTransformTokenFilter¶
type IcuTransformTokenFilter struct {Dir *icutransformdirection.IcuTransformDirection `json:"dir,omitempty"`Idstring `json:"id"`Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}IcuTransformTokenFilter type.
funcNewIcuTransformTokenFilter¶added inv8.5.0
func NewIcuTransformTokenFilter() *IcuTransformTokenFilter
NewIcuTransformTokenFilter returns a IcuTransformTokenFilter.
func (IcuTransformTokenFilter)MarshalJSON¶added inv8.9.0
func (sIcuTransformTokenFilter) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*IcuTransformTokenFilter)UnmarshalJSON¶added inv8.7.1
func (s *IcuTransformTokenFilter) UnmarshalJSON(data []byte)error
typeIdsQuery¶
type IdsQuery struct {// Boost Floating point number used to decrease or increase the relevance scores of// the query.// Boost values are relative to the default value of 1.0.// A boost value between 0 and 1.0 decreases the relevance score.// A value greater than 1.0 increases the relevance score.Boost *float32 `json:"boost,omitempty"`QueryName_ *string `json:"_name,omitempty"`// Values An array of document IDs.Values []string `json:"values,omitempty"`}IdsQuery type.
func (*IdsQuery)UnmarshalJSON¶added inv8.7.1
typeIlm¶
type Ilm struct {PolicyCountint `json:"policy_count"`PolicyStats []IlmPolicyStatistics `json:"policy_stats"`}Ilm type.
func (*Ilm)UnmarshalJSON¶added inv8.7.1
typeIlmActions¶added inv8.5.0
type IlmActions struct {// Allocate Phases allowed: warm, cold.Allocate *AllocateAction `json:"allocate,omitempty"`// Delete Phases allowed: delete.Delete *DeleteAction `json:"delete,omitempty"`// Downsample Phases allowed: hot, warm, cold.Downsample *DownsampleAction `json:"downsample,omitempty"`// Forcemerge Phases allowed: hot, warm.Forcemerge *ForceMergeAction `json:"forcemerge,omitempty"`// Freeze The freeze action is a noop in 8.xFreeze *EmptyObject `json:"freeze,omitempty"`// Migrate Phases allowed: warm, cold.Migrate *MigrateAction `json:"migrate,omitempty"`// Readonly Phases allowed: hot, warm, cold.Readonly *EmptyObject `json:"readonly,omitempty"`// Rollover Phases allowed: hot.Rollover *RolloverAction `json:"rollover,omitempty"`// SearchableSnapshot Phases allowed: hot, cold, frozen.SearchableSnapshot *SearchableSnapshotAction `json:"searchable_snapshot,omitempty"`// SetPriority Phases allowed: hot, warm, cold.SetPriority *SetPriorityAction `json:"set_priority,omitempty"`// Shrink Phases allowed: hot, warm.Shrink *ShrinkAction `json:"shrink,omitempty"`// Unfollow Phases allowed: hot, warm, cold, frozen.Unfollow *EmptyObject `json:"unfollow,omitempty"`// WaitForSnapshot Phases allowed: delete.WaitForSnapshot *WaitForSnapshotAction `json:"wait_for_snapshot,omitempty"`}IlmActions type.
funcNewIlmActions¶added inv8.15.0
func NewIlmActions() *IlmActions
NewIlmActions returns a IlmActions.
typeIlmIndicator¶added inv8.7.1
type IlmIndicator struct {Details *IlmIndicatorDetails `json:"details,omitempty"`Diagnosis []Diagnosis `json:"diagnosis,omitempty"`Impacts []Impact `json:"impacts,omitempty"`Statusindicatorhealthstatus.IndicatorHealthStatus `json:"status"`Symptomstring `json:"symptom"`}IlmIndicator type.
funcNewIlmIndicator¶added inv8.7.1
func NewIlmIndicator() *IlmIndicator
NewIlmIndicator returns a IlmIndicator.
func (*IlmIndicator)UnmarshalJSON¶added inv8.9.0
func (s *IlmIndicator) UnmarshalJSON(data []byte)error
typeIlmIndicatorDetails¶added inv8.7.1
type IlmIndicatorDetails struct {IlmStatuslifecycleoperationmode.LifecycleOperationMode `json:"ilm_status"`Policiesint64 `json:"policies"`StagnatingIndicesint `json:"stagnating_indices"`}IlmIndicatorDetails type.
funcNewIlmIndicatorDetails¶added inv8.7.1
func NewIlmIndicatorDetails() *IlmIndicatorDetails
NewIlmIndicatorDetails returns a IlmIndicatorDetails.
func (*IlmIndicatorDetails)UnmarshalJSON¶added inv8.7.1
func (s *IlmIndicatorDetails) UnmarshalJSON(data []byte)error
typeIlmPolicy¶added inv8.5.0
type IlmPolicy struct {// Meta_ Arbitrary metadata that is not automatically generated or used by// Elasticsearch.Meta_Metadata `json:"_meta,omitempty"`PhasesPhases `json:"phases"`}IlmPolicy type.
func (*IlmPolicy)UnmarshalJSON¶added inv8.7.1
typeIlmPolicyStatistics¶
type IlmPolicyStatistics struct {IndicesManagedint `json:"indices_managed"`PhasesUsagePhases `json:"phases"`}IlmPolicyStatistics type.
funcNewIlmPolicyStatistics¶added inv8.5.0
func NewIlmPolicyStatistics() *IlmPolicyStatistics
NewIlmPolicyStatistics returns a IlmPolicyStatistics.
func (*IlmPolicyStatistics)UnmarshalJSON¶added inv8.7.1
func (s *IlmPolicyStatistics) UnmarshalJSON(data []byte)error
typeImpact¶added inv8.7.1
type Impact struct {Descriptionstring `json:"description"`Idstring `json:"id"`ImpactAreas []impactarea.ImpactArea `json:"impact_areas"`Severityint `json:"severity"`}Impact type.
func (*Impact)UnmarshalJSON¶added inv8.7.1
typeInProgress¶
type InProgress struct {Namestring `json:"name"`StartTimeMillisint64 `json:"start_time_millis"`Statestring `json:"state"`Uuidstring `json:"uuid"`}InProgress type.
func (*InProgress)UnmarshalJSON¶added inv8.7.1
func (s *InProgress) UnmarshalJSON(data []byte)error
typeIncludedInValidation¶added inv8.15.0
type IncludedInValidation struct {Constraint []ScalarValue `json:"constraint"`Typestring `json:"type,omitempty"`}IncludedInValidation type.
funcNewIncludedInValidation¶added inv8.15.0
func NewIncludedInValidation() *IncludedInValidation
NewIncludedInValidation returns a IncludedInValidation.
func (IncludedInValidation)MarshalJSON¶added inv8.15.0
func (sIncludedInValidation) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
typeIndexAction¶
type IndexAction struct {DocId *string `json:"doc_id,omitempty"`ExecutionTimeField *string `json:"execution_time_field,omitempty"`Indexstring `json:"index"`OpType *optype.OpType `json:"op_type,omitempty"`Refresh *refresh.Refresh `json:"refresh,omitempty"`TimeoutDuration `json:"timeout,omitempty"`}IndexAction type.
funcNewIndexAction¶added inv8.5.0
func NewIndexAction() *IndexAction
NewIndexAction returns a IndexAction.
func (*IndexAction)UnmarshalJSON¶added inv8.7.1
func (s *IndexAction) UnmarshalJSON(data []byte)error
typeIndexAliases¶
type IndexAliases struct {Aliases map[string]AliasDefinition `json:"aliases"`}IndexAliases type.
funcNewIndexAliases¶added inv8.5.0
func NewIndexAliases() *IndexAliases
NewIndexAliases returns a IndexAliases.
typeIndexAndDataStreamAction¶
type IndexAndDataStreamAction struct {// DataStream Data stream targeted by the action.DataStreamstring `json:"data_stream"`// Index Index for the action.Indexstring `json:"index"`}IndexAndDataStreamAction type.
funcNewIndexAndDataStreamAction¶added inv8.5.0
func NewIndexAndDataStreamAction() *IndexAndDataStreamAction
NewIndexAndDataStreamAction returns a IndexAndDataStreamAction.
func (*IndexAndDataStreamAction)UnmarshalJSON¶added inv8.7.1
func (s *IndexAndDataStreamAction) UnmarshalJSON(data []byte)error
typeIndexCapabilities¶
type IndexCapabilities struct {RollupJobs []RollupJobSummary `json:"rollup_jobs"`}IndexCapabilities type.
funcNewIndexCapabilities¶added inv8.5.0
func NewIndexCapabilities() *IndexCapabilities
NewIndexCapabilities returns a IndexCapabilities.
typeIndexDetails¶
type IndexDetails struct {MaxSegmentsPerShardint64 `json:"max_segments_per_shard"`ShardCountint `json:"shard_count"`SizeByteSize `json:"size,omitempty"`SizeInBytesint64 `json:"size_in_bytes"`}IndexDetails type.
funcNewIndexDetails¶added inv8.5.0
func NewIndexDetails() *IndexDetails
NewIndexDetails returns a IndexDetails.
func (*IndexDetails)UnmarshalJSON¶added inv8.7.1
func (s *IndexDetails) UnmarshalJSON(data []byte)error
typeIndexField¶
type IndexField struct {Enabledbool `json:"enabled"`}IndexField type.
func (*IndexField)UnmarshalJSON¶added inv8.7.1
func (s *IndexField) UnmarshalJSON(data []byte)error
typeIndexHealthStats¶
type IndexHealthStats struct {ActivePrimaryShardsint `json:"active_primary_shards"`ActiveShardsint `json:"active_shards"`InitializingShardsint `json:"initializing_shards"`NumberOfReplicasint `json:"number_of_replicas"`NumberOfShardsint `json:"number_of_shards"`RelocatingShardsint `json:"relocating_shards"`Shards map[string]ShardHealthStats `json:"shards,omitempty"`Statushealthstatus.HealthStatus `json:"status"`UnassignedPrimaryShardsint `json:"unassigned_primary_shards"`UnassignedShardsint `json:"unassigned_shards"`}IndexHealthStats type.
funcNewIndexHealthStats¶added inv8.5.0
func NewIndexHealthStats() *IndexHealthStats
NewIndexHealthStats returns a IndexHealthStats.
func (*IndexHealthStats)UnmarshalJSON¶added inv8.7.1
func (s *IndexHealthStats) UnmarshalJSON(data []byte)error
typeIndexMappingRecord¶
type IndexMappingRecord struct {Item *TypeMapping `json:"item,omitempty"`MappingsTypeMapping `json:"mappings"`}IndexMappingRecord type.
funcNewIndexMappingRecord¶added inv8.5.0
func NewIndexMappingRecord() *IndexMappingRecord
NewIndexMappingRecord returns a IndexMappingRecord.
typeIndexOperation¶added inv8.9.0
type IndexOperation struct {// DynamicTemplates A map from the full name of fields to the name of dynamic templates.// It defaults to an empty map.// If a name matches a dynamic template, that template will be applied// regardless of other match predicates defined in the template.// If a field is already defined in the mapping, then this parameter won't be// used.DynamicTemplates map[string]string `json:"dynamic_templates,omitempty"`// Id_ The document ID.Id_ *string `json:"_id,omitempty"`IfPrimaryTerm *int64 `json:"if_primary_term,omitempty"`IfSeqNo *int64 `json:"if_seq_no,omitempty"`// Index_ The name of the index or index alias to perform the action on.Index_ *string `json:"_index,omitempty"`// Pipeline The ID of the pipeline to use to preprocess incoming documents.// If the index has a default ingest pipeline specified, setting the value to// `_none` turns off the default ingest pipeline for this request.// If a final pipeline is configured, it will always run regardless of the value// of this parameter.Pipeline *string `json:"pipeline,omitempty"`// RequireAlias If `true`, the request's actions must target an index alias.RequireAlias *bool `json:"require_alias,omitempty"`// Routing A custom value used to route operations to a specific shard.Routing *string `json:"routing,omitempty"`Version *int64 `json:"version,omitempty"`VersionType *versiontype.VersionType `json:"version_type,omitempty"`}IndexOperation type.
funcNewIndexOperation¶added inv8.9.0
func NewIndexOperation() *IndexOperation
NewIndexOperation returns a IndexOperation.
func (*IndexOperation)UnmarshalJSON¶added inv8.9.0
func (s *IndexOperation) UnmarshalJSON(data []byte)error
typeIndexPrivilegesCheck¶
type IndexPrivilegesCheck struct {// AllowRestrictedIndices This needs to be set to `true` (default is `false`) if using wildcards or// regexps for patterns that cover restricted indices.// Implicitly, restricted indices do not match index patterns because restricted// indices usually have limited privileges and including them in pattern tests// would render most such tests false.// If restricted indices are explicitly included in the names list, privileges// will be checked against them regardless of the value of// `allow_restricted_indices`.AllowRestrictedIndices *bool `json:"allow_restricted_indices,omitempty"`// Names A list of indices.Names []string `json:"names"`// Privileges A list of the privileges that you want to check for the specified indices.Privileges []indexprivilege.IndexPrivilege `json:"privileges"`}IndexPrivilegesCheck type.
funcNewIndexPrivilegesCheck¶added inv8.5.0
func NewIndexPrivilegesCheck() *IndexPrivilegesCheck
NewIndexPrivilegesCheck returns a IndexPrivilegesCheck.
func (*IndexPrivilegesCheck)UnmarshalJSON¶added inv8.7.1
func (s *IndexPrivilegesCheck) UnmarshalJSON(data []byte)error
typeIndexResult¶
type IndexResult struct {ResponseIndexResultSummary `json:"response"`}IndexResult type.
funcNewIndexResult¶added inv8.5.0
func NewIndexResult() *IndexResult
NewIndexResult returns a IndexResult.
typeIndexResultSummary¶
type IndexResultSummary struct {Createdbool `json:"created"`Idstring `json:"id"`Indexstring `json:"index"`Resultresult.Result `json:"result"`Versionint64 `json:"version"`}IndexResultSummary type.
funcNewIndexResultSummary¶added inv8.5.0
func NewIndexResultSummary() *IndexResultSummary
NewIndexResultSummary returns a IndexResultSummary.
func (*IndexResultSummary)UnmarshalJSON¶added inv8.7.1
func (s *IndexResultSummary) UnmarshalJSON(data []byte)error
typeIndexRouting¶
type IndexRouting struct {Allocation *IndexRoutingAllocation `json:"allocation,omitempty"`Rebalance *IndexRoutingRebalance `json:"rebalance,omitempty"`}IndexRouting type.
funcNewIndexRouting¶added inv8.5.0
func NewIndexRouting() *IndexRouting
NewIndexRouting returns a IndexRouting.
typeIndexRoutingAllocation¶
type IndexRoutingAllocation struct {Disk *IndexRoutingAllocationDisk `json:"disk,omitempty"`Enable *indexroutingallocationoptions.IndexRoutingAllocationOptions `json:"enable,omitempty"`Include *IndexRoutingAllocationInclude `json:"include,omitempty"`InitialRecovery *IndexRoutingAllocationInitialRecovery `json:"initial_recovery,omitempty"`}IndexRoutingAllocation type.
funcNewIndexRoutingAllocation¶added inv8.5.0
func NewIndexRoutingAllocation() *IndexRoutingAllocation
NewIndexRoutingAllocation returns a IndexRoutingAllocation.
typeIndexRoutingAllocationDisk¶
type IndexRoutingAllocationDisk struct {ThresholdEnabled *string `json:"threshold_enabled,omitempty"`}IndexRoutingAllocationDisk type.
funcNewIndexRoutingAllocationDisk¶added inv8.5.0
func NewIndexRoutingAllocationDisk() *IndexRoutingAllocationDisk
NewIndexRoutingAllocationDisk returns a IndexRoutingAllocationDisk.
func (*IndexRoutingAllocationDisk)UnmarshalJSON¶added inv8.7.1
func (s *IndexRoutingAllocationDisk) UnmarshalJSON(data []byte)error
typeIndexRoutingAllocationInclude¶
type IndexRoutingAllocationInclude struct {Id_ *string `json:"_id,omitempty"`TierPreference_ *string `json:"_tier_preference,omitempty"`}IndexRoutingAllocationInclude type.
funcNewIndexRoutingAllocationInclude¶added inv8.5.0
func NewIndexRoutingAllocationInclude() *IndexRoutingAllocationInclude
NewIndexRoutingAllocationInclude returns a IndexRoutingAllocationInclude.
func (*IndexRoutingAllocationInclude)UnmarshalJSON¶added inv8.7.1
func (s *IndexRoutingAllocationInclude) UnmarshalJSON(data []byte)error
typeIndexRoutingAllocationInitialRecovery¶
type IndexRoutingAllocationInitialRecovery struct {Id_ *string `json:"_id,omitempty"`}IndexRoutingAllocationInitialRecovery type.
funcNewIndexRoutingAllocationInitialRecovery¶added inv8.5.0
func NewIndexRoutingAllocationInitialRecovery() *IndexRoutingAllocationInitialRecovery
NewIndexRoutingAllocationInitialRecovery returns a IndexRoutingAllocationInitialRecovery.
func (*IndexRoutingAllocationInitialRecovery)UnmarshalJSON¶added inv8.7.1
func (s *IndexRoutingAllocationInitialRecovery) UnmarshalJSON(data []byte)error
typeIndexRoutingRebalance¶
type IndexRoutingRebalance struct {Enableindexroutingrebalanceoptions.IndexRoutingRebalanceOptions `json:"enable"`}IndexRoutingRebalance type.
funcNewIndexRoutingRebalance¶added inv8.5.0
func NewIndexRoutingRebalance() *IndexRoutingRebalance
NewIndexRoutingRebalance returns a IndexRoutingRebalance.
typeIndexSegment¶
type IndexSegment struct {Shards map[string][]ShardsSegment `json:"shards"`}IndexSegment type.
funcNewIndexSegment¶added inv8.5.0
func NewIndexSegment() *IndexSegment
NewIndexSegment returns a IndexSegment.
typeIndexSegmentSort¶
type IndexSegmentSort struct {Field []string `json:"field,omitempty"`Missing []segmentsortmissing.SegmentSortMissing `json:"missing,omitempty"`Mode []segmentsortmode.SegmentSortMode `json:"mode,omitempty"`Order []segmentsortorder.SegmentSortOrder `json:"order,omitempty"`}IndexSegmentSort type.
funcNewIndexSegmentSort¶added inv8.5.0
func NewIndexSegmentSort() *IndexSegmentSort
NewIndexSegmentSort returns a IndexSegmentSort.
func (*IndexSegmentSort)UnmarshalJSON¶added inv8.7.1
func (s *IndexSegmentSort) UnmarshalJSON(data []byte)error
typeIndexSettingBlocks¶
type IndexSettingBlocks struct {MetadataStringifiedboolean `json:"metadata,omitempty"`ReadStringifiedboolean `json:"read,omitempty"`ReadOnlyStringifiedboolean `json:"read_only,omitempty"`ReadOnlyAllowDeleteStringifiedboolean `json:"read_only_allow_delete,omitempty"`WriteStringifiedboolean `json:"write,omitempty"`}IndexSettingBlocks type.
funcNewIndexSettingBlocks¶added inv8.5.0
func NewIndexSettingBlocks() *IndexSettingBlocks
NewIndexSettingBlocks returns a IndexSettingBlocks.
func (*IndexSettingBlocks)UnmarshalJSON¶added inv8.7.1
func (s *IndexSettingBlocks) UnmarshalJSON(data []byte)error
typeIndexSettings¶
type IndexSettings struct {Analysis *IndexSettingsAnalysis `json:"analysis,omitempty"`// Analyze Settings to define analyzers, tokenizers, token filters and character// filters.Analyze *SettingsAnalyze `json:"analyze,omitempty"`AutoExpandReplicasany `json:"auto_expand_replicas,omitempty"`Blocks *IndexSettingBlocks `json:"blocks,omitempty"`CheckOnStartup *indexcheckonstartup.IndexCheckOnStartup `json:"check_on_startup,omitempty"`Codec *string `json:"codec,omitempty"`CreationDateStringifiedEpochTimeUnitMillis `json:"creation_date,omitempty"`CreationDateStringDateTime `json:"creation_date_string,omitempty"`DefaultPipeline *string `json:"default_pipeline,omitempty"`FinalPipeline *string `json:"final_pipeline,omitempty"`Format *string `json:"format,omitempty"`GcDeletesDuration `json:"gc_deletes,omitempty"`Hidden *string `json:"hidden,omitempty"`Highlight *SettingsHighlight `json:"highlight,omitempty"`Index *IndexSettings `json:"index,omitempty"`IndexSettings map[string]json.RawMessage `json:"-"`// IndexingPressure Configure indexing back pressure limits.IndexingPressure *IndicesIndexingPressure `json:"indexing_pressure,omitempty"`IndexingSlowlog *IndexingSlowlogSettings `json:"indexing.slowlog,omitempty"`Lifecycle *IndexSettingsLifecycle `json:"lifecycle,omitempty"`LoadFixedBitsetFiltersEagerly *bool `json:"load_fixed_bitset_filters_eagerly,omitempty"`// Mapping Enable or disable dynamic mapping for an index.Mapping *MappingLimitSettings `json:"mapping,omitempty"`MaxDocvalueFieldsSearch *int `json:"max_docvalue_fields_search,omitempty"`MaxInnerResultWindow *int `json:"max_inner_result_window,omitempty"`MaxNgramDiff *int `json:"max_ngram_diff,omitempty"`MaxRefreshListeners *int `json:"max_refresh_listeners,omitempty"`MaxRegexLength *int `json:"max_regex_length,omitempty"`MaxRescoreWindow *int `json:"max_rescore_window,omitempty"`MaxResultWindow *int `json:"max_result_window,omitempty"`MaxScriptFields *int `json:"max_script_fields,omitempty"`MaxShingleDiff *int `json:"max_shingle_diff,omitempty"`MaxSlicesPerScroll *int `json:"max_slices_per_scroll,omitempty"`MaxTermsCount *int `json:"max_terms_count,omitempty"`Merge *Merge `json:"merge,omitempty"`Mode *string `json:"mode,omitempty"`NumberOfReplicas *string `json:"number_of_replicas,omitempty"`NumberOfRoutingShards *int `json:"number_of_routing_shards,omitempty"`NumberOfShards *string `json:"number_of_shards,omitempty"`Priority *string `json:"priority,omitempty"`ProvidedName *string `json:"provided_name,omitempty"`Queries *Queries `json:"queries,omitempty"`QueryString *SettingsQueryString `json:"query_string,omitempty"`RefreshIntervalDuration `json:"refresh_interval,omitempty"`Routing *IndexRouting `json:"routing,omitempty"`RoutingPartitionSizeStringifiedinteger `json:"routing_partition_size,omitempty"`RoutingPath []string `json:"routing_path,omitempty"`Search *SettingsSearch `json:"search,omitempty"`Settings *IndexSettings `json:"settings,omitempty"`// Similarity Configure custom similarity settings to customize how search results are// scored.Similarity map[string]SettingsSimilarity `json:"similarity,omitempty"`SoftDeletes *SoftDeletes `json:"soft_deletes,omitempty"`Sort *IndexSegmentSort `json:"sort,omitempty"`// Store The store module allows you to control how index data is stored and accessed// on disk.Store *Storage `json:"store,omitempty"`TimeSeries *IndexSettingsTimeSeries `json:"time_series,omitempty"`TopMetricsMaxSize *int `json:"top_metrics_max_size,omitempty"`Translog *Translog `json:"translog,omitempty"`Uuid *string `json:"uuid,omitempty"`VerifiedBeforeClose *string `json:"verified_before_close,omitempty"`Version *IndexVersioning `json:"version,omitempty"`}IndexSettings type.
funcNewIndexSettings¶added inv8.5.0
func NewIndexSettings() *IndexSettings
NewIndexSettings returns a IndexSettings.
func (IndexSettings)MarshalJSON¶
func (sIndexSettings) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
func (*IndexSettings)UnmarshalJSON¶added inv8.7.1
func (s *IndexSettings) UnmarshalJSON(data []byte)error
typeIndexSettingsAnalysis¶
type IndexSettingsAnalysis struct {Analyzer map[string]Analyzer `json:"analyzer,omitempty"`CharFilter map[string]CharFilter `json:"char_filter,omitempty"`Filter map[string]TokenFilter `json:"filter,omitempty"`Normalizer map[string]Normalizer `json:"normalizer,omitempty"`Tokenizer map[string]Tokenizer `json:"tokenizer,omitempty"`}IndexSettingsAnalysis type.
funcNewIndexSettingsAnalysis¶added inv8.5.0
func NewIndexSettingsAnalysis() *IndexSettingsAnalysis
NewIndexSettingsAnalysis returns a IndexSettingsAnalysis.
func (*IndexSettingsAnalysis)UnmarshalJSON¶added inv8.7.0
func (s *IndexSettingsAnalysis) UnmarshalJSON(data []byte)error
typeIndexSettingsLifecycle¶
type IndexSettingsLifecycle struct {// IndexingComplete Indicates whether or not the index has been rolled over. Automatically set to// true when ILM completes the rollover action.// You can explicitly set it to skip rollover.IndexingCompleteStringifiedboolean `json:"indexing_complete,omitempty"`// Name The name of the policy to use to manage the index. For information about how// Elasticsearch applies policy changes, see Policy updates.Name *string `json:"name,omitempty"`// OriginationDate If specified, this is the timestamp used to calculate the index age for its// phase transitions. Use this setting// if you create a new index that contains old data and want to use the original// creation date to calculate the index// age. Specified as a Unix epoch value in milliseconds.OriginationDate *int64 `json:"origination_date,omitempty"`// ParseOriginationDate Set to true to parse the origination date from the index name. This// origination date is used to calculate the index age// for its phase transitions. The index name must match the pattern// ^.*-{date_format}-\\d+, where the date_format is// yyyy.MM.dd and the trailing digits are optional. An index that was rolled// over would normally match the full format,// for example logs-2016.10.31-000002). If the index name doesn’t match the// pattern, index creation fails.ParseOriginationDate *bool `json:"parse_origination_date,omitempty"`// PreferIlm Preference for the system that manages a data stream backing index// (preferring ILM when both ILM and DLM are// applicable for an index).PreferIlm *string `json:"prefer_ilm,omitempty"`// RolloverAlias The index alias to update when the index rolls over. Specify when using a// policy that contains a rollover action.// When the index rolls over, the alias is updated to reflect that the index is// no longer the write index. For more// information about rolling indices, see Rollover.RolloverAlias *string `json:"rollover_alias,omitempty"`Step *IndexSettingsLifecycleStep `json:"step,omitempty"`}IndexSettingsLifecycle type.
funcNewIndexSettingsLifecycle¶added inv8.5.0
func NewIndexSettingsLifecycle() *IndexSettingsLifecycle
NewIndexSettingsLifecycle returns a IndexSettingsLifecycle.
func (*IndexSettingsLifecycle)UnmarshalJSON¶added inv8.7.1
func (s *IndexSettingsLifecycle) UnmarshalJSON(data []byte)error
typeIndexSettingsLifecycleStep¶
type IndexSettingsLifecycleStep struct {// WaitTimeThreshold Time to wait for the cluster to resolve allocation issues during an ILM// shrink action. Must be greater than 1h (1 hour).// See Shard allocation for shrink.WaitTimeThresholdDuration `json:"wait_time_threshold,omitempty"`}IndexSettingsLifecycleStep type.
funcNewIndexSettingsLifecycleStep¶added inv8.5.0
func NewIndexSettingsLifecycleStep() *IndexSettingsLifecycleStep
NewIndexSettingsLifecycleStep returns a IndexSettingsLifecycleStep.
func (*IndexSettingsLifecycleStep)UnmarshalJSON¶added inv8.7.1
func (s *IndexSettingsLifecycleStep) UnmarshalJSON(data []byte)error
typeIndexSettingsTimeSeries¶
type IndexSettingsTimeSeries struct {EndTimeDateTime `json:"end_time,omitempty"`StartTimeDateTime `json:"start_time,omitempty"`}IndexSettingsTimeSeries type.
funcNewIndexSettingsTimeSeries¶added inv8.5.0
func NewIndexSettingsTimeSeries() *IndexSettingsTimeSeries
NewIndexSettingsTimeSeries returns a IndexSettingsTimeSeries.
func (*IndexSettingsTimeSeries)UnmarshalJSON¶added inv8.7.1
func (s *IndexSettingsTimeSeries) UnmarshalJSON(data []byte)error
typeIndexState¶
type IndexState struct {Aliases map[string]Alias `json:"aliases,omitempty"`DataStream *string `json:"data_stream,omitempty"`// Defaults Default settings, included when the request's `include_default` is `true`.Defaults *IndexSettings `json:"defaults,omitempty"`// Lifecycle Data stream lifecycle applicable if this is a data stream.Lifecycle *DataStreamLifecycle `json:"lifecycle,omitempty"`Mappings *TypeMapping `json:"mappings,omitempty"`Settings *IndexSettings `json:"settings,omitempty"`}IndexState type.
func (*IndexState)UnmarshalJSON¶added inv8.7.1
func (s *IndexState) UnmarshalJSON(data []byte)error
typeIndexStats¶
type IndexStats struct {Bulk *BulkStats `json:"bulk,omitempty"`// Completion Contains statistics about completions across all shards assigned to the node.Completion *CompletionStats `json:"completion,omitempty"`// Docs Contains statistics about documents across all primary shards assigned to the// node.Docs *DocStats `json:"docs,omitempty"`// Fielddata Contains statistics about the field data cache across all shards assigned to// the node.Fielddata *FielddataStats `json:"fielddata,omitempty"`// Flush Contains statistics about flush operations for the node.Flush *FlushStats `json:"flush,omitempty"`// Get Contains statistics about get operations for the node.Get *GetStats `json:"get,omitempty"`// Indexing Contains statistics about indexing operations for the node.Indexing *IndexingStats `json:"indexing,omitempty"`// Indices Contains statistics about indices operations for the node.Indices *IndicesStats `json:"indices,omitempty"`// Merges Contains statistics about merge operations for the node.Merges *MergesStats `json:"merges,omitempty"`// QueryCache Contains statistics about the query cache across all shards assigned to the// node.QueryCache *QueryCacheStats `json:"query_cache,omitempty"`// Recovery Contains statistics about recovery operations for the node.Recovery *RecoveryStats `json:"recovery,omitempty"`// Refresh Contains statistics about refresh operations for the node.Refresh *RefreshStats `json:"refresh,omitempty"`// RequestCache Contains statistics about the request cache across all shards assigned to the// node.RequestCache *RequestCacheStats `json:"request_cache,omitempty"`// Search Contains statistics about search operations for the node.Search *SearchStats `json:"search,omitempty"`// Segments Contains statistics about segments across all shards assigned to the node.Segments *SegmentsStats `json:"segments,omitempty"`ShardStats *ShardsTotalStats `json:"shard_stats,omitempty"`// Store Contains statistics about the size of shards assigned to the node.Store *StoreStats `json:"store,omitempty"`// Translog Contains statistics about transaction log operations for the node.Translog *TranslogStats `json:"translog,omitempty"`// Warmer Contains statistics about index warming operations for the node.Warmer *WarmerStats `json:"warmer,omitempty"`}IndexStats type.
typeIndexTemplate¶
type IndexTemplate struct {AllowAutoCreate *bool `json:"allow_auto_create,omitempty"`// ComposedOf An ordered list of component template names.// Component templates are merged in the order specified, meaning that the last// component template specified has the highest precedence.ComposedOf []string `json:"composed_of"`// DataStream If this object is included, the template is used to create data streams and// their backing indices.// Supports an empty object.// Data streams require a matching index template with a `data_stream` object.DataStream *IndexTemplateDataStreamConfiguration `json:"data_stream,omitempty"`// Deprecated Marks this index template as deprecated.// When creating or updating a non-deprecated index template that uses// deprecated components,// Elasticsearch will emit a deprecation warning.Deprecated *bool `json:"deprecated,omitempty"`// IgnoreMissingComponentTemplates A list of component template names that are allowed to be absent.IgnoreMissingComponentTemplates []string `json:"ignore_missing_component_templates,omitempty"`// IndexPatterns Name of the index template.IndexPatterns []string `json:"index_patterns"`// Meta_ Optional user metadata about the index template. May have any contents.// This map is not automatically generated by Elasticsearch.Meta_Metadata `json:"_meta,omitempty"`// Priority Priority to determine index template precedence when a new data stream or// index is created.// The index template with the highest priority is chosen.// If no priority is specified the template is treated as though it is of// priority 0 (lowest priority).// This number is not automatically generated by Elasticsearch.Priority *int64 `json:"priority,omitempty"`// Template Template to be applied.// It may optionally include an `aliases`, `mappings`, or `settings`// configuration.Template *IndexTemplateSummary `json:"template,omitempty"`// Version Version number used to manage index templates externally.// This number is not automatically generated by Elasticsearch.Version *int64 `json:"version,omitempty"`}IndexTemplate type.
funcNewIndexTemplate¶added inv8.5.0
func NewIndexTemplate() *IndexTemplate
NewIndexTemplate returns a IndexTemplate.
func (*IndexTemplate)UnmarshalJSON¶added inv8.7.1
func (s *IndexTemplate) UnmarshalJSON(data []byte)error
typeIndexTemplateDataStreamConfiguration¶
type IndexTemplateDataStreamConfiguration struct {// AllowCustomRouting If true, the data stream supports custom routing.AllowCustomRouting *bool `json:"allow_custom_routing,omitempty"`// Hidden If true, the data stream is hidden.Hidden *bool `json:"hidden,omitempty"`}IndexTemplateDataStreamConfiguration type.
funcNewIndexTemplateDataStreamConfiguration¶added inv8.5.0
func NewIndexTemplateDataStreamConfiguration() *IndexTemplateDataStreamConfiguration
NewIndexTemplateDataStreamConfiguration returns a IndexTemplateDataStreamConfiguration.
func (*IndexTemplateDataStreamConfiguration)UnmarshalJSON¶added inv8.7.1
func (s *IndexTemplateDataStreamConfiguration) UnmarshalJSON(data []byte)error
typeIndexTemplateItem¶
type IndexTemplateItem struct {IndexTemplateIndexTemplate `json:"index_template"`Namestring `json:"name"`}IndexTemplateItem type.
funcNewIndexTemplateItem¶added inv8.5.0
func NewIndexTemplateItem() *IndexTemplateItem
NewIndexTemplateItem returns a IndexTemplateItem.
func (*IndexTemplateItem)UnmarshalJSON¶added inv8.7.1
func (s *IndexTemplateItem) UnmarshalJSON(data []byte)error
typeIndexTemplateMapping¶
type IndexTemplateMapping struct {// Aliases Aliases to add.// If the index template includes a `data_stream` object, these are data stream// aliases.// Otherwise, these are index aliases.// Data stream aliases ignore the `index_routing`, `routing`, and// `search_routing` options.Aliases map[string]Alias `json:"aliases,omitempty"`Lifecycle *DataStreamLifecycle `json:"lifecycle,omitempty"`// Mappings Mapping for fields in the index.// If specified, this mapping can include field names, field data types, and// mapping parameters.Mappings *TypeMapping `json:"mappings,omitempty"`// Settings Configuration options for the index.Settings *IndexSettings `json:"settings,omitempty"`}IndexTemplateMapping type.
funcNewIndexTemplateMapping¶added inv8.5.0
func NewIndexTemplateMapping() *IndexTemplateMapping
NewIndexTemplateMapping returns a IndexTemplateMapping.
typeIndexTemplateSummary¶
type IndexTemplateSummary struct {// Aliases Aliases to add.// If the index template includes a `data_stream` object, these are data stream// aliases.// Otherwise, these are index aliases.// Data stream aliases ignore the `index_routing`, `routing`, and// `search_routing` options.Aliases map[string]Alias `json:"aliases,omitempty"`Lifecycle *DataStreamLifecycleWithRollover `json:"lifecycle,omitempty"`// Mappings Mapping for fields in the index.// If specified, this mapping can include field names, field data types, and// mapping parameters.Mappings *TypeMapping `json:"mappings,omitempty"`// Settings Configuration options for the index.Settings *IndexSettings `json:"settings,omitempty"`}IndexTemplateSummary type.
funcNewIndexTemplateSummary¶added inv8.5.0
func NewIndexTemplateSummary() *IndexTemplateSummary
NewIndexTemplateSummary returns a IndexTemplateSummary.
typeIndexVersioning¶
type IndexVersioning struct {Created *string `json:"created,omitempty"`CreatedString *string `json:"created_string,omitempty"`}IndexVersioning type.
funcNewIndexVersioning¶added inv8.5.0
func NewIndexVersioning() *IndexVersioning
NewIndexVersioning returns a IndexVersioning.
func (*IndexVersioning)UnmarshalJSON¶added inv8.7.1
func (s *IndexVersioning) UnmarshalJSON(data []byte)error
typeIndexingSlowlogSettings¶added inv8.10.0
type IndexingSlowlogSettings struct {Level *string `json:"level,omitempty"`Reformat *bool `json:"reformat,omitempty"`Source *int `json:"source,omitempty"`Threshold *IndexingSlowlogTresholds `json:"threshold,omitempty"`}IndexingSlowlogSettings type.
funcNewIndexingSlowlogSettings¶added inv8.10.0
func NewIndexingSlowlogSettings() *IndexingSlowlogSettings
NewIndexingSlowlogSettings returns a IndexingSlowlogSettings.
func (*IndexingSlowlogSettings)UnmarshalJSON¶added inv8.10.0
func (s *IndexingSlowlogSettings) UnmarshalJSON(data []byte)error
typeIndexingSlowlogTresholds¶added inv8.10.0
type IndexingSlowlogTresholds struct {// Index The indexing slow log, similar in functionality to the search slow log. The// log file name ends with `_index_indexing_slowlog.json`.// Log and the thresholds are configured in the same way as the search slowlog.Index *SlowlogTresholdLevels `json:"index,omitempty"`}IndexingSlowlogTresholds type.
funcNewIndexingSlowlogTresholds¶added inv8.10.0
func NewIndexingSlowlogTresholds() *IndexingSlowlogTresholds
NewIndexingSlowlogTresholds returns a IndexingSlowlogTresholds.
typeIndexingStats¶
type IndexingStats struct {DeleteCurrentint64 `json:"delete_current"`DeleteTimeDuration `json:"delete_time,omitempty"`DeleteTimeInMillisint64 `json:"delete_time_in_millis"`DeleteTotalint64 `json:"delete_total"`IndexCurrentint64 `json:"index_current"`IndexFailedint64 `json:"index_failed"`IndexTimeDuration `json:"index_time,omitempty"`IndexTimeInMillisint64 `json:"index_time_in_millis"`IndexTotalint64 `json:"index_total"`IsThrottledbool `json:"is_throttled"`NoopUpdateTotalint64 `json:"noop_update_total"`ThrottleTimeDuration `json:"throttle_time,omitempty"`ThrottleTimeInMillisint64 `json:"throttle_time_in_millis"`Types map[string]IndexingStats `json:"types,omitempty"`WriteLoad *Float64 `json:"write_load,omitempty"`}IndexingStats type.
funcNewIndexingStats¶added inv8.5.0
func NewIndexingStats() *IndexingStats
NewIndexingStats returns a IndexingStats.
func (*IndexingStats)UnmarshalJSON¶added inv8.7.1
func (s *IndexingStats) UnmarshalJSON(data []byte)error
typeIndicNormalizationTokenFilter¶added inv8.18.1
type IndicNormalizationTokenFilter struct {Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}IndicNormalizationTokenFilter type.
funcNewIndicNormalizationTokenFilter¶added inv8.18.1
func NewIndicNormalizationTokenFilter() *IndicNormalizationTokenFilter
NewIndicNormalizationTokenFilter returns a IndicNormalizationTokenFilter.
func (IndicNormalizationTokenFilter)MarshalJSON¶added inv8.18.1
func (sIndicNormalizationTokenFilter) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*IndicNormalizationTokenFilter)UnmarshalJSON¶added inv8.18.1
func (s *IndicNormalizationTokenFilter) UnmarshalJSON(data []byte)error
typeIndicatorNode¶added inv8.7.1
type IndicatorNode struct {Name *string `json:"name,omitempty"`NodeId *string `json:"node_id,omitempty"`}IndicatorNode type.
funcNewIndicatorNode¶added inv8.7.1
func NewIndicatorNode() *IndicatorNode
NewIndicatorNode returns a IndicatorNode.
func (*IndicatorNode)UnmarshalJSON¶added inv8.7.1
func (s *IndicatorNode) UnmarshalJSON(data []byte)error
typeIndicators¶added inv8.7.1
type Indicators struct {DataStreamLifecycle *DataStreamLifecycleIndicator `json:"data_stream_lifecycle,omitempty"`Disk *DiskIndicator `json:"disk,omitempty"`Ilm *IlmIndicator `json:"ilm,omitempty"`MasterIsStable *MasterIsStableIndicator `json:"master_is_stable,omitempty"`RepositoryIntegrity *RepositoryIntegrityIndicator `json:"repository_integrity,omitempty"`ShardsAvailability *ShardsAvailabilityIndicator `json:"shards_availability,omitempty"`ShardsCapacity *ShardsCapacityIndicator `json:"shards_capacity,omitempty"`Slm *SlmIndicator `json:"slm,omitempty"`}Indicators type.
typeIndicesAction¶added inv8.5.0
type IndicesAction struct {// Add Adds a data stream or index to an alias.// If the alias doesn’t exist, the `add` action creates it.Add *AddAction `json:"add,omitempty"`AdditionalIndicesActionProperty map[string]json.RawMessage `json:"-"`// Remove Removes a data stream or index from an alias.Remove *RemoveAction `json:"remove,omitempty"`// RemoveIndex Deletes an index.// You cannot use this action on aliases or data streams.RemoveIndex *RemoveIndexAction `json:"remove_index,omitempty"`}IndicesAction type.
funcNewIndicesAction¶added inv8.5.0
func NewIndicesAction() *IndicesAction
NewIndicesAction returns a IndicesAction.
func (IndicesAction)MarshalJSON¶added inv8.18.0
func (sIndicesAction) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
typeIndicesBlockStatus¶
IndicesBlockStatus type.
funcNewIndicesBlockStatus¶added inv8.5.0
func NewIndicesBlockStatus() *IndicesBlockStatus
NewIndicesBlockStatus returns a IndicesBlockStatus.
func (*IndicesBlockStatus)UnmarshalJSON¶added inv8.7.1
func (s *IndicesBlockStatus) UnmarshalJSON(data []byte)error
typeIndicesIndexingPressure¶added inv8.5.0
type IndicesIndexingPressure struct {MemoryIndicesIndexingPressureMemory `json:"memory"`}IndicesIndexingPressure type.
funcNewIndicesIndexingPressure¶added inv8.5.0
func NewIndicesIndexingPressure() *IndicesIndexingPressure
NewIndicesIndexingPressure returns a IndicesIndexingPressure.
typeIndicesIndexingPressureMemory¶added inv8.5.0
type IndicesIndexingPressureMemory struct {// Limit Number of outstanding bytes that may be consumed by indexing requests. When// this limit is reached or exceeded,// the node will reject new coordinating and primary operations. When replica// operations consume 1.5x this limit,// the node will reject new replica operations. Defaults to 10% of the heap.Limit *int `json:"limit,omitempty"`}IndicesIndexingPressureMemory type.
funcNewIndicesIndexingPressureMemory¶added inv8.5.0
func NewIndicesIndexingPressureMemory() *IndicesIndexingPressureMemory
NewIndicesIndexingPressureMemory returns a IndicesIndexingPressureMemory.
func (*IndicesIndexingPressureMemory)UnmarshalJSON¶added inv8.7.1
func (s *IndicesIndexingPressureMemory) UnmarshalJSON(data []byte)error
typeIndicesModifyAction¶added inv8.5.0
type IndicesModifyAction struct {// AddBackingIndex Adds an existing index as a backing index for a data stream.// The index is hidden as part of this operation.// WARNING: Adding indices with the `add_backing_index` action can potentially// result in improper data stream behavior.// This should be considered an expert level API.AddBackingIndex *IndexAndDataStreamAction `json:"add_backing_index,omitempty"`AdditionalIndicesModifyActionProperty map[string]json.RawMessage `json:"-"`// RemoveBackingIndex Removes a backing index from a data stream.// The index is unhidden as part of this operation.// A data stream’s write index cannot be removed.RemoveBackingIndex *IndexAndDataStreamAction `json:"remove_backing_index,omitempty"`}IndicesModifyAction type.
funcNewIndicesModifyAction¶added inv8.5.0
func NewIndicesModifyAction() *IndicesModifyAction
NewIndicesModifyAction returns a IndicesModifyAction.
func (IndicesModifyAction)MarshalJSON¶added inv8.18.0
func (sIndicesModifyAction) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
typeIndicesOptions¶
type IndicesOptions struct {// AllowNoIndices If false, the request returns an error if any wildcard expression, index// alias, or `_all` value targets only// missing or closed indices. This behavior applies even if the request targets// other open indices. For example,// a request targeting `foo*,bar*` returns an error if an index starts with// `foo` but no index starts with `bar`.AllowNoIndices *bool `json:"allow_no_indices,omitempty"`// ExpandWildcards Type of index that wildcard patterns can match. If the request can target// data streams, this argument// determines whether wildcard expressions match hidden data streams. Supports// comma-separated values,// such as `open,hidden`.ExpandWildcards []expandwildcard.ExpandWildcard `json:"expand_wildcards,omitempty"`// IgnoreThrottled If true, concrete, expanded or aliased indices are ignored when frozen.IgnoreThrottled *bool `json:"ignore_throttled,omitempty"`// IgnoreUnavailable If true, missing or closed indices are not included in the response.IgnoreUnavailable *bool `json:"ignore_unavailable,omitempty"`}IndicesOptions type.
funcNewIndicesOptions¶added inv8.5.0
func NewIndicesOptions() *IndicesOptions
NewIndicesOptions returns a IndicesOptions.
func (*IndicesOptions)UnmarshalJSON¶added inv8.7.1
func (s *IndicesOptions) UnmarshalJSON(data []byte)error
typeIndicesPrivileges¶
type IndicesPrivileges struct {// AllowRestrictedIndices Set to `true` if using wildcard or regular expressions for patterns that// cover restricted indices. Implicitly, restricted indices have limited// privileges that can cause pattern tests to fail. If restricted indices are// explicitly included in the `names` list, Elasticsearch checks privileges// against these indices regardless of the value set for// `allow_restricted_indices`.AllowRestrictedIndices *bool `json:"allow_restricted_indices,omitempty"`// FieldSecurity The document fields that the owners of the role have read access to.FieldSecurity *FieldSecurity `json:"field_security,omitempty"`// Names A list of indices (or index name patterns) to which the permissions in this// entry apply.Names []string `json:"names"`// Privileges The index level privileges that owners of the role have on the specified// indices.Privileges []indexprivilege.IndexPrivilege `json:"privileges"`// Query A search query that defines the documents the owners of the role have access// to. A document within the specified indices must match this query for it to// be accessible by the owners of the role.QueryIndicesPrivilegesQuery `json:"query,omitempty"`}IndicesPrivileges type.
funcNewIndicesPrivileges¶added inv8.5.0
func NewIndicesPrivileges() *IndicesPrivileges
NewIndicesPrivileges returns a IndicesPrivileges.
func (*IndicesPrivileges)UnmarshalJSON¶added inv8.7.1
func (s *IndicesPrivileges) UnmarshalJSON(data []byte)error
typeIndicesPrivilegesQuery¶
type IndicesPrivilegesQueryany
IndicesPrivilegesQuery holds the union for the following types:
stringQueryRoleTemplateQuery
typeIndicesRecord¶
type IndicesRecord struct {// BulkAvgSizeInBytes average size in bytes of shard bulkBulkAvgSizeInBytes *string `json:"bulk.avg_size_in_bytes,omitempty"`// BulkAvgTime average time spend in shard bulkBulkAvgTime *string `json:"bulk.avg_time,omitempty"`// BulkTotalOperations number of bulk shard opsBulkTotalOperations *string `json:"bulk.total_operations,omitempty"`// BulkTotalSizeInBytes total size in bytes of shard bulkBulkTotalSizeInBytes *string `json:"bulk.total_size_in_bytes,omitempty"`// BulkTotalTime time spend in shard bulkBulkTotalTime *string `json:"bulk.total_time,omitempty"`// CompletionSize size of completionCompletionSize *string `json:"completion.size,omitempty"`// CreationDate index creation date (millisecond value)CreationDate *string `json:"creation.date,omitempty"`// CreationDateString index creation date (as string)CreationDateString *string `json:"creation.date.string,omitempty"`// DatasetSize total size of dataset (including the cache for partially mounted indices)DatasetSize *string `json:"dataset.size,omitempty"`// DocsCount available docsDocsCount *string `json:"docs.count,omitempty"`// DocsDeleted deleted docsDocsDeleted *string `json:"docs.deleted,omitempty"`// FielddataEvictions fielddata evictionsFielddataEvictions *string `json:"fielddata.evictions,omitempty"`// FielddataMemorySize used fielddata cacheFielddataMemorySize *string `json:"fielddata.memory_size,omitempty"`// FlushTotal number of flushesFlushTotal *string `json:"flush.total,omitempty"`// FlushTotalTime time spent in flushFlushTotalTime *string `json:"flush.total_time,omitempty"`// GetCurrent number of current get opsGetCurrent *string `json:"get.current,omitempty"`// GetExistsTime time spent in successful getsGetExistsTime *string `json:"get.exists_time,omitempty"`// GetExistsTotal number of successful getsGetExistsTotal *string `json:"get.exists_total,omitempty"`// GetMissingTime time spent in failed getsGetMissingTime *string `json:"get.missing_time,omitempty"`// GetMissingTotal number of failed getsGetMissingTotal *string `json:"get.missing_total,omitempty"`// GetTime time spent in getGetTime *string `json:"get.time,omitempty"`// GetTotal number of get opsGetTotal *string `json:"get.total,omitempty"`// Health current health statusHealth *string `json:"health,omitempty"`// Index index nameIndex *string `json:"index,omitempty"`// IndexingDeleteCurrent number of current deletionsIndexingDeleteCurrent *string `json:"indexing.delete_current,omitempty"`// IndexingDeleteTime time spent in deletionsIndexingDeleteTime *string `json:"indexing.delete_time,omitempty"`// IndexingDeleteTotal number of delete opsIndexingDeleteTotal *string `json:"indexing.delete_total,omitempty"`// IndexingIndexCurrent number of current indexing opsIndexingIndexCurrent *string `json:"indexing.index_current,omitempty"`// IndexingIndexFailed number of failed indexing opsIndexingIndexFailed *string `json:"indexing.index_failed,omitempty"`// IndexingIndexTime time spent in indexingIndexingIndexTime *string `json:"indexing.index_time,omitempty"`// IndexingIndexTotal number of indexing opsIndexingIndexTotal *string `json:"indexing.index_total,omitempty"`// MemoryTotal total used memoryMemoryTotal *string `json:"memory.total,omitempty"`// MergesCurrent number of current mergesMergesCurrent *string `json:"merges.current,omitempty"`// MergesCurrentDocs number of current merging docsMergesCurrentDocs *string `json:"merges.current_docs,omitempty"`// MergesCurrentSize size of current mergesMergesCurrentSize *string `json:"merges.current_size,omitempty"`// MergesTotal number of completed merge opsMergesTotal *string `json:"merges.total,omitempty"`// MergesTotalDocs docs mergedMergesTotalDocs *string `json:"merges.total_docs,omitempty"`// MergesTotalSize size mergedMergesTotalSize *string `json:"merges.total_size,omitempty"`// MergesTotalTime time spent in mergesMergesTotalTime *string `json:"merges.total_time,omitempty"`// Pri number of primary shardsPri *string `json:"pri,omitempty"`// PriBulkAvgSizeInBytes average size in bytes of shard bulkPriBulkAvgSizeInBytes *string `json:"pri.bulk.avg_size_in_bytes,omitempty"`// PriBulkAvgTime average time spend in shard bulkPriBulkAvgTime *string `json:"pri.bulk.avg_time,omitempty"`// PriBulkTotalOperations number of bulk shard opsPriBulkTotalOperations *string `json:"pri.bulk.total_operations,omitempty"`// PriBulkTotalSizeInBytes total size in bytes of shard bulkPriBulkTotalSizeInBytes *string `json:"pri.bulk.total_size_in_bytes,omitempty"`// PriBulkTotalTime time spend in shard bulkPriBulkTotalTime *string `json:"pri.bulk.total_time,omitempty"`// PriCompletionSize size of completionPriCompletionSize *string `json:"pri.completion.size,omitempty"`// PriFielddataEvictions fielddata evictionsPriFielddataEvictions *string `json:"pri.fielddata.evictions,omitempty"`// PriFielddataMemorySize used fielddata cachePriFielddataMemorySize *string `json:"pri.fielddata.memory_size,omitempty"`// PriFlushTotal number of flushesPriFlushTotal *string `json:"pri.flush.total,omitempty"`// PriFlushTotalTime time spent in flushPriFlushTotalTime *string `json:"pri.flush.total_time,omitempty"`// PriGetCurrent number of current get opsPriGetCurrent *string `json:"pri.get.current,omitempty"`// PriGetExistsTime time spent in successful getsPriGetExistsTime *string `json:"pri.get.exists_time,omitempty"`// PriGetExistsTotal number of successful getsPriGetExistsTotal *string `json:"pri.get.exists_total,omitempty"`// PriGetMissingTime time spent in failed getsPriGetMissingTime *string `json:"pri.get.missing_time,omitempty"`// PriGetMissingTotal number of failed getsPriGetMissingTotal *string `json:"pri.get.missing_total,omitempty"`// PriGetTime time spent in getPriGetTime *string `json:"pri.get.time,omitempty"`// PriGetTotal number of get opsPriGetTotal *string `json:"pri.get.total,omitempty"`// PriIndexingDeleteCurrent number of current deletionsPriIndexingDeleteCurrent *string `json:"pri.indexing.delete_current,omitempty"`// PriIndexingDeleteTime time spent in deletionsPriIndexingDeleteTime *string `json:"pri.indexing.delete_time,omitempty"`// PriIndexingDeleteTotal number of delete opsPriIndexingDeleteTotal *string `json:"pri.indexing.delete_total,omitempty"`// PriIndexingIndexCurrent number of current indexing opsPriIndexingIndexCurrent *string `json:"pri.indexing.index_current,omitempty"`// PriIndexingIndexFailed number of failed indexing opsPriIndexingIndexFailed *string `json:"pri.indexing.index_failed,omitempty"`// PriIndexingIndexTime time spent in indexingPriIndexingIndexTime *string `json:"pri.indexing.index_time,omitempty"`// PriIndexingIndexTotal number of indexing opsPriIndexingIndexTotal *string `json:"pri.indexing.index_total,omitempty"`// PriMemoryTotal total user memoryPriMemoryTotal *string `json:"pri.memory.total,omitempty"`// PriMergesCurrent number of current mergesPriMergesCurrent *string `json:"pri.merges.current,omitempty"`// PriMergesCurrentDocs number of current merging docsPriMergesCurrentDocs *string `json:"pri.merges.current_docs,omitempty"`// PriMergesCurrentSize size of current mergesPriMergesCurrentSize *string `json:"pri.merges.current_size,omitempty"`// PriMergesTotal number of completed merge opsPriMergesTotal *string `json:"pri.merges.total,omitempty"`// PriMergesTotalDocs docs mergedPriMergesTotalDocs *string `json:"pri.merges.total_docs,omitempty"`// PriMergesTotalSize size mergedPriMergesTotalSize *string `json:"pri.merges.total_size,omitempty"`// PriMergesTotalTime time spent in mergesPriMergesTotalTime *string `json:"pri.merges.total_time,omitempty"`// PriQueryCacheEvictions query cache evictionsPriQueryCacheEvictions *string `json:"pri.query_cache.evictions,omitempty"`// PriQueryCacheMemorySize used query cachePriQueryCacheMemorySize *string `json:"pri.query_cache.memory_size,omitempty"`// PriRefreshExternalTime time spent in external refreshesPriRefreshExternalTime *string `json:"pri.refresh.external_time,omitempty"`// PriRefreshExternalTotal total external refreshesPriRefreshExternalTotal *string `json:"pri.refresh.external_total,omitempty"`// PriRefreshListeners number of pending refresh listenersPriRefreshListeners *string `json:"pri.refresh.listeners,omitempty"`// PriRefreshTime time spent in refreshesPriRefreshTime *string `json:"pri.refresh.time,omitempty"`// PriRefreshTotal total refreshesPriRefreshTotal *string `json:"pri.refresh.total,omitempty"`// PriRequestCacheEvictions request cache evictionsPriRequestCacheEvictions *string `json:"pri.request_cache.evictions,omitempty"`// PriRequestCacheHitCount request cache hit countPriRequestCacheHitCount *string `json:"pri.request_cache.hit_count,omitempty"`// PriRequestCacheMemorySize used request cachePriRequestCacheMemorySize *string `json:"pri.request_cache.memory_size,omitempty"`// PriRequestCacheMissCount request cache miss countPriRequestCacheMissCount *string `json:"pri.request_cache.miss_count,omitempty"`// PriSearchFetchCurrent current fetch phase opsPriSearchFetchCurrent *string `json:"pri.search.fetch_current,omitempty"`// PriSearchFetchTime time spent in fetch phasePriSearchFetchTime *string `json:"pri.search.fetch_time,omitempty"`// PriSearchFetchTotal total fetch opsPriSearchFetchTotal *string `json:"pri.search.fetch_total,omitempty"`// PriSearchOpenContexts open search contextsPriSearchOpenContexts *string `json:"pri.search.open_contexts,omitempty"`// PriSearchQueryCurrent current query phase opsPriSearchQueryCurrent *string `json:"pri.search.query_current,omitempty"`// PriSearchQueryTime time spent in query phasePriSearchQueryTime *string `json:"pri.search.query_time,omitempty"`// PriSearchQueryTotal total query phase opsPriSearchQueryTotal *string `json:"pri.search.query_total,omitempty"`// PriSearchScrollCurrent open scroll contextsPriSearchScrollCurrent *string `json:"pri.search.scroll_current,omitempty"`// PriSearchScrollTime time scroll contexts held openPriSearchScrollTime *string `json:"pri.search.scroll_time,omitempty"`// PriSearchScrollTotal completed scroll contextsPriSearchScrollTotal *string `json:"pri.search.scroll_total,omitempty"`// PriSegmentsCount number of segmentsPriSegmentsCount *string `json:"pri.segments.count,omitempty"`// PriSegmentsFixedBitsetMemory memory used by fixed bit sets for nested object field types and export type// filters for types referred in _parent fieldsPriSegmentsFixedBitsetMemory *string `json:"pri.segments.fixed_bitset_memory,omitempty"`// PriSegmentsIndexWriterMemory memory used by index writerPriSegmentsIndexWriterMemory *string `json:"pri.segments.index_writer_memory,omitempty"`// PriSegmentsMemory memory used by segmentsPriSegmentsMemory *string `json:"pri.segments.memory,omitempty"`// PriSegmentsVersionMapMemory memory used by version mapPriSegmentsVersionMapMemory *string `json:"pri.segments.version_map_memory,omitempty"`// PriStoreSize store size of primariesPriStoreSize *string `json:"pri.store.size,omitempty"`// PriSuggestCurrent number of current suggest opsPriSuggestCurrent *string `json:"pri.suggest.current,omitempty"`// PriSuggestTime time spend in suggestPriSuggestTime *string `json:"pri.suggest.time,omitempty"`// PriSuggestTotal number of suggest opsPriSuggestTotal *string `json:"pri.suggest.total,omitempty"`// PriWarmerCurrent current warmer opsPriWarmerCurrent *string `json:"pri.warmer.current,omitempty"`// PriWarmerTotal total warmer opsPriWarmerTotal *string `json:"pri.warmer.total,omitempty"`// PriWarmerTotalTime time spent in warmersPriWarmerTotalTime *string `json:"pri.warmer.total_time,omitempty"`// QueryCacheEvictions query cache evictionsQueryCacheEvictions *string `json:"query_cache.evictions,omitempty"`// QueryCacheMemorySize used query cacheQueryCacheMemorySize *string `json:"query_cache.memory_size,omitempty"`// RefreshExternalTime time spent in external refreshesRefreshExternalTime *string `json:"refresh.external_time,omitempty"`// RefreshExternalTotal total external refreshesRefreshExternalTotal *string `json:"refresh.external_total,omitempty"`// RefreshListeners number of pending refresh listenersRefreshListeners *string `json:"refresh.listeners,omitempty"`// RefreshTime time spent in refreshesRefreshTime *string `json:"refresh.time,omitempty"`// RefreshTotal total refreshesRefreshTotal *string `json:"refresh.total,omitempty"`// Rep number of replica shardsRep *string `json:"rep,omitempty"`// RequestCacheEvictions request cache evictionsRequestCacheEvictions *string `json:"request_cache.evictions,omitempty"`// RequestCacheHitCount request cache hit countRequestCacheHitCount *string `json:"request_cache.hit_count,omitempty"`// RequestCacheMemorySize used request cacheRequestCacheMemorySize *string `json:"request_cache.memory_size,omitempty"`// RequestCacheMissCount request cache miss countRequestCacheMissCount *string `json:"request_cache.miss_count,omitempty"`// SearchFetchCurrent current fetch phase opsSearchFetchCurrent *string `json:"search.fetch_current,omitempty"`// SearchFetchTime time spent in fetch phaseSearchFetchTime *string `json:"search.fetch_time,omitempty"`// SearchFetchTotal total fetch opsSearchFetchTotal *string `json:"search.fetch_total,omitempty"`// SearchOpenContexts open search contextsSearchOpenContexts *string `json:"search.open_contexts,omitempty"`// SearchQueryCurrent current query phase opsSearchQueryCurrent *string `json:"search.query_current,omitempty"`// SearchQueryTime time spent in query phaseSearchQueryTime *string `json:"search.query_time,omitempty"`// SearchQueryTotal total query phase opsSearchQueryTotal *string `json:"search.query_total,omitempty"`// SearchScrollCurrent open scroll contextsSearchScrollCurrent *string `json:"search.scroll_current,omitempty"`// SearchScrollTime time scroll contexts held openSearchScrollTime *string `json:"search.scroll_time,omitempty"`// SearchScrollTotal completed scroll contextsSearchScrollTotal *string `json:"search.scroll_total,omitempty"`// SearchThrottled indicates if the index is search throttledSearchThrottled *string `json:"search.throttled,omitempty"`// SegmentsCount number of segmentsSegmentsCount *string `json:"segments.count,omitempty"`// SegmentsFixedBitsetMemory memory used by fixed bit sets for nested object field types and export type// filters for types referred in _parent fieldsSegmentsFixedBitsetMemory *string `json:"segments.fixed_bitset_memory,omitempty"`// SegmentsIndexWriterMemory memory used by index writerSegmentsIndexWriterMemory *string `json:"segments.index_writer_memory,omitempty"`// SegmentsMemory memory used by segmentsSegmentsMemory *string `json:"segments.memory,omitempty"`// SegmentsVersionMapMemory memory used by version mapSegmentsVersionMapMemory *string `json:"segments.version_map_memory,omitempty"`// Status open/close statusStatus *string `json:"status,omitempty"`// StoreSize store size of primaries & replicasStoreSize *string `json:"store.size,omitempty"`// SuggestCurrent number of current suggest opsSuggestCurrent *string `json:"suggest.current,omitempty"`// SuggestTime time spend in suggestSuggestTime *string `json:"suggest.time,omitempty"`// SuggestTotal number of suggest opsSuggestTotal *string `json:"suggest.total,omitempty"`// Uuid index uuidUuid *string `json:"uuid,omitempty"`// WarmerCurrent current warmer opsWarmerCurrent *string `json:"warmer.current,omitempty"`// WarmerTotal total warmer opsWarmerTotal *string `json:"warmer.total,omitempty"`// WarmerTotalTime time spent in warmersWarmerTotalTime *string `json:"warmer.total_time,omitempty"`}IndicesRecord type.
funcNewIndicesRecord¶added inv8.5.0
func NewIndicesRecord() *IndicesRecord
NewIndicesRecord returns a IndicesRecord.
func (*IndicesRecord)UnmarshalJSON¶added inv8.7.1
func (s *IndicesRecord) UnmarshalJSON(data []byte)error
typeIndicesShardStats¶added inv8.5.0
type IndicesShardStats struct {Bulk *BulkStats `json:"bulk,omitempty"`Commit *ShardCommit `json:"commit,omitempty"`Completion *CompletionStats `json:"completion,omitempty"`Docs *DocStats `json:"docs,omitempty"`Fielddata *FielddataStats `json:"fielddata,omitempty"`Flush *FlushStats `json:"flush,omitempty"`Get *GetStats `json:"get,omitempty"`Indexing *IndexingStats `json:"indexing,omitempty"`Indices *IndicesStats `json:"indices,omitempty"`Mappings *MappingStats `json:"mappings,omitempty"`Merges *MergesStats `json:"merges,omitempty"`QueryCache *ShardQueryCache `json:"query_cache,omitempty"`Recovery *RecoveryStats `json:"recovery,omitempty"`Refresh *RefreshStats `json:"refresh,omitempty"`RequestCache *RequestCacheStats `json:"request_cache,omitempty"`RetentionLeases *ShardRetentionLeases `json:"retention_leases,omitempty"`Routing *ShardRouting `json:"routing,omitempty"`Search *SearchStats `json:"search,omitempty"`Segments *SegmentsStats `json:"segments,omitempty"`SeqNo *ShardSequenceNumber `json:"seq_no,omitempty"`ShardPath *ShardPath `json:"shard_path,omitempty"`ShardStats *ShardsTotalStats `json:"shard_stats,omitempty"`Shards map[string]json.RawMessage `json:"shards,omitempty"`Store *StoreStats `json:"store,omitempty"`Translog *TranslogStats `json:"translog,omitempty"`Warmer *WarmerStats `json:"warmer,omitempty"`}IndicesShardStats type.
funcNewIndicesShardStats¶added inv8.5.0
func NewIndicesShardStats() *IndicesShardStats
NewIndicesShardStats returns a IndicesShardStats.
typeIndicesShardStores¶
type IndicesShardStores struct {Shards map[string]ShardStoreWrapper `json:"shards"`}IndicesShardStores type.
funcNewIndicesShardStores¶added inv8.5.0
func NewIndicesShardStores() *IndicesShardStores
NewIndicesShardStores returns a IndicesShardStores.
typeIndicesShardsStats¶added inv8.5.0
type IndicesShardsStats struct {AllFieldsFieldSummary `json:"all_fields"`Fields map[string]FieldSummary `json:"fields"`}IndicesShardsStats type.
funcNewIndicesShardsStats¶added inv8.5.0
func NewIndicesShardsStats() *IndicesShardsStats
NewIndicesShardsStats returns a IndicesShardsStats.
typeIndicesStats¶
type IndicesStats struct {Health *healthstatus.HealthStatus `json:"health,omitempty"`Primaries *IndexStats `json:"primaries,omitempty"`Shards map[string][]IndicesShardStats `json:"shards,omitempty"`Status *indexmetadatastate.IndexMetadataState `json:"status,omitempty"`Total *IndexStats `json:"total,omitempty"`Uuid *string `json:"uuid,omitempty"`}IndicesStats type.
funcNewIndicesStats¶added inv8.5.0
func NewIndicesStats() *IndicesStats
NewIndicesStats returns a IndicesStats.
func (*IndicesStats)UnmarshalJSON¶added inv8.7.1
func (s *IndicesStats) UnmarshalJSON(data []byte)error
typeIndicesValidationExplanation¶
type IndicesValidationExplanation struct {Error *string `json:"error,omitempty"`Explanation *string `json:"explanation,omitempty"`Indexstring `json:"index"`Validbool `json:"valid"`}IndicesValidationExplanation type.
funcNewIndicesValidationExplanation¶added inv8.5.0
func NewIndicesValidationExplanation() *IndicesValidationExplanation
NewIndicesValidationExplanation returns a IndicesValidationExplanation.
func (*IndicesValidationExplanation)UnmarshalJSON¶added inv8.7.1
func (s *IndicesValidationExplanation) UnmarshalJSON(data []byte)error
typeIndicesVersions¶
type IndicesVersions struct {IndexCountint `json:"index_count"`PrimaryShardCountint `json:"primary_shard_count"`TotalPrimaryBytesint64 `json:"total_primary_bytes"`TotalPrimarySizeByteSize `json:"total_primary_size,omitempty"`Versionstring `json:"version"`}IndicesVersions type.
funcNewIndicesVersions¶added inv8.5.0
func NewIndicesVersions() *IndicesVersions
NewIndicesVersions returns a IndicesVersions.
func (*IndicesVersions)UnmarshalJSON¶added inv8.7.1
func (s *IndicesVersions) UnmarshalJSON(data []byte)error
typeIndonesianAnalyzer¶added inv8.16.0
type IndonesianAnalyzer struct {StemExclusion []string `json:"stem_exclusion,omitempty"`StopwordsStopWords `json:"stopwords,omitempty"`StopwordsPath *string `json:"stopwords_path,omitempty"`Typestring `json:"type,omitempty"`}IndonesianAnalyzer type.
funcNewIndonesianAnalyzer¶added inv8.16.0
func NewIndonesianAnalyzer() *IndonesianAnalyzer
NewIndonesianAnalyzer returns a IndonesianAnalyzer.
func (IndonesianAnalyzer)MarshalJSON¶added inv8.16.0
func (sIndonesianAnalyzer) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*IndonesianAnalyzer)UnmarshalJSON¶added inv8.16.0
func (s *IndonesianAnalyzer) UnmarshalJSON(data []byte)error
typeInferenceAggregate¶
type InferenceAggregate struct {Data map[string]json.RawMessage `json:"-"`FeatureImportance []InferenceFeatureImportance `json:"feature_importance,omitempty"`MetaMetadata `json:"meta,omitempty"`TopClasses []InferenceTopClassEntry `json:"top_classes,omitempty"`ValueFieldValue `json:"value,omitempty"`Warning *string `json:"warning,omitempty"`}InferenceAggregate type.
funcNewInferenceAggregate¶added inv8.5.0
func NewInferenceAggregate() *InferenceAggregate
NewInferenceAggregate returns a InferenceAggregate.
func (InferenceAggregate)MarshalJSON¶
func (sInferenceAggregate) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
func (*InferenceAggregate)UnmarshalJSON¶added inv8.7.1
func (s *InferenceAggregate) UnmarshalJSON(data []byte)error
typeInferenceAggregation¶
type InferenceAggregation struct {// BucketsPath Path to the buckets that contain one set of values to correlate.BucketsPathBucketsPath `json:"buckets_path,omitempty"`// Format `DecimalFormat` pattern for the output value.// If specified, the formatted value is returned in the aggregation’s// `value_as_string` property.Format *string `json:"format,omitempty"`// GapPolicy Policy to apply when gaps are found in the data.GapPolicy *gappolicy.GapPolicy `json:"gap_policy,omitempty"`// InferenceConfig Contains the inference type and its options.InferenceConfig *InferenceConfigContainer `json:"inference_config,omitempty"`// ModelId The ID or alias for the trained model.ModelIdstring `json:"model_id"`}InferenceAggregation type.
funcNewInferenceAggregation¶added inv8.5.0
func NewInferenceAggregation() *InferenceAggregation
NewInferenceAggregation returns a InferenceAggregation.
func (*InferenceAggregation)UnmarshalJSON¶added inv8.7.0
func (s *InferenceAggregation) UnmarshalJSON(data []byte)error
typeInferenceChunkingSettings¶added inv8.18.0
type InferenceChunkingSettings struct {// MaxChunkSize The maximum size of a chunk in words.// This value cannot be higher than `300` or lower than `20` (for `sentence`// strategy) or `10` (for `word` strategy).MaxChunkSize *int `json:"max_chunk_size,omitempty"`// Overlap The number of overlapping words for chunks.// It is applicable only to a `word` chunking strategy.// This value cannot be higher than half the `max_chunk_size` value.Overlap *int `json:"overlap,omitempty"`// SentenceOverlap The number of overlapping sentences for chunks.// It is applicable only for a `sentence` chunking strategy.// It can be either `1` or `0`.SentenceOverlap *int `json:"sentence_overlap,omitempty"`// Strategy The chunking strategy: `sentence` or `word`.Strategy *string `json:"strategy,omitempty"`}InferenceChunkingSettings type.
funcNewInferenceChunkingSettings¶added inv8.18.0
func NewInferenceChunkingSettings() *InferenceChunkingSettings
NewInferenceChunkingSettings returns a InferenceChunkingSettings.
func (*InferenceChunkingSettings)UnmarshalJSON¶added inv8.18.0
func (s *InferenceChunkingSettings) UnmarshalJSON(data []byte)error
typeInferenceClassImportance¶
type InferenceClassImportance struct {ClassNamestring `json:"class_name"`ImportanceFloat64 `json:"importance"`}InferenceClassImportance type.
funcNewInferenceClassImportance¶added inv8.5.0
func NewInferenceClassImportance() *InferenceClassImportance
NewInferenceClassImportance returns a InferenceClassImportance.
func (*InferenceClassImportance)UnmarshalJSON¶added inv8.7.1
func (s *InferenceClassImportance) UnmarshalJSON(data []byte)error
typeInferenceConfig¶
type InferenceConfig struct {AdditionalInferenceConfigProperty map[string]json.RawMessage `json:"-"`// Classification Classification configuration for inference.Classification *InferenceConfigClassification `json:"classification,omitempty"`// Regression Regression configuration for inference.Regression *InferenceConfigRegression `json:"regression,omitempty"`}InferenceConfig type.
funcNewInferenceConfig¶added inv8.5.0
func NewInferenceConfig() *InferenceConfig
NewInferenceConfig returns a InferenceConfig.
func (InferenceConfig)MarshalJSON¶added inv8.18.0
func (sInferenceConfig) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
typeInferenceConfigClassification¶
type InferenceConfigClassification struct {// NumTopClasses Specifies the number of top class predictions to return.NumTopClasses *int `json:"num_top_classes,omitempty"`// NumTopFeatureImportanceValues Specifies the maximum number of feature importance values per document.NumTopFeatureImportanceValues *int `json:"num_top_feature_importance_values,omitempty"`// PredictionFieldType Specifies the type of the predicted field to write.// Valid values are: `string`, `number`, `boolean`.PredictionFieldType *string `json:"prediction_field_type,omitempty"`// ResultsField The field that is added to incoming documents to contain the inference// prediction.ResultsField *string `json:"results_field,omitempty"`// TopClassesResultsField Specifies the field to which the top classes are written.TopClassesResultsField *string `json:"top_classes_results_field,omitempty"`}InferenceConfigClassification type.
funcNewInferenceConfigClassification¶added inv8.5.0
func NewInferenceConfigClassification() *InferenceConfigClassification
NewInferenceConfigClassification returns a InferenceConfigClassification.
func (*InferenceConfigClassification)UnmarshalJSON¶added inv8.7.1
func (s *InferenceConfigClassification) UnmarshalJSON(data []byte)error
typeInferenceConfigContainer¶
type InferenceConfigContainer struct {AdditionalInferenceConfigContainerProperty map[string]json.RawMessage `json:"-"`// Classification Classification configuration for inference.Classification *ClassificationInferenceOptions `json:"classification,omitempty"`// Regression Regression configuration for inference.Regression *RegressionInferenceOptions `json:"regression,omitempty"`}InferenceConfigContainer type.
funcNewInferenceConfigContainer¶added inv8.5.0
func NewInferenceConfigContainer() *InferenceConfigContainer
NewInferenceConfigContainer returns a InferenceConfigContainer.
func (InferenceConfigContainer)MarshalJSON¶added inv8.18.0
func (sInferenceConfigContainer) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
typeInferenceConfigCreateContainer¶
type InferenceConfigCreateContainer struct {AdditionalInferenceConfigCreateContainerProperty map[string]json.RawMessage `json:"-"`// Classification Classification configuration for inference.Classification *ClassificationInferenceOptions `json:"classification,omitempty"`// FillMask Fill mask configuration for inference.FillMask *FillMaskInferenceOptions `json:"fill_mask,omitempty"`LearningToRank *LearningToRankConfig `json:"learning_to_rank,omitempty"`// Ner Named entity recognition configuration for inference.Ner *NerInferenceOptions `json:"ner,omitempty"`// PassThrough Pass through configuration for inference.PassThrough *PassThroughInferenceOptions `json:"pass_through,omitempty"`// QuestionAnswering Question answering configuration for inference.QuestionAnswering *QuestionAnsweringInferenceOptions `json:"question_answering,omitempty"`// Regression Regression configuration for inference.Regression *RegressionInferenceOptions `json:"regression,omitempty"`// TextClassification Text classification configuration for inference.TextClassification *TextClassificationInferenceOptions `json:"text_classification,omitempty"`// TextEmbedding Text embedding configuration for inference.TextEmbedding *TextEmbeddingInferenceOptions `json:"text_embedding,omitempty"`// TextExpansion Text expansion configuration for inference.TextExpansion *TextExpansionInferenceOptions `json:"text_expansion,omitempty"`// ZeroShotClassification Zeroshot classification configuration for inference.ZeroShotClassification *ZeroShotClassificationInferenceOptions `json:"zero_shot_classification,omitempty"`}InferenceConfigCreateContainer type.
funcNewInferenceConfigCreateContainer¶added inv8.5.0
func NewInferenceConfigCreateContainer() *InferenceConfigCreateContainer
NewInferenceConfigCreateContainer returns a InferenceConfigCreateContainer.
func (InferenceConfigCreateContainer)MarshalJSON¶added inv8.18.0
func (sInferenceConfigCreateContainer) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
typeInferenceConfigRegression¶
type InferenceConfigRegression struct {// NumTopFeatureImportanceValues Specifies the maximum number of feature importance values per document.NumTopFeatureImportanceValues *int `json:"num_top_feature_importance_values,omitempty"`// ResultsField The field that is added to incoming documents to contain the inference// prediction.ResultsField *string `json:"results_field,omitempty"`}InferenceConfigRegression type.
funcNewInferenceConfigRegression¶added inv8.5.0
func NewInferenceConfigRegression() *InferenceConfigRegression
NewInferenceConfigRegression returns a InferenceConfigRegression.
func (*InferenceConfigRegression)UnmarshalJSON¶added inv8.7.1
func (s *InferenceConfigRegression) UnmarshalJSON(data []byte)error
typeInferenceConfigUpdateContainer¶
type InferenceConfigUpdateContainer struct {AdditionalInferenceConfigUpdateContainerProperty map[string]json.RawMessage `json:"-"`// Classification Classification configuration for inference.Classification *ClassificationInferenceOptions `json:"classification,omitempty"`// FillMask Fill mask configuration for inference.FillMask *FillMaskInferenceUpdateOptions `json:"fill_mask,omitempty"`// Ner Named entity recognition configuration for inference.Ner *NerInferenceUpdateOptions `json:"ner,omitempty"`// PassThrough Pass through configuration for inference.PassThrough *PassThroughInferenceUpdateOptions `json:"pass_through,omitempty"`// QuestionAnswering Question answering configuration for inferenceQuestionAnswering *QuestionAnsweringInferenceUpdateOptions `json:"question_answering,omitempty"`// Regression Regression configuration for inference.Regression *RegressionInferenceOptions `json:"regression,omitempty"`// TextClassification Text classification configuration for inference.TextClassification *TextClassificationInferenceUpdateOptions `json:"text_classification,omitempty"`// TextEmbedding Text embedding configuration for inference.TextEmbedding *TextEmbeddingInferenceUpdateOptions `json:"text_embedding,omitempty"`// TextExpansion Text expansion configuration for inference.TextExpansion *TextExpansionInferenceUpdateOptions `json:"text_expansion,omitempty"`// ZeroShotClassification Zeroshot classification configuration for inference.ZeroShotClassification *ZeroShotClassificationInferenceUpdateOptions `json:"zero_shot_classification,omitempty"`}InferenceConfigUpdateContainer type.
funcNewInferenceConfigUpdateContainer¶added inv8.5.0
func NewInferenceConfigUpdateContainer() *InferenceConfigUpdateContainer
NewInferenceConfigUpdateContainer returns a InferenceConfigUpdateContainer.
func (InferenceConfigUpdateContainer)MarshalJSON¶added inv8.18.0
func (sInferenceConfigUpdateContainer) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
typeInferenceEndpoint¶added inv8.15.0
type InferenceEndpoint struct {// ChunkingSettings Chunking configuration objectChunkingSettings *InferenceChunkingSettings `json:"chunking_settings,omitempty"`// Service The service typeServicestring `json:"service"`// ServiceSettings Settings specific to the serviceServiceSettingsjson.RawMessage `json:"service_settings"`// TaskSettings Task settings specific to the service and task typeTaskSettingsjson.RawMessage `json:"task_settings,omitempty"`}InferenceEndpoint type.
funcNewInferenceEndpoint¶added inv8.15.0
func NewInferenceEndpoint() *InferenceEndpoint
NewInferenceEndpoint returns a InferenceEndpoint.
func (*InferenceEndpoint)UnmarshalJSON¶added inv8.15.0
func (s *InferenceEndpoint) UnmarshalJSON(data []byte)error
typeInferenceEndpointInfo¶added inv8.15.0
type InferenceEndpointInfo struct {// ChunkingSettings Chunking configuration objectChunkingSettings *InferenceChunkingSettings `json:"chunking_settings,omitempty"`// InferenceId The inference IdInferenceIdstring `json:"inference_id"`// Service The service typeServicestring `json:"service"`// ServiceSettings Settings specific to the serviceServiceSettingsjson.RawMessage `json:"service_settings"`// TaskSettings Task settings specific to the service and task typeTaskSettingsjson.RawMessage `json:"task_settings,omitempty"`// TaskType The task typeTaskTypetasktype.TaskType `json:"task_type"`}InferenceEndpointInfo type.
funcNewInferenceEndpointInfo¶added inv8.15.0
func NewInferenceEndpointInfo() *InferenceEndpointInfo
NewInferenceEndpointInfo returns a InferenceEndpointInfo.
func (*InferenceEndpointInfo)UnmarshalJSON¶added inv8.15.0
func (s *InferenceEndpointInfo) UnmarshalJSON(data []byte)error
typeInferenceFeatureImportance¶
type InferenceFeatureImportance struct {Classes []InferenceClassImportance `json:"classes,omitempty"`FeatureNamestring `json:"feature_name"`Importance *Float64 `json:"importance,omitempty"`}InferenceFeatureImportance type.
funcNewInferenceFeatureImportance¶added inv8.5.0
func NewInferenceFeatureImportance() *InferenceFeatureImportance
NewInferenceFeatureImportance returns a InferenceFeatureImportance.
func (*InferenceFeatureImportance)UnmarshalJSON¶added inv8.7.1
func (s *InferenceFeatureImportance) UnmarshalJSON(data []byte)error
typeInferenceProcessor¶
type InferenceProcessor struct {// Description Description of the processor.// Useful for describing the purpose of the processor or its configuration.Description *string `json:"description,omitempty"`// FieldMap Maps the document field names to the known field names of the model.// This mapping takes precedence over any default mappings provided in the model// configuration.FieldMap map[string]json.RawMessage `json:"field_map,omitempty"`// If Conditionally execute the processor.If *string `json:"if,omitempty"`// IgnoreFailure Ignore failures for the processor.IgnoreFailure *bool `json:"ignore_failure,omitempty"`// IgnoreMissing If true and any of the input fields defined in input_ouput are missing// then those missing fields are quietly ignored, otherwise a missing field// causes a failure.// Only applies when using input_output configurations to explicitly list the// input fields.IgnoreMissing *bool `json:"ignore_missing,omitempty"`// InferenceConfig Contains the inference type and its options.InferenceConfig *InferenceConfig `json:"inference_config,omitempty"`// InputOutput Input fields for inference and output (destination) fields for the inference// results.// This option is incompatible with the target_field and field_map options.InputOutput []InputConfig `json:"input_output,omitempty"`// ModelId The ID or alias for the trained model, or the ID of the deployment.ModelIdstring `json:"model_id"`// OnFailure Handle failures for the processor.OnFailure []ProcessorContainer `json:"on_failure,omitempty"`// Tag Identifier for the processor.// Useful for debugging and metrics.Tag *string `json:"tag,omitempty"`// TargetField Field added to incoming documents to contain results objects.TargetField *string `json:"target_field,omitempty"`}InferenceProcessor type.
funcNewInferenceProcessor¶added inv8.5.0
func NewInferenceProcessor() *InferenceProcessor
NewInferenceProcessor returns a InferenceProcessor.
func (*InferenceProcessor)UnmarshalJSON¶added inv8.7.1
func (s *InferenceProcessor) UnmarshalJSON(data []byte)error
typeInferenceResponseResult¶
type InferenceResponseResult struct {// Entities If the model is trained for named entity recognition (NER) tasks, the// response contains the recognized entities.Entities []TrainedModelEntities `json:"entities,omitempty"`// FeatureImportance The feature importance for the inference results. Relevant only for// classification or regression modelsFeatureImportance []TrainedModelInferenceFeatureImportance `json:"feature_importance,omitempty"`// IsTruncated Indicates whether the input text was truncated to meet the model's maximum// sequence length limit. This property// is present only when it is true.IsTruncated *bool `json:"is_truncated,omitempty"`// PredictedValue If the model is trained for a text classification or zero shot classification// task, the response is the// predicted class.// For named entity recognition (NER) tasks, it contains the annotated text// output.// For fill mask tasks, it contains the top prediction for replacing the mask// token.// For text embedding tasks, it contains the raw numerical text embedding// values.// For regression models, its a numerical value// For classification models, it may be an integer, double, boolean or string// depending on prediction typePredictedValue [][]ScalarValue `json:"predicted_value,omitempty"`// PredictedValueSequence For fill mask tasks, the response contains the input text sequence with the// mask token replaced by the predicted// value.// AdditionallyPredictedValueSequence *string `json:"predicted_value_sequence,omitempty"`// PredictionProbability Specifies a probability for the predicted value.PredictionProbability *Float64 `json:"prediction_probability,omitempty"`// PredictionScore Specifies a confidence score for the predicted value.PredictionScore *Float64 `json:"prediction_score,omitempty"`// TopClasses For fill mask, text classification, and zero shot classification tasks, the// response contains a list of top// class entries.TopClasses []TopClassEntry `json:"top_classes,omitempty"`// Warning If the request failed, the response contains the reason for the failure.Warning *string `json:"warning,omitempty"`}InferenceResponseResult type.
funcNewInferenceResponseResult¶added inv8.5.0
func NewInferenceResponseResult() *InferenceResponseResult
NewInferenceResponseResult returns a InferenceResponseResult.
func (*InferenceResponseResult)UnmarshalJSON¶added inv8.7.1
func (s *InferenceResponseResult) UnmarshalJSON(data []byte)error
typeInferenceTopClassEntry¶
type InferenceTopClassEntry struct {ClassNameFieldValue `json:"class_name"`ClassProbabilityFloat64 `json:"class_probability"`ClassScoreFloat64 `json:"class_score"`}InferenceTopClassEntry type.
funcNewInferenceTopClassEntry¶added inv8.5.0
func NewInferenceTopClassEntry() *InferenceTopClassEntry
NewInferenceTopClassEntry returns a InferenceTopClassEntry.
func (*InferenceTopClassEntry)UnmarshalJSON¶added inv8.7.1
func (s *InferenceTopClassEntry) UnmarshalJSON(data []byte)error
typeInfluence¶
type Influence struct {InfluencerFieldNamestring `json:"influencer_field_name"`InfluencerFieldValues []string `json:"influencer_field_values"`}Influence type.
func (*Influence)UnmarshalJSON¶added inv8.9.0
typeInfluencer¶
type Influencer struct {// BucketSpan The length of the bucket in seconds. This value matches the bucket span that// is specified in the job.BucketSpanint64 `json:"bucket_span"`// Foo Additional influencer properties are added, depending on the fields being// analyzed. For example, if it’s// analyzing `user_name` as an influencer, a field `user_name` is added to the// result document. This// information enables you to filter the anomaly results more easily.Foo *string `json:"foo,omitempty"`// InfluencerFieldName The field name of the influencer.InfluencerFieldNamestring `json:"influencer_field_name"`// InfluencerFieldValue The entity that influenced, contributed to, or was to blame for the anomaly.InfluencerFieldValuestring `json:"influencer_field_value"`// InfluencerScore A normalized score between 0-100, which is based on the probability of the// influencer in this bucket aggregated// across detectors. Unlike `initial_influencer_score`, this value is updated by// a re-normalization process as new// data is analyzed.InfluencerScoreFloat64 `json:"influencer_score"`// InitialInfluencerScore A normalized score between 0-100, which is based on the probability of the// influencer aggregated across detectors.// This is the initial value that was calculated at the time the bucket was// processed.InitialInfluencerScoreFloat64 `json:"initial_influencer_score"`// IsInterim If true, this is an interim result. In other words, the results are// calculated based on partial input data.IsInterimbool `json:"is_interim"`// JobId Identifier for the anomaly detection job.JobIdstring `json:"job_id"`// Probability The probability that the influencer has this behavior, in the range 0 to 1.// This value can be held to a high// precision of over 300 decimal places, so the `influencer_score` is provided// as a human-readable and friendly// interpretation of this value.ProbabilityFloat64 `json:"probability"`// ResultType Internal. This value is always set to `influencer`.ResultTypestring `json:"result_type"`// Timestamp The start time of the bucket for which these results were calculated.Timestampint64 `json:"timestamp"`}Influencer type.
func (*Influencer)UnmarshalJSON¶added inv8.7.1
func (s *Influencer) UnmarshalJSON(data []byte)error
typeInfoFeatureState¶
type InfoFeatureState struct {FeatureNamestring `json:"feature_name"`Indices []string `json:"indices"`}InfoFeatureState type.
funcNewInfoFeatureState¶added inv8.5.0
func NewInfoFeatureState() *InfoFeatureState
NewInfoFeatureState returns a InfoFeatureState.
func (*InfoFeatureState)UnmarshalJSON¶added inv8.7.1
func (s *InfoFeatureState) UnmarshalJSON(data []byte)error
typeIngest¶
type Ingest struct {Pipeline *string `json:"pipeline,omitempty"`Redact_ *Redact `json:"_redact,omitempty"`TimestampDateTime `json:"timestamp"`}Ingest type.
func (*Ingest)UnmarshalJSON¶added inv8.18.0
typeIngestDocumentSimulation¶added inv8.18.0
type IngestDocumentSimulation struct {// Error Any error resulting from simulatng ingest on this doc. This can be an error// generated by// executing a processor, or a mapping validation error when simulating indexing// the resulting// doc.Error *ErrorCause `json:"error,omitempty"`// ExecutedPipelines A list of the names of the pipelines executed on this document.ExecutedPipelines []string `json:"executed_pipelines"`// Id_ Identifier for the document.Id_string `json:"_id"`// IgnoredFields A list of the fields that would be ignored at the indexing step. For example,// a field whose// value is larger than the allowed limit would make it through all of the// pipelines, but// would not be indexed into Elasticsearch.IgnoredFields []map[string]string `json:"ignored_fields,omitempty"`// Index_ Name of the index that the document would be indexed into if this were not a// simulation.Index_string `json:"_index"`IngestDocumentSimulation map[string]string `json:"-"`// Source_ JSON body for the document.Source_ map[string]json.RawMessage `json:"_source"`Version_StringifiedVersionNumber `json:"_version"`}IngestDocumentSimulation type.
funcNewIngestDocumentSimulation¶added inv8.18.0
func NewIngestDocumentSimulation() *IngestDocumentSimulation
NewIngestDocumentSimulation returns a IngestDocumentSimulation.
func (IngestDocumentSimulation)MarshalJSON¶added inv8.18.0
func (sIngestDocumentSimulation) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
func (*IngestDocumentSimulation)UnmarshalJSON¶added inv8.18.0
func (s *IngestDocumentSimulation) UnmarshalJSON(data []byte)error
typeIngestPipeline¶added inv8.5.0
type IngestPipeline struct {// Deprecated Marks this ingest pipeline as deprecated.// When a deprecated ingest pipeline is referenced as the default or final// pipeline when creating or updating a non-deprecated index template,// Elasticsearch will emit a deprecation warning.Deprecated *bool `json:"deprecated,omitempty"`// Description Description of the ingest pipeline.Description *string `json:"description,omitempty"`// Meta_ Arbitrary metadata about the ingest pipeline. This map is not automatically// generated by Elasticsearch.Meta_Metadata `json:"_meta,omitempty"`// OnFailure Processors to run immediately after a processor failure.OnFailure []ProcessorContainer `json:"on_failure,omitempty"`// Processors Processors used to perform transformations on documents before indexing.// Processors run sequentially in the order specified.Processors []ProcessorContainer `json:"processors,omitempty"`// Version Version number used by external systems to track ingest pipelines.Version *int64 `json:"version,omitempty"`}IngestPipeline type.
funcNewIngestPipeline¶added inv8.5.0
func NewIngestPipeline() *IngestPipeline
NewIngestPipeline returns a IngestPipeline.
func (*IngestPipeline)UnmarshalJSON¶added inv8.7.1
func (s *IngestPipeline) UnmarshalJSON(data []byte)error
typeIngestPipelineParams¶added inv8.15.0
type IngestPipelineParams struct {ExtractBinaryContentbool `json:"extract_binary_content"`Namestring `json:"name"`ReduceWhitespacebool `json:"reduce_whitespace"`RunMlInferencebool `json:"run_ml_inference"`}IngestPipelineParams type.
funcNewIngestPipelineParams¶added inv8.15.0
func NewIngestPipelineParams() *IngestPipelineParams
NewIngestPipelineParams returns a IngestPipelineParams.
func (*IngestPipelineParams)UnmarshalJSON¶added inv8.15.0
func (s *IngestPipelineParams) UnmarshalJSON(data []byte)error
typeIngestStats¶added inv8.16.0
type IngestStats struct {// Count Total number of documents ingested during the lifetime of this node.Countint64 `json:"count"`// Current Total number of documents currently being ingested.Currentint64 `json:"current"`// Failed Total number of failed ingest operations during the lifetime of this node.Failedint64 `json:"failed"`// IngestedAsFirstPipelineInBytes Total number of bytes of all documents ingested by the pipeline.// This field is only present on pipelines which are the first to process a// document.// Thus, it is not present on pipelines which only serve as a final pipeline// after a default pipeline, a pipeline run after a reroute processor, or// pipelines in pipeline processors.IngestedAsFirstPipelineInBytesint64 `json:"ingested_as_first_pipeline_in_bytes"`// Processors Total number of ingest processors.Processors []map[string]KeyedProcessor `json:"processors"`// ProducedAsFirstPipelineInBytes Total number of bytes of all documents produced by the pipeline.// This field is only present on pipelines which are the first to process a// document.// Thus, it is not present on pipelines which only serve as a final pipeline// after a default pipeline, a pipeline run after a reroute processor, or// pipelines in pipeline processors.// In situations where there are subsequent pipelines, the value represents the// size of the document after all pipelines have run.ProducedAsFirstPipelineInBytesint64 `json:"produced_as_first_pipeline_in_bytes"`// TimeInMillis Total time, in milliseconds, spent preprocessing ingest documents during the// lifetime of this node.TimeInMillisint64 `json:"time_in_millis"`}IngestStats type.
funcNewIngestStats¶added inv8.16.0
func NewIngestStats() *IngestStats
NewIngestStats returns a IngestStats.
func (*IngestStats)UnmarshalJSON¶added inv8.16.0
func (s *IngestStats) UnmarshalJSON(data []byte)error
typeIngestTotal¶
type IngestTotal struct {// Count Total number of documents ingested during the lifetime of this node.Countint64 `json:"count"`// Current Total number of documents currently being ingested.Currentint64 `json:"current"`// Failed Total number of failed ingest operations during the lifetime of this node.Failedint64 `json:"failed"`// TimeInMillis Total time, in milliseconds, spent preprocessing ingest documents during the// lifetime of this node.TimeInMillisint64 `json:"time_in_millis"`}IngestTotal type.
funcNewIngestTotal¶added inv8.5.0
func NewIngestTotal() *IngestTotal
NewIngestTotal returns a IngestTotal.
func (*IngestTotal)UnmarshalJSON¶added inv8.7.1
func (s *IngestTotal) UnmarshalJSON(data []byte)error
typeInlineGet¶
type InlineGet struct {Fields map[string]json.RawMessage `json:"fields,omitempty"`Foundbool `json:"found"`Metadata map[string]json.RawMessage `json:"-"`PrimaryTerm_ *int64 `json:"_primary_term,omitempty"`Routing_ *string `json:"_routing,omitempty"`SeqNo_ *int64 `json:"_seq_no,omitempty"`Source_json.RawMessage `json:"_source,omitempty"`}InlineGet type.
func (InlineGet)MarshalJSON¶
MarhsalJSON overrides marshalling for types with additional properties
func (*InlineGet)UnmarshalJSON¶added inv8.7.1
typeInlineGetDictUserDefined¶
type InlineGetDictUserDefined struct {Fields map[string]json.RawMessage `json:"fields,omitempty"`Foundbool `json:"found"`InlineGetDictUserDefined map[string]json.RawMessage `json:"-"`PrimaryTerm_ *int64 `json:"_primary_term,omitempty"`Routing_ *string `json:"_routing,omitempty"`SeqNo_ *int64 `json:"_seq_no,omitempty"`Source_ map[string]json.RawMessage `json:"_source,omitempty"`}InlineGetDictUserDefined type.
funcNewInlineGetDictUserDefined¶added inv8.5.0
func NewInlineGetDictUserDefined() *InlineGetDictUserDefined
NewInlineGetDictUserDefined returns a InlineGetDictUserDefined.
func (InlineGetDictUserDefined)MarshalJSON¶
func (sInlineGetDictUserDefined) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
func (*InlineGetDictUserDefined)UnmarshalJSON¶added inv8.7.1
func (s *InlineGetDictUserDefined) UnmarshalJSON(data []byte)error
typeInnerHits¶
type InnerHits struct {Collapse *FieldCollapse `json:"collapse,omitempty"`DocvalueFields []FieldAndFormat `json:"docvalue_fields,omitempty"`Explain *bool `json:"explain,omitempty"`Fields []string `json:"fields,omitempty"`// From Inner hit starting document offset.From *int `json:"from,omitempty"`Highlight *Highlight `json:"highlight,omitempty"`IgnoreUnmapped *bool `json:"ignore_unmapped,omitempty"`// Name The name for the particular inner hit definition in the response.// Useful when a search request contains multiple inner hits.Name *string `json:"name,omitempty"`ScriptFields map[string]ScriptField `json:"script_fields,omitempty"`SeqNoPrimaryTerm *bool `json:"seq_no_primary_term,omitempty"`// Size The maximum number of hits to return per `inner_hits`.Size *int `json:"size,omitempty"`// Sort How the inner hits should be sorted per `inner_hits`.// By default, inner hits are sorted by score.Sort []SortCombinations `json:"sort,omitempty"`Source_SourceConfig `json:"_source,omitempty"`StoredFields []string `json:"stored_fields,omitempty"`TrackScores *bool `json:"track_scores,omitempty"`Version *bool `json:"version,omitempty"`}InnerHits type.
func (*InnerHits)UnmarshalJSON¶added inv8.7.1
typeInnerHitsResult¶
type InnerHitsResult struct {HitsHitsMetadata `json:"hits"`}InnerHitsResult type.
funcNewInnerHitsResult¶added inv8.5.0
func NewInnerHitsResult() *InnerHitsResult
NewInnerHitsResult returns a InnerHitsResult.
typeInnerRetriever¶added inv8.18.1
type InnerRetriever struct {Normalizerscorenormalizer.ScoreNormalizer `json:"normalizer"`RetrieverRetrieverContainer `json:"retriever"`Weightfloat32 `json:"weight"`}InnerRetriever type.
funcNewInnerRetriever¶added inv8.18.1
func NewInnerRetriever() *InnerRetriever
NewInnerRetriever returns a InnerRetriever.
func (*InnerRetriever)UnmarshalJSON¶added inv8.18.1
func (s *InnerRetriever) UnmarshalJSON(data []byte)error
typeInput¶
type Input struct {FieldNames []string `json:"field_names"`}Input type.
func (*Input)UnmarshalJSON¶added inv8.7.1
typeInputConfig¶added inv8.18.0
type InputConfig struct {InputFieldstring `json:"input_field"`OutputFieldstring `json:"output_field"`}InputConfig type.
funcNewInputConfig¶added inv8.18.0
func NewInputConfig() *InputConfig
NewInputConfig returns a InputConfig.
func (*InputConfig)UnmarshalJSON¶added inv8.18.0
func (s *InputConfig) UnmarshalJSON(data []byte)error
typeIntegerNumberProperty¶
type IntegerNumberProperty struct {Boost *Float64 `json:"boost,omitempty"`Coerce *bool `json:"coerce,omitempty"`CopyTo []string `json:"copy_to,omitempty"`DocValues *bool `json:"doc_values,omitempty"`Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`Fields map[string]Property `json:"fields,omitempty"`IgnoreAbove *int `json:"ignore_above,omitempty"`IgnoreMalformed *bool `json:"ignore_malformed,omitempty"`Index *bool `json:"index,omitempty"`// Meta Metadata about the field.Meta map[string]string `json:"meta,omitempty"`NullValue *int `json:"null_value,omitempty"`OnScriptError *onscripterror.OnScriptError `json:"on_script_error,omitempty"`Properties map[string]Property `json:"properties,omitempty"`Script *Script `json:"script,omitempty"`Store *bool `json:"store,omitempty"`SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`// TimeSeriesDimension For internal use by Elastic only. Marks the field as a time series dimension.// Defaults to false.TimeSeriesDimension *bool `json:"time_series_dimension,omitempty"`// TimeSeriesMetric For internal use by Elastic only. Marks the field as a time series dimension.// Defaults to false.TimeSeriesMetric *timeseriesmetrictype.TimeSeriesMetricType `json:"time_series_metric,omitempty"`Typestring `json:"type,omitempty"`}IntegerNumberProperty type.
funcNewIntegerNumberProperty¶added inv8.5.0
func NewIntegerNumberProperty() *IntegerNumberProperty
NewIntegerNumberProperty returns a IntegerNumberProperty.
func (IntegerNumberProperty)MarshalJSON¶added inv8.9.0
func (sIntegerNumberProperty) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*IntegerNumberProperty)UnmarshalJSON¶added inv8.7.0
func (s *IntegerNumberProperty) UnmarshalJSON(data []byte)error
typeIntegerRangeProperty¶
type IntegerRangeProperty struct {Boost *Float64 `json:"boost,omitempty"`Coerce *bool `json:"coerce,omitempty"`CopyTo []string `json:"copy_to,omitempty"`DocValues *bool `json:"doc_values,omitempty"`Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`Fields map[string]Property `json:"fields,omitempty"`IgnoreAbove *int `json:"ignore_above,omitempty"`Index *bool `json:"index,omitempty"`// Meta Metadata about the field.Meta map[string]string `json:"meta,omitempty"`Properties map[string]Property `json:"properties,omitempty"`Store *bool `json:"store,omitempty"`SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`Typestring `json:"type,omitempty"`}IntegerRangeProperty type.
funcNewIntegerRangeProperty¶added inv8.5.0
func NewIntegerRangeProperty() *IntegerRangeProperty
NewIntegerRangeProperty returns a IntegerRangeProperty.
func (IntegerRangeProperty)MarshalJSON¶added inv8.9.0
func (sIntegerRangeProperty) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*IntegerRangeProperty)UnmarshalJSON¶added inv8.7.0
func (s *IntegerRangeProperty) UnmarshalJSON(data []byte)error
typeIntervals¶added inv8.5.0
type Intervals struct {AdditionalIntervalsProperty map[string]json.RawMessage `json:"-"`// AllOf Returns matches that span a combination of other rules.AllOf *IntervalsAllOf `json:"all_of,omitempty"`// AnyOf Returns intervals produced by any of its sub-rules.AnyOf *IntervalsAnyOf `json:"any_of,omitempty"`// Fuzzy Matches analyzed text.Fuzzy *IntervalsFuzzy `json:"fuzzy,omitempty"`// Match Matches analyzed text.Match *IntervalsMatch `json:"match,omitempty"`// Prefix Matches terms that start with a specified set of characters.Prefix *IntervalsPrefix `json:"prefix,omitempty"`Range *IntervalsRange `json:"range,omitempty"`Regexp *IntervalsRegexp `json:"regexp,omitempty"`// Wildcard Matches terms using a wildcard pattern.Wildcard *IntervalsWildcard `json:"wildcard,omitempty"`}Intervals type.
func (Intervals)MarshalJSON¶added inv8.18.0
MarhsalJSON overrides marshalling for types with additional properties
typeIntervalsAllOf¶
type IntervalsAllOf struct {// Filter Rule used to filter returned intervals.Filter *IntervalsFilter `json:"filter,omitempty"`// Intervals An array of rules to combine. All rules must produce a match in a document// for the overall source to match.Intervals []Intervals `json:"intervals"`// MaxGaps Maximum number of positions between the matching terms.// Intervals produced by the rules further apart than this are not considered// matches.MaxGaps *int `json:"max_gaps,omitempty"`// Ordered If `true`, intervals produced by the rules should appear in the order in// which they are specified.Ordered *bool `json:"ordered,omitempty"`}IntervalsAllOf type.
funcNewIntervalsAllOf¶added inv8.5.0
func NewIntervalsAllOf() *IntervalsAllOf
NewIntervalsAllOf returns a IntervalsAllOf.
func (*IntervalsAllOf)UnmarshalJSON¶added inv8.7.1
func (s *IntervalsAllOf) UnmarshalJSON(data []byte)error
typeIntervalsAnyOf¶
type IntervalsAnyOf struct {// Filter Rule used to filter returned intervals.Filter *IntervalsFilter `json:"filter,omitempty"`// Intervals An array of rules to match.Intervals []Intervals `json:"intervals"`}IntervalsAnyOf type.
funcNewIntervalsAnyOf¶added inv8.5.0
func NewIntervalsAnyOf() *IntervalsAnyOf
NewIntervalsAnyOf returns a IntervalsAnyOf.
typeIntervalsFilter¶
type IntervalsFilter struct {AdditionalIntervalsFilterProperty map[string]json.RawMessage `json:"-"`// After Query used to return intervals that follow an interval from the `filter`// rule.After *Intervals `json:"after,omitempty"`// Before Query used to return intervals that occur before an interval from the// `filter` rule.Before *Intervals `json:"before,omitempty"`// ContainedBy Query used to return intervals contained by an interval from the `filter`// rule.ContainedBy *Intervals `json:"contained_by,omitempty"`// Containing Query used to return intervals that contain an interval from the `filter`// rule.Containing *Intervals `json:"containing,omitempty"`// NotContainedBy Query used to return intervals that are **not** contained by an interval from// the `filter` rule.NotContainedBy *Intervals `json:"not_contained_by,omitempty"`// NotContaining Query used to return intervals that do **not** contain an interval from the// `filter` rule.NotContaining *Intervals `json:"not_containing,omitempty"`// NotOverlapping Query used to return intervals that do **not** overlap with an interval from// the `filter` rule.NotOverlapping *Intervals `json:"not_overlapping,omitempty"`// Overlapping Query used to return intervals that overlap with an interval from the// `filter` rule.Overlapping *Intervals `json:"overlapping,omitempty"`// Script Script used to return matching documents.// This script must return a boolean value: `true` or `false`.Script *Script `json:"script,omitempty"`}IntervalsFilter type.
funcNewIntervalsFilter¶added inv8.5.0
func NewIntervalsFilter() *IntervalsFilter
NewIntervalsFilter returns a IntervalsFilter.
func (IntervalsFilter)MarshalJSON¶added inv8.18.0
func (sIntervalsFilter) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
typeIntervalsFuzzy¶
type IntervalsFuzzy struct {// Analyzer Analyzer used to normalize the term.Analyzer *string `json:"analyzer,omitempty"`// Fuzziness Maximum edit distance allowed for matching.FuzzinessFuzziness `json:"fuzziness,omitempty"`// PrefixLength Number of beginning characters left unchanged when creating expansions.PrefixLength *int `json:"prefix_length,omitempty"`// Term The term to match.Termstring `json:"term"`// Transpositions Indicates whether edits include transpositions of two adjacent characters// (for example, `ab` to `ba`).Transpositions *bool `json:"transpositions,omitempty"`// UseField If specified, match intervals from this field rather than the top-level// field.// The `term` is normalized using the search analyzer from this field, unless// `analyzer` is specified separately.UseField *string `json:"use_field,omitempty"`}IntervalsFuzzy type.
funcNewIntervalsFuzzy¶added inv8.5.0
func NewIntervalsFuzzy() *IntervalsFuzzy
NewIntervalsFuzzy returns a IntervalsFuzzy.
func (*IntervalsFuzzy)UnmarshalJSON¶added inv8.7.1
func (s *IntervalsFuzzy) UnmarshalJSON(data []byte)error
typeIntervalsMatch¶
type IntervalsMatch struct {// Analyzer Analyzer used to analyze terms in the query.Analyzer *string `json:"analyzer,omitempty"`// Filter An optional interval filter.Filter *IntervalsFilter `json:"filter,omitempty"`// MaxGaps Maximum number of positions between the matching terms.// Terms further apart than this are not considered matches.MaxGaps *int `json:"max_gaps,omitempty"`// Ordered If `true`, matching terms must appear in their specified order.Ordered *bool `json:"ordered,omitempty"`// Query Text you wish to find in the provided field.Querystring `json:"query"`// UseField If specified, match intervals from this field rather than the top-level// field.// The `term` is normalized using the search analyzer from this field, unless// `analyzer` is specified separately.UseField *string `json:"use_field,omitempty"`}IntervalsMatch type.
funcNewIntervalsMatch¶added inv8.5.0
func NewIntervalsMatch() *IntervalsMatch
NewIntervalsMatch returns a IntervalsMatch.
func (*IntervalsMatch)UnmarshalJSON¶added inv8.7.1
func (s *IntervalsMatch) UnmarshalJSON(data []byte)error
typeIntervalsPrefix¶
type IntervalsPrefix struct {// Analyzer Analyzer used to analyze the `prefix`.Analyzer *string `json:"analyzer,omitempty"`// Prefix Beginning characters of terms you wish to find in the top-level field.Prefixstring `json:"prefix"`// UseField If specified, match intervals from this field rather than the top-level// field.// The `prefix` is normalized using the search analyzer from this field, unless// `analyzer` is specified separately.UseField *string `json:"use_field,omitempty"`}IntervalsPrefix type.
funcNewIntervalsPrefix¶added inv8.5.0
func NewIntervalsPrefix() *IntervalsPrefix
NewIntervalsPrefix returns a IntervalsPrefix.
func (*IntervalsPrefix)UnmarshalJSON¶added inv8.7.1
func (s *IntervalsPrefix) UnmarshalJSON(data []byte)error
typeIntervalsQuery¶
type IntervalsQuery struct {AdditionalIntervalsQueryProperty map[string]json.RawMessage `json:"-"`// AllOf Returns matches that span a combination of other rules.AllOf *IntervalsAllOf `json:"all_of,omitempty"`// AnyOf Returns intervals produced by any of its sub-rules.AnyOf *IntervalsAnyOf `json:"any_of,omitempty"`// Boost Floating point number used to decrease or increase the relevance scores of// the query.// Boost values are relative to the default value of 1.0.// A boost value between 0 and 1.0 decreases the relevance score.// A value greater than 1.0 increases the relevance score.Boost *float32 `json:"boost,omitempty"`// Fuzzy Matches terms that are similar to the provided term, within an edit distance// defined by `fuzziness`.Fuzzy *IntervalsFuzzy `json:"fuzzy,omitempty"`// Match Matches analyzed text.Match *IntervalsMatch `json:"match,omitempty"`// Prefix Matches terms that start with a specified set of characters.Prefix *IntervalsPrefix `json:"prefix,omitempty"`QueryName_ *string `json:"_name,omitempty"`Range *IntervalsRange `json:"range,omitempty"`Regexp *IntervalsRegexp `json:"regexp,omitempty"`// Wildcard Matches terms using a wildcard pattern.Wildcard *IntervalsWildcard `json:"wildcard,omitempty"`}IntervalsQuery type.
funcNewIntervalsQuery¶added inv8.5.0
func NewIntervalsQuery() *IntervalsQuery
NewIntervalsQuery returns a IntervalsQuery.
func (IntervalsQuery)MarshalJSON¶added inv8.18.0
func (sIntervalsQuery) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
func (*IntervalsQuery)UnmarshalJSON¶added inv8.7.1
func (s *IntervalsQuery) UnmarshalJSON(data []byte)error
typeIntervalsRange¶added inv8.18.1
type IntervalsRange struct {// Analyzer Analyzer used to analyze the `prefix`.Analyzer *string `json:"analyzer,omitempty"`// Gt Lower term, either gte or gt must be provided.Gt *string `json:"gt,omitempty"`// Gte Lower term, either gte or gt must be provided.Gte *string `json:"gte,omitempty"`// Lt Upper term, either lte or lt must be provided.Lt *string `json:"lt,omitempty"`// Lte Upper term, either lte or lt must be provided.Lte *string `json:"lte,omitempty"`// UseField If specified, match intervals from this field rather than the top-level// field.// The `prefix` is normalized using the search analyzer from this field, unless// `analyzer` is specified separately.UseField *string `json:"use_field,omitempty"`}IntervalsRange type.
funcNewIntervalsRange¶added inv8.18.1
func NewIntervalsRange() *IntervalsRange
NewIntervalsRange returns a IntervalsRange.
func (*IntervalsRange)UnmarshalJSON¶added inv8.18.1
func (s *IntervalsRange) UnmarshalJSON(data []byte)error
typeIntervalsRegexp¶added inv8.18.1
type IntervalsRegexp struct {// Analyzer Analyzer used to analyze the `prefix`.Analyzer *string `json:"analyzer,omitempty"`// Pattern Regex pattern.Patternstring `json:"pattern"`// UseField If specified, match intervals from this field rather than the top-level// field.// The `prefix` is normalized using the search analyzer from this field, unless// `analyzer` is specified separately.UseField *string `json:"use_field,omitempty"`}IntervalsRegexp type.
funcNewIntervalsRegexp¶added inv8.18.1
func NewIntervalsRegexp() *IntervalsRegexp
NewIntervalsRegexp returns a IntervalsRegexp.
func (*IntervalsRegexp)UnmarshalJSON¶added inv8.18.1
func (s *IntervalsRegexp) UnmarshalJSON(data []byte)error
typeIntervalsWildcard¶
type IntervalsWildcard struct {// Analyzer Analyzer used to analyze the `pattern`.// Defaults to the top-level field's analyzer.Analyzer *string `json:"analyzer,omitempty"`// Pattern Wildcard pattern used to find matching terms.Patternstring `json:"pattern"`// UseField If specified, match intervals from this field rather than the top-level// field.// The `pattern` is normalized using the search analyzer from this field, unless// `analyzer` is specified separately.UseField *string `json:"use_field,omitempty"`}IntervalsWildcard type.
funcNewIntervalsWildcard¶added inv8.5.0
func NewIntervalsWildcard() *IntervalsWildcard
NewIntervalsWildcard returns a IntervalsWildcard.
func (*IntervalsWildcard)UnmarshalJSON¶added inv8.7.1
func (s *IntervalsWildcard) UnmarshalJSON(data []byte)error
typeInvertedIndex¶
type InvertedIndex struct {Offsetsuint `json:"offsets"`Payloadsuint `json:"payloads"`Positionsuint `json:"positions"`Postingsuint `json:"postings"`Proximityuint `json:"proximity"`TermFrequenciesuint `json:"term_frequencies"`Termsuint `json:"terms"`}InvertedIndex type.
funcNewInvertedIndex¶added inv8.5.0
func NewInvertedIndex() *InvertedIndex
NewInvertedIndex returns a InvertedIndex.
typeInvocation¶
Invocation type.
func (*Invocation)UnmarshalJSON¶added inv8.7.1
func (s *Invocation) UnmarshalJSON(data []byte)error
typeInvocations¶added inv8.7.0
type Invocations struct {Totalint64 `json:"total"`}Invocations type.
funcNewInvocations¶added inv8.7.0
func NewInvocations() *Invocations
NewInvocations returns a Invocations.
func (*Invocations)UnmarshalJSON¶added inv8.7.1
func (s *Invocations) UnmarshalJSON(data []byte)error
typeIoStatDevice¶
type IoStatDevice struct {// DeviceName The Linux device name.DeviceName *string `json:"device_name,omitempty"`// Operations The total number of read and write operations for the device completed since// starting Elasticsearch.Operations *int64 `json:"operations,omitempty"`// ReadKilobytes The total number of kilobytes read for the device since starting// Elasticsearch.ReadKilobytes *int64 `json:"read_kilobytes,omitempty"`// ReadOperations The total number of read operations for the device completed since starting// Elasticsearch.ReadOperations *int64 `json:"read_operations,omitempty"`// WriteKilobytes The total number of kilobytes written for the device since starting// Elasticsearch.WriteKilobytes *int64 `json:"write_kilobytes,omitempty"`// WriteOperations The total number of write operations for the device completed since starting// Elasticsearch.WriteOperations *int64 `json:"write_operations,omitempty"`}IoStatDevice type.
funcNewIoStatDevice¶added inv8.5.0
func NewIoStatDevice() *IoStatDevice
NewIoStatDevice returns a IoStatDevice.
func (*IoStatDevice)UnmarshalJSON¶added inv8.7.1
func (s *IoStatDevice) UnmarshalJSON(data []byte)error
typeIoStats¶
type IoStats struct {// Devices Array of disk metrics for each device that is backing an Elasticsearch data// path.// These disk metrics are probed periodically and averages between the last// probe and the current probe are computed.Devices []IoStatDevice `json:"devices,omitempty"`// Total The sum of the disk metrics for all devices that back an Elasticsearch data// path.Total *IoStatDevice `json:"total,omitempty"`}IoStats type.
typeIpLocationDatabaseConfigurationMetadata¶added inv8.18.0
type IpLocationDatabaseConfigurationMetadata struct {DatabaseDatabaseConfigurationFull `json:"database"`Idstring `json:"id"`ModifiedDate *int64 `json:"modified_date,omitempty"`ModifiedDateMillis *int64 `json:"modified_date_millis,omitempty"`Versionint64 `json:"version"`}IpLocationDatabaseConfigurationMetadata type.
funcNewIpLocationDatabaseConfigurationMetadata¶added inv8.18.0
func NewIpLocationDatabaseConfigurationMetadata() *IpLocationDatabaseConfigurationMetadata
NewIpLocationDatabaseConfigurationMetadata returns a IpLocationDatabaseConfigurationMetadata.
func (*IpLocationDatabaseConfigurationMetadata)UnmarshalJSON¶added inv8.18.0
func (s *IpLocationDatabaseConfigurationMetadata) UnmarshalJSON(data []byte)error
typeIpLocationProcessor¶added inv8.17.0
type IpLocationProcessor struct {// DatabaseFile The database filename referring to a database the module ships with// (GeoLite2-City.mmdb, GeoLite2-Country.mmdb, or GeoLite2-ASN.mmdb) or a custom// database in the ingest-geoip config directory.DatabaseFile *string `json:"database_file,omitempty"`// Description Description of the processor.// Useful for describing the purpose of the processor or its configuration.Description *string `json:"description,omitempty"`// DownloadDatabaseOnPipelineCreation If `true` (and if `ingest.geoip.downloader.eager.download` is `false`), the// missing database is downloaded when the pipeline is created.// Else, the download is triggered by when the pipeline is used as the// `default_pipeline` or `final_pipeline` in an index.DownloadDatabaseOnPipelineCreation *bool `json:"download_database_on_pipeline_creation,omitempty"`// Field The field to get the ip address from for the geographical lookup.Fieldstring `json:"field"`// FirstOnly If `true`, only the first found IP location data will be returned, even if// the field contains an array.FirstOnly *bool `json:"first_only,omitempty"`// If Conditionally execute the processor.If *string `json:"if,omitempty"`// IgnoreFailure Ignore failures for the processor.IgnoreFailure *bool `json:"ignore_failure,omitempty"`// IgnoreMissing If `true` and `field` does not exist, the processor quietly exits without// modifying the document.IgnoreMissing *bool `json:"ignore_missing,omitempty"`// OnFailure Handle failures for the processor.OnFailure []ProcessorContainer `json:"on_failure,omitempty"`// Properties Controls what properties are added to the `target_field` based on the IP// location lookup.Properties []string `json:"properties,omitempty"`// Tag Identifier for the processor.// Useful for debugging and metrics.Tag *string `json:"tag,omitempty"`// TargetField The field that will hold the geographical information looked up from the// MaxMind database.TargetField *string `json:"target_field,omitempty"`}IpLocationProcessor type.
funcNewIpLocationProcessor¶added inv8.17.0
func NewIpLocationProcessor() *IpLocationProcessor
NewIpLocationProcessor returns a IpLocationProcessor.
func (*IpLocationProcessor)UnmarshalJSON¶added inv8.17.0
func (s *IpLocationProcessor) UnmarshalJSON(data []byte)error
typeIpPrefixAggregate¶added inv8.5.0
type IpPrefixAggregate struct {BucketsBucketsIpPrefixBucket `json:"buckets"`MetaMetadata `json:"meta,omitempty"`}IpPrefixAggregate type.
funcNewIpPrefixAggregate¶added inv8.5.0
func NewIpPrefixAggregate() *IpPrefixAggregate
NewIpPrefixAggregate returns a IpPrefixAggregate.
func (*IpPrefixAggregate)UnmarshalJSON¶added inv8.7.0
func (s *IpPrefixAggregate) UnmarshalJSON(data []byte)error
typeIpPrefixAggregation¶added inv8.5.0
type IpPrefixAggregation struct {// AppendPrefixLength Defines whether the prefix length is appended to IP address keys in the// response.AppendPrefixLength *bool `json:"append_prefix_length,omitempty"`// Field The IP address field to aggregation on. The field mapping type must be `ip`.Fieldstring `json:"field"`// IsIpv6 Defines whether the prefix applies to IPv6 addresses.IsIpv6 *bool `json:"is_ipv6,omitempty"`// Keyed Defines whether buckets are returned as a hash rather than an array in the// response.Keyed *bool `json:"keyed,omitempty"`// MinDocCount Minimum number of documents in a bucket for it to be included in the// response.MinDocCount *int64 `json:"min_doc_count,omitempty"`// PrefixLength Length of the network prefix. For IPv4 addresses the accepted range is [0,// 32].// For IPv6 addresses the accepted range is [0, 128].PrefixLengthint `json:"prefix_length"`}IpPrefixAggregation type.
funcNewIpPrefixAggregation¶added inv8.5.0
func NewIpPrefixAggregation() *IpPrefixAggregation
NewIpPrefixAggregation returns a IpPrefixAggregation.
func (*IpPrefixAggregation)UnmarshalJSON¶added inv8.7.1
func (s *IpPrefixAggregation) UnmarshalJSON(data []byte)error
typeIpPrefixBucket¶added inv8.5.0
type IpPrefixBucket struct {Aggregations map[string]Aggregate `json:"-"`DocCountint64 `json:"doc_count"`IsIpv6bool `json:"is_ipv6"`Keystring `json:"key"`Netmask *string `json:"netmask,omitempty"`PrefixLengthint `json:"prefix_length"`}IpPrefixBucket type.
funcNewIpPrefixBucket¶added inv8.5.0
func NewIpPrefixBucket() *IpPrefixBucket
NewIpPrefixBucket returns a IpPrefixBucket.
func (IpPrefixBucket)MarshalJSON¶added inv8.5.0
func (sIpPrefixBucket) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
func (*IpPrefixBucket)UnmarshalJSON¶added inv8.7.0
func (s *IpPrefixBucket) UnmarshalJSON(data []byte)error
typeIpProperty¶
type IpProperty struct {Boost *Float64 `json:"boost,omitempty"`CopyTo []string `json:"copy_to,omitempty"`DocValues *bool `json:"doc_values,omitempty"`Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`Fields map[string]Property `json:"fields,omitempty"`IgnoreAbove *int `json:"ignore_above,omitempty"`IgnoreMalformed *bool `json:"ignore_malformed,omitempty"`Index *bool `json:"index,omitempty"`// Meta Metadata about the field.Meta map[string]string `json:"meta,omitempty"`NullValue *string `json:"null_value,omitempty"`OnScriptError *onscripterror.OnScriptError `json:"on_script_error,omitempty"`Properties map[string]Property `json:"properties,omitempty"`Script *Script `json:"script,omitempty"`Store *bool `json:"store,omitempty"`SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`// TimeSeriesDimension For internal use by Elastic only. Marks the field as a time series dimension.// Defaults to false.TimeSeriesDimension *bool `json:"time_series_dimension,omitempty"`Typestring `json:"type,omitempty"`}IpProperty type.
func (IpProperty)MarshalJSON¶added inv8.9.0
func (sIpProperty) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*IpProperty)UnmarshalJSON¶added inv8.7.0
func (s *IpProperty) UnmarshalJSON(data []byte)error
typeIpRangeAggregate¶
type IpRangeAggregate struct {BucketsBucketsIpRangeBucket `json:"buckets"`MetaMetadata `json:"meta,omitempty"`}IpRangeAggregate type.
funcNewIpRangeAggregate¶added inv8.5.0
func NewIpRangeAggregate() *IpRangeAggregate
NewIpRangeAggregate returns a IpRangeAggregate.
func (*IpRangeAggregate)UnmarshalJSON¶added inv8.7.0
func (s *IpRangeAggregate) UnmarshalJSON(data []byte)error
typeIpRangeAggregation¶
type IpRangeAggregation struct {// Field The date field whose values are used to build ranges.Field *string `json:"field,omitempty"`// Ranges Array of IP ranges.Ranges []IpRangeAggregationRange `json:"ranges,omitempty"`}IpRangeAggregation type.
funcNewIpRangeAggregation¶added inv8.5.0
func NewIpRangeAggregation() *IpRangeAggregation
NewIpRangeAggregation returns a IpRangeAggregation.
func (*IpRangeAggregation)UnmarshalJSON¶added inv8.7.1
func (s *IpRangeAggregation) UnmarshalJSON(data []byte)error
typeIpRangeAggregationRange¶
type IpRangeAggregationRange struct {// From Start of the range.From *string `json:"from,omitempty"`// Mask IP range defined as a CIDR mask.Mask *string `json:"mask,omitempty"`// To End of the range.To *string `json:"to,omitempty"`}IpRangeAggregationRange type.
funcNewIpRangeAggregationRange¶added inv8.5.0
func NewIpRangeAggregationRange() *IpRangeAggregationRange
NewIpRangeAggregationRange returns a IpRangeAggregationRange.
func (*IpRangeAggregationRange)UnmarshalJSON¶added inv8.7.1
func (s *IpRangeAggregationRange) UnmarshalJSON(data []byte)error
typeIpRangeBucket¶
type IpRangeBucket struct {Aggregations map[string]Aggregate `json:"-"`DocCountint64 `json:"doc_count"`From *string `json:"from,omitempty"`Key *string `json:"key,omitempty"`To *string `json:"to,omitempty"`}IpRangeBucket type.
funcNewIpRangeBucket¶added inv8.5.0
func NewIpRangeBucket() *IpRangeBucket
NewIpRangeBucket returns a IpRangeBucket.
func (IpRangeBucket)MarshalJSON¶
func (sIpRangeBucket) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
func (*IpRangeBucket)UnmarshalJSON¶added inv8.7.0
func (s *IpRangeBucket) UnmarshalJSON(data []byte)error
typeIpRangeProperty¶
type IpRangeProperty struct {Boost *Float64 `json:"boost,omitempty"`Coerce *bool `json:"coerce,omitempty"`CopyTo []string `json:"copy_to,omitempty"`DocValues *bool `json:"doc_values,omitempty"`Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`Fields map[string]Property `json:"fields,omitempty"`IgnoreAbove *int `json:"ignore_above,omitempty"`Index *bool `json:"index,omitempty"`// Meta Metadata about the field.Meta map[string]string `json:"meta,omitempty"`Properties map[string]Property `json:"properties,omitempty"`Store *bool `json:"store,omitempty"`SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`Typestring `json:"type,omitempty"`}IpRangeProperty type.
funcNewIpRangeProperty¶added inv8.5.0
func NewIpRangeProperty() *IpRangeProperty
NewIpRangeProperty returns a IpRangeProperty.
func (IpRangeProperty)MarshalJSON¶added inv8.9.0
func (sIpRangeProperty) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*IpRangeProperty)UnmarshalJSON¶added inv8.7.0
func (s *IpRangeProperty) UnmarshalJSON(data []byte)error
typeIrishAnalyzer¶added inv8.16.0
type IrishAnalyzer struct {StemExclusion []string `json:"stem_exclusion,omitempty"`StopwordsStopWords `json:"stopwords,omitempty"`StopwordsPath *string `json:"stopwords_path,omitempty"`Typestring `json:"type,omitempty"`}IrishAnalyzer type.
funcNewIrishAnalyzer¶added inv8.16.0
func NewIrishAnalyzer() *IrishAnalyzer
NewIrishAnalyzer returns a IrishAnalyzer.
func (IrishAnalyzer)MarshalJSON¶added inv8.16.0
func (sIrishAnalyzer) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*IrishAnalyzer)UnmarshalJSON¶added inv8.16.0
func (s *IrishAnalyzer) UnmarshalJSON(data []byte)error
typeItalianAnalyzer¶added inv8.16.0
type ItalianAnalyzer struct {StemExclusion []string `json:"stem_exclusion,omitempty"`StopwordsStopWords `json:"stopwords,omitempty"`StopwordsPath *string `json:"stopwords_path,omitempty"`Typestring `json:"type,omitempty"`}ItalianAnalyzer type.
funcNewItalianAnalyzer¶added inv8.16.0
func NewItalianAnalyzer() *ItalianAnalyzer
NewItalianAnalyzer returns a ItalianAnalyzer.
func (ItalianAnalyzer)MarshalJSON¶added inv8.16.0
func (sItalianAnalyzer) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*ItalianAnalyzer)UnmarshalJSON¶added inv8.16.0
func (s *ItalianAnalyzer) UnmarshalJSON(data []byte)error
typeJaStopTokenFilter¶added inv8.18.1
type JaStopTokenFilter struct {StopwordsStopWords `json:"stopwords,omitempty"`Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}JaStopTokenFilter type.
funcNewJaStopTokenFilter¶added inv8.18.1
func NewJaStopTokenFilter() *JaStopTokenFilter
NewJaStopTokenFilter returns a JaStopTokenFilter.
func (JaStopTokenFilter)MarshalJSON¶added inv8.18.1
func (sJaStopTokenFilter) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*JaStopTokenFilter)UnmarshalJSON¶added inv8.18.1
func (s *JaStopTokenFilter) UnmarshalJSON(data []byte)error
typeJinaAIServiceSettings¶added inv8.18.0
type JinaAIServiceSettings struct {// ApiKey A valid API key of your JinaAI account.//// IMPORTANT: You need to provide the API key only once, during the inference// model creation.// The get inference endpoint API does not retrieve your API key.// After creating the inference model, you cannot change the associated API key.// If you want to use a different API key, delete the inference model and// recreate it with the same name and the updated API key.ApiKeystring `json:"api_key"`// ModelId The name of the model to use for the inference task.// For a `rerank` task, it is required.// For a `text_embedding` task, it is optional.ModelId *string `json:"model_id,omitempty"`// RateLimit This setting helps to minimize the number of rate limit errors returned from// JinaAI.// By default, the `jinaai` service sets the number of requests allowed per// minute to 2000 for all task types.RateLimit *RateLimitSetting `json:"rate_limit,omitempty"`// Similarity For a `text_embedding` task, the similarity measure. One of cosine,// dot_product, l2_norm.// The default values varies with the embedding type.// For example, a float embedding type uses a `dot_product` similarity measure// by default.Similarity *jinaaisimilaritytype.JinaAISimilarityType `json:"similarity,omitempty"`}JinaAIServiceSettings type.
funcNewJinaAIServiceSettings¶added inv8.18.0
func NewJinaAIServiceSettings() *JinaAIServiceSettings
NewJinaAIServiceSettings returns a JinaAIServiceSettings.
func (*JinaAIServiceSettings)UnmarshalJSON¶added inv8.18.0
func (s *JinaAIServiceSettings) UnmarshalJSON(data []byte)error
typeJinaAITaskSettings¶added inv8.18.0
type JinaAITaskSettings struct {// ReturnDocuments For a `rerank` task, return the doc text within the results.ReturnDocuments *bool `json:"return_documents,omitempty"`// Task For a `text_embedding` task, the task passed to the model.// Valid values are://// * `classification`: Use it for embeddings passed through a text classifier.// * `clustering`: Use it for the embeddings run through a clustering algorithm.// * `ingest`: Use it for storing document embeddings in a vector database.// * `search`: Use it for storing embeddings of search queries run against a// vector database to find relevant documents.Task *jinaaitextembeddingtask.JinaAITextEmbeddingTask `json:"task,omitempty"`// TopN For a `rerank` task, the number of most relevant documents to return.// It defaults to the number of the documents.// If this inference endpoint is used in a `text_similarity_reranker` retriever// query and `top_n` is set, it must be greater than or equal to// `rank_window_size` in the query.TopN *int `json:"top_n,omitempty"`}JinaAITaskSettings type.
funcNewJinaAITaskSettings¶added inv8.18.0
func NewJinaAITaskSettings() *JinaAITaskSettings
NewJinaAITaskSettings returns a JinaAITaskSettings.
func (*JinaAITaskSettings)UnmarshalJSON¶added inv8.18.0
func (s *JinaAITaskSettings) UnmarshalJSON(data []byte)error
typeJob¶
type Job struct {// AllowLazyOpen Advanced configuration option.// Specifies whether this job can open when there is insufficient machine// learning node capacity for it to be immediately assigned to a node.AllowLazyOpenbool `json:"allow_lazy_open"`// AnalysisConfig The analysis configuration, which specifies how to analyze the data.// After you create a job, you cannot change the analysis configuration; all the// properties are informational.AnalysisConfigAnalysisConfig `json:"analysis_config"`// AnalysisLimits Limits can be applied for the resources required to hold the mathematical// models in memory.// These limits are approximate and can be set per job.// They do not control the memory used by other processes, for example the// Elasticsearch Java processes.AnalysisLimits *AnalysisLimits `json:"analysis_limits,omitempty"`// BackgroundPersistInterval Advanced configuration option.// The time between each periodic persistence of the model.// The default value is a randomized value between 3 to 4 hours, which avoids// all jobs persisting at exactly the same time.// The smallest allowed value is 1 hour.BackgroundPersistIntervalDuration `json:"background_persist_interval,omitempty"`Blocked *JobBlocked `json:"blocked,omitempty"`CreateTimeDateTime `json:"create_time,omitempty"`// CustomSettings Advanced configuration option.// Contains custom metadata about the job.CustomSettingsjson.RawMessage `json:"custom_settings,omitempty"`// DailyModelSnapshotRetentionAfterDays Advanced configuration option, which affects the automatic removal of old// model snapshots for this job.// It specifies a period of time (in days) after which only the first snapshot// per day is retained.// This period is relative to the timestamp of the most recent snapshot for this// job.// Valid values range from 0 to `model_snapshot_retention_days`.DailyModelSnapshotRetentionAfterDays *int64 `json:"daily_model_snapshot_retention_after_days,omitempty"`// DataDescription The data description defines the format of the input data when you send data// to the job by using the post data API.// Note that when configuring a datafeed, these properties are automatically// set.// When data is received via the post data API, it is not stored in// Elasticsearch.// Only the results for anomaly detection are retained.DataDescriptionDataDescription `json:"data_description"`// DatafeedConfig The datafeed, which retrieves data from Elasticsearch for analysis by the// job.// You can associate only one datafeed with each anomaly detection job.DatafeedConfig *MLDatafeed `json:"datafeed_config,omitempty"`// Deleting Indicates that the process of deleting the job is in progress but not yet// completed.// It is only reported when `true`.Deleting *bool `json:"deleting,omitempty"`// Description A description of the job.Description *string `json:"description,omitempty"`// FinishedTime If the job closed or failed, this is the time the job finished, otherwise it// is `null`.// This property is informational; you cannot change its value.FinishedTimeDateTime `json:"finished_time,omitempty"`// Groups A list of job groups.// A job can belong to no groups or many.Groups []string `json:"groups,omitempty"`// JobId Identifier for the anomaly detection job.// This identifier can contain lowercase alphanumeric characters (a-z and 0-9),// hyphens, and underscores.// It must start and end with alphanumeric characters.JobIdstring `json:"job_id"`// JobType Reserved for future use, currently set to `anomaly_detector`.JobType *string `json:"job_type,omitempty"`// JobVersion The machine learning configuration version number at which the the job was// created.JobVersion *string `json:"job_version,omitempty"`// ModelPlotConfig This advanced configuration option stores model information along with the// results.// It provides a more detailed view into anomaly detection.// Model plot provides a simplified and indicative view of the model and its// bounds.ModelPlotConfig *ModelPlotConfig `json:"model_plot_config,omitempty"`ModelSnapshotId *string `json:"model_snapshot_id,omitempty"`// ModelSnapshotRetentionDays Advanced configuration option, which affects the automatic removal of old// model snapshots for this job.// It specifies the maximum period of time (in days) that snapshots are// retained.// This period is relative to the timestamp of the most recent snapshot for this// job.// By default, snapshots ten days older than the newest snapshot are deleted.ModelSnapshotRetentionDaysint64 `json:"model_snapshot_retention_days"`// RenormalizationWindowDays Advanced configuration option.// The period over which adjustments to the score are applied, as new data is// seen.// The default value is the longer of 30 days or 100 `bucket_spans`.RenormalizationWindowDays *int64 `json:"renormalization_window_days,omitempty"`// ResultsIndexName A text string that affects the name of the machine learning results index.// The default value is `shared`, which generates an index named// `.ml-anomalies-shared`.ResultsIndexNamestring `json:"results_index_name"`// ResultsRetentionDays Advanced configuration option.// The period of time (in days) that results are retained.// Age is calculated relative to the timestamp of the latest bucket result.// If this property has a non-null value, once per day at 00:30 (server time),// results that are the specified number of days older than the latest bucket// result are deleted from Elasticsearch.// The default value is null, which means all results are retained.// Annotations generated by the system also count as results for retention// purposes; they are deleted after the same number of days as results.// Annotations added by users are retained forever.ResultsRetentionDays *int64 `json:"results_retention_days,omitempty"`}Job type.
func (*Job)UnmarshalJSON¶added inv8.7.1
typeJobBlocked¶
type JobBlocked struct {Reasonjobblockedreason.JobBlockedReason `json:"reason"`TaskIdTaskId `json:"task_id,omitempty"`}JobBlocked type.
func (*JobBlocked)UnmarshalJSON¶added inv8.7.1
func (s *JobBlocked) UnmarshalJSON(data []byte)error
typeJobConfig¶
type JobConfig struct {// AllowLazyOpen Advanced configuration option. Specifies whether this job can open when there// is insufficient machine learning node capacity for it to be immediately// assigned to a node.AllowLazyOpen *bool `json:"allow_lazy_open,omitempty"`// AnalysisConfig The analysis configuration, which specifies how to analyze the data.// After you create a job, you cannot change the analysis configuration; all the// properties are informational.AnalysisConfigAnalysisConfig `json:"analysis_config"`// AnalysisLimits Limits can be applied for the resources required to hold the mathematical// models in memory.// These limits are approximate and can be set per job.// They do not control the memory used by other processes, for example the// Elasticsearch Java processes.AnalysisLimits *AnalysisLimits `json:"analysis_limits,omitempty"`// BackgroundPersistInterval Advanced configuration option.// The time between each periodic persistence of the model.// The default value is a randomized value between 3 to 4 hours, which avoids// all jobs persisting at exactly the same time.// The smallest allowed value is 1 hour.BackgroundPersistIntervalDuration `json:"background_persist_interval,omitempty"`// CustomSettings Advanced configuration option.// Contains custom metadata about the job.CustomSettingsjson.RawMessage `json:"custom_settings,omitempty"`// DailyModelSnapshotRetentionAfterDays Advanced configuration option, which affects the automatic removal of old// model snapshots for this job.// It specifies a period of time (in days) after which only the first snapshot// per day is retained.// This period is relative to the timestamp of the most recent snapshot for this// job.DailyModelSnapshotRetentionAfterDays *int64 `json:"daily_model_snapshot_retention_after_days,omitempty"`// DataDescription The data description defines the format of the input data when you send data// to the job by using the post data API.// Note that when configure a datafeed, these properties are automatically set.DataDescriptionDataDescription `json:"data_description"`// DatafeedConfig The datafeed, which retrieves data from Elasticsearch for analysis by the// job.// You can associate only one datafeed with each anomaly detection job.DatafeedConfig *DatafeedConfig `json:"datafeed_config,omitempty"`// Description A description of the job.Description *string `json:"description,omitempty"`// Groups A list of job groups. A job can belong to no groups or many.Groups []string `json:"groups,omitempty"`// JobId Identifier for the anomaly detection job.// This identifier can contain lowercase alphanumeric characters (a-z and 0-9),// hyphens, and underscores.// It must start and end with alphanumeric characters.JobId *string `json:"job_id,omitempty"`// JobType Reserved for future use, currently set to `anomaly_detector`.JobType *string `json:"job_type,omitempty"`// ModelPlotConfig This advanced configuration option stores model information along with the// results.// It provides a more detailed view into anomaly detection.// Model plot provides a simplified and indicative view of the model and its// bounds.ModelPlotConfig *ModelPlotConfig `json:"model_plot_config,omitempty"`// ModelSnapshotRetentionDays Advanced configuration option, which affects the automatic removal of old// model snapshots for this job.// It specifies the maximum period of time (in days) that snapshots are// retained.// This period is relative to the timestamp of the most recent snapshot for this// job.// The default value is `10`, which means snapshots ten days older than the// newest snapshot are deleted.ModelSnapshotRetentionDays *int64 `json:"model_snapshot_retention_days,omitempty"`// RenormalizationWindowDays Advanced configuration option.// The period over which adjustments to the score are applied, as new data is// seen.// The default value is the longer of 30 days or 100 `bucket_spans`.RenormalizationWindowDays *int64 `json:"renormalization_window_days,omitempty"`// ResultsIndexName A text string that affects the name of the machine learning results index.// The default value is `shared`, which generates an index named// `.ml-anomalies-shared`.ResultsIndexName *string `json:"results_index_name,omitempty"`// ResultsRetentionDays Advanced configuration option.// The period of time (in days) that results are retained.// Age is calculated relative to the timestamp of the latest bucket result.// If this property has a non-null value, once per day at 00:30 (server time),// results that are the specified number of days older than the latest bucket// result are deleted from Elasticsearch.// The default value is null, which means all results are retained.// Annotations generated by the system also count as results for retention// purposes; they are deleted after the same number of days as results.// Annotations added by users are retained forever.ResultsRetentionDays *int64 `json:"results_retention_days,omitempty"`}JobConfig type.
func (*JobConfig)UnmarshalJSON¶added inv8.7.1
typeJobForecastStatistics¶
type JobForecastStatistics struct {ForecastedJobsint `json:"forecasted_jobs"`MemoryBytes *JobStatistics `json:"memory_bytes,omitempty"`ProcessingTimeMs *JobStatistics `json:"processing_time_ms,omitempty"`Records *JobStatistics `json:"records,omitempty"`Status map[string]int64 `json:"status,omitempty"`Totalint64 `json:"total"`}JobForecastStatistics type.
funcNewJobForecastStatistics¶added inv8.5.0
func NewJobForecastStatistics() *JobForecastStatistics
NewJobForecastStatistics returns a JobForecastStatistics.
func (*JobForecastStatistics)UnmarshalJSON¶added inv8.7.1
func (s *JobForecastStatistics) UnmarshalJSON(data []byte)error
typeJobStatistics¶
type JobStatistics struct {AvgFloat64 `json:"avg"`MaxFloat64 `json:"max"`MinFloat64 `json:"min"`TotalFloat64 `json:"total"`}JobStatistics type.
funcNewJobStatistics¶added inv8.5.0
func NewJobStatistics() *JobStatistics
NewJobStatistics returns a JobStatistics.
func (*JobStatistics)UnmarshalJSON¶added inv8.7.1
func (s *JobStatistics) UnmarshalJSON(data []byte)error
typeJobStats¶
type JobStats struct {// AssignmentExplanation For open anomaly detection jobs only, contains messages relating to the// selection of a node to run the job.AssignmentExplanation *string `json:"assignment_explanation,omitempty"`// DataCounts An object that describes the quantity of input to the job and any related// error counts.// The `data_count` values are cumulative for the lifetime of a job.// If a model snapshot is reverted or old results are deleted, the job counts// are not reset.DataCountsDataCounts `json:"data_counts"`// Deleting Indicates that the process of deleting the job is in progress but not yet// completed. It is only reported when `true`.Deleting *bool `json:"deleting,omitempty"`// ForecastsStats An object that provides statistical information about forecasts belonging to// this job.// Some statistics are omitted if no forecasts have been made.ForecastsStatsJobForecastStatistics `json:"forecasts_stats"`// JobId Identifier for the anomaly detection job.JobIdstring `json:"job_id"`// ModelSizeStats An object that provides information about the size and contents of the model.ModelSizeStatsModelSizeStats `json:"model_size_stats"`// Node Contains properties for the node that runs the job.// This information is available only for open jobs.Node *DiscoveryNodeCompact `json:"node,omitempty"`// OpenTime For open jobs only, the elapsed time for which the job has been open.OpenTimeDateTime `json:"open_time,omitempty"`// State The status of the anomaly detection job, which can be one of the following// values: `closed`, `closing`, `failed`, `opened`, `opening`.Statejobstate.JobState `json:"state"`// TimingStats An object that provides statistical information about timing aspect of this// job.TimingStatsJobTimingStats `json:"timing_stats"`}JobStats type.
func (*JobStats)UnmarshalJSON¶added inv8.7.1
typeJobTimingStats¶
type JobTimingStats struct {AverageBucketProcessingTimeMsFloat64 `json:"average_bucket_processing_time_ms,omitempty"`BucketCountint64 `json:"bucket_count"`ExponentialAverageBucketProcessingTimeMsFloat64 `json:"exponential_average_bucket_processing_time_ms,omitempty"`ExponentialAverageBucketProcessingTimePerHourMsFloat64 `json:"exponential_average_bucket_processing_time_per_hour_ms"`JobIdstring `json:"job_id"`MaximumBucketProcessingTimeMsFloat64 `json:"maximum_bucket_processing_time_ms,omitempty"`MinimumBucketProcessingTimeMsFloat64 `json:"minimum_bucket_processing_time_ms,omitempty"`TotalBucketProcessingTimeMsFloat64 `json:"total_bucket_processing_time_ms"`}JobTimingStats type.
funcNewJobTimingStats¶added inv8.5.0
func NewJobTimingStats() *JobTimingStats
NewJobTimingStats returns a JobTimingStats.
func (*JobTimingStats)UnmarshalJSON¶added inv8.7.1
func (s *JobTimingStats) UnmarshalJSON(data []byte)error
typeJobUsage¶added inv8.5.0
type JobUsage struct {Countint `json:"count"`CreatedBy map[string]int64 `json:"created_by"`DetectorsJobStatistics `json:"detectors"`ForecastsMlJobForecasts `json:"forecasts"`ModelSizeJobStatistics `json:"model_size"`}JobUsage type.
func (*JobUsage)UnmarshalJSON¶added inv8.7.1
typeJobsRecord¶
type JobsRecord struct {// AssignmentExplanation For open anomaly detection jobs only, contains messages relating to the// selection of a node to run the job.AssignmentExplanation *string `json:"assignment_explanation,omitempty"`// BucketsCount The number of bucket results produced by the job.BucketsCount *string `json:"buckets.count,omitempty"`// BucketsTimeExpAvg The exponential moving average of all bucket processing times, in// milliseconds.BucketsTimeExpAvg *string `json:"buckets.time.exp_avg,omitempty"`// BucketsTimeExpAvgHour The exponential moving average of bucket processing times calculated in a one// hour time window, in milliseconds.BucketsTimeExpAvgHour *string `json:"buckets.time.exp_avg_hour,omitempty"`// BucketsTimeMax The maximum of all bucket processing times, in milliseconds.BucketsTimeMax *string `json:"buckets.time.max,omitempty"`// BucketsTimeMin The minimum of all bucket processing times, in milliseconds.BucketsTimeMin *string `json:"buckets.time.min,omitempty"`// BucketsTimeTotal The sum of all bucket processing times, in milliseconds.BucketsTimeTotal *string `json:"buckets.time.total,omitempty"`// DataBuckets The total number of buckets processed.DataBuckets *string `json:"data.buckets,omitempty"`// DataEarliestRecord The timestamp of the earliest chronologically input document.DataEarliestRecord *string `json:"data.earliest_record,omitempty"`// DataEmptyBuckets The number of buckets which did not contain any data.// If your data contains many empty buckets, consider increasing your// `bucket_span` or using functions that are tolerant to gaps in data such as// mean, `non_null_sum` or `non_zero_count`.DataEmptyBuckets *string `json:"data.empty_buckets,omitempty"`// DataInputBytes The number of bytes of input data posted to the anomaly detection job.DataInputBytesByteSize `json:"data.input_bytes,omitempty"`// DataInputFields The total number of fields in input documents posted to the anomaly detection// job.// This count includes fields that are not used in the analysis.// However, be aware that if you are using a datafeed, it extracts only the// required fields from the documents it retrieves before posting them to the// job.DataInputFields *string `json:"data.input_fields,omitempty"`// DataInputRecords The number of input documents posted to the anomaly detection job.DataInputRecords *string `json:"data.input_records,omitempty"`// DataInvalidDates The number of input documents with either a missing date field or a date that// could not be parsed.DataInvalidDates *string `json:"data.invalid_dates,omitempty"`// DataLast The timestamp at which data was last analyzed, according to server time.DataLast *string `json:"data.last,omitempty"`// DataLastEmptyBucket The timestamp of the last bucket that did not contain any data.DataLastEmptyBucket *string `json:"data.last_empty_bucket,omitempty"`// DataLastSparseBucket The timestamp of the last bucket that was considered sparse.DataLastSparseBucket *string `json:"data.last_sparse_bucket,omitempty"`// DataLatestRecord The timestamp of the latest chronologically input document.DataLatestRecord *string `json:"data.latest_record,omitempty"`// DataMissingFields The number of input documents that are missing a field that the anomaly// detection job is configured to analyze.// Input documents with missing fields are still processed because it is// possible that not all fields are missing.// If you are using datafeeds or posting data to the job in JSON format, a high// `missing_field_count` is often not an indication of data issues.// It is not necessarily a cause for concern.DataMissingFields *string `json:"data.missing_fields,omitempty"`// DataOutOfOrderTimestamps The number of input documents that have a timestamp chronologically preceding// the start of the current anomaly detection bucket offset by the latency// window.// This information is applicable only when you provide data to the anomaly// detection job by using the post data API.// These out of order documents are discarded, since jobs require time series// data to be in ascending chronological order.DataOutOfOrderTimestamps *string `json:"data.out_of_order_timestamps,omitempty"`// DataProcessedFields The total number of fields in all the documents that have been processed by// the anomaly detection job.// Only fields that are specified in the detector configuration object// contribute to this count.// The timestamp is not included in this count.DataProcessedFields *string `json:"data.processed_fields,omitempty"`// DataProcessedRecords The number of input documents that have been processed by the anomaly// detection job.// This value includes documents with missing fields, since they are nonetheless// analyzed.// If you use datafeeds and have aggregations in your search query, the// `processed_record_count` is the number of aggregation results processed, not// the number of Elasticsearch documents.DataProcessedRecords *string `json:"data.processed_records,omitempty"`// DataSparseBuckets The number of buckets that contained few data points compared to the expected// number of data points.// If your data contains many sparse buckets, consider using a longer// `bucket_span`.DataSparseBuckets *string `json:"data.sparse_buckets,omitempty"`// ForecastsMemoryAvg The average memory usage in bytes for forecasts related to the anomaly// detection job.ForecastsMemoryAvg *string `json:"forecasts.memory.avg,omitempty"`// ForecastsMemoryMax The maximum memory usage in bytes for forecasts related to the anomaly// detection job.ForecastsMemoryMax *string `json:"forecasts.memory.max,omitempty"`// ForecastsMemoryMin The minimum memory usage in bytes for forecasts related to the anomaly// detection job.ForecastsMemoryMin *string `json:"forecasts.memory.min,omitempty"`// ForecastsMemoryTotal The total memory usage in bytes for forecasts related to the anomaly// detection job.ForecastsMemoryTotal *string `json:"forecasts.memory.total,omitempty"`// ForecastsRecordsAvg The average number of `model_forecast` documents written for forecasts// related to the anomaly detection job.ForecastsRecordsAvg *string `json:"forecasts.records.avg,omitempty"`// ForecastsRecordsMax The maximum number of `model_forecast` documents written for forecasts// related to the anomaly detection job.ForecastsRecordsMax *string `json:"forecasts.records.max,omitempty"`// ForecastsRecordsMin The minimum number of `model_forecast` documents written for forecasts// related to the anomaly detection job.ForecastsRecordsMin *string `json:"forecasts.records.min,omitempty"`// ForecastsRecordsTotal The total number of `model_forecast` documents written for forecasts related// to the anomaly detection job.ForecastsRecordsTotal *string `json:"forecasts.records.total,omitempty"`// ForecastsTimeAvg The average runtime in milliseconds for forecasts related to the anomaly// detection job.ForecastsTimeAvg *string `json:"forecasts.time.avg,omitempty"`// ForecastsTimeMax The maximum runtime in milliseconds for forecasts related to the anomaly// detection job.ForecastsTimeMax *string `json:"forecasts.time.max,omitempty"`// ForecastsTimeMin The minimum runtime in milliseconds for forecasts related to the anomaly// detection job.ForecastsTimeMin *string `json:"forecasts.time.min,omitempty"`// ForecastsTimeTotal The total runtime in milliseconds for forecasts related to the anomaly// detection job.ForecastsTimeTotal *string `json:"forecasts.time.total,omitempty"`// ForecastsTotal The number of individual forecasts currently available for the job.// A value of one or more indicates that forecasts exist.ForecastsTotal *string `json:"forecasts.total,omitempty"`// Id The anomaly detection job identifier.Id *string `json:"id,omitempty"`// ModelBucketAllocationFailures The number of buckets for which new entities in incoming data were not// processed due to insufficient model memory.// This situation is also signified by a `hard_limit: memory_status` property// value.ModelBucketAllocationFailures *string `json:"model.bucket_allocation_failures,omitempty"`// ModelByFields The number of `by` field values that were analyzed by the models.// This value is cumulative for all detectors in the job.ModelByFields *string `json:"model.by_fields,omitempty"`// ModelBytes The number of bytes of memory used by the models.// This is the maximum value since the last time the model was persisted.// If the job is closed, this value indicates the latest size.ModelBytesByteSize `json:"model.bytes,omitempty"`// ModelBytesExceeded The number of bytes over the high limit for memory usage at the last// allocation failure.ModelBytesExceededByteSize `json:"model.bytes_exceeded,omitempty"`// ModelCategorizationStatus The status of categorization for the job.ModelCategorizationStatus *categorizationstatus.CategorizationStatus `json:"model.categorization_status,omitempty"`// ModelCategorizedDocCount The number of documents that have had a field categorized.ModelCategorizedDocCount *string `json:"model.categorized_doc_count,omitempty"`// ModelDeadCategoryCount The number of categories created by categorization that will never be// assigned again because another category’s definition makes it a superset of// the dead category.// Dead categories are a side effect of the way categorization has no prior// training.ModelDeadCategoryCount *string `json:"model.dead_category_count,omitempty"`// ModelFailedCategoryCount The number of times that categorization wanted to create a new category but// couldn’t because the job had hit its `model_memory_limit`.// This count does not track which specific categories failed to be created.// Therefore you cannot use this value to determine the number of unique// categories that were missed.ModelFailedCategoryCount *string `json:"model.failed_category_count,omitempty"`// ModelFrequentCategoryCount The number of categories that match more than 1% of categorized documents.ModelFrequentCategoryCount *string `json:"model.frequent_category_count,omitempty"`// ModelLogTime The timestamp when the model stats were gathered, according to server time.ModelLogTime *string `json:"model.log_time,omitempty"`// ModelMemoryLimit The upper limit for model memory usage, checked on increasing values.ModelMemoryLimit *string `json:"model.memory_limit,omitempty"`// ModelMemoryStatus The status of the mathematical models.ModelMemoryStatus *memorystatus.MemoryStatus `json:"model.memory_status,omitempty"`// ModelOverFields The number of `over` field values that were analyzed by the models.// This value is cumulative for all detectors in the job.ModelOverFields *string `json:"model.over_fields,omitempty"`// ModelPartitionFields The number of `partition` field values that were analyzed by the models.// This value is cumulative for all detectors in the job.ModelPartitionFields *string `json:"model.partition_fields,omitempty"`// ModelRareCategoryCount The number of categories that match just one categorized document.ModelRareCategoryCount *string `json:"model.rare_category_count,omitempty"`// ModelTimestamp The timestamp of the last record when the model stats were gathered.ModelTimestamp *string `json:"model.timestamp,omitempty"`// ModelTotalCategoryCount The number of categories created by categorization.ModelTotalCategoryCount *string `json:"model.total_category_count,omitempty"`// NodeAddress The network address of the assigned node.NodeAddress *string `json:"node.address,omitempty"`// NodeEphemeralId The ephemeral identifier of the assigned node.NodeEphemeralId *string `json:"node.ephemeral_id,omitempty"`// NodeId The uniqe identifier of the assigned node.NodeId *string `json:"node.id,omitempty"`// NodeName The name of the assigned node.NodeName *string `json:"node.name,omitempty"`// OpenedTime For open jobs only, the amount of time the job has been opened.OpenedTime *string `json:"opened_time,omitempty"`// State The status of the anomaly detection job.State *jobstate.JobState `json:"state,omitempty"`}JobsRecord type.
func (*JobsRecord)UnmarshalJSON¶added inv8.7.1
func (s *JobsRecord) UnmarshalJSON(data []byte)error
typeJoinProcessor¶
type JoinProcessor struct {// Description Description of the processor.// Useful for describing the purpose of the processor or its configuration.Description *string `json:"description,omitempty"`// Field Field containing array values to join.Fieldstring `json:"field"`// If Conditionally execute the processor.If *string `json:"if,omitempty"`// IgnoreFailure Ignore failures for the processor.IgnoreFailure *bool `json:"ignore_failure,omitempty"`// OnFailure Handle failures for the processor.OnFailure []ProcessorContainer `json:"on_failure,omitempty"`// Separator The separator character.Separatorstring `json:"separator"`// Tag Identifier for the processor.// Useful for debugging and metrics.Tag *string `json:"tag,omitempty"`// TargetField The field to assign the joined value to.// By default, the field is updated in-place.TargetField *string `json:"target_field,omitempty"`}JoinProcessor type.
funcNewJoinProcessor¶added inv8.5.0
func NewJoinProcessor() *JoinProcessor
NewJoinProcessor returns a JoinProcessor.
func (*JoinProcessor)UnmarshalJSON¶added inv8.7.1
func (s *JoinProcessor) UnmarshalJSON(data []byte)error
typeJoinProperty¶
type JoinProperty struct {Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`EagerGlobalOrdinals *bool `json:"eager_global_ordinals,omitempty"`Fields map[string]Property `json:"fields,omitempty"`IgnoreAbove *int `json:"ignore_above,omitempty"`// Meta Metadata about the field.Meta map[string]string `json:"meta,omitempty"`Properties map[string]Property `json:"properties,omitempty"`Relations map[string][]string `json:"relations,omitempty"`SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`Typestring `json:"type,omitempty"`}JoinProperty type.
funcNewJoinProperty¶added inv8.5.0
func NewJoinProperty() *JoinProperty
NewJoinProperty returns a JoinProperty.
func (JoinProperty)MarshalJSON¶added inv8.9.0
func (sJoinProperty) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*JoinProperty)UnmarshalJSON¶added inv8.7.0
func (s *JoinProperty) UnmarshalJSON(data []byte)error
typeJsonProcessor¶
type JsonProcessor struct {// AddToRoot Flag that forces the parsed JSON to be added at the top level of the// document.// `target_field` must not be set when this option is chosen.AddToRoot *bool `json:"add_to_root,omitempty"`// AddToRootConflictStrategy When set to `replace`, root fields that conflict with fields from the parsed// JSON will be overridden.// When set to `merge`, conflicting fields will be merged.// Only applicable `if add_to_root` is set to true.AddToRootConflictStrategy *jsonprocessorconflictstrategy.JsonProcessorConflictStrategy `json:"add_to_root_conflict_strategy,omitempty"`// AllowDuplicateKeys When set to `true`, the JSON parser will not fail if the JSON contains// duplicate keys.// Instead, the last encountered value for any duplicate key wins.AllowDuplicateKeys *bool `json:"allow_duplicate_keys,omitempty"`// Description Description of the processor.// Useful for describing the purpose of the processor or its configuration.Description *string `json:"description,omitempty"`// Field The field to be parsed.Fieldstring `json:"field"`// If Conditionally execute the processor.If *string `json:"if,omitempty"`// IgnoreFailure Ignore failures for the processor.IgnoreFailure *bool `json:"ignore_failure,omitempty"`// OnFailure Handle failures for the processor.OnFailure []ProcessorContainer `json:"on_failure,omitempty"`// Tag Identifier for the processor.// Useful for debugging and metrics.Tag *string `json:"tag,omitempty"`// TargetField The field that the converted structured object will be written into.// Any existing content in this field will be overwritten.TargetField *string `json:"target_field,omitempty"`}JsonProcessor type.
funcNewJsonProcessor¶added inv8.5.0
func NewJsonProcessor() *JsonProcessor
NewJsonProcessor returns a JsonProcessor.
func (*JsonProcessor)UnmarshalJSON¶added inv8.7.1
func (s *JsonProcessor) UnmarshalJSON(data []byte)error
typeJvm¶
type Jvm struct {// BufferPools Contains statistics about JVM buffer pools for the node.BufferPools map[string]NodeBufferPool `json:"buffer_pools,omitempty"`// Classes Contains statistics about classes loaded by JVM for the node.Classes *JvmClasses `json:"classes,omitempty"`// Gc Contains statistics about JVM garbage collectors for the node.Gc *GarbageCollector `json:"gc,omitempty"`// Mem Contains JVM memory usage statistics for the node.Mem *JvmMemoryStats `json:"mem,omitempty"`// Threads Contains statistics about JVM thread usage for the node.Threads *JvmThreads `json:"threads,omitempty"`// Timestamp Last time JVM statistics were refreshed.Timestamp *int64 `json:"timestamp,omitempty"`// Uptime Human-readable JVM uptime.// Only returned if the `human` query parameter is `true`.Uptime *string `json:"uptime,omitempty"`// UptimeInMillis JVM uptime in milliseconds.UptimeInMillis *int64 `json:"uptime_in_millis,omitempty"`}Jvm type.
func (*Jvm)UnmarshalJSON¶added inv8.7.1
typeJvmClasses¶
type JvmClasses struct {// CurrentLoadedCount Number of classes currently loaded by JVM.CurrentLoadedCount *int64 `json:"current_loaded_count,omitempty"`// TotalLoadedCount Total number of classes loaded since the JVM started.TotalLoadedCount *int64 `json:"total_loaded_count,omitempty"`// TotalUnloadedCount Total number of classes unloaded since the JVM started.TotalUnloadedCount *int64 `json:"total_unloaded_count,omitempty"`}JvmClasses type.
func (*JvmClasses)UnmarshalJSON¶added inv8.7.1
func (s *JvmClasses) UnmarshalJSON(data []byte)error
typeJvmMemoryStats¶
type JvmMemoryStats struct {// HeapCommittedInBytes Amount of memory, in bytes, available for use by the heap.HeapCommittedInBytes *int64 `json:"heap_committed_in_bytes,omitempty"`// HeapMax Maximum amount of memory, available for use by the heap.HeapMaxByteSize `json:"heap_max,omitempty"`// HeapMaxInBytes Maximum amount of memory, in bytes, available for use by the heap.HeapMaxInBytes *int64 `json:"heap_max_in_bytes,omitempty"`// HeapUsedInBytes Memory, in bytes, currently in use by the heap.HeapUsedInBytes *int64 `json:"heap_used_in_bytes,omitempty"`// HeapUsedPercent Percentage of memory currently in use by the heap.HeapUsedPercent *int64 `json:"heap_used_percent,omitempty"`// NonHeapCommittedInBytes Amount of non-heap memory available, in bytes.NonHeapCommittedInBytes *int64 `json:"non_heap_committed_in_bytes,omitempty"`// NonHeapUsedInBytes Non-heap memory used, in bytes.NonHeapUsedInBytes *int64 `json:"non_heap_used_in_bytes,omitempty"`// Pools Contains statistics about heap memory usage for the node.Pools map[string]Pool `json:"pools,omitempty"`}JvmMemoryStats type.
funcNewJvmMemoryStats¶added inv8.5.0
func NewJvmMemoryStats() *JvmMemoryStats
NewJvmMemoryStats returns a JvmMemoryStats.
func (*JvmMemoryStats)UnmarshalJSON¶added inv8.7.1
func (s *JvmMemoryStats) UnmarshalJSON(data []byte)error
typeJvmStats¶
type JvmStats struct {// HeapMax Maximum amount of memory available for use by the heap.HeapMaxByteSize `json:"heap_max,omitempty"`// HeapMaxInBytes Maximum amount of memory, in bytes, available for use by the heap.HeapMaxInBytesint `json:"heap_max_in_bytes"`// JavaInference Amount of Java heap currently being used for caching inference models.JavaInferenceByteSize `json:"java_inference,omitempty"`// JavaInferenceInBytes Amount of Java heap, in bytes, currently being used for caching inference// models.JavaInferenceInBytesint `json:"java_inference_in_bytes"`// JavaInferenceMax Maximum amount of Java heap to be used for caching inference models.JavaInferenceMaxByteSize `json:"java_inference_max,omitempty"`// JavaInferenceMaxInBytes Maximum amount of Java heap, in bytes, to be used for caching inference// models.JavaInferenceMaxInBytesint `json:"java_inference_max_in_bytes"`}JvmStats type.
func (*JvmStats)UnmarshalJSON¶added inv8.7.1
typeJvmThreads¶
type JvmThreads struct {// Count Number of active threads in use by JVM.Count *int64 `json:"count,omitempty"`// PeakCount Highest number of threads used by JVM.PeakCount *int64 `json:"peak_count,omitempty"`}JvmThreads type.
func (*JvmThreads)UnmarshalJSON¶added inv8.7.1
func (s *JvmThreads) UnmarshalJSON(data []byte)error
typeKStemTokenFilter¶
type KStemTokenFilter struct {Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}KStemTokenFilter type.
funcNewKStemTokenFilter¶added inv8.5.0
func NewKStemTokenFilter() *KStemTokenFilter
NewKStemTokenFilter returns a KStemTokenFilter.
func (KStemTokenFilter)MarshalJSON¶added inv8.9.0
func (sKStemTokenFilter) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*KStemTokenFilter)UnmarshalJSON¶added inv8.7.1
func (s *KStemTokenFilter) UnmarshalJSON(data []byte)error
typeKeepTypesTokenFilter¶
type KeepTypesTokenFilter struct {// Mode Indicates whether to keep or remove the specified token types.Mode *keeptypesmode.KeepTypesMode `json:"mode,omitempty"`Typestring `json:"type,omitempty"`// Types List of token types to keep or remove.Types []string `json:"types"`Version *string `json:"version,omitempty"`}KeepTypesTokenFilter type.
funcNewKeepTypesTokenFilter¶added inv8.5.0
func NewKeepTypesTokenFilter() *KeepTypesTokenFilter
NewKeepTypesTokenFilter returns a KeepTypesTokenFilter.
func (KeepTypesTokenFilter)MarshalJSON¶added inv8.9.0
func (sKeepTypesTokenFilter) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*KeepTypesTokenFilter)UnmarshalJSON¶added inv8.7.1
func (s *KeepTypesTokenFilter) UnmarshalJSON(data []byte)error
typeKeepWordsTokenFilter¶
type KeepWordsTokenFilter struct {// KeepWords List of words to keep. Only tokens that match words in this list are included// in the output.// Either this parameter or `keep_words_path` must be specified.KeepWords []string `json:"keep_words,omitempty"`// KeepWordsCase If `true`, lowercase all keep words. Defaults to `false`.KeepWordsCase *bool `json:"keep_words_case,omitempty"`// KeepWordsPath Path to a file that contains a list of words to keep. Only tokens that match// words in this list are included in the output.// This path must be absolute or relative to the `config` location, and the file// must be UTF-8 encoded. Each word in the file must be separated by a line// break.// Either this parameter or `keep_words` must be specified.KeepWordsPath *string `json:"keep_words_path,omitempty"`Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}KeepWordsTokenFilter type.
funcNewKeepWordsTokenFilter¶added inv8.5.0
func NewKeepWordsTokenFilter() *KeepWordsTokenFilter
NewKeepWordsTokenFilter returns a KeepWordsTokenFilter.
func (KeepWordsTokenFilter)MarshalJSON¶added inv8.9.0
func (sKeepWordsTokenFilter) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*KeepWordsTokenFilter)UnmarshalJSON¶added inv8.7.1
func (s *KeepWordsTokenFilter) UnmarshalJSON(data []byte)error
typeKeyValueProcessor¶
type KeyValueProcessor struct {// Description Description of the processor.// Useful for describing the purpose of the processor or its configuration.Description *string `json:"description,omitempty"`// ExcludeKeys List of keys to exclude from document.ExcludeKeys []string `json:"exclude_keys,omitempty"`// Field The field to be parsed.// Supports template snippets.Fieldstring `json:"field"`// FieldSplit Regex pattern to use for splitting key-value pairs.FieldSplitstring `json:"field_split"`// If Conditionally execute the processor.If *string `json:"if,omitempty"`// IgnoreFailure Ignore failures for the processor.IgnoreFailure *bool `json:"ignore_failure,omitempty"`// IgnoreMissing If `true` and `field` does not exist or is `null`, the processor quietly// exits without modifying the document.IgnoreMissing *bool `json:"ignore_missing,omitempty"`// IncludeKeys List of keys to filter and insert into document.// Defaults to including all keys.IncludeKeys []string `json:"include_keys,omitempty"`// OnFailure Handle failures for the processor.OnFailure []ProcessorContainer `json:"on_failure,omitempty"`// Prefix Prefix to be added to extracted keys.Prefix *string `json:"prefix,omitempty"`// StripBrackets If `true`. strip brackets `()`, `<>`, `[]` as well as quotes `'` and `"` from// extracted values.StripBrackets *bool `json:"strip_brackets,omitempty"`// Tag Identifier for the processor.// Useful for debugging and metrics.Tag *string `json:"tag,omitempty"`// TargetField The field to insert the extracted keys into.// Defaults to the root of the document.// Supports template snippets.TargetField *string `json:"target_field,omitempty"`// TrimKey String of characters to trim from extracted keys.TrimKey *string `json:"trim_key,omitempty"`// TrimValue String of characters to trim from extracted values.TrimValue *string `json:"trim_value,omitempty"`// ValueSplit Regex pattern to use for splitting the key from the value within a key-value// pair.ValueSplitstring `json:"value_split"`}KeyValueProcessor type.
funcNewKeyValueProcessor¶added inv8.5.0
func NewKeyValueProcessor() *KeyValueProcessor
NewKeyValueProcessor returns a KeyValueProcessor.
func (*KeyValueProcessor)UnmarshalJSON¶added inv8.7.1
func (s *KeyValueProcessor) UnmarshalJSON(data []byte)error
typeKeyedPercentiles¶
KeyedPercentiles type alias.
func (KeyedPercentiles)UnmarshalJSON¶added inv8.7.1
func (sKeyedPercentiles) UnmarshalJSON(data []byte)error
typeKeyedProcessor¶
type KeyedProcessor struct {Stats *Processor `json:"stats,omitempty"`Type *string `json:"type,omitempty"`}KeyedProcessor type.
funcNewKeyedProcessor¶added inv8.5.0
func NewKeyedProcessor() *KeyedProcessor
NewKeyedProcessor returns a KeyedProcessor.
func (*KeyedProcessor)UnmarshalJSON¶added inv8.9.0
func (s *KeyedProcessor) UnmarshalJSON(data []byte)error
typeKeywordAnalyzer¶
type KeywordAnalyzer struct {Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}KeywordAnalyzer type.
funcNewKeywordAnalyzer¶added inv8.5.0
func NewKeywordAnalyzer() *KeywordAnalyzer
NewKeywordAnalyzer returns a KeywordAnalyzer.
func (KeywordAnalyzer)MarshalJSON¶added inv8.9.0
func (sKeywordAnalyzer) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*KeywordAnalyzer)UnmarshalJSON¶added inv8.7.1
func (s *KeywordAnalyzer) UnmarshalJSON(data []byte)error
typeKeywordMarkerTokenFilter¶
type KeywordMarkerTokenFilter struct {// IgnoreCase If `true`, matching for the `keywords` and `keywords_path` parameters ignores// letter case. Defaults to `false`.IgnoreCase *bool `json:"ignore_case,omitempty"`// Keywords Array of keywords. Tokens that match these keywords are not stemmed.// This parameter, `keywords_path`, or `keywords_pattern` must be specified. You// cannot specify this parameter and `keywords_pattern`.Keywords []string `json:"keywords,omitempty"`// KeywordsPath Path to a file that contains a list of keywords. Tokens that match these// keywords are not stemmed.// This path must be absolute or relative to the `config` location, and the file// must be UTF-8 encoded. Each word in the file must be separated by a line// break.// This parameter, `keywords`, or `keywords_pattern` must be specified. You// cannot specify this parameter and `keywords_pattern`.KeywordsPath *string `json:"keywords_path,omitempty"`// KeywordsPattern Java regular expression used to match tokens. Tokens that match this// expression are marked as keywords and not stemmed.// This parameter, `keywords`, or `keywords_path` must be specified. You cannot// specify this parameter and `keywords` or `keywords_pattern`.KeywordsPattern *string `json:"keywords_pattern,omitempty"`Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}KeywordMarkerTokenFilter type.
funcNewKeywordMarkerTokenFilter¶added inv8.5.0
func NewKeywordMarkerTokenFilter() *KeywordMarkerTokenFilter
NewKeywordMarkerTokenFilter returns a KeywordMarkerTokenFilter.
func (KeywordMarkerTokenFilter)MarshalJSON¶added inv8.9.0
func (sKeywordMarkerTokenFilter) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*KeywordMarkerTokenFilter)UnmarshalJSON¶added inv8.7.1
func (s *KeywordMarkerTokenFilter) UnmarshalJSON(data []byte)error
typeKeywordProperty¶
type KeywordProperty struct {Boost *Float64 `json:"boost,omitempty"`CopyTo []string `json:"copy_to,omitempty"`DocValues *bool `json:"doc_values,omitempty"`Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`EagerGlobalOrdinals *bool `json:"eager_global_ordinals,omitempty"`Fields map[string]Property `json:"fields,omitempty"`IgnoreAbove *int `json:"ignore_above,omitempty"`Index *bool `json:"index,omitempty"`IndexOptions *indexoptions.IndexOptions `json:"index_options,omitempty"`// Meta Metadata about the field.Meta map[string]string `json:"meta,omitempty"`Normalizer *string `json:"normalizer,omitempty"`Norms *bool `json:"norms,omitempty"`NullValue *string `json:"null_value,omitempty"`OnScriptError *onscripterror.OnScriptError `json:"on_script_error,omitempty"`Properties map[string]Property `json:"properties,omitempty"`Script *Script `json:"script,omitempty"`Similarity *string `json:"similarity,omitempty"`SplitQueriesOnWhitespace *bool `json:"split_queries_on_whitespace,omitempty"`Store *bool `json:"store,omitempty"`SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`// TimeSeriesDimension For internal use by Elastic only. Marks the field as a time series dimension.// Defaults to false.TimeSeriesDimension *bool `json:"time_series_dimension,omitempty"`Typestring `json:"type,omitempty"`}KeywordProperty type.
funcNewKeywordProperty¶added inv8.5.0
func NewKeywordProperty() *KeywordProperty
NewKeywordProperty returns a KeywordProperty.
func (KeywordProperty)MarshalJSON¶added inv8.9.0
func (sKeywordProperty) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*KeywordProperty)UnmarshalJSON¶added inv8.7.0
func (s *KeywordProperty) UnmarshalJSON(data []byte)error
typeKeywordRepeatTokenFilter¶added inv8.18.1
type KeywordRepeatTokenFilter struct {Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}KeywordRepeatTokenFilter type.
funcNewKeywordRepeatTokenFilter¶added inv8.18.1
func NewKeywordRepeatTokenFilter() *KeywordRepeatTokenFilter
NewKeywordRepeatTokenFilter returns a KeywordRepeatTokenFilter.
func (KeywordRepeatTokenFilter)MarshalJSON¶added inv8.18.1
func (sKeywordRepeatTokenFilter) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*KeywordRepeatTokenFilter)UnmarshalJSON¶added inv8.18.1
func (s *KeywordRepeatTokenFilter) UnmarshalJSON(data []byte)error
typeKeywordTokenizer¶
type KeywordTokenizer struct {BufferSize *int `json:"buffer_size,omitempty"`Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}KeywordTokenizer type.
funcNewKeywordTokenizer¶added inv8.5.0
func NewKeywordTokenizer() *KeywordTokenizer
NewKeywordTokenizer returns a KeywordTokenizer.
func (KeywordTokenizer)MarshalJSON¶added inv8.9.0
func (sKeywordTokenizer) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*KeywordTokenizer)UnmarshalJSON¶added inv8.7.1
func (s *KeywordTokenizer) UnmarshalJSON(data []byte)error
typeKibanaToken¶added inv8.5.0
type KibanaToken struct {// Name The name of the bearer token for the `elastic/kibana` service account.Namestring `json:"name"`// Value The value of the bearer token for the `elastic/kibana` service account.// Use this value to authenticate the service account with Elasticsearch.Valuestring `json:"value"`}KibanaToken type.
funcNewKibanaToken¶added inv8.5.0
func NewKibanaToken() *KibanaToken
NewKibanaToken returns a KibanaToken.
func (*KibanaToken)UnmarshalJSON¶added inv8.9.0
func (s *KibanaToken) UnmarshalJSON(data []byte)error
typeKnnCollectorResult¶added inv8.16.0
type KnnCollectorResult struct {Children []KnnCollectorResult `json:"children,omitempty"`Namestring `json:"name"`Reasonstring `json:"reason"`TimeDuration `json:"time,omitempty"`TimeInNanosint64 `json:"time_in_nanos"`}KnnCollectorResult type.
funcNewKnnCollectorResult¶added inv8.16.0
func NewKnnCollectorResult() *KnnCollectorResult
NewKnnCollectorResult returns a KnnCollectorResult.
func (*KnnCollectorResult)UnmarshalJSON¶added inv8.16.0
func (s *KnnCollectorResult) UnmarshalJSON(data []byte)error
typeKnnQuery¶
type KnnQuery struct {// Boost Floating point number used to decrease or increase the relevance scores of// the query.// Boost values are relative to the default value of 1.0.// A boost value between 0 and 1.0 decreases the relevance score.// A value greater than 1.0 increases the relevance score.Boost *float32 `json:"boost,omitempty"`// Field The name of the vector field to search againstFieldstring `json:"field"`// Filter Filters for the kNN search queryFilter []Query `json:"filter,omitempty"`// K The final number of nearest neighbors to return as top hitsK *int `json:"k,omitempty"`// NumCandidates The number of nearest neighbor candidates to consider per shardNumCandidates *int `json:"num_candidates,omitempty"`QueryName_ *string `json:"_name,omitempty"`// QueryVector The query vectorQueryVector []float32 `json:"query_vector,omitempty"`// QueryVectorBuilder The query vector builder. You must provide a query_vector_builder or// query_vector, but not both.QueryVectorBuilder *QueryVectorBuilder `json:"query_vector_builder,omitempty"`// RescoreVector Apply oversampling and rescoring to quantized vectors *RescoreVector *RescoreVector `json:"rescore_vector,omitempty"`// Similarity The minimum similarity for a vector to be considered a matchSimilarity *float32 `json:"similarity,omitempty"`}KnnQuery type.
func (*KnnQuery)UnmarshalJSON¶added inv8.7.1
typeKnnQueryProfileBreakdown¶added inv8.16.0
type KnnQueryProfileBreakdown struct {Advanceint64 `json:"advance"`AdvanceCountint64 `json:"advance_count"`BuildScorerint64 `json:"build_scorer"`BuildScorerCountint64 `json:"build_scorer_count"`ComputeMaxScoreint64 `json:"compute_max_score"`ComputeMaxScoreCountint64 `json:"compute_max_score_count"`CountWeightint64 `json:"count_weight"`CountWeightCountint64 `json:"count_weight_count"`CreateWeightint64 `json:"create_weight"`CreateWeightCountint64 `json:"create_weight_count"`Matchint64 `json:"match"`MatchCountint64 `json:"match_count"`NextDocint64 `json:"next_doc"`NextDocCountint64 `json:"next_doc_count"`Scoreint64 `json:"score"`ScoreCountint64 `json:"score_count"`SetMinCompetitiveScoreint64 `json:"set_min_competitive_score"`SetMinCompetitiveScoreCountint64 `json:"set_min_competitive_score_count"`ShallowAdvanceint64 `json:"shallow_advance"`ShallowAdvanceCountint64 `json:"shallow_advance_count"`}KnnQueryProfileBreakdown type.
funcNewKnnQueryProfileBreakdown¶added inv8.16.0
func NewKnnQueryProfileBreakdown() *KnnQueryProfileBreakdown
NewKnnQueryProfileBreakdown returns a KnnQueryProfileBreakdown.
func (*KnnQueryProfileBreakdown)UnmarshalJSON¶added inv8.16.0
func (s *KnnQueryProfileBreakdown) UnmarshalJSON(data []byte)error
typeKnnQueryProfileResult¶added inv8.16.0
type KnnQueryProfileResult struct {BreakdownKnnQueryProfileBreakdown `json:"breakdown"`Children []KnnQueryProfileResult `json:"children,omitempty"`Debug map[string]json.RawMessage `json:"debug,omitempty"`Descriptionstring `json:"description"`TimeDuration `json:"time,omitempty"`TimeInNanosint64 `json:"time_in_nanos"`Typestring `json:"type"`}KnnQueryProfileResult type.
funcNewKnnQueryProfileResult¶added inv8.16.0
func NewKnnQueryProfileResult() *KnnQueryProfileResult
NewKnnQueryProfileResult returns a KnnQueryProfileResult.
func (*KnnQueryProfileResult)UnmarshalJSON¶added inv8.16.0
func (s *KnnQueryProfileResult) UnmarshalJSON(data []byte)error
typeKnnRetriever¶added inv8.14.0
type KnnRetriever struct {// Field The name of the vector field to search against.Fieldstring `json:"field"`// Filter Query to filter the documents that can match.Filter []Query `json:"filter,omitempty"`// K Number of nearest neighbors to return as top hits.Kint `json:"k"`// MinScore Minimum _score for matching documents. Documents with a lower _score are not// included in the top documents.MinScore *float32 `json:"min_score,omitempty"`// Name_ Retriever name.Name_ *string `json:"_name,omitempty"`// NumCandidates Number of nearest neighbor candidates to consider per shard.NumCandidatesint `json:"num_candidates"`// QueryVector Query vector. Must have the same number of dimensions as the vector field you// are searching against. You must provide a query_vector_builder or// query_vector, but not both.QueryVector []float32 `json:"query_vector,omitempty"`// QueryVectorBuilder Defines a model to build a query vector.QueryVectorBuilder *QueryVectorBuilder `json:"query_vector_builder,omitempty"`// RescoreVector Apply oversampling and rescoring to quantized vectors *RescoreVector *RescoreVector `json:"rescore_vector,omitempty"`// Similarity The minimum similarity required for a document to be considered a match.Similarity *float32 `json:"similarity,omitempty"`}KnnRetriever type.
funcNewKnnRetriever¶added inv8.14.0
func NewKnnRetriever() *KnnRetriever
NewKnnRetriever returns a KnnRetriever.
func (*KnnRetriever)UnmarshalJSON¶added inv8.14.0
func (s *KnnRetriever) UnmarshalJSON(data []byte)error
typeKnnSearch¶added inv8.14.0
type KnnSearch struct {// Boost Boost value to apply to kNN scoresBoost *float32 `json:"boost,omitempty"`// Field The name of the vector field to search againstFieldstring `json:"field"`// Filter Filters for the kNN search queryFilter []Query `json:"filter,omitempty"`// InnerHits If defined, each search hit will contain inner hits.InnerHits *InnerHits `json:"inner_hits,omitempty"`// K The final number of nearest neighbors to return as top hitsK *int `json:"k,omitempty"`// NumCandidates The number of nearest neighbor candidates to consider per shardNumCandidates *int `json:"num_candidates,omitempty"`// QueryVector The query vectorQueryVector []float32 `json:"query_vector,omitempty"`// QueryVectorBuilder The query vector builder. You must provide a query_vector_builder or// query_vector, but not both.QueryVectorBuilder *QueryVectorBuilder `json:"query_vector_builder,omitempty"`// RescoreVector Apply oversampling and rescoring to quantized vectors *RescoreVector *RescoreVector `json:"rescore_vector,omitempty"`// Similarity The minimum similarity for a vector to be considered a matchSimilarity *float32 `json:"similarity,omitempty"`}KnnSearch type.
func (*KnnSearch)UnmarshalJSON¶added inv8.14.0
typeKuromojiAnalyzer¶
type KuromojiAnalyzer struct {Modekuromojitokenizationmode.KuromojiTokenizationMode `json:"mode"`Typestring `json:"type,omitempty"`UserDictionary *string `json:"user_dictionary,omitempty"`}KuromojiAnalyzer type.
funcNewKuromojiAnalyzer¶added inv8.5.0
func NewKuromojiAnalyzer() *KuromojiAnalyzer
NewKuromojiAnalyzer returns a KuromojiAnalyzer.
func (KuromojiAnalyzer)MarshalJSON¶added inv8.9.0
func (sKuromojiAnalyzer) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*KuromojiAnalyzer)UnmarshalJSON¶added inv8.9.0
func (s *KuromojiAnalyzer) UnmarshalJSON(data []byte)error
typeKuromojiIterationMarkCharFilter¶
type KuromojiIterationMarkCharFilter struct {NormalizeKanabool `json:"normalize_kana"`NormalizeKanjibool `json:"normalize_kanji"`Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}KuromojiIterationMarkCharFilter type.
funcNewKuromojiIterationMarkCharFilter¶added inv8.5.0
func NewKuromojiIterationMarkCharFilter() *KuromojiIterationMarkCharFilter
NewKuromojiIterationMarkCharFilter returns a KuromojiIterationMarkCharFilter.
func (KuromojiIterationMarkCharFilter)MarshalJSON¶added inv8.9.0
func (sKuromojiIterationMarkCharFilter) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*KuromojiIterationMarkCharFilter)UnmarshalJSON¶added inv8.7.1
func (s *KuromojiIterationMarkCharFilter) UnmarshalJSON(data []byte)error
typeKuromojiPartOfSpeechTokenFilter¶
type KuromojiPartOfSpeechTokenFilter struct {Stoptags []string `json:"stoptags"`Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}KuromojiPartOfSpeechTokenFilter type.
funcNewKuromojiPartOfSpeechTokenFilter¶added inv8.5.0
func NewKuromojiPartOfSpeechTokenFilter() *KuromojiPartOfSpeechTokenFilter
NewKuromojiPartOfSpeechTokenFilter returns a KuromojiPartOfSpeechTokenFilter.
func (KuromojiPartOfSpeechTokenFilter)MarshalJSON¶added inv8.9.0
func (sKuromojiPartOfSpeechTokenFilter) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*KuromojiPartOfSpeechTokenFilter)UnmarshalJSON¶added inv8.7.1
func (s *KuromojiPartOfSpeechTokenFilter) UnmarshalJSON(data []byte)error
typeKuromojiReadingFormTokenFilter¶
type KuromojiReadingFormTokenFilter struct {Typestring `json:"type,omitempty"`UseRomajibool `json:"use_romaji"`Version *string `json:"version,omitempty"`}KuromojiReadingFormTokenFilter type.
funcNewKuromojiReadingFormTokenFilter¶added inv8.5.0
func NewKuromojiReadingFormTokenFilter() *KuromojiReadingFormTokenFilter
NewKuromojiReadingFormTokenFilter returns a KuromojiReadingFormTokenFilter.
func (KuromojiReadingFormTokenFilter)MarshalJSON¶added inv8.9.0
func (sKuromojiReadingFormTokenFilter) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*KuromojiReadingFormTokenFilter)UnmarshalJSON¶added inv8.7.1
func (s *KuromojiReadingFormTokenFilter) UnmarshalJSON(data []byte)error
typeKuromojiStemmerTokenFilter¶
type KuromojiStemmerTokenFilter struct {MinimumLengthint `json:"minimum_length"`Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}KuromojiStemmerTokenFilter type.
funcNewKuromojiStemmerTokenFilter¶added inv8.5.0
func NewKuromojiStemmerTokenFilter() *KuromojiStemmerTokenFilter
NewKuromojiStemmerTokenFilter returns a KuromojiStemmerTokenFilter.
func (KuromojiStemmerTokenFilter)MarshalJSON¶added inv8.9.0
func (sKuromojiStemmerTokenFilter) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*KuromojiStemmerTokenFilter)UnmarshalJSON¶added inv8.7.1
func (s *KuromojiStemmerTokenFilter) UnmarshalJSON(data []byte)error
typeKuromojiTokenizer¶
type KuromojiTokenizer struct {DiscardCompoundToken *bool `json:"discard_compound_token,omitempty"`DiscardPunctuation *bool `json:"discard_punctuation,omitempty"`Modekuromojitokenizationmode.KuromojiTokenizationMode `json:"mode"`NbestCost *int `json:"nbest_cost,omitempty"`NbestExamples *string `json:"nbest_examples,omitempty"`Typestring `json:"type,omitempty"`UserDictionary *string `json:"user_dictionary,omitempty"`UserDictionaryRules []string `json:"user_dictionary_rules,omitempty"`Version *string `json:"version,omitempty"`}KuromojiTokenizer type.
funcNewKuromojiTokenizer¶added inv8.5.0
func NewKuromojiTokenizer() *KuromojiTokenizer
NewKuromojiTokenizer returns a KuromojiTokenizer.
func (KuromojiTokenizer)MarshalJSON¶added inv8.9.0
func (sKuromojiTokenizer) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*KuromojiTokenizer)UnmarshalJSON¶added inv8.7.1
func (s *KuromojiTokenizer) UnmarshalJSON(data []byte)error
typeLanguageContext¶
type LanguageContext struct {Contexts []string `json:"contexts"`Languagescriptlanguage.ScriptLanguage `json:"language"`}LanguageContext type.
funcNewLanguageContext¶added inv8.5.0
func NewLanguageContext() *LanguageContext
NewLanguageContext returns a LanguageContext.
typeLaplaceSmoothingModel¶
type LaplaceSmoothingModel struct {// Alpha A constant that is added to all counts to balance weights.AlphaFloat64 `json:"alpha"`}LaplaceSmoothingModel type.
funcNewLaplaceSmoothingModel¶added inv8.5.0
func NewLaplaceSmoothingModel() *LaplaceSmoothingModel
NewLaplaceSmoothingModel returns a LaplaceSmoothingModel.
func (*LaplaceSmoothingModel)UnmarshalJSON¶added inv8.7.1
func (s *LaplaceSmoothingModel) UnmarshalJSON(data []byte)error
typeLatLonGeoLocation¶
type LatLonGeoLocation struct {// Lat LatitudeLatFloat64 `json:"lat"`// Lon LongitudeLonFloat64 `json:"lon"`}LatLonGeoLocation type.
funcNewLatLonGeoLocation¶added inv8.5.0
func NewLatLonGeoLocation() *LatLonGeoLocation
NewLatLonGeoLocation returns a LatLonGeoLocation.
func (*LatLonGeoLocation)UnmarshalJSON¶added inv8.7.1
func (s *LatLonGeoLocation) UnmarshalJSON(data []byte)error
typeLatest¶
type Latest struct {// Sort Specifies the date field that is used to identify the latest documents.Sortstring `json:"sort"`// UniqueKey Specifies an array of one or more fields that are used to group the data.UniqueKey []string `json:"unique_key"`}Latest type.
func (*Latest)UnmarshalJSON¶added inv8.7.1
typeLatvianAnalyzer¶added inv8.16.0
type LatvianAnalyzer struct {StemExclusion []string `json:"stem_exclusion,omitempty"`StopwordsStopWords `json:"stopwords,omitempty"`StopwordsPath *string `json:"stopwords_path,omitempty"`Typestring `json:"type,omitempty"`}LatvianAnalyzer type.
funcNewLatvianAnalyzer¶added inv8.16.0
func NewLatvianAnalyzer() *LatvianAnalyzer
NewLatvianAnalyzer returns a LatvianAnalyzer.
func (LatvianAnalyzer)MarshalJSON¶added inv8.16.0
func (sLatvianAnalyzer) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*LatvianAnalyzer)UnmarshalJSON¶added inv8.16.0
func (s *LatvianAnalyzer) UnmarshalJSON(data []byte)error
typeLearningToRank¶added inv8.14.0
type LearningToRank struct {// ModelId The unique identifier of the trained model uploaded to ElasticsearchModelIdstring `json:"model_id"`// Params Named parameters to be passed to the query templates used for featureParams map[string]json.RawMessage `json:"params,omitempty"`}LearningToRank type.
funcNewLearningToRank¶added inv8.14.0
func NewLearningToRank() *LearningToRank
NewLearningToRank returns a LearningToRank.
func (*LearningToRank)UnmarshalJSON¶added inv8.14.0
func (s *LearningToRank) UnmarshalJSON(data []byte)error
typeLearningToRankConfig¶added inv8.18.0
type LearningToRankConfig struct {DefaultParams map[string]json.RawMessage `json:"default_params,omitempty"`FeatureExtractors []map[string]QueryFeatureExtractor `json:"feature_extractors,omitempty"`NumTopFeatureImportanceValuesint `json:"num_top_feature_importance_values"`}LearningToRankConfig type.
funcNewLearningToRankConfig¶added inv8.18.0
func NewLearningToRankConfig() *LearningToRankConfig
NewLearningToRankConfig returns a LearningToRankConfig.
func (*LearningToRankConfig)UnmarshalJSON¶added inv8.18.0
func (s *LearningToRankConfig) UnmarshalJSON(data []byte)error
typeLengthTokenFilter¶
type LengthTokenFilter struct {// Max Maximum character length of a token. Longer tokens are excluded from the// output. Defaults to `Integer.MAX_VALUE`, which is `2^31-1` or `2147483647`.Max *int `json:"max,omitempty"`// Min Minimum character length of a token. Shorter tokens are excluded from the// output. Defaults to `0`.Min *int `json:"min,omitempty"`Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}LengthTokenFilter type.
funcNewLengthTokenFilter¶added inv8.5.0
func NewLengthTokenFilter() *LengthTokenFilter
NewLengthTokenFilter returns a LengthTokenFilter.
func (LengthTokenFilter)MarshalJSON¶added inv8.9.0
func (sLengthTokenFilter) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*LengthTokenFilter)UnmarshalJSON¶added inv8.7.1
func (s *LengthTokenFilter) UnmarshalJSON(data []byte)error
typeLessThanValidation¶added inv8.15.0
type LessThanValidation struct {ConstraintFloat64 `json:"constraint"`Typestring `json:"type,omitempty"`}LessThanValidation type.
funcNewLessThanValidation¶added inv8.15.0
func NewLessThanValidation() *LessThanValidation
NewLessThanValidation returns a LessThanValidation.
func (LessThanValidation)MarshalJSON¶added inv8.15.0
func (sLessThanValidation) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*LessThanValidation)UnmarshalJSON¶added inv8.15.0
func (s *LessThanValidation) UnmarshalJSON(data []byte)error
typeLetterTokenizer¶
type LetterTokenizer struct {Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}LetterTokenizer type.
funcNewLetterTokenizer¶added inv8.5.0
func NewLetterTokenizer() *LetterTokenizer
NewLetterTokenizer returns a LetterTokenizer.
func (LetterTokenizer)MarshalJSON¶added inv8.9.0
func (sLetterTokenizer) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*LetterTokenizer)UnmarshalJSON¶added inv8.7.1
func (s *LetterTokenizer) UnmarshalJSON(data []byte)error
typeLicense¶
type License struct {ExpiryDateInMillisint64 `json:"expiry_date_in_millis"`IssueDateInMillisint64 `json:"issue_date_in_millis"`IssuedTostring `json:"issued_to"`Issuerstring `json:"issuer"`MaxNodes *int64 `json:"max_nodes,omitempty"`MaxResourceUnits *int64 `json:"max_resource_units,omitempty"`Signaturestring `json:"signature"`StartDateInMillis *int64 `json:"start_date_in_millis,omitempty"`Typelicensetype.LicenseType `json:"type"`Uidstring `json:"uid"`}License type.
func (*License)UnmarshalJSON¶added inv8.7.1
typeLicenseInformation¶
type LicenseInformation struct {ExpiryDateDateTime `json:"expiry_date,omitempty"`ExpiryDateInMillis *int64 `json:"expiry_date_in_millis,omitempty"`IssueDateDateTime `json:"issue_date"`IssueDateInMillisint64 `json:"issue_date_in_millis"`IssuedTostring `json:"issued_to"`Issuerstring `json:"issuer"`MaxNodes *int64 `json:"max_nodes,omitempty"`MaxResourceUnits *int `json:"max_resource_units,omitempty"`StartDateInMillisint64 `json:"start_date_in_millis"`Statuslicensestatus.LicenseStatus `json:"status"`Typelicensetype.LicenseType `json:"type"`Uidstring `json:"uid"`}LicenseInformation type.
funcNewLicenseInformation¶added inv8.5.0
func NewLicenseInformation() *LicenseInformation
NewLicenseInformation returns a LicenseInformation.
func (*LicenseInformation)UnmarshalJSON¶added inv8.7.1
func (s *LicenseInformation) UnmarshalJSON(data []byte)error
typeLifecycle¶
type Lifecycle struct {ModifiedDateDateTime `json:"modified_date"`PolicyIlmPolicy `json:"policy"`Versionint64 `json:"version"`}Lifecycle type.
func (*Lifecycle)UnmarshalJSON¶added inv8.7.1
typeLifecycleExplain¶
type LifecycleExplainany
LifecycleExplain holds the union for the following types:
LifecycleExplainManagedLifecycleExplainUnmanaged
typeLifecycleExplainManaged¶
type LifecycleExplainManaged struct {Action *string `json:"action,omitempty"`ActionTimeDateTime `json:"action_time,omitempty"`ActionTimeMillis *int64 `json:"action_time_millis,omitempty"`AgeDuration `json:"age,omitempty"`FailedStep *string `json:"failed_step,omitempty"`FailedStepRetryCount *int `json:"failed_step_retry_count,omitempty"`Indexstring `json:"index"`IndexCreationDateDateTime `json:"index_creation_date,omitempty"`IndexCreationDateMillis *int64 `json:"index_creation_date_millis,omitempty"`IsAutoRetryableError *bool `json:"is_auto_retryable_error,omitempty"`LifecycleDateDateTime `json:"lifecycle_date,omitempty"`LifecycleDateMillis *int64 `json:"lifecycle_date_millis,omitempty"`Managedbool `json:"managed,omitempty"`Phase *string `json:"phase,omitempty"`PhaseExecution *LifecycleExplainPhaseExecution `json:"phase_execution,omitempty"`PhaseTimeDateTime `json:"phase_time,omitempty"`PhaseTimeMillis *int64 `json:"phase_time_millis,omitempty"`Policy *string `json:"policy,omitempty"`PreviousStepInfo map[string]json.RawMessage `json:"previous_step_info,omitempty"`RepositoryName *string `json:"repository_name,omitempty"`ShrinkIndexName *string `json:"shrink_index_name,omitempty"`Skipbool `json:"skip"`SnapshotName *string `json:"snapshot_name,omitempty"`Step *string `json:"step,omitempty"`StepInfo map[string]json.RawMessage `json:"step_info,omitempty"`StepTimeDateTime `json:"step_time,omitempty"`StepTimeMillis *int64 `json:"step_time_millis,omitempty"`TimeSinceIndexCreationDuration `json:"time_since_index_creation,omitempty"`}LifecycleExplainManaged type.
funcNewLifecycleExplainManaged¶added inv8.5.0
func NewLifecycleExplainManaged() *LifecycleExplainManaged
NewLifecycleExplainManaged returns a LifecycleExplainManaged.
func (LifecycleExplainManaged)MarshalJSON¶added inv8.9.0
func (sLifecycleExplainManaged) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*LifecycleExplainManaged)UnmarshalJSON¶added inv8.7.1
func (s *LifecycleExplainManaged) UnmarshalJSON(data []byte)error
typeLifecycleExplainPhaseExecution¶
type LifecycleExplainPhaseExecution struct {ModifiedDateInMillisint64 `json:"modified_date_in_millis"`PhaseDefinition *Phase `json:"phase_definition,omitempty"`Policystring `json:"policy"`Versionint64 `json:"version"`}LifecycleExplainPhaseExecution type.
funcNewLifecycleExplainPhaseExecution¶added inv8.5.0
func NewLifecycleExplainPhaseExecution() *LifecycleExplainPhaseExecution
NewLifecycleExplainPhaseExecution returns a LifecycleExplainPhaseExecution.
func (*LifecycleExplainPhaseExecution)UnmarshalJSON¶added inv8.7.1
func (s *LifecycleExplainPhaseExecution) UnmarshalJSON(data []byte)error
typeLifecycleExplainUnmanaged¶
type LifecycleExplainUnmanaged struct {Indexstring `json:"index"`Managedbool `json:"managed,omitempty"`}LifecycleExplainUnmanaged type.
funcNewLifecycleExplainUnmanaged¶added inv8.5.0
func NewLifecycleExplainUnmanaged() *LifecycleExplainUnmanaged
NewLifecycleExplainUnmanaged returns a LifecycleExplainUnmanaged.
func (LifecycleExplainUnmanaged)MarshalJSON¶added inv8.9.0
func (sLifecycleExplainUnmanaged) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*LifecycleExplainUnmanaged)UnmarshalJSON¶added inv8.7.1
func (s *LifecycleExplainUnmanaged) UnmarshalJSON(data []byte)error
typeLikeDocument¶
type LikeDocument struct {// Doc A document not present in the index.Docjson.RawMessage `json:"doc,omitempty"`Fields []string `json:"fields,omitempty"`// Id_ ID of a document.Id_ *string `json:"_id,omitempty"`// Index_ Index of a document.Index_ *string `json:"_index,omitempty"`// PerFieldAnalyzer Overrides the default analyzer.PerFieldAnalyzer map[string]string `json:"per_field_analyzer,omitempty"`Routing *string `json:"routing,omitempty"`Version *int64 `json:"version,omitempty"`VersionType *versiontype.VersionType `json:"version_type,omitempty"`}LikeDocument type.
funcNewLikeDocument¶added inv8.5.0
func NewLikeDocument() *LikeDocument
NewLikeDocument returns a LikeDocument.
func (*LikeDocument)UnmarshalJSON¶added inv8.7.1
func (s *LikeDocument) UnmarshalJSON(data []byte)error
typeLimitTokenCountTokenFilter¶
type LimitTokenCountTokenFilter struct {// ConsumeAllTokens If `true`, the limit filter exhausts the token stream, even if the// `max_token_count` has already been reached. Defaults to `false`.ConsumeAllTokens *bool `json:"consume_all_tokens,omitempty"`// MaxTokenCount Maximum number of tokens to keep. Once this limit is reached, any remaining// tokens are excluded from the output. Defaults to `1`.MaxTokenCountStringifiedinteger `json:"max_token_count,omitempty"`Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}LimitTokenCountTokenFilter type.
funcNewLimitTokenCountTokenFilter¶added inv8.5.0
func NewLimitTokenCountTokenFilter() *LimitTokenCountTokenFilter
NewLimitTokenCountTokenFilter returns a LimitTokenCountTokenFilter.
func (LimitTokenCountTokenFilter)MarshalJSON¶added inv8.9.0
func (sLimitTokenCountTokenFilter) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*LimitTokenCountTokenFilter)UnmarshalJSON¶added inv8.7.1
func (s *LimitTokenCountTokenFilter) UnmarshalJSON(data []byte)error
typeLimits¶
type Limits struct {EffectiveMaxModelMemoryLimitByteSize `json:"effective_max_model_memory_limit,omitempty"`MaxModelMemoryLimitByteSize `json:"max_model_memory_limit,omitempty"`MaxSingleMlNodeProcessors *int `json:"max_single_ml_node_processors,omitempty"`TotalMlMemoryByteSize `json:"total_ml_memory"`TotalMlProcessors *int `json:"total_ml_processors,omitempty"`}Limits type.
func (*Limits)UnmarshalJSON¶added inv8.9.0
typeLinearInterpolationSmoothingModel¶
type LinearInterpolationSmoothingModel struct {BigramLambdaFloat64 `json:"bigram_lambda"`TrigramLambdaFloat64 `json:"trigram_lambda"`UnigramLambdaFloat64 `json:"unigram_lambda"`}LinearInterpolationSmoothingModel type.
funcNewLinearInterpolationSmoothingModel¶added inv8.5.0
func NewLinearInterpolationSmoothingModel() *LinearInterpolationSmoothingModel
NewLinearInterpolationSmoothingModel returns a LinearInterpolationSmoothingModel.
func (*LinearInterpolationSmoothingModel)UnmarshalJSON¶added inv8.7.1
func (s *LinearInterpolationSmoothingModel) UnmarshalJSON(data []byte)error
typeLinearMovingAverageAggregation¶
type LinearMovingAverageAggregation struct {// BucketsPath Path to the buckets that contain one set of values to correlate.BucketsPathBucketsPath `json:"buckets_path,omitempty"`// Format `DecimalFormat` pattern for the output value.// If specified, the formatted value is returned in the aggregation’s// `value_as_string` property.Format *string `json:"format,omitempty"`// GapPolicy Policy to apply when gaps are found in the data.GapPolicy *gappolicy.GapPolicy `json:"gap_policy,omitempty"`Minimize *bool `json:"minimize,omitempty"`Modelstring `json:"model,omitempty"`Predict *int `json:"predict,omitempty"`SettingsEmptyObject `json:"settings"`Window *int `json:"window,omitempty"`}LinearMovingAverageAggregation type.
funcNewLinearMovingAverageAggregation¶added inv8.5.0
func NewLinearMovingAverageAggregation() *LinearMovingAverageAggregation
NewLinearMovingAverageAggregation returns a LinearMovingAverageAggregation.
func (LinearMovingAverageAggregation)MarshalJSON¶added inv8.9.0
func (sLinearMovingAverageAggregation) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*LinearMovingAverageAggregation)UnmarshalJSON¶added inv8.7.0
func (s *LinearMovingAverageAggregation) UnmarshalJSON(data []byte)error
typeLinearRetriever¶added inv8.18.1
type LinearRetriever struct {Fields []string `json:"fields,omitempty"`// Filter Query to filter the documents that can match.Filter []Query `json:"filter,omitempty"`// MinScore Minimum _score for matching documents. Documents with a lower _score are not// included in the top documents.MinScore *float32 `json:"min_score,omitempty"`// Name_ Retriever name.Name_ *string `json:"_name,omitempty"`Normalizer *scorenormalizer.ScoreNormalizer `json:"normalizer,omitempty"`Query *string `json:"query,omitempty"`RankWindowSize *int `json:"rank_window_size,omitempty"`// Retrievers Inner retrievers.Retrievers []InnerRetriever `json:"retrievers,omitempty"`}LinearRetriever type.
funcNewLinearRetriever¶added inv8.18.1
func NewLinearRetriever() *LinearRetriever
NewLinearRetriever returns a LinearRetriever.
func (*LinearRetriever)UnmarshalJSON¶added inv8.18.1
func (s *LinearRetriever) UnmarshalJSON(data []byte)error
typeListTypeValidation¶added inv8.15.0
type ListTypeValidation struct {Constraintstring `json:"constraint"`Typestring `json:"type,omitempty"`}ListTypeValidation type.
funcNewListTypeValidation¶added inv8.15.0
func NewListTypeValidation() *ListTypeValidation
NewListTypeValidation returns a ListTypeValidation.
func (ListTypeValidation)MarshalJSON¶added inv8.15.0
func (sListTypeValidation) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*ListTypeValidation)UnmarshalJSON¶added inv8.15.0
func (s *ListTypeValidation) UnmarshalJSON(data []byte)error
typeLithuanianAnalyzer¶added inv8.16.0
type LithuanianAnalyzer struct {StemExclusion []string `json:"stem_exclusion,omitempty"`StopwordsStopWords `json:"stopwords,omitempty"`StopwordsPath *string `json:"stopwords_path,omitempty"`Typestring `json:"type,omitempty"`}LithuanianAnalyzer type.
funcNewLithuanianAnalyzer¶added inv8.16.0
func NewLithuanianAnalyzer() *LithuanianAnalyzer
NewLithuanianAnalyzer returns a LithuanianAnalyzer.
func (LithuanianAnalyzer)MarshalJSON¶added inv8.16.0
func (sLithuanianAnalyzer) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*LithuanianAnalyzer)UnmarshalJSON¶added inv8.16.0
func (s *LithuanianAnalyzer) UnmarshalJSON(data []byte)error
typeLocal¶added inv8.18.0
type Local struct {Typestring `json:"type"`}Local type.
func (*Local)UnmarshalJSON¶added inv8.18.0
typeLoggingAction¶
type LoggingAction struct {Category *string `json:"category,omitempty"`Level *string `json:"level,omitempty"`Textstring `json:"text"`}LoggingAction type.
funcNewLoggingAction¶added inv8.5.0
func NewLoggingAction() *LoggingAction
NewLoggingAction returns a LoggingAction.
func (*LoggingAction)UnmarshalJSON¶added inv8.9.0
func (s *LoggingAction) UnmarshalJSON(data []byte)error
typeLoggingResult¶
type LoggingResult struct {LoggedTextstring `json:"logged_text"`}LoggingResult type.
funcNewLoggingResult¶added inv8.5.0
func NewLoggingResult() *LoggingResult
NewLoggingResult returns a LoggingResult.
func (*LoggingResult)UnmarshalJSON¶added inv8.9.0
func (s *LoggingResult) UnmarshalJSON(data []byte)error
typeLogstashPipeline¶added inv8.5.0
type LogstashPipeline struct {// Description A description of the pipeline.// This description is not used by Elasticsearch or Logstash.Descriptionstring `json:"description"`// LastModified The date the pipeline was last updated.// It must be in the `yyyy-MM-dd'T'HH:mm:ss.SSSZZ` strict_date_time format.LastModifiedDateTime `json:"last_modified"`// Pipeline The configuration for the pipeline.Pipelinestring `json:"pipeline"`// PipelineMetadata Optional metadata about the pipeline, which can have any contents.// This metadata is not generated or used by Elasticsearch or Logstash.PipelineMetadataPipelineMetadata `json:"pipeline_metadata"`// PipelineSettings Settings for the pipeline.// It supports only flat keys in dot notation.PipelineSettingsPipelineSettings `json:"pipeline_settings"`// Username The user who last updated the pipeline.Usernamestring `json:"username"`}LogstashPipeline type.
funcNewLogstashPipeline¶added inv8.5.0
func NewLogstashPipeline() *LogstashPipeline
NewLogstashPipeline returns a LogstashPipeline.
func (*LogstashPipeline)UnmarshalJSON¶added inv8.7.1
func (s *LogstashPipeline) UnmarshalJSON(data []byte)error
typeLongNumberProperty¶
type LongNumberProperty struct {Boost *Float64 `json:"boost,omitempty"`Coerce *bool `json:"coerce,omitempty"`CopyTo []string `json:"copy_to,omitempty"`DocValues *bool `json:"doc_values,omitempty"`Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`Fields map[string]Property `json:"fields,omitempty"`IgnoreAbove *int `json:"ignore_above,omitempty"`IgnoreMalformed *bool `json:"ignore_malformed,omitempty"`Index *bool `json:"index,omitempty"`// Meta Metadata about the field.Meta map[string]string `json:"meta,omitempty"`NullValue *int64 `json:"null_value,omitempty"`OnScriptError *onscripterror.OnScriptError `json:"on_script_error,omitempty"`Properties map[string]Property `json:"properties,omitempty"`Script *Script `json:"script,omitempty"`Store *bool `json:"store,omitempty"`SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`// TimeSeriesDimension For internal use by Elastic only. Marks the field as a time series dimension.// Defaults to false.TimeSeriesDimension *bool `json:"time_series_dimension,omitempty"`// TimeSeriesMetric For internal use by Elastic only. Marks the field as a time series dimension.// Defaults to false.TimeSeriesMetric *timeseriesmetrictype.TimeSeriesMetricType `json:"time_series_metric,omitempty"`Typestring `json:"type,omitempty"`}LongNumberProperty type.
funcNewLongNumberProperty¶added inv8.5.0
func NewLongNumberProperty() *LongNumberProperty
NewLongNumberProperty returns a LongNumberProperty.
func (LongNumberProperty)MarshalJSON¶added inv8.9.0
func (sLongNumberProperty) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*LongNumberProperty)UnmarshalJSON¶added inv8.7.0
func (s *LongNumberProperty) UnmarshalJSON(data []byte)error
typeLongRangeProperty¶
type LongRangeProperty struct {Boost *Float64 `json:"boost,omitempty"`Coerce *bool `json:"coerce,omitempty"`CopyTo []string `json:"copy_to,omitempty"`DocValues *bool `json:"doc_values,omitempty"`Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`Fields map[string]Property `json:"fields,omitempty"`IgnoreAbove *int `json:"ignore_above,omitempty"`Index *bool `json:"index,omitempty"`// Meta Metadata about the field.Meta map[string]string `json:"meta,omitempty"`Properties map[string]Property `json:"properties,omitempty"`Store *bool `json:"store,omitempty"`SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`Typestring `json:"type,omitempty"`}LongRangeProperty type.
funcNewLongRangeProperty¶added inv8.5.0
func NewLongRangeProperty() *LongRangeProperty
NewLongRangeProperty returns a LongRangeProperty.
func (LongRangeProperty)MarshalJSON¶added inv8.9.0
func (sLongRangeProperty) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*LongRangeProperty)UnmarshalJSON¶added inv8.7.0
func (s *LongRangeProperty) UnmarshalJSON(data []byte)error
typeLongRareTermsAggregate¶
type LongRareTermsAggregate struct {BucketsBucketsLongRareTermsBucket `json:"buckets"`MetaMetadata `json:"meta,omitempty"`}LongRareTermsAggregate type.
funcNewLongRareTermsAggregate¶added inv8.5.0
func NewLongRareTermsAggregate() *LongRareTermsAggregate
NewLongRareTermsAggregate returns a LongRareTermsAggregate.
func (*LongRareTermsAggregate)UnmarshalJSON¶added inv8.7.0
func (s *LongRareTermsAggregate) UnmarshalJSON(data []byte)error
typeLongRareTermsBucket¶
type LongRareTermsBucket struct {Aggregations map[string]Aggregate `json:"-"`DocCountint64 `json:"doc_count"`Keyint64 `json:"key"`KeyAsString *string `json:"key_as_string,omitempty"`}LongRareTermsBucket type.
funcNewLongRareTermsBucket¶added inv8.5.0
func NewLongRareTermsBucket() *LongRareTermsBucket
NewLongRareTermsBucket returns a LongRareTermsBucket.
func (LongRareTermsBucket)MarshalJSON¶
func (sLongRareTermsBucket) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
func (*LongRareTermsBucket)UnmarshalJSON¶added inv8.7.0
func (s *LongRareTermsBucket) UnmarshalJSON(data []byte)error
typeLongTermsAggregate¶
type LongTermsAggregate struct {BucketsBucketsLongTermsBucket `json:"buckets"`DocCountErrorUpperBound *int64 `json:"doc_count_error_upper_bound,omitempty"`MetaMetadata `json:"meta,omitempty"`SumOtherDocCount *int64 `json:"sum_other_doc_count,omitempty"`}LongTermsAggregate type.
funcNewLongTermsAggregate¶added inv8.5.0
func NewLongTermsAggregate() *LongTermsAggregate
NewLongTermsAggregate returns a LongTermsAggregate.
func (*LongTermsAggregate)UnmarshalJSON¶added inv8.7.0
func (s *LongTermsAggregate) UnmarshalJSON(data []byte)error
typeLongTermsBucket¶
type LongTermsBucket struct {Aggregations map[string]Aggregate `json:"-"`DocCountint64 `json:"doc_count"`DocCountErrorUpperBound *int64 `json:"doc_count_error_upper_bound,omitempty"`Keyint64 `json:"key"`KeyAsString *string `json:"key_as_string,omitempty"`}LongTermsBucket type.
funcNewLongTermsBucket¶added inv8.5.0
func NewLongTermsBucket() *LongTermsBucket
NewLongTermsBucket returns a LongTermsBucket.
func (LongTermsBucket)MarshalJSON¶
func (sLongTermsBucket) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
func (*LongTermsBucket)UnmarshalJSON¶added inv8.7.0
func (s *LongTermsBucket) UnmarshalJSON(data []byte)error
typeLowercaseNormalizer¶
type LowercaseNormalizer struct {Typestring `json:"type,omitempty"`}LowercaseNormalizer type.
funcNewLowercaseNormalizer¶added inv8.5.0
func NewLowercaseNormalizer() *LowercaseNormalizer
NewLowercaseNormalizer returns a LowercaseNormalizer.
func (LowercaseNormalizer)MarshalJSON¶added inv8.9.0
func (sLowercaseNormalizer) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
typeLowercaseProcessor¶
type LowercaseProcessor struct {// Description Description of the processor.// Useful for describing the purpose of the processor or its configuration.Description *string `json:"description,omitempty"`// Field The field to make lowercase.Fieldstring `json:"field"`// If Conditionally execute the processor.If *string `json:"if,omitempty"`// IgnoreFailure Ignore failures for the processor.IgnoreFailure *bool `json:"ignore_failure,omitempty"`// IgnoreMissing If `true` and `field` does not exist or is `null`, the processor quietly// exits without modifying the document.IgnoreMissing *bool `json:"ignore_missing,omitempty"`// OnFailure Handle failures for the processor.OnFailure []ProcessorContainer `json:"on_failure,omitempty"`// Tag Identifier for the processor.// Useful for debugging and metrics.Tag *string `json:"tag,omitempty"`// TargetField The field to assign the converted value to.// By default, the field is updated in-place.TargetField *string `json:"target_field,omitempty"`}LowercaseProcessor type.
funcNewLowercaseProcessor¶added inv8.5.0
func NewLowercaseProcessor() *LowercaseProcessor
NewLowercaseProcessor returns a LowercaseProcessor.
func (*LowercaseProcessor)UnmarshalJSON¶added inv8.7.1
func (s *LowercaseProcessor) UnmarshalJSON(data []byte)error
typeLowercaseTokenFilter¶
type LowercaseTokenFilter struct {// Language Language-specific lowercase token filter to use.Language *lowercasetokenfilterlanguages.LowercaseTokenFilterLanguages `json:"language,omitempty"`Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}LowercaseTokenFilter type.
funcNewLowercaseTokenFilter¶added inv8.5.0
func NewLowercaseTokenFilter() *LowercaseTokenFilter
NewLowercaseTokenFilter returns a LowercaseTokenFilter.
func (LowercaseTokenFilter)MarshalJSON¶added inv8.9.0
func (sLowercaseTokenFilter) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*LowercaseTokenFilter)UnmarshalJSON¶added inv8.7.1
func (s *LowercaseTokenFilter) UnmarshalJSON(data []byte)error
typeLowercaseTokenizer¶
type LowercaseTokenizer struct {Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}LowercaseTokenizer type.
funcNewLowercaseTokenizer¶added inv8.5.0
func NewLowercaseTokenizer() *LowercaseTokenizer
NewLowercaseTokenizer returns a LowercaseTokenizer.
func (LowercaseTokenizer)MarshalJSON¶added inv8.9.0
func (sLowercaseTokenizer) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*LowercaseTokenizer)UnmarshalJSON¶added inv8.7.1
func (s *LowercaseTokenizer) UnmarshalJSON(data []byte)error
typeMLDatafeed¶added inv8.5.0
type MLDatafeed struct {Aggregations map[string]Aggregations `json:"aggregations,omitempty"`// Authorization The security privileges that the datafeed uses to run its queries. If Elastic// Stack security features were disabled at the time of the most recent update// to the datafeed, this property is omitted.Authorization *DatafeedAuthorization `json:"authorization,omitempty"`ChunkingConfig *ChunkingConfig `json:"chunking_config,omitempty"`DatafeedIdstring `json:"datafeed_id"`DelayedDataCheckConfigDelayedDataCheckConfig `json:"delayed_data_check_config"`FrequencyDuration `json:"frequency,omitempty"`Indexes []string `json:"indexes,omitempty"`Indices []string `json:"indices"`IndicesOptions *IndicesOptions `json:"indices_options,omitempty"`JobIdstring `json:"job_id"`MaxEmptySearches *int `json:"max_empty_searches,omitempty"`QueryQuery `json:"query"`QueryDelayDuration `json:"query_delay,omitempty"`RuntimeMappingsRuntimeFields `json:"runtime_mappings,omitempty"`ScriptFields map[string]ScriptField `json:"script_fields,omitempty"`ScrollSize *int `json:"scroll_size,omitempty"`}MLDatafeed type.
func (*MLDatafeed)UnmarshalJSON¶added inv8.7.1
func (s *MLDatafeed) UnmarshalJSON(data []byte)error
typeMLFilter¶added inv8.5.0
type MLFilter struct {// Description A description of the filter.Description *string `json:"description,omitempty"`// FilterId A string that uniquely identifies a filter.FilterIdstring `json:"filter_id"`// Items An array of strings which is the filter item list.Items []string `json:"items"`}MLFilter type.
func (*MLFilter)UnmarshalJSON¶added inv8.7.1
typeMTermVectorsOperation¶added inv8.5.0
type MTermVectorsOperation struct {// Doc An artificial document (a document not present in the index) for which you// want to retrieve term vectors.Docjson.RawMessage `json:"doc,omitempty"`// FieldStatistics If `true`, the response includes the document count, sum of document// frequencies, and sum of total term frequencies.FieldStatistics *bool `json:"field_statistics,omitempty"`// Fields Comma-separated list or wildcard expressions of fields to include in the// statistics.// Used as the default list unless a specific field list is provided in the// `completion_fields` or `fielddata_fields` parameters.Fields []string `json:"fields,omitempty"`// Filter Filter terms based on their tf-idf scores.Filter *TermVectorsFilter `json:"filter,omitempty"`// Id_ The ID of the document.Id_ *string `json:"_id,omitempty"`// Index_ The index of the document.Index_ *string `json:"_index,omitempty"`// Offsets If `true`, the response includes term offsets.Offsets *bool `json:"offsets,omitempty"`// Payloads If `true`, the response includes term payloads.Payloads *bool `json:"payloads,omitempty"`// Positions If `true`, the response includes term positions.Positions *bool `json:"positions,omitempty"`// Routing Custom value used to route operations to a specific shard.Routing *string `json:"routing,omitempty"`// TermStatistics If true, the response includes term frequency and document frequency.TermStatistics *bool `json:"term_statistics,omitempty"`// Version If `true`, returns the document version as part of a hit.Version *int64 `json:"version,omitempty"`// VersionType Specific version type.VersionType *versiontype.VersionType `json:"version_type,omitempty"`}MTermVectorsOperation type.
funcNewMTermVectorsOperation¶added inv8.5.0
func NewMTermVectorsOperation() *MTermVectorsOperation
NewMTermVectorsOperation returns a MTermVectorsOperation.
func (*MTermVectorsOperation)UnmarshalJSON¶added inv8.7.1
func (s *MTermVectorsOperation) UnmarshalJSON(data []byte)error
typeMachineLearning¶
type MachineLearning struct {Availablebool `json:"available"`DataFrameAnalyticsJobsMlDataFrameAnalyticsJobs `json:"data_frame_analytics_jobs"`Datafeeds map[string]XpackDatafeed `json:"datafeeds"`Enabledbool `json:"enabled"`InferenceMlInference `json:"inference"`// Jobs Job usage statistics. The `_all` entry is always present and gathers// statistics for all jobs.Jobs map[string]JobUsage `json:"jobs"`NodeCountint `json:"node_count"`}MachineLearning type.
funcNewMachineLearning¶added inv8.5.0
func NewMachineLearning() *MachineLearning
NewMachineLearning returns a MachineLearning.
func (*MachineLearning)UnmarshalJSON¶added inv8.7.1
func (s *MachineLearning) UnmarshalJSON(data []byte)error
typeManageUserPrivileges¶
type ManageUserPrivileges struct {Applications []string `json:"applications"`}ManageUserPrivileges type.
funcNewManageUserPrivileges¶added inv8.5.0
func NewManageUserPrivileges() *ManageUserPrivileges
NewManageUserPrivileges returns a ManageUserPrivileges.
typeMappingCharFilter¶
type MappingCharFilter struct {Mappings []string `json:"mappings,omitempty"`MappingsPath *string `json:"mappings_path,omitempty"`Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}MappingCharFilter type.
funcNewMappingCharFilter¶added inv8.5.0
func NewMappingCharFilter() *MappingCharFilter
NewMappingCharFilter returns a MappingCharFilter.
func (MappingCharFilter)MarshalJSON¶added inv8.9.0
func (sMappingCharFilter) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*MappingCharFilter)UnmarshalJSON¶added inv8.7.1
func (s *MappingCharFilter) UnmarshalJSON(data []byte)error
typeMappingLimitSettings¶
type MappingLimitSettings struct {Coerce *bool `json:"coerce,omitempty"`Depth *MappingLimitSettingsDepth `json:"depth,omitempty"`DimensionFields *MappingLimitSettingsDimensionFields `json:"dimension_fields,omitempty"`FieldNameLength *MappingLimitSettingsFieldNameLength `json:"field_name_length,omitempty"`IgnoreMalformed *string `json:"ignore_malformed,omitempty"`NestedFields *MappingLimitSettingsNestedFields `json:"nested_fields,omitempty"`NestedObjects *MappingLimitSettingsNestedObjects `json:"nested_objects,omitempty"`Source *MappingLimitSettingsSourceFields `json:"source,omitempty"`TotalFields *MappingLimitSettingsTotalFields `json:"total_fields,omitempty"`}MappingLimitSettings type.
funcNewMappingLimitSettings¶added inv8.5.0
func NewMappingLimitSettings() *MappingLimitSettings
NewMappingLimitSettings returns a MappingLimitSettings.
func (*MappingLimitSettings)UnmarshalJSON¶added inv8.7.1
func (s *MappingLimitSettings) UnmarshalJSON(data []byte)error
typeMappingLimitSettingsDepth¶
type MappingLimitSettingsDepth struct {// Limit The maximum depth for a field, which is measured as the number of inner// objects. For instance, if all fields are defined// at the root object level, then the depth is 1. If there is one object// mapping, then the depth is 2, etc.Limit *int64 `json:"limit,omitempty"`}MappingLimitSettingsDepth type.
funcNewMappingLimitSettingsDepth¶added inv8.5.0
func NewMappingLimitSettingsDepth() *MappingLimitSettingsDepth
NewMappingLimitSettingsDepth returns a MappingLimitSettingsDepth.
func (*MappingLimitSettingsDepth)UnmarshalJSON¶added inv8.7.1
func (s *MappingLimitSettingsDepth) UnmarshalJSON(data []byte)error
typeMappingLimitSettingsDimensionFields¶
type MappingLimitSettingsDimensionFields struct {// Limit [preview] This functionality is in technical preview and may be changed or// removed in a future release.// Elastic will work to fix any issues, but features in technical preview are// not subject to the support SLA of official GA features.Limit *int64 `json:"limit,omitempty"`}MappingLimitSettingsDimensionFields type.
funcNewMappingLimitSettingsDimensionFields¶added inv8.5.0
func NewMappingLimitSettingsDimensionFields() *MappingLimitSettingsDimensionFields
NewMappingLimitSettingsDimensionFields returns a MappingLimitSettingsDimensionFields.
func (*MappingLimitSettingsDimensionFields)UnmarshalJSON¶added inv8.7.1
func (s *MappingLimitSettingsDimensionFields) UnmarshalJSON(data []byte)error
typeMappingLimitSettingsFieldNameLength¶
type MappingLimitSettingsFieldNameLength struct {// Limit Setting for the maximum length of a field name. This setting isn’t really// something that addresses mappings explosion but// might still be useful if you want to limit the field length. It usually// shouldn’t be necessary to set this setting. The// default is okay unless a user starts to add a huge number of fields with// really long names. Default is `Long.MAX_VALUE` (no limit).Limit *int64 `json:"limit,omitempty"`}MappingLimitSettingsFieldNameLength type.
funcNewMappingLimitSettingsFieldNameLength¶added inv8.5.0
func NewMappingLimitSettingsFieldNameLength() *MappingLimitSettingsFieldNameLength
NewMappingLimitSettingsFieldNameLength returns a MappingLimitSettingsFieldNameLength.
func (*MappingLimitSettingsFieldNameLength)UnmarshalJSON¶added inv8.7.1
func (s *MappingLimitSettingsFieldNameLength) UnmarshalJSON(data []byte)error
typeMappingLimitSettingsNestedFields¶
type MappingLimitSettingsNestedFields struct {// Limit The maximum number of distinct nested mappings in an index. The nested type// should only be used in special cases, when// arrays of objects need to be queried independently of each other. To// safeguard against poorly designed mappings, this// setting limits the number of unique nested types per index.Limit *int64 `json:"limit,omitempty"`}MappingLimitSettingsNestedFields type.
funcNewMappingLimitSettingsNestedFields¶added inv8.5.0
func NewMappingLimitSettingsNestedFields() *MappingLimitSettingsNestedFields
NewMappingLimitSettingsNestedFields returns a MappingLimitSettingsNestedFields.
func (*MappingLimitSettingsNestedFields)UnmarshalJSON¶added inv8.7.1
func (s *MappingLimitSettingsNestedFields) UnmarshalJSON(data []byte)error
typeMappingLimitSettingsNestedObjects¶
type MappingLimitSettingsNestedObjects struct {// Limit The maximum number of nested JSON objects that a single document can contain// across all nested types. This limit helps// to prevent out of memory errors when a document contains too many nested// objects.Limit *int64 `json:"limit,omitempty"`}MappingLimitSettingsNestedObjects type.
funcNewMappingLimitSettingsNestedObjects¶added inv8.5.0
func NewMappingLimitSettingsNestedObjects() *MappingLimitSettingsNestedObjects
NewMappingLimitSettingsNestedObjects returns a MappingLimitSettingsNestedObjects.
func (*MappingLimitSettingsNestedObjects)UnmarshalJSON¶added inv8.7.1
func (s *MappingLimitSettingsNestedObjects) UnmarshalJSON(data []byte)error
typeMappingLimitSettingsSourceFields¶added inv8.18.0
type MappingLimitSettingsSourceFields struct {Modesourcemode.SourceMode `json:"mode"`}MappingLimitSettingsSourceFields type.
funcNewMappingLimitSettingsSourceFields¶added inv8.18.0
func NewMappingLimitSettingsSourceFields() *MappingLimitSettingsSourceFields
NewMappingLimitSettingsSourceFields returns a MappingLimitSettingsSourceFields.
typeMappingLimitSettingsTotalFields¶
type MappingLimitSettingsTotalFields struct {// IgnoreDynamicBeyondLimit This setting determines what happens when a dynamically mapped field would// exceed the total fields limit. When set// to false (the default), the index request of the document that tries to add a// dynamic field to the mapping will fail// with the message Limit of total fields [X] has been exceeded. When set to// true, the index request will not fail.// Instead, fields that would exceed the limit are not added to the mapping,// similar to dynamic: false.// The fields that were not added to the mapping will be added to the _ignored// field.IgnoreDynamicBeyondLimit *string `json:"ignore_dynamic_beyond_limit,omitempty"`// Limit The maximum number of fields in an index. Field and object mappings, as well// as field aliases count towards this limit.// The limit is in place to prevent mappings and searches from becoming too// large. Higher values can lead to performance// degradations and memory issues, especially in clusters with a high load or// few resources.Limit *string `json:"limit,omitempty"`}MappingLimitSettingsTotalFields type.
funcNewMappingLimitSettingsTotalFields¶added inv8.5.0
func NewMappingLimitSettingsTotalFields() *MappingLimitSettingsTotalFields
NewMappingLimitSettingsTotalFields returns a MappingLimitSettingsTotalFields.
func (*MappingLimitSettingsTotalFields)UnmarshalJSON¶added inv8.7.1
func (s *MappingLimitSettingsTotalFields) UnmarshalJSON(data []byte)error
typeMappingStats¶added inv8.7.0
type MappingStats struct {TotalCountint64 `json:"total_count"`TotalEstimatedOverheadByteSize `json:"total_estimated_overhead,omitempty"`TotalEstimatedOverheadInBytesint64 `json:"total_estimated_overhead_in_bytes"`}MappingStats type.
funcNewMappingStats¶added inv8.7.0
func NewMappingStats() *MappingStats
NewMappingStats returns a MappingStats.
func (*MappingStats)UnmarshalJSON¶added inv8.7.1
func (s *MappingStats) UnmarshalJSON(data []byte)error
typeMasterIsStableIndicator¶added inv8.7.1
type MasterIsStableIndicator struct {Details *MasterIsStableIndicatorDetails `json:"details,omitempty"`Diagnosis []Diagnosis `json:"diagnosis,omitempty"`Impacts []Impact `json:"impacts,omitempty"`Statusindicatorhealthstatus.IndicatorHealthStatus `json:"status"`Symptomstring `json:"symptom"`}MasterIsStableIndicator type.
funcNewMasterIsStableIndicator¶added inv8.7.1
func NewMasterIsStableIndicator() *MasterIsStableIndicator
NewMasterIsStableIndicator returns a MasterIsStableIndicator.
func (*MasterIsStableIndicator)UnmarshalJSON¶added inv8.9.0
func (s *MasterIsStableIndicator) UnmarshalJSON(data []byte)error
typeMasterIsStableIndicatorClusterFormationNode¶added inv8.7.1
type MasterIsStableIndicatorClusterFormationNode struct {ClusterFormationMessagestring `json:"cluster_formation_message"`Name *string `json:"name,omitempty"`NodeIdstring `json:"node_id"`}MasterIsStableIndicatorClusterFormationNode type.
funcNewMasterIsStableIndicatorClusterFormationNode¶added inv8.7.1
func NewMasterIsStableIndicatorClusterFormationNode() *MasterIsStableIndicatorClusterFormationNode
NewMasterIsStableIndicatorClusterFormationNode returns a MasterIsStableIndicatorClusterFormationNode.
func (*MasterIsStableIndicatorClusterFormationNode)UnmarshalJSON¶added inv8.9.0
func (s *MasterIsStableIndicatorClusterFormationNode) UnmarshalJSON(data []byte)error
typeMasterIsStableIndicatorDetails¶added inv8.7.1
type MasterIsStableIndicatorDetails struct {ClusterFormation []MasterIsStableIndicatorClusterFormationNode `json:"cluster_formation,omitempty"`CurrentMasterIndicatorNode `json:"current_master"`ExceptionFetchingHistory *MasterIsStableIndicatorExceptionFetchingHistory `json:"exception_fetching_history,omitempty"`RecentMasters []IndicatorNode `json:"recent_masters"`}MasterIsStableIndicatorDetails type.
funcNewMasterIsStableIndicatorDetails¶added inv8.7.1
func NewMasterIsStableIndicatorDetails() *MasterIsStableIndicatorDetails
NewMasterIsStableIndicatorDetails returns a MasterIsStableIndicatorDetails.
typeMasterIsStableIndicatorExceptionFetchingHistory¶added inv8.7.1
type MasterIsStableIndicatorExceptionFetchingHistory struct {Messagestring `json:"message"`StackTracestring `json:"stack_trace"`}MasterIsStableIndicatorExceptionFetchingHistory type.
funcNewMasterIsStableIndicatorExceptionFetchingHistory¶added inv8.7.1
func NewMasterIsStableIndicatorExceptionFetchingHistory() *MasterIsStableIndicatorExceptionFetchingHistory
NewMasterIsStableIndicatorExceptionFetchingHistory returns a MasterIsStableIndicatorExceptionFetchingHistory.
func (*MasterIsStableIndicatorExceptionFetchingHistory)UnmarshalJSON¶added inv8.9.0
func (s *MasterIsStableIndicatorExceptionFetchingHistory) UnmarshalJSON(data []byte)error
typeMasterRecord¶
type MasterRecord struct {// Host host nameHost *string `json:"host,omitempty"`// Id node idId *string `json:"id,omitempty"`// Ip ip addressIp *string `json:"ip,omitempty"`// Node node nameNode *string `json:"node,omitempty"`}MasterRecord type.
funcNewMasterRecord¶added inv8.5.0
func NewMasterRecord() *MasterRecord
NewMasterRecord returns a MasterRecord.
func (*MasterRecord)UnmarshalJSON¶added inv8.9.0
func (s *MasterRecord) UnmarshalJSON(data []byte)error
typeMatchAllQuery¶
type MatchAllQuery struct {// Boost Floating point number used to decrease or increase the relevance scores of// the query.// Boost values are relative to the default value of 1.0.// A boost value between 0 and 1.0 decreases the relevance score.// A value greater than 1.0 increases the relevance score.Boost *float32 `json:"boost,omitempty"`QueryName_ *string `json:"_name,omitempty"`}MatchAllQuery type.
funcNewMatchAllQuery¶added inv8.5.0
func NewMatchAllQuery() *MatchAllQuery
NewMatchAllQuery returns a MatchAllQuery.
func (*MatchAllQuery)UnmarshalJSON¶added inv8.7.1
func (s *MatchAllQuery) UnmarshalJSON(data []byte)error
typeMatchBoolPrefixQuery¶
type MatchBoolPrefixQuery struct {// Analyzer Analyzer used to convert the text in the query value into tokens.Analyzer *string `json:"analyzer,omitempty"`// Boost Floating point number used to decrease or increase the relevance scores of// the query.// Boost values are relative to the default value of 1.0.// A boost value between 0 and 1.0 decreases the relevance score.// A value greater than 1.0 increases the relevance score.Boost *float32 `json:"boost,omitempty"`// Fuzziness Maximum edit distance allowed for matching.// Can be applied to the term subqueries constructed for all terms but the final// term.FuzzinessFuzziness `json:"fuzziness,omitempty"`// FuzzyRewrite Method used to rewrite the query.// Can be applied to the term subqueries constructed for all terms but the final// term.FuzzyRewrite *string `json:"fuzzy_rewrite,omitempty"`// FuzzyTranspositions If `true`, edits for fuzzy matching include transpositions of two adjacent// characters (for example, `ab` to `ba`).// Can be applied to the term subqueries constructed for all terms but the final// term.FuzzyTranspositions *bool `json:"fuzzy_transpositions,omitempty"`// MaxExpansions Maximum number of terms to which the query will expand.// Can be applied to the term subqueries constructed for all terms but the final// term.MaxExpansions *int `json:"max_expansions,omitempty"`// MinimumShouldMatch Minimum number of clauses that must match for a document to be returned.// Applied to the constructed bool query.MinimumShouldMatchMinimumShouldMatch `json:"minimum_should_match,omitempty"`// Operator Boolean logic used to interpret text in the query value.// Applied to the constructed bool query.Operator *operator.Operator `json:"operator,omitempty"`// PrefixLength Number of beginning characters left unchanged for fuzzy matching.// Can be applied to the term subqueries constructed for all terms but the final// term.PrefixLength *int `json:"prefix_length,omitempty"`// Query Terms you wish to find in the provided field.// The last term is used in a prefix query.Querystring `json:"query"`QueryName_ *string `json:"_name,omitempty"`}MatchBoolPrefixQuery type.
funcNewMatchBoolPrefixQuery¶added inv8.5.0
func NewMatchBoolPrefixQuery() *MatchBoolPrefixQuery
NewMatchBoolPrefixQuery returns a MatchBoolPrefixQuery.
func (*MatchBoolPrefixQuery)UnmarshalJSON¶added inv8.7.1
func (s *MatchBoolPrefixQuery) UnmarshalJSON(data []byte)error
typeMatchNoneQuery¶
type MatchNoneQuery struct {// Boost Floating point number used to decrease or increase the relevance scores of// the query.// Boost values are relative to the default value of 1.0.// A boost value between 0 and 1.0 decreases the relevance score.// A value greater than 1.0 increases the relevance score.Boost *float32 `json:"boost,omitempty"`QueryName_ *string `json:"_name,omitempty"`}MatchNoneQuery type.
funcNewMatchNoneQuery¶added inv8.5.0
func NewMatchNoneQuery() *MatchNoneQuery
NewMatchNoneQuery returns a MatchNoneQuery.
func (*MatchNoneQuery)UnmarshalJSON¶added inv8.7.1
func (s *MatchNoneQuery) UnmarshalJSON(data []byte)error
typeMatchOnlyTextProperty¶
type MatchOnlyTextProperty struct {// CopyTo Allows you to copy the values of multiple fields into a group// field, which can then be queried as a single field.CopyTo []string `json:"copy_to,omitempty"`// Fields Multi-fields allow the same string value to be indexed in multiple ways for// different purposes, such as one// field for search and a multi-field for sorting and aggregations, or the same// string value analyzed by different analyzers.Fields map[string]Property `json:"fields,omitempty"`// Meta Metadata about the field.Meta map[string]string `json:"meta,omitempty"`Typestring `json:"type,omitempty"`}MatchOnlyTextProperty type.
funcNewMatchOnlyTextProperty¶added inv8.5.0
func NewMatchOnlyTextProperty() *MatchOnlyTextProperty
NewMatchOnlyTextProperty returns a MatchOnlyTextProperty.
func (MatchOnlyTextProperty)MarshalJSON¶added inv8.9.0
func (sMatchOnlyTextProperty) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*MatchOnlyTextProperty)UnmarshalJSON¶added inv8.7.0
func (s *MatchOnlyTextProperty) UnmarshalJSON(data []byte)error
typeMatchPhrasePrefixQuery¶
type MatchPhrasePrefixQuery struct {// Analyzer Analyzer used to convert text in the query value into tokens.Analyzer *string `json:"analyzer,omitempty"`// Boost Floating point number used to decrease or increase the relevance scores of// the query.// Boost values are relative to the default value of 1.0.// A boost value between 0 and 1.0 decreases the relevance score.// A value greater than 1.0 increases the relevance score.Boost *float32 `json:"boost,omitempty"`// MaxExpansions Maximum number of terms to which the last provided term of the query value// will expand.MaxExpansions *int `json:"max_expansions,omitempty"`// Query Text you wish to find in the provided field.Querystring `json:"query"`QueryName_ *string `json:"_name,omitempty"`// Slop Maximum number of positions allowed between matching tokens.Slop *int `json:"slop,omitempty"`// ZeroTermsQuery Indicates whether no documents are returned if the analyzer removes all// tokens, such as when using a `stop` filter.ZeroTermsQuery *zerotermsquery.ZeroTermsQuery `json:"zero_terms_query,omitempty"`}MatchPhrasePrefixQuery type.
funcNewMatchPhrasePrefixQuery¶added inv8.5.0
func NewMatchPhrasePrefixQuery() *MatchPhrasePrefixQuery
NewMatchPhrasePrefixQuery returns a MatchPhrasePrefixQuery.
func (*MatchPhrasePrefixQuery)UnmarshalJSON¶added inv8.7.1
func (s *MatchPhrasePrefixQuery) UnmarshalJSON(data []byte)error
typeMatchPhraseQuery¶
type MatchPhraseQuery struct {// Analyzer Analyzer used to convert the text in the query value into tokens.Analyzer *string `json:"analyzer,omitempty"`// Boost Floating point number used to decrease or increase the relevance scores of// the query.// Boost values are relative to the default value of 1.0.// A boost value between 0 and 1.0 decreases the relevance score.// A value greater than 1.0 increases the relevance score.Boost *float32 `json:"boost,omitempty"`// Query Query terms that are analyzed and turned into a phrase query.Querystring `json:"query"`QueryName_ *string `json:"_name,omitempty"`// Slop Maximum number of positions allowed between matching tokens.Slop *int `json:"slop,omitempty"`// ZeroTermsQuery Indicates whether no documents are returned if the `analyzer` removes all// tokens, such as when using a `stop` filter.ZeroTermsQuery *zerotermsquery.ZeroTermsQuery `json:"zero_terms_query,omitempty"`}MatchPhraseQuery type.
funcNewMatchPhraseQuery¶added inv8.5.0
func NewMatchPhraseQuery() *MatchPhraseQuery
NewMatchPhraseQuery returns a MatchPhraseQuery.
func (*MatchPhraseQuery)UnmarshalJSON¶added inv8.7.1
func (s *MatchPhraseQuery) UnmarshalJSON(data []byte)error
typeMatchQuery¶
type MatchQuery struct {// Analyzer Analyzer used to convert the text in the query value into tokens.Analyzer *string `json:"analyzer,omitempty"`// AutoGenerateSynonymsPhraseQuery If `true`, match phrase queries are automatically created for multi-term// synonyms.AutoGenerateSynonymsPhraseQuery *bool `json:"auto_generate_synonyms_phrase_query,omitempty"`// Boost Floating point number used to decrease or increase the relevance scores of// the query.// Boost values are relative to the default value of 1.0.// A boost value between 0 and 1.0 decreases the relevance score.// A value greater than 1.0 increases the relevance score.Boost *float32 `json:"boost,omitempty"`CutoffFrequency *Float64 `json:"cutoff_frequency,omitempty"`// Fuzziness Maximum edit distance allowed for matching.FuzzinessFuzziness `json:"fuzziness,omitempty"`// FuzzyRewrite Method used to rewrite the query.FuzzyRewrite *string `json:"fuzzy_rewrite,omitempty"`// FuzzyTranspositions If `true`, edits for fuzzy matching include transpositions of two adjacent// characters (for example, `ab` to `ba`).FuzzyTranspositions *bool `json:"fuzzy_transpositions,omitempty"`// Lenient If `true`, format-based errors, such as providing a text query value for a// numeric field, are ignored.Lenient *bool `json:"lenient,omitempty"`// MaxExpansions Maximum number of terms to which the query will expand.MaxExpansions *int `json:"max_expansions,omitempty"`// MinimumShouldMatch Minimum number of clauses that must match for a document to be returned.MinimumShouldMatchMinimumShouldMatch `json:"minimum_should_match,omitempty"`// Operator Boolean logic used to interpret text in the query value.Operator *operator.Operator `json:"operator,omitempty"`// PrefixLength Number of beginning characters left unchanged for fuzzy matching.PrefixLength *int `json:"prefix_length,omitempty"`// Query Text, number, boolean value or date you wish to find in the provided field.Querystring `json:"query"`QueryName_ *string `json:"_name,omitempty"`// ZeroTermsQuery Indicates whether no documents are returned if the `analyzer` removes all// tokens, such as when using a `stop` filter.ZeroTermsQuery *zerotermsquery.ZeroTermsQuery `json:"zero_terms_query,omitempty"`}MatchQuery type.
func (*MatchQuery)UnmarshalJSON¶added inv8.7.1
func (s *MatchQuery) UnmarshalJSON(data []byte)error
typeMatchedField¶added inv8.13.0
type MatchedField struct {Lengthint `json:"length"`Matchstring `json:"match"`Offsetint `json:"offset"`}MatchedField type.
funcNewMatchedField¶added inv8.13.0
func NewMatchedField() *MatchedField
NewMatchedField returns a MatchedField.
func (*MatchedField)UnmarshalJSON¶added inv8.13.0
func (s *MatchedField) UnmarshalJSON(data []byte)error
typeMatchedText¶added inv8.13.0
type MatchedText struct {Fields map[string][]MatchedField `json:"fields,omitempty"`Matchedbool `json:"matched"`}MatchedText type.
funcNewMatchedText¶added inv8.13.0
func NewMatchedText() *MatchedText
NewMatchedText returns a MatchedText.
func (*MatchedText)UnmarshalJSON¶added inv8.13.0
func (s *MatchedText) UnmarshalJSON(data []byte)error
typeMatrixStatsAggregate¶
type MatrixStatsAggregate struct {DocCountint64 `json:"doc_count"`Fields []MatrixStatsFields `json:"fields,omitempty"`MetaMetadata `json:"meta,omitempty"`}MatrixStatsAggregate type.
funcNewMatrixStatsAggregate¶added inv8.5.0
func NewMatrixStatsAggregate() *MatrixStatsAggregate
NewMatrixStatsAggregate returns a MatrixStatsAggregate.
func (*MatrixStatsAggregate)UnmarshalJSON¶added inv8.7.1
func (s *MatrixStatsAggregate) UnmarshalJSON(data []byte)error
typeMatrixStatsAggregation¶
type MatrixStatsAggregation struct {// Fields An array of fields for computing the statistics.Fields []string `json:"fields,omitempty"`// Missing The value to apply to documents that do not have a value.// By default, documents without a value are ignored.Missing map[string]Float64 `json:"missing,omitempty"`// Mode Array value the aggregation will use for array or multi-valued fields.Mode *sortmode.SortMode `json:"mode,omitempty"`}MatrixStatsAggregation type.
funcNewMatrixStatsAggregation¶added inv8.5.0
func NewMatrixStatsAggregation() *MatrixStatsAggregation
NewMatrixStatsAggregation returns a MatrixStatsAggregation.
func (*MatrixStatsAggregation)UnmarshalJSON¶added inv8.7.1
func (s *MatrixStatsAggregation) UnmarshalJSON(data []byte)error
typeMatrixStatsFields¶
type MatrixStatsFields struct {Correlation map[string]Float64 `json:"correlation"`Countint64 `json:"count"`Covariance map[string]Float64 `json:"covariance"`KurtosisFloat64 `json:"kurtosis"`MeanFloat64 `json:"mean"`Namestring `json:"name"`SkewnessFloat64 `json:"skewness"`VarianceFloat64 `json:"variance"`}MatrixStatsFields type.
funcNewMatrixStatsFields¶added inv8.5.0
func NewMatrixStatsFields() *MatrixStatsFields
NewMatrixStatsFields returns a MatrixStatsFields.
func (*MatrixStatsFields)UnmarshalJSON¶added inv8.7.1
func (s *MatrixStatsFields) UnmarshalJSON(data []byte)error
typeMaxAggregate¶
type MaxAggregate struct {MetaMetadata `json:"meta,omitempty"`// Value The metric value. A missing value generally means that there was no data to// aggregate,// unless specified otherwise.Value *Float64 `json:"value,omitempty"`ValueAsString *string `json:"value_as_string,omitempty"`}MaxAggregate type.
funcNewMaxAggregate¶added inv8.5.0
func NewMaxAggregate() *MaxAggregate
NewMaxAggregate returns a MaxAggregate.
func (*MaxAggregate)UnmarshalJSON¶added inv8.7.1
func (s *MaxAggregate) UnmarshalJSON(data []byte)error
typeMaxAggregation¶
type MaxAggregation struct {// Field The field on which to run the aggregation.Field *string `json:"field,omitempty"`Format *string `json:"format,omitempty"`// Missing The value to apply to documents that do not have a value.// By default, documents without a value are ignored.MissingMissing `json:"missing,omitempty"`Script *Script `json:"script,omitempty"`}MaxAggregation type.
funcNewMaxAggregation¶added inv8.5.0
func NewMaxAggregation() *MaxAggregation
NewMaxAggregation returns a MaxAggregation.
func (*MaxAggregation)UnmarshalJSON¶added inv8.7.1
func (s *MaxAggregation) UnmarshalJSON(data []byte)error
typeMaxBucketAggregation¶
type MaxBucketAggregation struct {// BucketsPath Path to the buckets that contain one set of values to correlate.BucketsPathBucketsPath `json:"buckets_path,omitempty"`// Format `DecimalFormat` pattern for the output value.// If specified, the formatted value is returned in the aggregation’s// `value_as_string` property.Format *string `json:"format,omitempty"`// GapPolicy Policy to apply when gaps are found in the data.GapPolicy *gappolicy.GapPolicy `json:"gap_policy,omitempty"`}MaxBucketAggregation type.
funcNewMaxBucketAggregation¶added inv8.5.0
func NewMaxBucketAggregation() *MaxBucketAggregation
NewMaxBucketAggregation returns a MaxBucketAggregation.
func (*MaxBucketAggregation)UnmarshalJSON¶added inv8.7.0
func (s *MaxBucketAggregation) UnmarshalJSON(data []byte)error
typeMaxmind¶added inv8.16.0
type Maxmind struct {AccountIdstring `json:"account_id"`}Maxmind type.
func (*Maxmind)UnmarshalJSON¶added inv8.16.0
typeMedianAbsoluteDeviationAggregate¶
type MedianAbsoluteDeviationAggregate struct {MetaMetadata `json:"meta,omitempty"`// Value The metric value. A missing value generally means that there was no data to// aggregate,// unless specified otherwise.Value *Float64 `json:"value,omitempty"`ValueAsString *string `json:"value_as_string,omitempty"`}MedianAbsoluteDeviationAggregate type.
funcNewMedianAbsoluteDeviationAggregate¶added inv8.5.0
func NewMedianAbsoluteDeviationAggregate() *MedianAbsoluteDeviationAggregate
NewMedianAbsoluteDeviationAggregate returns a MedianAbsoluteDeviationAggregate.
func (*MedianAbsoluteDeviationAggregate)UnmarshalJSON¶added inv8.7.1
func (s *MedianAbsoluteDeviationAggregate) UnmarshalJSON(data []byte)error
typeMedianAbsoluteDeviationAggregation¶
type MedianAbsoluteDeviationAggregation struct {// Compression Limits the maximum number of nodes used by the underlying TDigest algorithm// to `20 * compression`, enabling control of memory usage and approximation// error.Compression *Float64 `json:"compression,omitempty"`// ExecutionHint The default implementation of TDigest is optimized for performance, scaling// to millions or even billions of sample values while maintaining acceptable// accuracy levels (close to 1% relative error for millions of samples in some// cases).// To use an implementation optimized for accuracy, set this parameter to// high_accuracy instead.ExecutionHint *tdigestexecutionhint.TDigestExecutionHint `json:"execution_hint,omitempty"`// Field The field on which to run the aggregation.Field *string `json:"field,omitempty"`Format *string `json:"format,omitempty"`// Missing The value to apply to documents that do not have a value.// By default, documents without a value are ignored.MissingMissing `json:"missing,omitempty"`Script *Script `json:"script,omitempty"`}MedianAbsoluteDeviationAggregation type.
funcNewMedianAbsoluteDeviationAggregation¶added inv8.5.0
func NewMedianAbsoluteDeviationAggregation() *MedianAbsoluteDeviationAggregation
NewMedianAbsoluteDeviationAggregation returns a MedianAbsoluteDeviationAggregation.
func (*MedianAbsoluteDeviationAggregation)UnmarshalJSON¶added inv8.7.1
func (s *MedianAbsoluteDeviationAggregation) UnmarshalJSON(data []byte)error
typeMemMlStats¶
type MemMlStats struct {// AnomalyDetectors Amount of native memory set aside for anomaly detection jobs.AnomalyDetectorsByteSize `json:"anomaly_detectors,omitempty"`// AnomalyDetectorsInBytes Amount of native memory, in bytes, set aside for anomaly detection jobs.AnomalyDetectorsInBytesint `json:"anomaly_detectors_in_bytes"`// DataFrameAnalytics Amount of native memory set aside for data frame analytics jobs.DataFrameAnalyticsByteSize `json:"data_frame_analytics,omitempty"`// DataFrameAnalyticsInBytes Amount of native memory, in bytes, set aside for data frame analytics jobs.DataFrameAnalyticsInBytesint `json:"data_frame_analytics_in_bytes"`// Max Maximum amount of native memory (separate to the JVM heap) that may be used// by machine learning native processes.MaxByteSize `json:"max,omitempty"`// MaxInBytes Maximum amount of native memory (separate to the JVM heap), in bytes, that// may be used by machine learning native processes.MaxInBytesint `json:"max_in_bytes"`// NativeCodeOverhead Amount of native memory set aside for loading machine learning native code// shared libraries.NativeCodeOverheadByteSize `json:"native_code_overhead,omitempty"`// NativeCodeOverheadInBytes Amount of native memory, in bytes, set aside for loading machine learning// native code shared libraries.NativeCodeOverheadInBytesint `json:"native_code_overhead_in_bytes"`// NativeInference Amount of native memory set aside for trained models that have a PyTorch// model_type.NativeInferenceByteSize `json:"native_inference,omitempty"`// NativeInferenceInBytes Amount of native memory, in bytes, set aside for trained models that have a// PyTorch model_type.NativeInferenceInBytesint `json:"native_inference_in_bytes"`}MemMlStats type.
func (*MemMlStats)UnmarshalJSON¶added inv8.7.1
func (s *MemMlStats) UnmarshalJSON(data []byte)error
typeMemStats¶
type MemStats struct {// AdjustedTotal If the amount of physical memory has been overridden using the// es.total_memory_bytes system property// then this reports the overridden value. Otherwise it reports the same value// as total.AdjustedTotalByteSize `json:"adjusted_total,omitempty"`// AdjustedTotalInBytes If the amount of physical memory has been overridden using the// `es.total_memory_bytes` system property// then this reports the overridden value in bytes. Otherwise it reports the// same value as `total_in_bytes`.AdjustedTotalInBytesint `json:"adjusted_total_in_bytes"`// Ml Contains statistics about machine learning use of native memory on the node.MlMemMlStats `json:"ml"`// Total Total amount of physical memory.TotalByteSize `json:"total,omitempty"`// TotalInBytes Total amount of physical memory in bytes.TotalInBytesint `json:"total_in_bytes"`}MemStats type.
func (*MemStats)UnmarshalJSON¶added inv8.7.1
typeMemory¶
type Memory struct {Attributes map[string]string `json:"attributes"`EphemeralIdstring `json:"ephemeral_id"`// Jvm Contains Java Virtual Machine (JVM) statistics for the node.JvmJvmStats `json:"jvm"`// Mem Contains statistics about memory usage for the node.MemMemStats `json:"mem"`// Name Human-readable identifier for the node. Based on the Node name setting// setting.Namestring `json:"name"`// Roles Roles assigned to the node.Roles []string `json:"roles"`// TransportAddress The host and port where transport HTTP connections are accepted.TransportAddressstring `json:"transport_address"`}Memory type.
func (*Memory)UnmarshalJSON¶added inv8.7.1
typeMemoryStats¶
type MemoryStats struct {// AdjustedTotalInBytes If the amount of physical memory has been overridden using the// `es`.`total_memory_bytes` system property then this reports the overridden// value in bytes.// Otherwise it reports the same value as `total_in_bytes`.AdjustedTotalInBytes *int64 `json:"adjusted_total_in_bytes,omitempty"`// FreeInBytes Amount of free physical memory in bytes.FreeInBytes *int64 `json:"free_in_bytes,omitempty"`Resident *string `json:"resident,omitempty"`ResidentInBytes *int64 `json:"resident_in_bytes,omitempty"`Share *string `json:"share,omitempty"`ShareInBytes *int64 `json:"share_in_bytes,omitempty"`// TotalInBytes Total amount of physical memory in bytes.TotalInBytes *int64 `json:"total_in_bytes,omitempty"`TotalVirtual *string `json:"total_virtual,omitempty"`TotalVirtualInBytes *int64 `json:"total_virtual_in_bytes,omitempty"`// UsedInBytes Amount of used physical memory in bytes.UsedInBytes *int64 `json:"used_in_bytes,omitempty"`}MemoryStats type.
funcNewMemoryStats¶added inv8.5.0
func NewMemoryStats() *MemoryStats
NewMemoryStats returns a MemoryStats.
func (*MemoryStats)UnmarshalJSON¶added inv8.7.1
func (s *MemoryStats) UnmarshalJSON(data []byte)error
typeMergeScheduler¶
type MergeScheduler struct {MaxMergeCountStringifiedinteger `json:"max_merge_count,omitempty"`MaxThreadCountStringifiedinteger `json:"max_thread_count,omitempty"`}MergeScheduler type.
funcNewMergeScheduler¶added inv8.5.0
func NewMergeScheduler() *MergeScheduler
NewMergeScheduler returns a MergeScheduler.
func (*MergeScheduler)UnmarshalJSON¶added inv8.7.1
func (s *MergeScheduler) UnmarshalJSON(data []byte)error
typeMergesStats¶
type MergesStats struct {Currentint64 `json:"current"`CurrentDocsint64 `json:"current_docs"`CurrentSize *string `json:"current_size,omitempty"`CurrentSizeInBytesint64 `json:"current_size_in_bytes"`Totalint64 `json:"total"`TotalAutoThrottle *string `json:"total_auto_throttle,omitempty"`TotalAutoThrottleInBytesint64 `json:"total_auto_throttle_in_bytes"`TotalDocsint64 `json:"total_docs"`TotalSize *string `json:"total_size,omitempty"`TotalSizeInBytesint64 `json:"total_size_in_bytes"`TotalStoppedTimeDuration `json:"total_stopped_time,omitempty"`TotalStoppedTimeInMillisint64 `json:"total_stopped_time_in_millis"`TotalThrottledTimeDuration `json:"total_throttled_time,omitempty"`TotalThrottledTimeInMillisint64 `json:"total_throttled_time_in_millis"`TotalTimeDuration `json:"total_time,omitempty"`TotalTimeInMillisint64 `json:"total_time_in_millis"`}MergesStats type.
funcNewMergesStats¶added inv8.5.0
func NewMergesStats() *MergesStats
NewMergesStats returns a MergesStats.
func (*MergesStats)UnmarshalJSON¶added inv8.7.1
func (s *MergesStats) UnmarshalJSON(data []byte)error
typeMessage¶added inv8.18.0
type Message struct {// Content The content of the message.//// String example:// “`////{// "content": "Some string"//}//// “`//// Object example:// “`////{// "content": [// {// "text": "Some text",// "type": "text"// }// ]//}//// “`ContentMessageContent `json:"content,omitempty"`// Role The role of the message author. Valid values are `user`, `assistant`,// `system`, and `tool`.Rolestring `json:"role"`// ToolCallId Only for `tool` role messages. The tool call that this message is responding// to.ToolCallId *string `json:"tool_call_id,omitempty"`// ToolCalls Only for `assistant` role messages. The tool calls generated by the model. If// it's specified, the `content` field is optional.// Example:// “`////{// "tool_calls": [// {// "id": "call_KcAjWtAww20AihPHphUh46Gd",// "type": "function",// "function": {// "name": "get_current_weather",// "arguments": "{\"location\":\"Boston, MA\"}"// }// }// ]//}//// “`ToolCalls []ToolCall `json:"tool_calls,omitempty"`}Message type.
func (*Message)UnmarshalJSON¶added inv8.18.0
typeMessageContent¶added inv8.18.0
type MessageContentany
MessageContent holds the union for the following types:
string[]ContentObject
typeMgetOperation¶added inv8.5.0
type MgetOperation struct {// Id_ The unique document ID.Id_string `json:"_id"`// Index_ The index that contains the document.Index_ *string `json:"_index,omitempty"`// Routing The key for the primary shard the document resides on. Required if routing is// used during indexing.Routing *string `json:"routing,omitempty"`// Source_ If `false`, excludes all _source fields.Source_SourceConfig `json:"_source,omitempty"`// StoredFields The stored fields you want to retrieve.StoredFields []string `json:"stored_fields,omitempty"`Version *int64 `json:"version,omitempty"`VersionType *versiontype.VersionType `json:"version_type,omitempty"`}MgetOperation type.
funcNewMgetOperation¶added inv8.5.0
func NewMgetOperation() *MgetOperation
NewMgetOperation returns a MgetOperation.
func (*MgetOperation)UnmarshalJSON¶added inv8.7.1
func (s *MgetOperation) UnmarshalJSON(data []byte)error
typeMgetResponseItem¶added inv8.9.0
type MgetResponseItemany
MgetResponseItem holds the union for the following types:
GetResultMultiGetError
typeMigrateAction¶added inv8.15.0
type MigrateAction struct {Enabled *bool `json:"enabled,omitempty"`}MigrateAction type.
funcNewMigrateAction¶added inv8.15.0
func NewMigrateAction() *MigrateAction
NewMigrateAction returns a MigrateAction.
func (*MigrateAction)UnmarshalJSON¶added inv8.15.0
func (s *MigrateAction) UnmarshalJSON(data []byte)error
typeMigrateReindex¶added inv8.18.0
type MigrateReindex struct {// Mode Reindex mode. Currently only 'upgrade' is supported.Modemodeenum.ModeEnum `json:"mode"`// Source The source index or data stream (only data streams are currently supported).SourceSourceIndex `json:"source"`}MigrateReindex type.
funcNewMigrateReindex¶added inv8.18.0
func NewMigrateReindex() *MigrateReindex
NewMigrateReindex returns a MigrateReindex.
typeMigrationFeatureIndexInfo¶
type MigrationFeatureIndexInfo struct {FailureCause *ErrorCause `json:"failure_cause,omitempty"`Indexstring `json:"index"`Versionstring `json:"version"`}MigrationFeatureIndexInfo type.
funcNewMigrationFeatureIndexInfo¶added inv8.5.0
func NewMigrationFeatureIndexInfo() *MigrationFeatureIndexInfo
NewMigrationFeatureIndexInfo returns a MigrationFeatureIndexInfo.
func (*MigrationFeatureIndexInfo)UnmarshalJSON¶added inv8.7.1
func (s *MigrationFeatureIndexInfo) UnmarshalJSON(data []byte)error
typeMinAggregate¶
type MinAggregate struct {MetaMetadata `json:"meta,omitempty"`// Value The metric value. A missing value generally means that there was no data to// aggregate,// unless specified otherwise.Value *Float64 `json:"value,omitempty"`ValueAsString *string `json:"value_as_string,omitempty"`}MinAggregate type.
funcNewMinAggregate¶added inv8.5.0
func NewMinAggregate() *MinAggregate
NewMinAggregate returns a MinAggregate.
func (*MinAggregate)UnmarshalJSON¶added inv8.7.1
func (s *MinAggregate) UnmarshalJSON(data []byte)error
typeMinAggregation¶
type MinAggregation struct {// Field The field on which to run the aggregation.Field *string `json:"field,omitempty"`Format *string `json:"format,omitempty"`// Missing The value to apply to documents that do not have a value.// By default, documents without a value are ignored.MissingMissing `json:"missing,omitempty"`Script *Script `json:"script,omitempty"`}MinAggregation type.
funcNewMinAggregation¶added inv8.5.0
func NewMinAggregation() *MinAggregation
NewMinAggregation returns a MinAggregation.
func (*MinAggregation)UnmarshalJSON¶added inv8.7.1
func (s *MinAggregation) UnmarshalJSON(data []byte)error
typeMinBucketAggregation¶
type MinBucketAggregation struct {// BucketsPath Path to the buckets that contain one set of values to correlate.BucketsPathBucketsPath `json:"buckets_path,omitempty"`// Format `DecimalFormat` pattern for the output value.// If specified, the formatted value is returned in the aggregation’s// `value_as_string` property.Format *string `json:"format,omitempty"`// GapPolicy Policy to apply when gaps are found in the data.GapPolicy *gappolicy.GapPolicy `json:"gap_policy,omitempty"`}MinBucketAggregation type.
funcNewMinBucketAggregation¶added inv8.5.0
func NewMinBucketAggregation() *MinBucketAggregation
NewMinBucketAggregation returns a MinBucketAggregation.
func (*MinBucketAggregation)UnmarshalJSON¶added inv8.7.0
func (s *MinBucketAggregation) UnmarshalJSON(data []byte)error
typeMinHashTokenFilter¶added inv8.18.1
type MinHashTokenFilter struct {// BucketCount Number of buckets to which hashes are assigned. Defaults to `512`.BucketCount *int `json:"bucket_count,omitempty"`// HashCount Number of ways to hash each token in the stream. Defaults to `1`.HashCount *int `json:"hash_count,omitempty"`// HashSetSize Number of hashes to keep from each bucket. Defaults to `1`.// Hashes are retained by ascending size, starting with the bucket’s smallest// hash first.HashSetSize *int `json:"hash_set_size,omitempty"`Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`// WithRotation If `true`, the filter fills empty buckets with the value of the first// non-empty bucket to its circular right if the `hash_set_size` is `1`. If the// `bucket_count` argument is greater than 1, this parameter defaults to `true`.// Otherwise, this parameter defaults to `false`.WithRotation *bool `json:"with_rotation,omitempty"`}MinHashTokenFilter type.
funcNewMinHashTokenFilter¶added inv8.18.1
func NewMinHashTokenFilter() *MinHashTokenFilter
NewMinHashTokenFilter returns a MinHashTokenFilter.
func (MinHashTokenFilter)MarshalJSON¶added inv8.18.1
func (sMinHashTokenFilter) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*MinHashTokenFilter)UnmarshalJSON¶added inv8.18.1
func (s *MinHashTokenFilter) UnmarshalJSON(data []byte)error
typeMinimalLicenseInformation¶
type MinimalLicenseInformation struct {ExpiryDateInMillisint64 `json:"expiry_date_in_millis"`Modelicensetype.LicenseType `json:"mode"`Statuslicensestatus.LicenseStatus `json:"status"`Typelicensetype.LicenseType `json:"type"`Uidstring `json:"uid"`}MinimalLicenseInformation type.
funcNewMinimalLicenseInformation¶added inv8.5.0
func NewMinimalLicenseInformation() *MinimalLicenseInformation
NewMinimalLicenseInformation returns a MinimalLicenseInformation.
func (*MinimalLicenseInformation)UnmarshalJSON¶added inv8.7.1
func (s *MinimalLicenseInformation) UnmarshalJSON(data []byte)error
typeMinimumShouldMatch¶
type MinimumShouldMatchany
MinimumShouldMatch holds the union for the following types:
intstring
typeMissingAggregate¶
type MissingAggregate struct {Aggregations map[string]Aggregate `json:"-"`DocCountint64 `json:"doc_count"`MetaMetadata `json:"meta,omitempty"`}MissingAggregate type.
funcNewMissingAggregate¶added inv8.5.0
func NewMissingAggregate() *MissingAggregate
NewMissingAggregate returns a MissingAggregate.
func (MissingAggregate)MarshalJSON¶
func (sMissingAggregate) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
func (*MissingAggregate)UnmarshalJSON¶added inv8.7.0
func (s *MissingAggregate) UnmarshalJSON(data []byte)error
typeMissingAggregation¶
type MissingAggregation struct {// Field The name of the field.Field *string `json:"field,omitempty"`MissingMissing `json:"missing,omitempty"`}MissingAggregation type.
funcNewMissingAggregation¶added inv8.5.0
func NewMissingAggregation() *MissingAggregation
NewMissingAggregation returns a MissingAggregation.
func (*MissingAggregation)UnmarshalJSON¶added inv8.7.1
func (s *MissingAggregation) UnmarshalJSON(data []byte)error
typeMistralServiceSettings¶added inv8.18.0
type MistralServiceSettings struct {// ApiKey A valid API key of your Mistral account.// You can find your Mistral API keys or you can create a new one on the API// Keys page.//// IMPORTANT: You need to provide the API key only once, during the inference// model creation.// The get inference endpoint API does not retrieve your API key.// After creating the inference model, you cannot change the associated API key.// If you want to use a different API key, delete the inference model and// recreate it with the same name and the updated API key.ApiKeystring `json:"api_key"`// MaxInputTokens The maximum number of tokens per input before chunking occurs.MaxInputTokens *int `json:"max_input_tokens,omitempty"`// Model The name of the model to use for the inference task.// Refer to the Mistral models documentation for the list of available models.Modelstring `json:"model"`// RateLimit This setting helps to minimize the number of rate limit errors returned from// the Mistral API.// By default, the `mistral` service sets the number of requests allowed per// minute to 240.RateLimit *RateLimitSetting `json:"rate_limit,omitempty"`}MistralServiceSettings type.
funcNewMistralServiceSettings¶added inv8.18.0
func NewMistralServiceSettings() *MistralServiceSettings
NewMistralServiceSettings returns a MistralServiceSettings.
func (*MistralServiceSettings)UnmarshalJSON¶added inv8.18.0
func (s *MistralServiceSettings) UnmarshalJSON(data []byte)error
typeMlCounter¶
type MlCounter struct {Countint64 `json:"count"`}MlCounter type.
func (*MlCounter)UnmarshalJSON¶added inv8.7.1
typeMlDataFrameAnalyticsJobs¶
type MlDataFrameAnalyticsJobs struct {All_MlDataFrameAnalyticsJobsCount `json:"_all"`AnalysisCounts *MlDataFrameAnalyticsJobsAnalysis `json:"analysis_counts,omitempty"`MemoryUsage *MlDataFrameAnalyticsJobsMemory `json:"memory_usage,omitempty"`Stopped *MlDataFrameAnalyticsJobsCount `json:"stopped,omitempty"`}MlDataFrameAnalyticsJobs type.
funcNewMlDataFrameAnalyticsJobs¶added inv8.5.0
func NewMlDataFrameAnalyticsJobs() *MlDataFrameAnalyticsJobs
NewMlDataFrameAnalyticsJobs returns a MlDataFrameAnalyticsJobs.
typeMlDataFrameAnalyticsJobsAnalysis¶
type MlDataFrameAnalyticsJobsAnalysis struct {Classification *int `json:"classification,omitempty"`OutlierDetection *int `json:"outlier_detection,omitempty"`Regression *int `json:"regression,omitempty"`}MlDataFrameAnalyticsJobsAnalysis type.
funcNewMlDataFrameAnalyticsJobsAnalysis¶added inv8.5.0
func NewMlDataFrameAnalyticsJobsAnalysis() *MlDataFrameAnalyticsJobsAnalysis
NewMlDataFrameAnalyticsJobsAnalysis returns a MlDataFrameAnalyticsJobsAnalysis.
func (*MlDataFrameAnalyticsJobsAnalysis)UnmarshalJSON¶added inv8.7.1
func (s *MlDataFrameAnalyticsJobsAnalysis) UnmarshalJSON(data []byte)error
typeMlDataFrameAnalyticsJobsCount¶
type MlDataFrameAnalyticsJobsCount struct {Countint64 `json:"count"`}MlDataFrameAnalyticsJobsCount type.
funcNewMlDataFrameAnalyticsJobsCount¶added inv8.5.0
func NewMlDataFrameAnalyticsJobsCount() *MlDataFrameAnalyticsJobsCount
NewMlDataFrameAnalyticsJobsCount returns a MlDataFrameAnalyticsJobsCount.
func (*MlDataFrameAnalyticsJobsCount)UnmarshalJSON¶added inv8.7.1
func (s *MlDataFrameAnalyticsJobsCount) UnmarshalJSON(data []byte)error
typeMlDataFrameAnalyticsJobsMemory¶
type MlDataFrameAnalyticsJobsMemory struct {PeakUsageBytesJobStatistics `json:"peak_usage_bytes"`}MlDataFrameAnalyticsJobsMemory type.
funcNewMlDataFrameAnalyticsJobsMemory¶added inv8.5.0
func NewMlDataFrameAnalyticsJobsMemory() *MlDataFrameAnalyticsJobsMemory
NewMlDataFrameAnalyticsJobsMemory returns a MlDataFrameAnalyticsJobsMemory.
typeMlInference¶
type MlInference struct {Deployments *MlInferenceDeployments `json:"deployments,omitempty"`IngestProcessors map[string]MlInferenceIngestProcessor `json:"ingest_processors"`TrainedModelsMlInferenceTrainedModels `json:"trained_models"`}MlInference type.
funcNewMlInference¶added inv8.5.0
func NewMlInference() *MlInference
NewMlInference returns a MlInference.
typeMlInferenceDeployments¶
type MlInferenceDeployments struct {Countint `json:"count"`InferenceCountsJobStatistics `json:"inference_counts"`ModelSizesBytesJobStatistics `json:"model_sizes_bytes"`TimeMsMlInferenceDeploymentsTimeMs `json:"time_ms"`}MlInferenceDeployments type.
funcNewMlInferenceDeployments¶added inv8.5.0
func NewMlInferenceDeployments() *MlInferenceDeployments
NewMlInferenceDeployments returns a MlInferenceDeployments.
func (*MlInferenceDeployments)UnmarshalJSON¶added inv8.7.1
func (s *MlInferenceDeployments) UnmarshalJSON(data []byte)error
typeMlInferenceDeploymentsTimeMs¶
type MlInferenceDeploymentsTimeMs struct {AvgFloat64 `json:"avg"`}MlInferenceDeploymentsTimeMs type.
funcNewMlInferenceDeploymentsTimeMs¶added inv8.5.0
func NewMlInferenceDeploymentsTimeMs() *MlInferenceDeploymentsTimeMs
NewMlInferenceDeploymentsTimeMs returns a MlInferenceDeploymentsTimeMs.
func (*MlInferenceDeploymentsTimeMs)UnmarshalJSON¶added inv8.7.1
func (s *MlInferenceDeploymentsTimeMs) UnmarshalJSON(data []byte)error
typeMlInferenceIngestProcessor¶
type MlInferenceIngestProcessor struct {NumDocsProcessedMlInferenceIngestProcessorCount `json:"num_docs_processed"`NumFailuresMlInferenceIngestProcessorCount `json:"num_failures"`PipelinesMlCounter `json:"pipelines"`TimeMsMlInferenceIngestProcessorCount `json:"time_ms"`}MlInferenceIngestProcessor type.
funcNewMlInferenceIngestProcessor¶added inv8.5.0
func NewMlInferenceIngestProcessor() *MlInferenceIngestProcessor
NewMlInferenceIngestProcessor returns a MlInferenceIngestProcessor.
typeMlInferenceIngestProcessorCount¶
type MlInferenceIngestProcessorCount struct {Maxint64 `json:"max"`Minint64 `json:"min"`Sumint64 `json:"sum"`}MlInferenceIngestProcessorCount type.
funcNewMlInferenceIngestProcessorCount¶added inv8.5.0
func NewMlInferenceIngestProcessorCount() *MlInferenceIngestProcessorCount
NewMlInferenceIngestProcessorCount returns a MlInferenceIngestProcessorCount.
func (*MlInferenceIngestProcessorCount)UnmarshalJSON¶added inv8.7.1
func (s *MlInferenceIngestProcessorCount) UnmarshalJSON(data []byte)error
typeMlInferenceTrainedModels¶
type MlInferenceTrainedModels struct {All_MlCounter `json:"_all"`Count *MlInferenceTrainedModelsCount `json:"count,omitempty"`EstimatedHeapMemoryUsageBytes *JobStatistics `json:"estimated_heap_memory_usage_bytes,omitempty"`EstimatedOperations *JobStatistics `json:"estimated_operations,omitempty"`ModelSizeBytes *JobStatistics `json:"model_size_bytes,omitempty"`}MlInferenceTrainedModels type.
funcNewMlInferenceTrainedModels¶added inv8.5.0
func NewMlInferenceTrainedModels() *MlInferenceTrainedModels
NewMlInferenceTrainedModels returns a MlInferenceTrainedModels.
typeMlInferenceTrainedModelsCount¶
type MlInferenceTrainedModelsCount struct {Classification *int64 `json:"classification,omitempty"`Ner *int64 `json:"ner,omitempty"`Otherint64 `json:"other"`PassThrough *int64 `json:"pass_through,omitempty"`Prepackagedint64 `json:"prepackaged"`Regression *int64 `json:"regression,omitempty"`TextEmbedding *int64 `json:"text_embedding,omitempty"`Totalint64 `json:"total"`}MlInferenceTrainedModelsCount type.
funcNewMlInferenceTrainedModelsCount¶added inv8.5.0
func NewMlInferenceTrainedModelsCount() *MlInferenceTrainedModelsCount
NewMlInferenceTrainedModelsCount returns a MlInferenceTrainedModelsCount.
func (*MlInferenceTrainedModelsCount)UnmarshalJSON¶added inv8.7.1
func (s *MlInferenceTrainedModelsCount) UnmarshalJSON(data []byte)error
typeMlJobForecasts¶added inv8.5.0
MlJobForecasts type.
funcNewMlJobForecasts¶added inv8.5.0
func NewMlJobForecasts() *MlJobForecasts
NewMlJobForecasts returns a MlJobForecasts.
func (*MlJobForecasts)UnmarshalJSON¶added inv8.7.1
func (s *MlJobForecasts) UnmarshalJSON(data []byte)error
typeModelPackageConfig¶added inv8.17.0
type ModelPackageConfig struct {CreateTime *int64 `json:"create_time,omitempty"`Description *string `json:"description,omitempty"`InferenceConfig map[string]json.RawMessage `json:"inference_config,omitempty"`MetadataMetadata `json:"metadata,omitempty"`MinimumVersion *string `json:"minimum_version,omitempty"`ModelRepository *string `json:"model_repository,omitempty"`ModelType *string `json:"model_type,omitempty"`PackagedModelIdstring `json:"packaged_model_id"`PlatformArchitecture *string `json:"platform_architecture,omitempty"`PrefixStrings *TrainedModelPrefixStrings `json:"prefix_strings,omitempty"`Sha256 *string `json:"sha256,omitempty"`SizeByteSize `json:"size,omitempty"`Tags []string `json:"tags,omitempty"`VocabularyFile *string `json:"vocabulary_file,omitempty"`}ModelPackageConfig type.
funcNewModelPackageConfig¶added inv8.17.0
func NewModelPackageConfig() *ModelPackageConfig
NewModelPackageConfig returns a ModelPackageConfig.
func (*ModelPackageConfig)UnmarshalJSON¶added inv8.17.0
func (s *ModelPackageConfig) UnmarshalJSON(data []byte)error
typeModelPlotConfig¶
type ModelPlotConfig struct {// AnnotationsEnabled If true, enables calculation and storage of the model change annotations for// each entity that is being analyzed.AnnotationsEnabled *bool `json:"annotations_enabled,omitempty"`// Enabled If true, enables calculation and storage of the model bounds for each entity// that is being analyzed.Enabled *bool `json:"enabled,omitempty"`// Terms Limits data collection to this comma separated list of partition or by field// values. If terms are not specified or it is an empty string, no filtering is// applied. Wildcards are not supported. Only the specified terms can be viewed// when using the Single Metric Viewer.Terms *string `json:"terms,omitempty"`}ModelPlotConfig type.
funcNewModelPlotConfig¶added inv8.5.0
func NewModelPlotConfig() *ModelPlotConfig
NewModelPlotConfig returns a ModelPlotConfig.
func (*ModelPlotConfig)UnmarshalJSON¶added inv8.7.1
func (s *ModelPlotConfig) UnmarshalJSON(data []byte)error
typeModelSizeStats¶
type ModelSizeStats struct {AssignmentMemoryBasis *string `json:"assignment_memory_basis,omitempty"`BucketAllocationFailuresCountint64 `json:"bucket_allocation_failures_count"`CategorizationStatuscategorizationstatus.CategorizationStatus `json:"categorization_status"`CategorizedDocCountint `json:"categorized_doc_count"`DeadCategoryCountint `json:"dead_category_count"`FailedCategoryCountint `json:"failed_category_count"`FrequentCategoryCountint `json:"frequent_category_count"`JobIdstring `json:"job_id"`LogTimeDateTime `json:"log_time"`MemoryStatusmemorystatus.MemoryStatus `json:"memory_status"`ModelBytesByteSize `json:"model_bytes"`ModelBytesExceededByteSize `json:"model_bytes_exceeded,omitempty"`ModelBytesMemoryLimitByteSize `json:"model_bytes_memory_limit,omitempty"`OutputMemoryAllocatorBytesByteSize `json:"output_memory_allocator_bytes,omitempty"`PeakModelBytesByteSize `json:"peak_model_bytes,omitempty"`RareCategoryCountint `json:"rare_category_count"`ResultTypestring `json:"result_type"`Timestamp *int64 `json:"timestamp,omitempty"`TotalByFieldCountint64 `json:"total_by_field_count"`TotalCategoryCountint `json:"total_category_count"`TotalOverFieldCountint64 `json:"total_over_field_count"`TotalPartitionFieldCountint64 `json:"total_partition_field_count"`}ModelSizeStats type.
funcNewModelSizeStats¶added inv8.5.0
func NewModelSizeStats() *ModelSizeStats
NewModelSizeStats returns a ModelSizeStats.
func (*ModelSizeStats)UnmarshalJSON¶added inv8.7.1
func (s *ModelSizeStats) UnmarshalJSON(data []byte)error
typeModelSnapshot¶
type ModelSnapshot struct {// Description An optional description of the job.Description *string `json:"description,omitempty"`// JobId A numerical character string that uniquely identifies the job that the// snapshot was created for.JobIdstring `json:"job_id"`// LatestRecordTimeStamp The timestamp of the latest processed record.LatestRecordTimeStamp *int `json:"latest_record_time_stamp,omitempty"`// LatestResultTimeStamp The timestamp of the latest bucket result.LatestResultTimeStamp *int `json:"latest_result_time_stamp,omitempty"`// MinVersion The minimum version required to be able to restore the model snapshot.MinVersionstring `json:"min_version"`// ModelSizeStats Summary information describing the model.ModelSizeStats *ModelSizeStats `json:"model_size_stats,omitempty"`// Retain If true, this snapshot will not be deleted during automatic cleanup of// snapshots older than model_snapshot_retention_days. However, this snapshot// will be deleted when the job is deleted. The default value is false.Retainbool `json:"retain"`// SnapshotDocCount For internal use only.SnapshotDocCountint64 `json:"snapshot_doc_count"`// SnapshotId A numerical character string that uniquely identifies the model snapshot.SnapshotIdstring `json:"snapshot_id"`// Timestamp The creation timestamp for the snapshot.Timestampint64 `json:"timestamp"`}ModelSnapshot type.
funcNewModelSnapshot¶added inv8.5.0
func NewModelSnapshot() *ModelSnapshot
NewModelSnapshot returns a ModelSnapshot.
func (*ModelSnapshot)UnmarshalJSON¶added inv8.7.1
func (s *ModelSnapshot) UnmarshalJSON(data []byte)error
typeModelSnapshotUpgrade¶
type ModelSnapshotUpgrade struct {AssignmentExplanationstring `json:"assignment_explanation"`JobIdstring `json:"job_id"`NodeDiscoveryNode `json:"node"`SnapshotIdstring `json:"snapshot_id"`Statesnapshotupgradestate.SnapshotUpgradeState `json:"state"`}ModelSnapshotUpgrade type.
funcNewModelSnapshotUpgrade¶added inv8.5.0
func NewModelSnapshotUpgrade() *ModelSnapshotUpgrade
NewModelSnapshotUpgrade returns a ModelSnapshotUpgrade.
func (*ModelSnapshotUpgrade)UnmarshalJSON¶added inv8.7.1
func (s *ModelSnapshotUpgrade) UnmarshalJSON(data []byte)error
typeMonitoring¶
type Monitoring struct {Availablebool `json:"available"`CollectionEnabledbool `json:"collection_enabled"`Enabledbool `json:"enabled"`EnabledExporters map[string]int64 `json:"enabled_exporters"`}Monitoring type.
func (*Monitoring)UnmarshalJSON¶added inv8.7.1
func (s *Monitoring) UnmarshalJSON(data []byte)error
typeMoreLikeThisQuery¶
type MoreLikeThisQuery struct {// Analyzer The analyzer that is used to analyze the free form text.// Defaults to the analyzer associated with the first field in fields.Analyzer *string `json:"analyzer,omitempty"`// Boost Floating point number used to decrease or increase the relevance scores of// the query.// Boost values are relative to the default value of 1.0.// A boost value between 0 and 1.0 decreases the relevance score.// A value greater than 1.0 increases the relevance score.Boost *float32 `json:"boost,omitempty"`// BoostTerms Each term in the formed query could be further boosted by their tf-idf score.// This sets the boost factor to use when using this feature.// Defaults to deactivated (0).BoostTerms *Float64 `json:"boost_terms,omitempty"`// FailOnUnsupportedField Controls whether the query should fail (throw an exception) if any of the// specified fields are not of the supported types (`text` or `keyword`).FailOnUnsupportedField *bool `json:"fail_on_unsupported_field,omitempty"`// Fields A list of fields to fetch and analyze the text from.// Defaults to the `index.query.default_field` index setting, which has a// default value of `*`.Fields []string `json:"fields,omitempty"`// Include Specifies whether the input documents should also be included in the search// results returned.Include *bool `json:"include,omitempty"`// Like Specifies free form text and/or a single or multiple documents for which you// want to find similar documents.Like []Like `json:"like"`// MaxDocFreq The maximum document frequency above which the terms are ignored from the// input document.MaxDocFreq *int `json:"max_doc_freq,omitempty"`// MaxQueryTerms The maximum number of query terms that can be selected.MaxQueryTerms *int `json:"max_query_terms,omitempty"`// MaxWordLength The maximum word length above which the terms are ignored.// Defaults to unbounded (`0`).MaxWordLength *int `json:"max_word_length,omitempty"`// MinDocFreq The minimum document frequency below which the terms are ignored from the// input document.MinDocFreq *int `json:"min_doc_freq,omitempty"`// MinTermFreq The minimum term frequency below which the terms are ignored from the input// document.MinTermFreq *int `json:"min_term_freq,omitempty"`// MinWordLength The minimum word length below which the terms are ignored.MinWordLength *int `json:"min_word_length,omitempty"`// MinimumShouldMatch After the disjunctive query has been formed, this parameter controls the// number of terms that must match.MinimumShouldMatchMinimumShouldMatch `json:"minimum_should_match,omitempty"`QueryName_ *string `json:"_name,omitempty"`Routing *string `json:"routing,omitempty"`// StopWords An array of stop words.// Any word in this set is ignored.StopWordsStopWords `json:"stop_words,omitempty"`// Unlike Used in combination with `like` to exclude documents that match a set of// terms.Unlike []Like `json:"unlike,omitempty"`Version *int64 `json:"version,omitempty"`VersionType *versiontype.VersionType `json:"version_type,omitempty"`}MoreLikeThisQuery type.
funcNewMoreLikeThisQuery¶added inv8.5.0
func NewMoreLikeThisQuery() *MoreLikeThisQuery
NewMoreLikeThisQuery returns a MoreLikeThisQuery.
func (*MoreLikeThisQuery)UnmarshalJSON¶added inv8.7.1
func (s *MoreLikeThisQuery) UnmarshalJSON(data []byte)error
typeMountedSnapshot¶
type MountedSnapshot struct {Indices []string `json:"indices"`ShardsShardStatistics `json:"shards"`Snapshotstring `json:"snapshot"`}MountedSnapshot type.
funcNewMountedSnapshot¶added inv8.5.0
func NewMountedSnapshot() *MountedSnapshot
NewMountedSnapshot returns a MountedSnapshot.
func (*MountedSnapshot)UnmarshalJSON¶added inv8.7.1
func (s *MountedSnapshot) UnmarshalJSON(data []byte)error
typeMovingAverageAggregation¶
type MovingAverageAggregationany
MovingAverageAggregation holds the union for the following types:
LinearMovingAverageAggregationSimpleMovingAverageAggregationEwmaMovingAverageAggregationHoltMovingAverageAggregationHoltWintersMovingAverageAggregation
typeMovingFunctionAggregation¶
type MovingFunctionAggregation struct {// BucketsPath Path to the buckets that contain one set of values to correlate.BucketsPathBucketsPath `json:"buckets_path,omitempty"`// Format `DecimalFormat` pattern for the output value.// If specified, the formatted value is returned in the aggregation’s// `value_as_string` property.Format *string `json:"format,omitempty"`// GapPolicy Policy to apply when gaps are found in the data.GapPolicy *gappolicy.GapPolicy `json:"gap_policy,omitempty"`// Script The script that should be executed on each window of data.Script *string `json:"script,omitempty"`// Shift By default, the window consists of the last n values excluding the current// bucket.// Increasing `shift` by 1, moves the starting window position by 1 to the// right.Shift *int `json:"shift,omitempty"`// Window The size of window to "slide" across the histogram.Window *int `json:"window,omitempty"`}MovingFunctionAggregation type.
funcNewMovingFunctionAggregation¶added inv8.5.0
func NewMovingFunctionAggregation() *MovingFunctionAggregation
NewMovingFunctionAggregation returns a MovingFunctionAggregation.
func (*MovingFunctionAggregation)UnmarshalJSON¶added inv8.7.0
func (s *MovingFunctionAggregation) UnmarshalJSON(data []byte)error
typeMovingPercentilesAggregation¶
type MovingPercentilesAggregation struct {// BucketsPath Path to the buckets that contain one set of values to correlate.BucketsPathBucketsPath `json:"buckets_path,omitempty"`// Format `DecimalFormat` pattern for the output value.// If specified, the formatted value is returned in the aggregation’s// `value_as_string` property.Format *string `json:"format,omitempty"`// GapPolicy Policy to apply when gaps are found in the data.GapPolicy *gappolicy.GapPolicy `json:"gap_policy,omitempty"`Keyed *bool `json:"keyed,omitempty"`// Shift By default, the window consists of the last n values excluding the current// bucket.// Increasing `shift` by 1, moves the starting window position by 1 to the// right.Shift *int `json:"shift,omitempty"`// Window The size of window to "slide" across the histogram.Window *int `json:"window,omitempty"`}MovingPercentilesAggregation type.
funcNewMovingPercentilesAggregation¶added inv8.5.0
func NewMovingPercentilesAggregation() *MovingPercentilesAggregation
NewMovingPercentilesAggregation returns a MovingPercentilesAggregation.
func (*MovingPercentilesAggregation)UnmarshalJSON¶added inv8.7.0
func (s *MovingPercentilesAggregation) UnmarshalJSON(data []byte)error
typeMsearchRequestItem¶added inv8.9.0
type MsearchRequestItemany
MsearchRequestItem holds the union for the following types:
MultisearchHeaderMultisearchBody
typeMsearchResponseItem¶added inv8.9.0
type MsearchResponseItemany
MsearchResponseItem holds the union for the following types:
MultiSearchItemErrorResponseBase
typeMultiGetError¶
type MultiGetError struct {ErrorErrorCause `json:"error"`Id_string `json:"_id"`Index_string `json:"_index"`}MultiGetError type.
funcNewMultiGetError¶added inv8.5.0
func NewMultiGetError() *MultiGetError
NewMultiGetError returns a MultiGetError.
func (*MultiGetError)UnmarshalJSON¶added inv8.7.1
func (s *MultiGetError) UnmarshalJSON(data []byte)error
typeMultiMatchQuery¶
type MultiMatchQuery struct {// Analyzer Analyzer used to convert the text in the query value into tokens.Analyzer *string `json:"analyzer,omitempty"`// AutoGenerateSynonymsPhraseQuery If `true`, match phrase queries are automatically created for multi-term// synonyms.AutoGenerateSynonymsPhraseQuery *bool `json:"auto_generate_synonyms_phrase_query,omitempty"`// Boost Floating point number used to decrease or increase the relevance scores of// the query.// Boost values are relative to the default value of 1.0.// A boost value between 0 and 1.0 decreases the relevance score.// A value greater than 1.0 increases the relevance score.Boost *float32 `json:"boost,omitempty"`CutoffFrequency *Float64 `json:"cutoff_frequency,omitempty"`// Fields The fields to be queried.// Defaults to the `index.query.default_field` index settings, which in turn// defaults to `*`.Fields []string `json:"fields,omitempty"`// Fuzziness Maximum edit distance allowed for matching.FuzzinessFuzziness `json:"fuzziness,omitempty"`// FuzzyRewrite Method used to rewrite the query.FuzzyRewrite *string `json:"fuzzy_rewrite,omitempty"`// FuzzyTranspositions If `true`, edits for fuzzy matching include transpositions of two adjacent// characters (for example, `ab` to `ba`).// Can be applied to the term subqueries constructed for all terms but the final// term.FuzzyTranspositions *bool `json:"fuzzy_transpositions,omitempty"`// Lenient If `true`, format-based errors, such as providing a text query value for a// numeric field, are ignored.Lenient *bool `json:"lenient,omitempty"`// MaxExpansions Maximum number of terms to which the query will expand.MaxExpansions *int `json:"max_expansions,omitempty"`// MinimumShouldMatch Minimum number of clauses that must match for a document to be returned.MinimumShouldMatchMinimumShouldMatch `json:"minimum_should_match,omitempty"`// Operator Boolean logic used to interpret text in the query value.Operator *operator.Operator `json:"operator,omitempty"`// PrefixLength Number of beginning characters left unchanged for fuzzy matching.PrefixLength *int `json:"prefix_length,omitempty"`// Query Text, number, boolean value or date you wish to find in the provided field.Querystring `json:"query"`QueryName_ *string `json:"_name,omitempty"`// Slop Maximum number of positions allowed between matching tokens.Slop *int `json:"slop,omitempty"`// TieBreaker Determines how scores for each per-term blended query and scores across// groups are combined.TieBreaker *Float64 `json:"tie_breaker,omitempty"`// Type How `the` multi_match query is executed internally.Type *textquerytype.TextQueryType `json:"type,omitempty"`// ZeroTermsQuery Indicates whether no documents are returned if the `analyzer` removes all// tokens, such as when using a `stop` filter.ZeroTermsQuery *zerotermsquery.ZeroTermsQuery `json:"zero_terms_query,omitempty"`}MultiMatchQuery type.
funcNewMultiMatchQuery¶added inv8.5.0
func NewMultiMatchQuery() *MultiMatchQuery
NewMultiMatchQuery returns a MultiMatchQuery.
func (*MultiMatchQuery)UnmarshalJSON¶added inv8.7.1
func (s *MultiMatchQuery) UnmarshalJSON(data []byte)error
typeMultiSearchItem¶added inv8.9.0
type MultiSearchItem struct {Aggregations map[string]Aggregate `json:"aggregations,omitempty"`Clusters_ *ClusterStatistics `json:"_clusters,omitempty"`Fields map[string]json.RawMessage `json:"fields,omitempty"`// Hits The returned documents and metadata.HitsHitsMetadata `json:"hits"`MaxScore *Float64 `json:"max_score,omitempty"`NumReducePhases *int64 `json:"num_reduce_phases,omitempty"`PitId *string `json:"pit_id,omitempty"`Profile *Profile `json:"profile,omitempty"`// ScrollId_ The identifier for the search and its search context.// You can use this scroll ID with the scroll API to retrieve the next batch of// search results for the request.// This property is returned only if the `scroll` query parameter is specified// in the request.ScrollId_ *string `json:"_scroll_id,omitempty"`// Shards_ A count of shards used for the request.Shards_ShardStatistics `json:"_shards"`Status *int `json:"status,omitempty"`Suggest map[string][]Suggest `json:"suggest,omitempty"`TerminatedEarly *bool `json:"terminated_early,omitempty"`// TimedOut If `true`, the request timed out before completion; returned results may be// partial or empty.TimedOutbool `json:"timed_out"`// Took The number of milliseconds it took Elasticsearch to run the request.// This value is calculated by measuring the time elapsed between receipt of a// request on the coordinating node and the time at which the coordinating node// is ready to send the response.// It includes://// * Communication time between the coordinating node and data nodes// * Time the request spends in the search thread pool, queued for execution// * Actual run time//// It does not include://// * Time needed to send the request to Elasticsearch// * Time needed to serialize the JSON response// * Time needed to send the response to a clientTookint64 `json:"took"`}MultiSearchItem type.
funcNewMultiSearchItem¶added inv8.9.0
func NewMultiSearchItem() *MultiSearchItem
NewMultiSearchItem returns a MultiSearchItem.
func (*MultiSearchItem)UnmarshalJSON¶added inv8.9.0
func (s *MultiSearchItem) UnmarshalJSON(data []byte)error
typeMultiTermLookup¶
type MultiTermLookup struct {// Field A fields from which to retrieve terms.Fieldstring `json:"field"`// Missing The value to apply to documents that do not have a value.// By default, documents without a value are ignored.MissingMissing `json:"missing,omitempty"`}MultiTermLookup type.
funcNewMultiTermLookup¶added inv8.5.0
func NewMultiTermLookup() *MultiTermLookup
NewMultiTermLookup returns a MultiTermLookup.
func (*MultiTermLookup)UnmarshalJSON¶added inv8.7.1
func (s *MultiTermLookup) UnmarshalJSON(data []byte)error
typeMultiTermsAggregate¶
type MultiTermsAggregate struct {BucketsBucketsMultiTermsBucket `json:"buckets"`DocCountErrorUpperBound *int64 `json:"doc_count_error_upper_bound,omitempty"`MetaMetadata `json:"meta,omitempty"`SumOtherDocCount *int64 `json:"sum_other_doc_count,omitempty"`}MultiTermsAggregate type.
funcNewMultiTermsAggregate¶added inv8.5.0
func NewMultiTermsAggregate() *MultiTermsAggregate
NewMultiTermsAggregate returns a MultiTermsAggregate.
func (*MultiTermsAggregate)UnmarshalJSON¶added inv8.7.0
func (s *MultiTermsAggregate) UnmarshalJSON(data []byte)error
typeMultiTermsAggregation¶
type MultiTermsAggregation struct {// CollectMode Specifies the strategy for data collection.CollectMode *termsaggregationcollectmode.TermsAggregationCollectMode `json:"collect_mode,omitempty"`// MinDocCount The minimum number of documents in a bucket for it to be returned.MinDocCount *int64 `json:"min_doc_count,omitempty"`// Order Specifies the sort order of the buckets.// Defaults to sorting by descending document count.OrderAggregateOrder `json:"order,omitempty"`// ShardMinDocCount The minimum number of documents in a bucket on each shard for it to be// returned.ShardMinDocCount *int64 `json:"shard_min_doc_count,omitempty"`// ShardSize The number of candidate terms produced by each shard.// By default, `shard_size` will be automatically estimated based on the number// of shards and the `size` parameter.ShardSize *int `json:"shard_size,omitempty"`// ShowTermDocCountError Calculates the doc count error on per term basis.ShowTermDocCountError *bool `json:"show_term_doc_count_error,omitempty"`// Size The number of term buckets should be returned out of the overall terms list.Size *int `json:"size,omitempty"`// Terms The field from which to generate sets of terms.Terms []MultiTermLookup `json:"terms"`}MultiTermsAggregation type.
funcNewMultiTermsAggregation¶added inv8.5.0
func NewMultiTermsAggregation() *MultiTermsAggregation
NewMultiTermsAggregation returns a MultiTermsAggregation.
func (*MultiTermsAggregation)UnmarshalJSON¶added inv8.7.0
func (s *MultiTermsAggregation) UnmarshalJSON(data []byte)error
typeMultiTermsBucket¶
type MultiTermsBucket struct {Aggregations map[string]Aggregate `json:"-"`DocCountint64 `json:"doc_count"`DocCountErrorUpperBound *int64 `json:"doc_count_error_upper_bound,omitempty"`Key []FieldValue `json:"key"`KeyAsString *string `json:"key_as_string,omitempty"`}MultiTermsBucket type.
funcNewMultiTermsBucket¶added inv8.5.0
func NewMultiTermsBucket() *MultiTermsBucket
NewMultiTermsBucket returns a MultiTermsBucket.
func (MultiTermsBucket)MarshalJSON¶
func (sMultiTermsBucket) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
func (*MultiTermsBucket)UnmarshalJSON¶added inv8.7.0
func (s *MultiTermsBucket) UnmarshalJSON(data []byte)error
typeMultiplexerTokenFilter¶
type MultiplexerTokenFilter struct {// Filters A list of token filters to apply to incoming tokens.Filters []string `json:"filters"`// PreserveOriginal If `true` (the default) then emit the original token in addition to the// filtered tokens.PreserveOriginalStringifiedboolean `json:"preserve_original,omitempty"`Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}MultiplexerTokenFilter type.
funcNewMultiplexerTokenFilter¶added inv8.5.0
func NewMultiplexerTokenFilter() *MultiplexerTokenFilter
NewMultiplexerTokenFilter returns a MultiplexerTokenFilter.
func (MultiplexerTokenFilter)MarshalJSON¶added inv8.9.0
func (sMultiplexerTokenFilter) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*MultiplexerTokenFilter)UnmarshalJSON¶added inv8.7.1
func (s *MultiplexerTokenFilter) UnmarshalJSON(data []byte)error
typeMultisearchBody¶added inv8.9.0
type MultisearchBody struct {Aggregations map[string]Aggregations `json:"aggregations,omitempty"`Collapse *FieldCollapse `json:"collapse,omitempty"`// DocvalueFields Array of wildcard (*) patterns. The request returns doc values for field// names matching these patterns in the hits.fields property of the response.DocvalueFields []FieldAndFormat `json:"docvalue_fields,omitempty"`// Explain If true, returns detailed information about score computation as part of a// hit.Explain *bool `json:"explain,omitempty"`// Ext Configuration of search extensions defined by Elasticsearch plugins.Ext map[string]json.RawMessage `json:"ext,omitempty"`// Fields Array of wildcard (*) patterns. The request returns values for field names// matching these patterns in the hits.fields property of the response.Fields []FieldAndFormat `json:"fields,omitempty"`// From Starting document offset. By default, you cannot page through more than// 10,000// hits using the from and size parameters. To page through more hits, use the// search_after parameter.From *int `json:"from,omitempty"`Highlight *Highlight `json:"highlight,omitempty"`// IndicesBoost Boosts the _score of documents from specified indices.IndicesBoost []map[string]Float64 `json:"indices_boost,omitempty"`// Knn Defines the approximate kNN search to run.Knn []KnnSearch `json:"knn,omitempty"`// MinScore The minimum `_score` for matching documents.// Documents with a lower `_score` are not included in search results and// results collected by aggregations.MinScore *Float64 `json:"min_score,omitempty"`// Pit Limits the search to a point in time (PIT). If you provide a PIT, you// cannot specify an <index> in the request path.Pit *PointInTimeReference `json:"pit,omitempty"`PostFilter *Query `json:"post_filter,omitempty"`Profile *bool `json:"profile,omitempty"`// Query Defines the search definition using the Query DSL.Query *Query `json:"query,omitempty"`Rescore []Rescore `json:"rescore,omitempty"`// RuntimeMappings Defines one or more runtime fields in the search request. These fields take// precedence over mapped fields with the same name.RuntimeMappingsRuntimeFields `json:"runtime_mappings,omitempty"`// ScriptFields Retrieve a script evaluation (based on different fields) for each hit.ScriptFields map[string]ScriptField `json:"script_fields,omitempty"`SearchAfter []FieldValue `json:"search_after,omitempty"`// SeqNoPrimaryTerm If true, returns sequence number and primary term of the last modification// of each hit. See Optimistic concurrency control.SeqNoPrimaryTerm *bool `json:"seq_no_primary_term,omitempty"`// Size The number of hits to return. By default, you cannot page through more// than 10,000 hits using the from and size parameters. To page through more// hits, use the search_after parameter.Size *int `json:"size,omitempty"`Sort []SortCombinations `json:"sort,omitempty"`// Source_ Indicates which source fields are returned for matching documents. These// fields are returned in the hits._source property of the search response.Source_SourceConfig `json:"_source,omitempty"`// Stats Stats groups to associate with the search. Each group maintains a statistics// aggregation for its associated searches. You can retrieve these stats using// the indices stats API.Stats []string `json:"stats,omitempty"`// StoredFields List of stored fields to return as part of a hit. If no fields are specified,// no stored fields are included in the response. If this field is specified,// the _source// parameter defaults to false. You can pass _source: true to return both source// fields// and stored fields in the search response.StoredFields []string `json:"stored_fields,omitempty"`Suggest *Suggester `json:"suggest,omitempty"`// TerminateAfter Maximum number of documents to collect for each shard. If a query reaches// this// limit, Elasticsearch terminates the query early. Elasticsearch collects// documents// before sorting. Defaults to 0, which does not terminate query execution// early.TerminateAfter *int64 `json:"terminate_after,omitempty"`// Timeout Specifies the period of time to wait for a response from each shard. If no// response// is received before the timeout expires, the request fails and returns an// error.// Defaults to no timeout.Timeout *string `json:"timeout,omitempty"`// TrackScores If true, calculate and return document scores, even if the scores are not// used for sorting.TrackScores *bool `json:"track_scores,omitempty"`// TrackTotalHits Number of hits matching the query to count accurately. If true, the exact// number of hits is returned at the cost of some performance. If false, the// response does not include the total number of hits matching the query.// Defaults to 10,000 hits.TrackTotalHitsTrackHits `json:"track_total_hits,omitempty"`// Version If true, returns document version as part of a hit.Version *bool `json:"version,omitempty"`}MultisearchBody type.
funcNewMultisearchBody¶added inv8.9.0
func NewMultisearchBody() *MultisearchBody
NewMultisearchBody returns a MultisearchBody.
func (*MultisearchBody)UnmarshalJSON¶added inv8.9.0
func (s *MultisearchBody) UnmarshalJSON(data []byte)error
typeMultisearchHeader¶added inv8.9.0
type MultisearchHeader struct {AllowNoIndices *bool `json:"allow_no_indices,omitempty"`AllowPartialSearchResults *bool `json:"allow_partial_search_results,omitempty"`CcsMinimizeRoundtrips *bool `json:"ccs_minimize_roundtrips,omitempty"`ExpandWildcards []expandwildcard.ExpandWildcard `json:"expand_wildcards,omitempty"`IgnoreThrottled *bool `json:"ignore_throttled,omitempty"`IgnoreUnavailable *bool `json:"ignore_unavailable,omitempty"`Index []string `json:"index,omitempty"`Preference *string `json:"preference,omitempty"`RequestCache *bool `json:"request_cache,omitempty"`Routing *string `json:"routing,omitempty"`SearchType *searchtype.SearchType `json:"search_type,omitempty"`}MultisearchHeader type.
funcNewMultisearchHeader¶added inv8.9.0
func NewMultisearchHeader() *MultisearchHeader
NewMultisearchHeader returns a MultisearchHeader.
func (*MultisearchHeader)UnmarshalJSON¶added inv8.9.0
func (s *MultisearchHeader) UnmarshalJSON(data []byte)error
typeMurmur3HashProperty¶
type Murmur3HashProperty struct {CopyTo []string `json:"copy_to,omitempty"`DocValues *bool `json:"doc_values,omitempty"`Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`Fields map[string]Property `json:"fields,omitempty"`IgnoreAbove *int `json:"ignore_above,omitempty"`// Meta Metadata about the field.Meta map[string]string `json:"meta,omitempty"`Properties map[string]Property `json:"properties,omitempty"`Store *bool `json:"store,omitempty"`SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`Typestring `json:"type,omitempty"`}Murmur3HashProperty type.
funcNewMurmur3HashProperty¶added inv8.5.0
func NewMurmur3HashProperty() *Murmur3HashProperty
NewMurmur3HashProperty returns a Murmur3HashProperty.
func (Murmur3HashProperty)MarshalJSON¶added inv8.9.0
func (sMurmur3HashProperty) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*Murmur3HashProperty)UnmarshalJSON¶added inv8.7.0
func (s *Murmur3HashProperty) UnmarshalJSON(data []byte)error
typeMutualInformationHeuristic¶
type MutualInformationHeuristic struct {// BackgroundIsSuperset Set to `false` if you defined a custom background filter that represents a// different set of documents that you want to compare to.BackgroundIsSuperset *bool `json:"background_is_superset,omitempty"`// IncludeNegatives Set to `false` to filter out the terms that appear less often in the subset// than in documents outside the subset.IncludeNegatives *bool `json:"include_negatives,omitempty"`}MutualInformationHeuristic type.
funcNewMutualInformationHeuristic¶added inv8.5.0
func NewMutualInformationHeuristic() *MutualInformationHeuristic
NewMutualInformationHeuristic returns a MutualInformationHeuristic.
func (*MutualInformationHeuristic)UnmarshalJSON¶added inv8.7.1
func (s *MutualInformationHeuristic) UnmarshalJSON(data []byte)error
typeNGramTokenFilter¶
type NGramTokenFilter struct {// MaxGram Maximum length of characters in a gram. Defaults to `2`.MaxGram *int `json:"max_gram,omitempty"`// MinGram Minimum length of characters in a gram. Defaults to `1`.MinGram *int `json:"min_gram,omitempty"`// PreserveOriginal Emits original token when set to `true`. Defaults to `false`.PreserveOriginalStringifiedboolean `json:"preserve_original,omitempty"`Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}NGramTokenFilter type.
funcNewNGramTokenFilter¶added inv8.5.0
func NewNGramTokenFilter() *NGramTokenFilter
NewNGramTokenFilter returns a NGramTokenFilter.
func (NGramTokenFilter)MarshalJSON¶added inv8.9.0
func (sNGramTokenFilter) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*NGramTokenFilter)UnmarshalJSON¶added inv8.7.1
func (s *NGramTokenFilter) UnmarshalJSON(data []byte)error
typeNGramTokenizer¶
type NGramTokenizer struct {CustomTokenChars *string `json:"custom_token_chars,omitempty"`MaxGram *int `json:"max_gram,omitempty"`MinGram *int `json:"min_gram,omitempty"`TokenChars []tokenchar.TokenChar `json:"token_chars,omitempty"`Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}NGramTokenizer type.
funcNewNGramTokenizer¶added inv8.5.0
func NewNGramTokenizer() *NGramTokenizer
NewNGramTokenizer returns a NGramTokenizer.
func (NGramTokenizer)MarshalJSON¶added inv8.9.0
func (sNGramTokenizer) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*NGramTokenizer)UnmarshalJSON¶added inv8.7.1
func (s *NGramTokenizer) UnmarshalJSON(data []byte)error
typeNativeCode¶
NativeCode type.
func (*NativeCode)UnmarshalJSON¶added inv8.7.1
func (s *NativeCode) UnmarshalJSON(data []byte)error
typeNativeCodeInformation¶
type NativeCodeInformation struct {BuildHashstring `json:"build_hash"`Versionstring `json:"version"`}NativeCodeInformation type.
funcNewNativeCodeInformation¶added inv8.5.0
func NewNativeCodeInformation() *NativeCodeInformation
NewNativeCodeInformation returns a NativeCodeInformation.
func (*NativeCodeInformation)UnmarshalJSON¶added inv8.7.1
func (s *NativeCodeInformation) UnmarshalJSON(data []byte)error
typeNerInferenceOptions¶
type NerInferenceOptions struct {// ClassificationLabels The token classification labels. Must be IOB formatted tagsClassificationLabels []string `json:"classification_labels,omitempty"`// ResultsField The field that is added to incoming documents to contain the inference// prediction. Defaults to predicted_value.ResultsField *string `json:"results_field,omitempty"`// Tokenization The tokenization optionsTokenization *TokenizationConfigContainer `json:"tokenization,omitempty"`Vocabulary *Vocabulary `json:"vocabulary,omitempty"`}NerInferenceOptions type.
funcNewNerInferenceOptions¶added inv8.5.0
func NewNerInferenceOptions() *NerInferenceOptions
NewNerInferenceOptions returns a NerInferenceOptions.
func (*NerInferenceOptions)UnmarshalJSON¶added inv8.9.0
func (s *NerInferenceOptions) UnmarshalJSON(data []byte)error
typeNerInferenceUpdateOptions¶
type NerInferenceUpdateOptions struct {// ResultsField The field that is added to incoming documents to contain the inference// prediction. Defaults to predicted_value.ResultsField *string `json:"results_field,omitempty"`// Tokenization The tokenization options to update when inferringTokenization *NlpTokenizationUpdateOptions `json:"tokenization,omitempty"`}NerInferenceUpdateOptions type.
funcNewNerInferenceUpdateOptions¶added inv8.5.0
func NewNerInferenceUpdateOptions() *NerInferenceUpdateOptions
NewNerInferenceUpdateOptions returns a NerInferenceUpdateOptions.
func (*NerInferenceUpdateOptions)UnmarshalJSON¶added inv8.9.0
func (s *NerInferenceUpdateOptions) UnmarshalJSON(data []byte)error
typeNestedAggregate¶
type NestedAggregate struct {Aggregations map[string]Aggregate `json:"-"`DocCountint64 `json:"doc_count"`MetaMetadata `json:"meta,omitempty"`}NestedAggregate type.
funcNewNestedAggregate¶added inv8.5.0
func NewNestedAggregate() *NestedAggregate
NewNestedAggregate returns a NestedAggregate.
func (NestedAggregate)MarshalJSON¶
func (sNestedAggregate) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
func (*NestedAggregate)UnmarshalJSON¶added inv8.7.0
func (s *NestedAggregate) UnmarshalJSON(data []byte)error
typeNestedAggregation¶
type NestedAggregation struct {// Path The path to the field of type `nested`.Path *string `json:"path,omitempty"`}NestedAggregation type.
funcNewNestedAggregation¶added inv8.5.0
func NewNestedAggregation() *NestedAggregation
NewNestedAggregation returns a NestedAggregation.
func (*NestedAggregation)UnmarshalJSON¶added inv8.7.1
func (s *NestedAggregation) UnmarshalJSON(data []byte)error
typeNestedIdentity¶
type NestedIdentity struct {Fieldstring `json:"field"`Nested_ *NestedIdentity `json:"_nested,omitempty"`Offsetint `json:"offset"`}NestedIdentity type.
funcNewNestedIdentity¶added inv8.5.0
func NewNestedIdentity() *NestedIdentity
NewNestedIdentity returns a NestedIdentity.
func (*NestedIdentity)UnmarshalJSON¶added inv8.7.1
func (s *NestedIdentity) UnmarshalJSON(data []byte)error
typeNestedProperty¶
type NestedProperty struct {CopyTo []string `json:"copy_to,omitempty"`Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`Enabled *bool `json:"enabled,omitempty"`Fields map[string]Property `json:"fields,omitempty"`IgnoreAbove *int `json:"ignore_above,omitempty"`IncludeInParent *bool `json:"include_in_parent,omitempty"`IncludeInRoot *bool `json:"include_in_root,omitempty"`// Meta Metadata about the field.Meta map[string]string `json:"meta,omitempty"`Properties map[string]Property `json:"properties,omitempty"`Store *bool `json:"store,omitempty"`SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`Typestring `json:"type,omitempty"`}NestedProperty type.
funcNewNestedProperty¶added inv8.5.0
func NewNestedProperty() *NestedProperty
NewNestedProperty returns a NestedProperty.
func (NestedProperty)MarshalJSON¶added inv8.9.0
func (sNestedProperty) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*NestedProperty)UnmarshalJSON¶added inv8.7.0
func (s *NestedProperty) UnmarshalJSON(data []byte)error
typeNestedQuery¶
type NestedQuery struct {// Boost Floating point number used to decrease or increase the relevance scores of// the query.// Boost values are relative to the default value of 1.0.// A boost value between 0 and 1.0 decreases the relevance score.// A value greater than 1.0 increases the relevance score.Boost *float32 `json:"boost,omitempty"`// IgnoreUnmapped Indicates whether to ignore an unmapped path and not return any documents// instead of an error.IgnoreUnmapped *bool `json:"ignore_unmapped,omitempty"`// InnerHits If defined, each search hit will contain inner hits.InnerHits *InnerHits `json:"inner_hits,omitempty"`// Path Path to the nested object you wish to search.Pathstring `json:"path"`// Query Query you wish to run on nested objects in the path.QueryQuery `json:"query"`QueryName_ *string `json:"_name,omitempty"`// ScoreMode How scores for matching child objects affect the root parent document’s// relevance score.ScoreMode *childscoremode.ChildScoreMode `json:"score_mode,omitempty"`}NestedQuery type.
funcNewNestedQuery¶added inv8.5.0
func NewNestedQuery() *NestedQuery
NewNestedQuery returns a NestedQuery.
func (*NestedQuery)UnmarshalJSON¶added inv8.7.1
func (s *NestedQuery) UnmarshalJSON(data []byte)error
typeNestedSortValue¶
type NestedSortValue struct {Filter *Query `json:"filter,omitempty"`MaxChildren *int `json:"max_children,omitempty"`Nested *NestedSortValue `json:"nested,omitempty"`Pathstring `json:"path"`}NestedSortValue type.
funcNewNestedSortValue¶added inv8.5.0
func NewNestedSortValue() *NestedSortValue
NewNestedSortValue returns a NestedSortValue.
func (*NestedSortValue)UnmarshalJSON¶added inv8.7.1
func (s *NestedSortValue) UnmarshalJSON(data []byte)error
typeNetworkDirectionProcessor¶added inv8.16.0
type NetworkDirectionProcessor struct {// Description Description of the processor.// Useful for describing the purpose of the processor or its configuration.Description *string `json:"description,omitempty"`// DestinationIp Field containing the destination IP address.DestinationIp *string `json:"destination_ip,omitempty"`// If Conditionally execute the processor.If *string `json:"if,omitempty"`// IgnoreFailure Ignore failures for the processor.IgnoreFailure *bool `json:"ignore_failure,omitempty"`// IgnoreMissing If true and any required fields are missing, the processor quietly exits// without modifying the document.IgnoreMissing *bool `json:"ignore_missing,omitempty"`// InternalNetworks List of internal networks. Supports IPv4 and IPv6 addresses and ranges in// CIDR notation. Also supports the named ranges listed below. These may be// constructed with template snippets. Must specify only one of// internal_networks or internal_networks_field.InternalNetworks []string `json:"internal_networks,omitempty"`// InternalNetworksField A field on the given document to read the internal_networks configuration// from.InternalNetworksField *string `json:"internal_networks_field,omitempty"`// OnFailure Handle failures for the processor.OnFailure []ProcessorContainer `json:"on_failure,omitempty"`// SourceIp Field containing the source IP address.SourceIp *string `json:"source_ip,omitempty"`// Tag Identifier for the processor.// Useful for debugging and metrics.Tag *string `json:"tag,omitempty"`// TargetField Output field for the network direction.TargetField *string `json:"target_field,omitempty"`}NetworkDirectionProcessor type.
funcNewNetworkDirectionProcessor¶added inv8.16.0
func NewNetworkDirectionProcessor() *NetworkDirectionProcessor
NewNetworkDirectionProcessor returns a NetworkDirectionProcessor.
func (*NetworkDirectionProcessor)UnmarshalJSON¶added inv8.16.0
func (s *NetworkDirectionProcessor) UnmarshalJSON(data []byte)error
typeNeverCondition¶
type NeverCondition struct {}NeverCondition type.
funcNewNeverCondition¶added inv8.5.0
func NewNeverCondition() *NeverCondition
NewNeverCondition returns a NeverCondition.
typeNlpBertTokenizationConfig¶
type NlpBertTokenizationConfig struct {// DoLowerCase Should the tokenizer lower case the textDoLowerCase *bool `json:"do_lower_case,omitempty"`// MaxSequenceLength Maximum input sequence length for the modelMaxSequenceLength *int `json:"max_sequence_length,omitempty"`// Span Tokenization spanning options. Special value of -1 indicates no spanning// takes placeSpan *int `json:"span,omitempty"`// Truncate Should tokenization input be automatically truncated before sending to the// model for inferenceTruncate *tokenizationtruncate.TokenizationTruncate `json:"truncate,omitempty"`// WithSpecialTokens Is tokenization completed with special tokensWithSpecialTokens *bool `json:"with_special_tokens,omitempty"`}NlpBertTokenizationConfig type.
funcNewNlpBertTokenizationConfig¶added inv8.5.0
func NewNlpBertTokenizationConfig() *NlpBertTokenizationConfig
NewNlpBertTokenizationConfig returns a NlpBertTokenizationConfig.
func (*NlpBertTokenizationConfig)UnmarshalJSON¶added inv8.7.1
func (s *NlpBertTokenizationConfig) UnmarshalJSON(data []byte)error
typeNlpRobertaTokenizationConfig¶
type NlpRobertaTokenizationConfig struct {// AddPrefixSpace Should the tokenizer prefix input with a space characterAddPrefixSpace *bool `json:"add_prefix_space,omitempty"`// DoLowerCase Should the tokenizer lower case the textDoLowerCase *bool `json:"do_lower_case,omitempty"`// MaxSequenceLength Maximum input sequence length for the modelMaxSequenceLength *int `json:"max_sequence_length,omitempty"`// Span Tokenization spanning options. Special value of -1 indicates no spanning// takes placeSpan *int `json:"span,omitempty"`// Truncate Should tokenization input be automatically truncated before sending to the// model for inferenceTruncate *tokenizationtruncate.TokenizationTruncate `json:"truncate,omitempty"`// WithSpecialTokens Is tokenization completed with special tokensWithSpecialTokens *bool `json:"with_special_tokens,omitempty"`}NlpRobertaTokenizationConfig type.
funcNewNlpRobertaTokenizationConfig¶added inv8.5.0
func NewNlpRobertaTokenizationConfig() *NlpRobertaTokenizationConfig
NewNlpRobertaTokenizationConfig returns a NlpRobertaTokenizationConfig.
func (*NlpRobertaTokenizationConfig)UnmarshalJSON¶added inv8.7.1
func (s *NlpRobertaTokenizationConfig) UnmarshalJSON(data []byte)error
typeNlpTokenizationUpdateOptions¶
type NlpTokenizationUpdateOptions struct {// Span Span options to applySpan *int `json:"span,omitempty"`// Truncate Truncate options to applyTruncate *tokenizationtruncate.TokenizationTruncate `json:"truncate,omitempty"`}NlpTokenizationUpdateOptions type.
funcNewNlpTokenizationUpdateOptions¶added inv8.5.0
func NewNlpTokenizationUpdateOptions() *NlpTokenizationUpdateOptions
NewNlpTokenizationUpdateOptions returns a NlpTokenizationUpdateOptions.
func (*NlpTokenizationUpdateOptions)UnmarshalJSON¶added inv8.7.1
func (s *NlpTokenizationUpdateOptions) UnmarshalJSON(data []byte)error
typeNodeAllocationExplanation¶
type NodeAllocationExplanation struct {Deciders []AllocationDecision `json:"deciders"`NodeAttributes map[string]string `json:"node_attributes"`NodeDecisiondecision.Decision `json:"node_decision"`NodeIdstring `json:"node_id"`NodeNamestring `json:"node_name"`Roles []noderole.NodeRole `json:"roles"`Store *AllocationStore `json:"store,omitempty"`TransportAddressstring `json:"transport_address"`WeightRankingint `json:"weight_ranking"`}NodeAllocationExplanation type.
funcNewNodeAllocationExplanation¶added inv8.5.0
func NewNodeAllocationExplanation() *NodeAllocationExplanation
NewNodeAllocationExplanation returns a NodeAllocationExplanation.
func (*NodeAllocationExplanation)UnmarshalJSON¶added inv8.7.1
func (s *NodeAllocationExplanation) UnmarshalJSON(data []byte)error
typeNodeAttributes¶
type NodeAttributes struct {// Attributes Lists node attributes.Attributes map[string]string `json:"attributes"`// EphemeralId The ephemeral ID of the node.EphemeralIdstring `json:"ephemeral_id"`// Id The unique identifier of the node.Id *string `json:"id,omitempty"`// Name The unique identifier of the node.Namestring `json:"name"`// TransportAddress The host and port where transport HTTP connections are accepted.TransportAddressstring `json:"transport_address"`}NodeAttributes type.
funcNewNodeAttributes¶added inv8.5.0
func NewNodeAttributes() *NodeAttributes
NewNodeAttributes returns a NodeAttributes.
func (*NodeAttributes)UnmarshalJSON¶added inv8.7.1
func (s *NodeAttributes) UnmarshalJSON(data []byte)error
typeNodeAttributesRecord¶
type NodeAttributesRecord struct {// Attr The attribute name.Attr *string `json:"attr,omitempty"`// Host The host name.Host *string `json:"host,omitempty"`// Id The unique node identifier.Id *string `json:"id,omitempty"`// Ip The IP address.Ip *string `json:"ip,omitempty"`// Node The node name.Node *string `json:"node,omitempty"`// Pid The process identifier.Pid *string `json:"pid,omitempty"`// Port The bound transport port.Port *string `json:"port,omitempty"`// Value The attribute value.Value *string `json:"value,omitempty"`}NodeAttributesRecord type.
funcNewNodeAttributesRecord¶added inv8.5.0
func NewNodeAttributesRecord() *NodeAttributesRecord
NewNodeAttributesRecord returns a NodeAttributesRecord.
func (*NodeAttributesRecord)UnmarshalJSON¶added inv8.9.0
func (s *NodeAttributesRecord) UnmarshalJSON(data []byte)error
typeNodeBufferPool¶
type NodeBufferPool struct {// Count Number of buffer pools.Count *int64 `json:"count,omitempty"`// TotalCapacity Total capacity of buffer pools.TotalCapacity *string `json:"total_capacity,omitempty"`// TotalCapacityInBytes Total capacity of buffer pools in bytes.TotalCapacityInBytes *int64 `json:"total_capacity_in_bytes,omitempty"`// Used Size of buffer pools.Used *string `json:"used,omitempty"`// UsedInBytes Size of buffer pools in bytes.UsedInBytes *int64 `json:"used_in_bytes,omitempty"`}NodeBufferPool type.
funcNewNodeBufferPool¶added inv8.5.0
func NewNodeBufferPool() *NodeBufferPool
NewNodeBufferPool returns a NodeBufferPool.
func (*NodeBufferPool)UnmarshalJSON¶added inv8.7.1
func (s *NodeBufferPool) UnmarshalJSON(data []byte)error
typeNodeDiskUsage¶
type NodeDiskUsage struct {LeastAvailableDiskUsage `json:"least_available"`MostAvailableDiskUsage `json:"most_available"`NodeNamestring `json:"node_name"`}NodeDiskUsage type.
funcNewNodeDiskUsage¶added inv8.5.0
func NewNodeDiskUsage() *NodeDiskUsage
NewNodeDiskUsage returns a NodeDiskUsage.
func (*NodeDiskUsage)UnmarshalJSON¶added inv8.7.1
func (s *NodeDiskUsage) UnmarshalJSON(data []byte)error
typeNodeInfo¶
type NodeInfo struct {Aggregations map[string]NodeInfoAggregation `json:"aggregations,omitempty"`Attributes map[string]string `json:"attributes"`BuildFlavorstring `json:"build_flavor"`// BuildHash Short hash of the last git commit in this release.BuildHashstring `json:"build_hash"`BuildTypestring `json:"build_type"`ComponentVersions map[string]int `json:"component_versions"`// Host The node’s host name.Hoststring `json:"host"`Http *NodeInfoHttp `json:"http,omitempty"`IndexVersionint64 `json:"index_version"`Ingest *NodeInfoIngest `json:"ingest,omitempty"`// Ip The node’s IP address.Ipstring `json:"ip"`Jvm *NodeJvmInfo `json:"jvm,omitempty"`Modules []PluginStats `json:"modules,omitempty"`// Name The node's nameNamestring `json:"name"`Os *NodeOperatingSystemInfo `json:"os,omitempty"`Plugins []PluginStats `json:"plugins,omitempty"`Process *NodeProcessInfo `json:"process,omitempty"`RemoteClusterServer *RemoveClusterServer `json:"remote_cluster_server,omitempty"`Roles []noderole.NodeRole `json:"roles"`Settings *NodeInfoSettings `json:"settings,omitempty"`ThreadPool map[string]NodeThreadPoolInfo `json:"thread_pool,omitempty"`// TotalIndexingBuffer Total heap allowed to be used to hold recently indexed documents before they// must be written to disk. This size is a shared pool across all shards on this// node, and is controlled by Indexing Buffer settings.TotalIndexingBuffer *int64 `json:"total_indexing_buffer,omitempty"`// TotalIndexingBufferInBytes Same as total_indexing_buffer, but expressed in bytes.TotalIndexingBufferInBytesByteSize `json:"total_indexing_buffer_in_bytes,omitempty"`Transport *NodeInfoTransport `json:"transport,omitempty"`// TransportAddress Host and port where transport HTTP connections are accepted.TransportAddressstring `json:"transport_address"`TransportVersionint64 `json:"transport_version"`// Version Elasticsearch version running on this node.Versionstring `json:"version"`}NodeInfo type.
func (*NodeInfo)UnmarshalJSON¶added inv8.7.1
typeNodeInfoAction¶
type NodeInfoAction struct {DestructiveRequiresNamestring `json:"destructive_requires_name"`}NodeInfoAction type.
funcNewNodeInfoAction¶added inv8.5.0
func NewNodeInfoAction() *NodeInfoAction
NewNodeInfoAction returns a NodeInfoAction.
func (*NodeInfoAction)UnmarshalJSON¶added inv8.9.0
func (s *NodeInfoAction) UnmarshalJSON(data []byte)error
typeNodeInfoAggregation¶
type NodeInfoAggregation struct {Types []string `json:"types"`}NodeInfoAggregation type.
funcNewNodeInfoAggregation¶added inv8.5.0
func NewNodeInfoAggregation() *NodeInfoAggregation
NewNodeInfoAggregation returns a NodeInfoAggregation.
typeNodeInfoBootstrap¶
type NodeInfoBootstrap struct {MemoryLockstring `json:"memory_lock"`}NodeInfoBootstrap type.
funcNewNodeInfoBootstrap¶added inv8.5.0
func NewNodeInfoBootstrap() *NodeInfoBootstrap
NewNodeInfoBootstrap returns a NodeInfoBootstrap.
func (*NodeInfoBootstrap)UnmarshalJSON¶added inv8.9.0
func (s *NodeInfoBootstrap) UnmarshalJSON(data []byte)error
typeNodeInfoClient¶
type NodeInfoClient struct {Typestring `json:"type"`}NodeInfoClient type.
funcNewNodeInfoClient¶added inv8.5.0
func NewNodeInfoClient() *NodeInfoClient
NewNodeInfoClient returns a NodeInfoClient.
func (*NodeInfoClient)UnmarshalJSON¶added inv8.9.0
func (s *NodeInfoClient) UnmarshalJSON(data []byte)error
typeNodeInfoDiscover¶
type NodeInfoDiscover struct {NodeInfoDiscover map[string]json.RawMessage `json:"-"`SeedHosts []string `json:"seed_hosts,omitempty"`SeedProviders []string `json:"seed_providers,omitempty"`Type *string `json:"type,omitempty"`}NodeInfoDiscover type.
funcNewNodeInfoDiscover¶added inv8.5.0
func NewNodeInfoDiscover() *NodeInfoDiscover
NewNodeInfoDiscover returns a NodeInfoDiscover.
func (NodeInfoDiscover)MarshalJSON¶added inv8.13.0
func (sNodeInfoDiscover) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
func (*NodeInfoDiscover)UnmarshalJSON¶added inv8.9.0
func (s *NodeInfoDiscover) UnmarshalJSON(data []byte)error
typeNodeInfoHttp¶
type NodeInfoHttp struct {BoundAddress []string `json:"bound_address"`MaxContentLengthByteSize `json:"max_content_length,omitempty"`MaxContentLengthInBytesint64 `json:"max_content_length_in_bytes"`PublishAddressstring `json:"publish_address"`}NodeInfoHttp type.
funcNewNodeInfoHttp¶added inv8.5.0
func NewNodeInfoHttp() *NodeInfoHttp
NewNodeInfoHttp returns a NodeInfoHttp.
func (*NodeInfoHttp)UnmarshalJSON¶added inv8.7.1
func (s *NodeInfoHttp) UnmarshalJSON(data []byte)error
typeNodeInfoIngest¶
type NodeInfoIngest struct {Processors []NodeInfoIngestProcessor `json:"processors"`}NodeInfoIngest type.
funcNewNodeInfoIngest¶added inv8.5.0
func NewNodeInfoIngest() *NodeInfoIngest
NewNodeInfoIngest returns a NodeInfoIngest.
typeNodeInfoIngestDownloader¶
type NodeInfoIngestDownloader struct {Enabledstring `json:"enabled"`}NodeInfoIngestDownloader type.
funcNewNodeInfoIngestDownloader¶added inv8.5.0
func NewNodeInfoIngestDownloader() *NodeInfoIngestDownloader
NewNodeInfoIngestDownloader returns a NodeInfoIngestDownloader.
func (*NodeInfoIngestDownloader)UnmarshalJSON¶added inv8.9.0
func (s *NodeInfoIngestDownloader) UnmarshalJSON(data []byte)error
typeNodeInfoIngestInfo¶
type NodeInfoIngestInfo struct {DownloaderNodeInfoIngestDownloader `json:"downloader"`}NodeInfoIngestInfo type.
funcNewNodeInfoIngestInfo¶added inv8.5.0
func NewNodeInfoIngestInfo() *NodeInfoIngestInfo
NewNodeInfoIngestInfo returns a NodeInfoIngestInfo.
typeNodeInfoIngestProcessor¶
type NodeInfoIngestProcessor struct {Typestring `json:"type"`}NodeInfoIngestProcessor type.
funcNewNodeInfoIngestProcessor¶added inv8.5.0
func NewNodeInfoIngestProcessor() *NodeInfoIngestProcessor
NewNodeInfoIngestProcessor returns a NodeInfoIngestProcessor.
func (*NodeInfoIngestProcessor)UnmarshalJSON¶added inv8.9.0
func (s *NodeInfoIngestProcessor) UnmarshalJSON(data []byte)error
typeNodeInfoJvmMemory¶
type NodeInfoJvmMemory struct {DirectMaxByteSize `json:"direct_max,omitempty"`DirectMaxInBytesint64 `json:"direct_max_in_bytes"`HeapInitByteSize `json:"heap_init,omitempty"`HeapInitInBytesint64 `json:"heap_init_in_bytes"`HeapMaxByteSize `json:"heap_max,omitempty"`HeapMaxInBytesint64 `json:"heap_max_in_bytes"`NonHeapInitByteSize `json:"non_heap_init,omitempty"`NonHeapInitInBytesint64 `json:"non_heap_init_in_bytes"`NonHeapMaxByteSize `json:"non_heap_max,omitempty"`NonHeapMaxInBytesint64 `json:"non_heap_max_in_bytes"`}NodeInfoJvmMemory type.
funcNewNodeInfoJvmMemory¶added inv8.5.0
func NewNodeInfoJvmMemory() *NodeInfoJvmMemory
NewNodeInfoJvmMemory returns a NodeInfoJvmMemory.
func (*NodeInfoJvmMemory)UnmarshalJSON¶added inv8.7.1
func (s *NodeInfoJvmMemory) UnmarshalJSON(data []byte)error
typeNodeInfoMemory¶
NodeInfoMemory type.
funcNewNodeInfoMemory¶added inv8.5.0
func NewNodeInfoMemory() *NodeInfoMemory
NewNodeInfoMemory returns a NodeInfoMemory.
func (*NodeInfoMemory)UnmarshalJSON¶added inv8.7.1
func (s *NodeInfoMemory) UnmarshalJSON(data []byte)error
typeNodeInfoOSCPU¶
type NodeInfoOSCPU struct {CacheSizestring `json:"cache_size"`CacheSizeInBytesint `json:"cache_size_in_bytes"`CoresPerSocketint `json:"cores_per_socket"`Mhzint `json:"mhz"`Modelstring `json:"model"`TotalCoresint `json:"total_cores"`TotalSocketsint `json:"total_sockets"`Vendorstring `json:"vendor"`}NodeInfoOSCPU type.
funcNewNodeInfoOSCPU¶added inv8.5.0
func NewNodeInfoOSCPU() *NodeInfoOSCPU
NewNodeInfoOSCPU returns a NodeInfoOSCPU.
func (*NodeInfoOSCPU)UnmarshalJSON¶added inv8.7.1
func (s *NodeInfoOSCPU) UnmarshalJSON(data []byte)error
typeNodeInfoPath¶
type NodeInfoPath struct {Data []string `json:"data,omitempty"`Home *string `json:"home,omitempty"`Logs *string `json:"logs,omitempty"`Repo []string `json:"repo,omitempty"`}NodeInfoPath type.
funcNewNodeInfoPath¶added inv8.5.0
func NewNodeInfoPath() *NodeInfoPath
NewNodeInfoPath returns a NodeInfoPath.
func (*NodeInfoPath)UnmarshalJSON¶added inv8.9.0
func (s *NodeInfoPath) UnmarshalJSON(data []byte)error
typeNodeInfoRepositories¶
type NodeInfoRepositories struct {UrlNodeInfoRepositoriesUrl `json:"url"`}NodeInfoRepositories type.
funcNewNodeInfoRepositories¶added inv8.5.0
func NewNodeInfoRepositories() *NodeInfoRepositories
NewNodeInfoRepositories returns a NodeInfoRepositories.
typeNodeInfoRepositoriesUrl¶
type NodeInfoRepositoriesUrl struct {AllowedUrlsstring `json:"allowed_urls"`}NodeInfoRepositoriesUrl type.
funcNewNodeInfoRepositoriesUrl¶added inv8.5.0
func NewNodeInfoRepositoriesUrl() *NodeInfoRepositoriesUrl
NewNodeInfoRepositoriesUrl returns a NodeInfoRepositoriesUrl.
func (*NodeInfoRepositoriesUrl)UnmarshalJSON¶added inv8.9.0
func (s *NodeInfoRepositoriesUrl) UnmarshalJSON(data []byte)error
typeNodeInfoScript¶
type NodeInfoScript struct {AllowedTypesstring `json:"allowed_types"`DisableMaxCompilationsRate *string `json:"disable_max_compilations_rate,omitempty"`}NodeInfoScript type.
funcNewNodeInfoScript¶added inv8.5.0
func NewNodeInfoScript() *NodeInfoScript
NewNodeInfoScript returns a NodeInfoScript.
func (*NodeInfoScript)UnmarshalJSON¶added inv8.9.0
func (s *NodeInfoScript) UnmarshalJSON(data []byte)error
typeNodeInfoSearch¶
type NodeInfoSearch struct {RemoteNodeInfoSearchRemote `json:"remote"`}NodeInfoSearch type.
funcNewNodeInfoSearch¶added inv8.5.0
func NewNodeInfoSearch() *NodeInfoSearch
NewNodeInfoSearch returns a NodeInfoSearch.
typeNodeInfoSearchRemote¶
type NodeInfoSearchRemote struct {Connectstring `json:"connect"`}NodeInfoSearchRemote type.
funcNewNodeInfoSearchRemote¶added inv8.5.0
func NewNodeInfoSearchRemote() *NodeInfoSearchRemote
NewNodeInfoSearchRemote returns a NodeInfoSearchRemote.
func (*NodeInfoSearchRemote)UnmarshalJSON¶added inv8.9.0
func (s *NodeInfoSearchRemote) UnmarshalJSON(data []byte)error
typeNodeInfoSettings¶
type NodeInfoSettings struct {Action *NodeInfoAction `json:"action,omitempty"`Bootstrap *NodeInfoBootstrap `json:"bootstrap,omitempty"`Client *NodeInfoClient `json:"client,omitempty"`ClusterNodeInfoSettingsCluster `json:"cluster"`Discovery *NodeInfoDiscover `json:"discovery,omitempty"`HttpNodeInfoSettingsHttp `json:"http"`Ingest *NodeInfoSettingsIngest `json:"ingest,omitempty"`Network *NodeInfoSettingsNetwork `json:"network,omitempty"`NodeNodeInfoSettingsNode `json:"node"`Path *NodeInfoPath `json:"path,omitempty"`Repositories *NodeInfoRepositories `json:"repositories,omitempty"`Script *NodeInfoScript `json:"script,omitempty"`Search *NodeInfoSearch `json:"search,omitempty"`TransportNodeInfoSettingsTransport `json:"transport"`Xpack *NodeInfoXpack `json:"xpack,omitempty"`}NodeInfoSettings type.
funcNewNodeInfoSettings¶added inv8.5.0
func NewNodeInfoSettings() *NodeInfoSettings
NewNodeInfoSettings returns a NodeInfoSettings.
typeNodeInfoSettingsCluster¶
type NodeInfoSettingsCluster struct {DeprecationIndexing *DeprecationIndexing `json:"deprecation_indexing,omitempty"`ElectionNodeInfoSettingsClusterElection `json:"election"`InitialMasterNodes []string `json:"initial_master_nodes,omitempty"`Namestring `json:"name"`Routing *IndexRouting `json:"routing,omitempty"`}NodeInfoSettingsCluster type.
funcNewNodeInfoSettingsCluster¶added inv8.5.0
func NewNodeInfoSettingsCluster() *NodeInfoSettingsCluster
NewNodeInfoSettingsCluster returns a NodeInfoSettingsCluster.
func (*NodeInfoSettingsCluster)UnmarshalJSON¶added inv8.7.1
func (s *NodeInfoSettingsCluster) UnmarshalJSON(data []byte)error
typeNodeInfoSettingsClusterElection¶
type NodeInfoSettingsClusterElection struct {Strategystring `json:"strategy"`}NodeInfoSettingsClusterElection type.
funcNewNodeInfoSettingsClusterElection¶added inv8.5.0
func NewNodeInfoSettingsClusterElection() *NodeInfoSettingsClusterElection
NewNodeInfoSettingsClusterElection returns a NodeInfoSettingsClusterElection.
func (*NodeInfoSettingsClusterElection)UnmarshalJSON¶added inv8.7.1
func (s *NodeInfoSettingsClusterElection) UnmarshalJSON(data []byte)error
typeNodeInfoSettingsHttp¶
type NodeInfoSettingsHttp struct {Compression *string `json:"compression,omitempty"`Port *string `json:"port,omitempty"`TypeNodeInfoSettingsHttpType `json:"type"`TypeDefault *string `json:"type.default,omitempty"`}NodeInfoSettingsHttp type.
funcNewNodeInfoSettingsHttp¶added inv8.5.0
func NewNodeInfoSettingsHttp() *NodeInfoSettingsHttp
NewNodeInfoSettingsHttp returns a NodeInfoSettingsHttp.
func (*NodeInfoSettingsHttp)UnmarshalJSON¶added inv8.7.1
func (s *NodeInfoSettingsHttp) UnmarshalJSON(data []byte)error
typeNodeInfoSettingsHttpType¶
type NodeInfoSettingsHttpType struct {Defaultstring `json:"default"`}NodeInfoSettingsHttpType type.
funcNewNodeInfoSettingsHttpType¶added inv8.5.0
func NewNodeInfoSettingsHttpType() *NodeInfoSettingsHttpType
NewNodeInfoSettingsHttpType returns a NodeInfoSettingsHttpType.
func (*NodeInfoSettingsHttpType)UnmarshalJSON¶added inv8.7.1
func (s *NodeInfoSettingsHttpType) UnmarshalJSON(data []byte)error
typeNodeInfoSettingsIngest¶
type NodeInfoSettingsIngest struct {Append *NodeInfoIngestInfo `json:"append,omitempty"`Attachment *NodeInfoIngestInfo `json:"attachment,omitempty"`Bytes *NodeInfoIngestInfo `json:"bytes,omitempty"`Circle *NodeInfoIngestInfo `json:"circle,omitempty"`Convert *NodeInfoIngestInfo `json:"convert,omitempty"`Csv *NodeInfoIngestInfo `json:"csv,omitempty"`Date *NodeInfoIngestInfo `json:"date,omitempty"`DateIndexName *NodeInfoIngestInfo `json:"date_index_name,omitempty"`Dissect *NodeInfoIngestInfo `json:"dissect,omitempty"`DotExpander *NodeInfoIngestInfo `json:"dot_expander,omitempty"`Drop *NodeInfoIngestInfo `json:"drop,omitempty"`Enrich *NodeInfoIngestInfo `json:"enrich,omitempty"`Fail *NodeInfoIngestInfo `json:"fail,omitempty"`Foreach *NodeInfoIngestInfo `json:"foreach,omitempty"`Geoip *NodeInfoIngestInfo `json:"geoip,omitempty"`Grok *NodeInfoIngestInfo `json:"grok,omitempty"`Gsub *NodeInfoIngestInfo `json:"gsub,omitempty"`Inference *NodeInfoIngestInfo `json:"inference,omitempty"`Join *NodeInfoIngestInfo `json:"join,omitempty"`Json *NodeInfoIngestInfo `json:"json,omitempty"`Kv *NodeInfoIngestInfo `json:"kv,omitempty"`Lowercase *NodeInfoIngestInfo `json:"lowercase,omitempty"`Pipeline *NodeInfoIngestInfo `json:"pipeline,omitempty"`Remove *NodeInfoIngestInfo `json:"remove,omitempty"`Rename *NodeInfoIngestInfo `json:"rename,omitempty"`Script *NodeInfoIngestInfo `json:"script,omitempty"`Set *NodeInfoIngestInfo `json:"set,omitempty"`SetSecurityUser *NodeInfoIngestInfo `json:"set_security_user,omitempty"`Sort *NodeInfoIngestInfo `json:"sort,omitempty"`Split *NodeInfoIngestInfo `json:"split,omitempty"`Trim *NodeInfoIngestInfo `json:"trim,omitempty"`Uppercase *NodeInfoIngestInfo `json:"uppercase,omitempty"`Urldecode *NodeInfoIngestInfo `json:"urldecode,omitempty"`UserAgent *NodeInfoIngestInfo `json:"user_agent,omitempty"`}NodeInfoSettingsIngest type.
funcNewNodeInfoSettingsIngest¶added inv8.5.0
func NewNodeInfoSettingsIngest() *NodeInfoSettingsIngest
NewNodeInfoSettingsIngest returns a NodeInfoSettingsIngest.
typeNodeInfoSettingsNetwork¶
type NodeInfoSettingsNetwork struct {Host []string `json:"host,omitempty"`}NodeInfoSettingsNetwork type.
funcNewNodeInfoSettingsNetwork¶added inv8.5.0
func NewNodeInfoSettingsNetwork() *NodeInfoSettingsNetwork
NewNodeInfoSettingsNetwork returns a NodeInfoSettingsNetwork.
func (*NodeInfoSettingsNetwork)UnmarshalJSON¶added inv8.7.1
func (s *NodeInfoSettingsNetwork) UnmarshalJSON(data []byte)error
typeNodeInfoSettingsNode¶
type NodeInfoSettingsNode struct {Attr map[string]json.RawMessage `json:"attr"`MaxLocalStorageNodes *string `json:"max_local_storage_nodes,omitempty"`Namestring `json:"name"`}NodeInfoSettingsNode type.
funcNewNodeInfoSettingsNode¶added inv8.5.0
func NewNodeInfoSettingsNode() *NodeInfoSettingsNode
NewNodeInfoSettingsNode returns a NodeInfoSettingsNode.
func (*NodeInfoSettingsNode)UnmarshalJSON¶added inv8.7.1
func (s *NodeInfoSettingsNode) UnmarshalJSON(data []byte)error
typeNodeInfoSettingsTransport¶
type NodeInfoSettingsTransport struct {Features *NodeInfoSettingsTransportFeatures `json:"features,omitempty"`// IgnoreDeserializationErrors Only used in unit testsIgnoreDeserializationErrorsStringifiedboolean `json:"ignore_deserialization_errors,omitempty"`TypeNodeInfoSettingsTransportType `json:"type"`TypeDefault *string `json:"type.default,omitempty"`}NodeInfoSettingsTransport type.
funcNewNodeInfoSettingsTransport¶added inv8.5.0
func NewNodeInfoSettingsTransport() *NodeInfoSettingsTransport
NewNodeInfoSettingsTransport returns a NodeInfoSettingsTransport.
func (*NodeInfoSettingsTransport)UnmarshalJSON¶added inv8.9.0
func (s *NodeInfoSettingsTransport) UnmarshalJSON(data []byte)error
typeNodeInfoSettingsTransportFeatures¶
type NodeInfoSettingsTransportFeatures struct {XPackstring `json:"x-pack"`}NodeInfoSettingsTransportFeatures type.
funcNewNodeInfoSettingsTransportFeatures¶added inv8.5.0
func NewNodeInfoSettingsTransportFeatures() *NodeInfoSettingsTransportFeatures
NewNodeInfoSettingsTransportFeatures returns a NodeInfoSettingsTransportFeatures.
func (*NodeInfoSettingsTransportFeatures)UnmarshalJSON¶added inv8.9.0
func (s *NodeInfoSettingsTransportFeatures) UnmarshalJSON(data []byte)error
typeNodeInfoSettingsTransportType¶
type NodeInfoSettingsTransportType struct {Defaultstring `json:"default"`}NodeInfoSettingsTransportType type.
funcNewNodeInfoSettingsTransportType¶added inv8.5.0
func NewNodeInfoSettingsTransportType() *NodeInfoSettingsTransportType
NewNodeInfoSettingsTransportType returns a NodeInfoSettingsTransportType.
func (*NodeInfoSettingsTransportType)UnmarshalJSON¶added inv8.7.1
func (s *NodeInfoSettingsTransportType) UnmarshalJSON(data []byte)error
typeNodeInfoTransport¶
type NodeInfoTransport struct {BoundAddress []string `json:"bound_address"`Profiles map[string]string `json:"profiles"`PublishAddressstring `json:"publish_address"`}NodeInfoTransport type.
funcNewNodeInfoTransport¶added inv8.5.0
func NewNodeInfoTransport() *NodeInfoTransport
NewNodeInfoTransport returns a NodeInfoTransport.
func (*NodeInfoTransport)UnmarshalJSON¶added inv8.9.0
func (s *NodeInfoTransport) UnmarshalJSON(data []byte)error
typeNodeInfoXpack¶
type NodeInfoXpack struct {License *NodeInfoXpackLicense `json:"license,omitempty"`Ml *NodeInfoXpackMl `json:"ml,omitempty"`Notification map[string]json.RawMessage `json:"notification,omitempty"`SecurityNodeInfoXpackSecurity `json:"security"`}NodeInfoXpack type.
funcNewNodeInfoXpack¶added inv8.5.0
func NewNodeInfoXpack() *NodeInfoXpack
NewNodeInfoXpack returns a NodeInfoXpack.
typeNodeInfoXpackLicense¶
type NodeInfoXpackLicense struct {SelfGeneratedNodeInfoXpackLicenseType `json:"self_generated"`}NodeInfoXpackLicense type.
funcNewNodeInfoXpackLicense¶added inv8.5.0
func NewNodeInfoXpackLicense() *NodeInfoXpackLicense
NewNodeInfoXpackLicense returns a NodeInfoXpackLicense.
typeNodeInfoXpackLicenseType¶
type NodeInfoXpackLicenseType struct {Typestring `json:"type"`}NodeInfoXpackLicenseType type.
funcNewNodeInfoXpackLicenseType¶added inv8.5.0
func NewNodeInfoXpackLicenseType() *NodeInfoXpackLicenseType
NewNodeInfoXpackLicenseType returns a NodeInfoXpackLicenseType.
func (*NodeInfoXpackLicenseType)UnmarshalJSON¶added inv8.9.0
func (s *NodeInfoXpackLicenseType) UnmarshalJSON(data []byte)error
typeNodeInfoXpackMl¶added inv8.16.0
type NodeInfoXpackMl struct {UseAutoMachineMemoryPercent *bool `json:"use_auto_machine_memory_percent,omitempty"`}NodeInfoXpackMl type.
funcNewNodeInfoXpackMl¶added inv8.16.0
func NewNodeInfoXpackMl() *NodeInfoXpackMl
NewNodeInfoXpackMl returns a NodeInfoXpackMl.
func (*NodeInfoXpackMl)UnmarshalJSON¶added inv8.16.0
func (s *NodeInfoXpackMl) UnmarshalJSON(data []byte)error
typeNodeInfoXpackSecurity¶
type NodeInfoXpackSecurity struct {Authc *NodeInfoXpackSecurityAuthc `json:"authc,omitempty"`Enabledstring `json:"enabled"`Http *NodeInfoXpackSecuritySsl `json:"http,omitempty"`Transport *NodeInfoXpackSecuritySsl `json:"transport,omitempty"`}NodeInfoXpackSecurity type.
funcNewNodeInfoXpackSecurity¶added inv8.5.0
func NewNodeInfoXpackSecurity() *NodeInfoXpackSecurity
NewNodeInfoXpackSecurity returns a NodeInfoXpackSecurity.
func (*NodeInfoXpackSecurity)UnmarshalJSON¶added inv8.9.0
func (s *NodeInfoXpackSecurity) UnmarshalJSON(data []byte)error
typeNodeInfoXpackSecurityAuthc¶
type NodeInfoXpackSecurityAuthc struct {Realms *NodeInfoXpackSecurityAuthcRealms `json:"realms,omitempty"`Token *NodeInfoXpackSecurityAuthcToken `json:"token,omitempty"`}NodeInfoXpackSecurityAuthc type.
funcNewNodeInfoXpackSecurityAuthc¶added inv8.5.0
func NewNodeInfoXpackSecurityAuthc() *NodeInfoXpackSecurityAuthc
NewNodeInfoXpackSecurityAuthc returns a NodeInfoXpackSecurityAuthc.
typeNodeInfoXpackSecurityAuthcRealms¶
type NodeInfoXpackSecurityAuthcRealms struct {File map[string]NodeInfoXpackSecurityAuthcRealmsStatus `json:"file,omitempty"`Native map[string]NodeInfoXpackSecurityAuthcRealmsStatus `json:"native,omitempty"`Pki map[string]NodeInfoXpackSecurityAuthcRealmsStatus `json:"pki,omitempty"`}NodeInfoXpackSecurityAuthcRealms type.
funcNewNodeInfoXpackSecurityAuthcRealms¶added inv8.5.0
func NewNodeInfoXpackSecurityAuthcRealms() *NodeInfoXpackSecurityAuthcRealms
NewNodeInfoXpackSecurityAuthcRealms returns a NodeInfoXpackSecurityAuthcRealms.
typeNodeInfoXpackSecurityAuthcRealmsStatus¶
type NodeInfoXpackSecurityAuthcRealmsStatus struct {Enabled *string `json:"enabled,omitempty"`Orderstring `json:"order"`}NodeInfoXpackSecurityAuthcRealmsStatus type.
funcNewNodeInfoXpackSecurityAuthcRealmsStatus¶added inv8.5.0
func NewNodeInfoXpackSecurityAuthcRealmsStatus() *NodeInfoXpackSecurityAuthcRealmsStatus
NewNodeInfoXpackSecurityAuthcRealmsStatus returns a NodeInfoXpackSecurityAuthcRealmsStatus.
func (*NodeInfoXpackSecurityAuthcRealmsStatus)UnmarshalJSON¶added inv8.9.0
func (s *NodeInfoXpackSecurityAuthcRealmsStatus) UnmarshalJSON(data []byte)error
typeNodeInfoXpackSecurityAuthcToken¶
type NodeInfoXpackSecurityAuthcToken struct {Enabledstring `json:"enabled"`}NodeInfoXpackSecurityAuthcToken type.
funcNewNodeInfoXpackSecurityAuthcToken¶added inv8.5.0
func NewNodeInfoXpackSecurityAuthcToken() *NodeInfoXpackSecurityAuthcToken
NewNodeInfoXpackSecurityAuthcToken returns a NodeInfoXpackSecurityAuthcToken.
func (*NodeInfoXpackSecurityAuthcToken)UnmarshalJSON¶added inv8.9.0
func (s *NodeInfoXpackSecurityAuthcToken) UnmarshalJSON(data []byte)error
typeNodeInfoXpackSecuritySsl¶
NodeInfoXpackSecuritySsl type.
funcNewNodeInfoXpackSecuritySsl¶added inv8.5.0
func NewNodeInfoXpackSecuritySsl() *NodeInfoXpackSecuritySsl
NewNodeInfoXpackSecuritySsl returns a NodeInfoXpackSecuritySsl.
typeNodeJvmInfo¶
type NodeJvmInfo struct {GcCollectors []string `json:"gc_collectors"`InputArguments []string `json:"input_arguments"`MemNodeInfoJvmMemory `json:"mem"`MemoryPools []string `json:"memory_pools"`Pidint `json:"pid"`StartTimeInMillisint64 `json:"start_time_in_millis"`UsingBundledJdkbool `json:"using_bundled_jdk"`UsingCompressedOrdinaryObjectPointers *string `json:"using_compressed_ordinary_object_pointers,omitempty"`Versionstring `json:"version"`VmNamestring `json:"vm_name"`VmVendorstring `json:"vm_vendor"`VmVersionstring `json:"vm_version"`}NodeJvmInfo type.
funcNewNodeJvmInfo¶added inv8.5.0
func NewNodeJvmInfo() *NodeJvmInfo
NewNodeJvmInfo returns a NodeJvmInfo.
func (*NodeJvmInfo)UnmarshalJSON¶added inv8.7.1
func (s *NodeJvmInfo) UnmarshalJSON(data []byte)error
typeNodeOperatingSystemInfo¶
type NodeOperatingSystemInfo struct {// AllocatedProcessors The number of processors actually used to calculate thread pool size. This// number can be set with the node.processors setting of a node and defaults to// the number of processors reported by the OS.AllocatedProcessors *int `json:"allocated_processors,omitempty"`// Arch Name of the JVM architecture (ex: amd64, x86)Archstring `json:"arch"`// AvailableProcessors Number of processors available to the Java virtual machineAvailableProcessorsint `json:"available_processors"`Cpu *NodeInfoOSCPU `json:"cpu,omitempty"`Mem *NodeInfoMemory `json:"mem,omitempty"`// Name Name of the operating system (ex: Linux, Windows, Mac OS X)Namestring `json:"name"`PrettyNamestring `json:"pretty_name"`// RefreshIntervalInMillis Refresh interval for the OS statisticsRefreshIntervalInMillisint64 `json:"refresh_interval_in_millis"`Swap *NodeInfoMemory `json:"swap,omitempty"`// Version Version of the operating systemVersionstring `json:"version"`}NodeOperatingSystemInfo type.
funcNewNodeOperatingSystemInfo¶added inv8.5.0
func NewNodeOperatingSystemInfo() *NodeOperatingSystemInfo
NewNodeOperatingSystemInfo returns a NodeOperatingSystemInfo.
func (*NodeOperatingSystemInfo)UnmarshalJSON¶added inv8.7.1
func (s *NodeOperatingSystemInfo) UnmarshalJSON(data []byte)error
typeNodePackagingType¶
type NodePackagingType struct {// Count Number of selected nodes using the distribution flavor and file type.Countint `json:"count"`// Flavor Type of Elasticsearch distribution. This is always `default`.Flavorstring `json:"flavor"`// Type File type (such as `tar` or `zip`) used for the distribution package.Typestring `json:"type"`}NodePackagingType type.
funcNewNodePackagingType¶added inv8.5.0
func NewNodePackagingType() *NodePackagingType
NewNodePackagingType returns a NodePackagingType.
func (*NodePackagingType)UnmarshalJSON¶added inv8.7.1
func (s *NodePackagingType) UnmarshalJSON(data []byte)error
typeNodeProcessInfo¶
type NodeProcessInfo struct {// Id Process identifier (PID)Idint64 `json:"id"`// Mlockall Indicates if the process address space has been successfully locked in memoryMlockallbool `json:"mlockall"`// RefreshIntervalInMillis Refresh interval for the process statisticsRefreshIntervalInMillisint64 `json:"refresh_interval_in_millis"`}NodeProcessInfo type.
funcNewNodeProcessInfo¶added inv8.5.0
func NewNodeProcessInfo() *NodeProcessInfo
NewNodeProcessInfo returns a NodeProcessInfo.
func (*NodeProcessInfo)UnmarshalJSON¶added inv8.7.1
func (s *NodeProcessInfo) UnmarshalJSON(data []byte)error
typeNodeReloadResult¶
type NodeReloadResult struct {Namestring `json:"name"`ReloadException *ErrorCause `json:"reload_exception,omitempty"`}NodeReloadResult type.
funcNewNodeReloadResult¶added inv8.18.0
func NewNodeReloadResult() *NodeReloadResult
NewNodeReloadResult returns a NodeReloadResult.
func (*NodeReloadResult)UnmarshalJSON¶added inv8.18.0
func (s *NodeReloadResult) UnmarshalJSON(data []byte)error
typeNodeShard¶
type NodeShard struct {AllocationId map[string]string `json:"allocation_id,omitempty"`Indexstring `json:"index"`Node *string `json:"node,omitempty"`Primarybool `json:"primary"`RecoverySource map[string]string `json:"recovery_source,omitempty"`RelocatingNode *string `json:"relocating_node,omitempty"`RelocationFailureInfo *RelocationFailureInfo `json:"relocation_failure_info,omitempty"`Shardint `json:"shard"`Stateshardroutingstate.ShardRoutingState `json:"state"`UnassignedInfo *UnassignedInformation `json:"unassigned_info,omitempty"`}NodeShard type.
func (*NodeShard)UnmarshalJSON¶added inv8.7.1
typeNodeShutdownStatus¶
type NodeShutdownStatus struct {NodeIdstring `json:"node_id"`PersistentTasksPersistentTaskStatus `json:"persistent_tasks"`PluginsPluginsStatus `json:"plugins"`Reasonstring `json:"reason"`ShardMigrationShardMigrationStatus `json:"shard_migration"`ShutdownStartedmillisint64 `json:"shutdown_startedmillis"`Statusshutdownstatus.ShutdownStatus `json:"status"`Typeshutdowntype.ShutdownType `json:"type"`}NodeShutdownStatus type.
funcNewNodeShutdownStatus¶added inv8.5.0
func NewNodeShutdownStatus() *NodeShutdownStatus
NewNodeShutdownStatus returns a NodeShutdownStatus.
func (*NodeShutdownStatus)UnmarshalJSON¶added inv8.7.1
func (s *NodeShutdownStatus) UnmarshalJSON(data []byte)error
typeNodeStatistics¶
type NodeStatistics struct {// Failed Number of nodes that rejected the request or failed to respond. If this value// is not 0, a reason for the rejection or failure is included in the response.Failedint `json:"failed"`Failures []ErrorCause `json:"failures,omitempty"`// Successful Number of nodes that responded successfully to the request.Successfulint `json:"successful"`// Total Total number of nodes selected by the request.Totalint `json:"total"`}NodeStatistics type.
funcNewNodeStatistics¶added inv8.5.0
func NewNodeStatistics() *NodeStatistics
NewNodeStatistics returns a NodeStatistics.
func (*NodeStatistics)UnmarshalJSON¶added inv8.7.1
func (s *NodeStatistics) UnmarshalJSON(data []byte)error
typeNodeTasks¶
type NodeTasks struct {Attributes map[string]string `json:"attributes,omitempty"`Host *string `json:"host,omitempty"`Ip *string `json:"ip,omitempty"`Name *string `json:"name,omitempty"`Roles []string `json:"roles,omitempty"`Tasks map[string]TaskInfo `json:"tasks"`TransportAddress *string `json:"transport_address,omitempty"`}NodeTasks type.
func (*NodeTasks)UnmarshalJSON¶added inv8.7.1
typeNodeThreadPoolInfo¶
type NodeThreadPoolInfo struct {Core *int `json:"core,omitempty"`KeepAliveDuration `json:"keep_alive,omitempty"`Max *int `json:"max,omitempty"`QueueSizeint `json:"queue_size"`Size *int `json:"size,omitempty"`Typestring `json:"type"`}NodeThreadPoolInfo type.
funcNewNodeThreadPoolInfo¶added inv8.5.0
func NewNodeThreadPoolInfo() *NodeThreadPoolInfo
NewNodeThreadPoolInfo returns a NodeThreadPoolInfo.
func (*NodeThreadPoolInfo)UnmarshalJSON¶added inv8.7.1
func (s *NodeThreadPoolInfo) UnmarshalJSON(data []byte)error
typeNodeUsage¶
type NodeUsage struct {Aggregations map[string]json.RawMessage `json:"aggregations"`RestActions map[string]int `json:"rest_actions"`Sinceint64 `json:"since"`Timestampint64 `json:"timestamp"`}NodeUsage type.
func (*NodeUsage)UnmarshalJSON¶added inv8.7.1
typeNodesContext¶added inv8.5.0
type NodesContext struct {CacheEvictions *int64 `json:"cache_evictions,omitempty"`CompilationLimitTriggered *int64 `json:"compilation_limit_triggered,omitempty"`Compilations *int64 `json:"compilations,omitempty"`Context *string `json:"context,omitempty"`}NodesContext type.
funcNewNodesContext¶added inv8.5.0
func NewNodesContext() *NodesContext
NewNodesContext returns a NodesContext.
func (*NodesContext)UnmarshalJSON¶added inv8.7.1
func (s *NodesContext) UnmarshalJSON(data []byte)error
typeNodesCredentials¶
type NodesCredentials struct {// FileTokens File-backed tokens collected from all nodesFileTokens map[string]NodesCredentialsFileToken `json:"file_tokens"`// NodeStats General status showing how nodes respond to the above collection requestNodeStatsNodeStatistics `json:"_nodes"`}NodesCredentials type.
funcNewNodesCredentials¶added inv8.5.0
func NewNodesCredentials() *NodesCredentials
NewNodesCredentials returns a NodesCredentials.
typeNodesCredentialsFileToken¶
type NodesCredentialsFileToken struct {Nodes []string `json:"nodes"`}NodesCredentialsFileToken type.
funcNewNodesCredentialsFileToken¶added inv8.5.0
func NewNodesCredentialsFileToken() *NodesCredentialsFileToken
NewNodesCredentialsFileToken returns a NodesCredentialsFileToken.
typeNodesIndexingPressure¶added inv8.5.0
type NodesIndexingPressure struct {// Memory Contains statistics for memory consumption from indexing load.Memory *NodesIndexingPressureMemory `json:"memory,omitempty"`}NodesIndexingPressure type.
funcNewNodesIndexingPressure¶added inv8.5.0
func NewNodesIndexingPressure() *NodesIndexingPressure
NewNodesIndexingPressure returns a NodesIndexingPressure.
typeNodesIndexingPressureMemory¶added inv8.5.0
type NodesIndexingPressureMemory struct {// Current Contains statistics for current indexing load.Current *PressureMemory `json:"current,omitempty"`// Limit Configured memory limit for the indexing requests.// Replica requests have an automatic limit that is 1.5x this value.LimitByteSize `json:"limit,omitempty"`// LimitInBytes Configured memory limit, in bytes, for the indexing requests.// Replica requests have an automatic limit that is 1.5x this value.LimitInBytes *int64 `json:"limit_in_bytes,omitempty"`// Total Contains statistics for the cumulative indexing load since the node started.Total *PressureMemory `json:"total,omitempty"`}NodesIndexingPressureMemory type.
funcNewNodesIndexingPressureMemory¶added inv8.5.0
func NewNodesIndexingPressureMemory() *NodesIndexingPressureMemory
NewNodesIndexingPressureMemory returns a NodesIndexingPressureMemory.
func (*NodesIndexingPressureMemory)UnmarshalJSON¶added inv8.7.1
func (s *NodesIndexingPressureMemory) UnmarshalJSON(data []byte)error
typeNodesIngest¶added inv8.5.0
type NodesIngest struct {// Pipelines Contains statistics about ingest pipelines for the node.Pipelines map[string]IngestStats `json:"pipelines,omitempty"`// Total Contains statistics about ingest operations for the node.Total *IngestTotal `json:"total,omitempty"`}NodesIngest type.
funcNewNodesIngest¶added inv8.5.0
func NewNodesIngest() *NodesIngest
NewNodesIngest returns a NodesIngest.
typeNodesRecord¶
type NodesRecord struct {// Build The Elasticsearch build hash.Build *string `json:"build,omitempty"`// BulkAvgSizeInBytes The average size in bytes of shard bulk.BulkAvgSizeInBytes *string `json:"bulk.avg_size_in_bytes,omitempty"`// BulkAvgTime The average time spend in shard bulk.BulkAvgTime *string `json:"bulk.avg_time,omitempty"`// BulkTotalOperations The number of bulk shard operations.BulkTotalOperations *string `json:"bulk.total_operations,omitempty"`// BulkTotalSizeInBytes The total size in bytes of shard bulk.BulkTotalSizeInBytes *string `json:"bulk.total_size_in_bytes,omitempty"`// BulkTotalTime The time spend in shard bulk.BulkTotalTime *string `json:"bulk.total_time,omitempty"`// CompletionSize The size of completion.CompletionSize *string `json:"completion.size,omitempty"`// Cpu The recent system CPU usage as a percentage.Cpu *string `json:"cpu,omitempty"`// DiskAvail The available disk space.DiskAvailByteSize `json:"disk.avail,omitempty"`// DiskTotal The total disk space.DiskTotalByteSize `json:"disk.total,omitempty"`// DiskUsed The used disk space.DiskUsedByteSize `json:"disk.used,omitempty"`// DiskUsedPercent The used disk space percentage.DiskUsedPercentPercentage `json:"disk.used_percent,omitempty"`// FielddataEvictions The fielddata evictions.FielddataEvictions *string `json:"fielddata.evictions,omitempty"`// FielddataMemorySize The used fielddata cache.FielddataMemorySize *string `json:"fielddata.memory_size,omitempty"`// FileDescCurrent The used file descriptors.FileDescCurrent *string `json:"file_desc.current,omitempty"`// FileDescMax The maximum number of file descriptors.FileDescMax *string `json:"file_desc.max,omitempty"`// FileDescPercent The used file descriptor ratio.FileDescPercentPercentage `json:"file_desc.percent,omitempty"`// Flavor The Elasticsearch distribution flavor.Flavor *string `json:"flavor,omitempty"`// FlushTotal The number of flushes.FlushTotal *string `json:"flush.total,omitempty"`// FlushTotalTime The time spent in flush.FlushTotalTime *string `json:"flush.total_time,omitempty"`// GetCurrent The number of current get ops.GetCurrent *string `json:"get.current,omitempty"`// GetExistsTime The time spent in successful gets.GetExistsTime *string `json:"get.exists_time,omitempty"`// GetExistsTotal The number of successful get operations.GetExistsTotal *string `json:"get.exists_total,omitempty"`// GetMissingTime The time spent in failed gets.GetMissingTime *string `json:"get.missing_time,omitempty"`// GetMissingTotal The number of failed gets.GetMissingTotal *string `json:"get.missing_total,omitempty"`// GetTime The time spent in get.GetTime *string `json:"get.time,omitempty"`// GetTotal The number of get ops.GetTotal *string `json:"get.total,omitempty"`// HeapCurrent The used heap.HeapCurrent *string `json:"heap.current,omitempty"`// HeapMax The maximum configured heap.HeapMax *string `json:"heap.max,omitempty"`// HeapPercent The used heap ratio.HeapPercentPercentage `json:"heap.percent,omitempty"`// HttpAddress The bound HTTP address.HttpAddress *string `json:"http_address,omitempty"`// Id The unique node identifier.Id *string `json:"id,omitempty"`// IndexingDeleteCurrent The number of current deletions.IndexingDeleteCurrent *string `json:"indexing.delete_current,omitempty"`// IndexingDeleteTime The time spent in deletions.IndexingDeleteTime *string `json:"indexing.delete_time,omitempty"`// IndexingDeleteTotal The number of delete operations.IndexingDeleteTotal *string `json:"indexing.delete_total,omitempty"`// IndexingIndexCurrent The number of current indexing operations.IndexingIndexCurrent *string `json:"indexing.index_current,omitempty"`// IndexingIndexFailed The number of failed indexing operations.IndexingIndexFailed *string `json:"indexing.index_failed,omitempty"`// IndexingIndexTime The time spent in indexing.IndexingIndexTime *string `json:"indexing.index_time,omitempty"`// IndexingIndexTotal The number of indexing operations.IndexingIndexTotal *string `json:"indexing.index_total,omitempty"`// Ip The IP address.Ip *string `json:"ip,omitempty"`// Jdk The Java version.Jdk *string `json:"jdk,omitempty"`// Load15M The load average for the last fifteen minutes.Load15M *string `json:"load_15m,omitempty"`// Load1M The load average for the most recent minute.Load1M *string `json:"load_1m,omitempty"`// Load5M The load average for the last five minutes.Load5M *string `json:"load_5m,omitempty"`// Master Indicates whether the node is the elected master node.// Returned values include `*`(elected master) and `-`(not elected master).Master *string `json:"master,omitempty"`// MergesCurrent The number of current merges.MergesCurrent *string `json:"merges.current,omitempty"`// MergesCurrentDocs The number of current merging docs.MergesCurrentDocs *string `json:"merges.current_docs,omitempty"`// MergesCurrentSize The size of current merges.MergesCurrentSize *string `json:"merges.current_size,omitempty"`// MergesTotal The number of completed merge operations.MergesTotal *string `json:"merges.total,omitempty"`// MergesTotalDocs The docs merged.MergesTotalDocs *string `json:"merges.total_docs,omitempty"`// MergesTotalSize The size merged.MergesTotalSize *string `json:"merges.total_size,omitempty"`// MergesTotalTime The time spent in merges.MergesTotalTime *string `json:"merges.total_time,omitempty"`// Name The node name.Name *string `json:"name,omitempty"`// NodeRole The roles of the node.// Returned values include `c`(cold node), `d`(data node), `f`(frozen node),// `h`(hot node), `i`(ingest node), `l`(machine learning node), `m` (master// eligible node), `r`(remote cluster client node), `s`(content node),// `t`(transform node), `v`(voting-only node), `w`(warm node),and// `-`(coordinating node only).NodeRole *string `json:"node.role,omitempty"`// Pid The process identifier.Pid *string `json:"pid,omitempty"`// Port The bound transport port.Port *string `json:"port,omitempty"`// QueryCacheEvictions The query cache evictions.QueryCacheEvictions *string `json:"query_cache.evictions,omitempty"`// QueryCacheHitCount The query cache hit counts.QueryCacheHitCount *string `json:"query_cache.hit_count,omitempty"`// QueryCacheMemorySize The used query cache.QueryCacheMemorySize *string `json:"query_cache.memory_size,omitempty"`// QueryCacheMissCount The query cache miss counts.QueryCacheMissCount *string `json:"query_cache.miss_count,omitempty"`// RamCurrent The used machine memory.RamCurrent *string `json:"ram.current,omitempty"`// RamMax The total machine memory.RamMax *string `json:"ram.max,omitempty"`// RamPercent The used machine memory ratio.RamPercentPercentage `json:"ram.percent,omitempty"`// RefreshExternalTime The time spent in external refreshes.RefreshExternalTime *string `json:"refresh.external_time,omitempty"`// RefreshExternalTotal The total external refreshes.RefreshExternalTotal *string `json:"refresh.external_total,omitempty"`// RefreshListeners The number of pending refresh listeners.RefreshListeners *string `json:"refresh.listeners,omitempty"`// RefreshTime The time spent in refreshes.RefreshTime *string `json:"refresh.time,omitempty"`// RefreshTotal The total refreshes.RefreshTotal *string `json:"refresh.total,omitempty"`// RequestCacheEvictions The request cache evictions.RequestCacheEvictions *string `json:"request_cache.evictions,omitempty"`// RequestCacheHitCount The request cache hit counts.RequestCacheHitCount *string `json:"request_cache.hit_count,omitempty"`// RequestCacheMemorySize The used request cache.RequestCacheMemorySize *string `json:"request_cache.memory_size,omitempty"`// RequestCacheMissCount The request cache miss counts.RequestCacheMissCount *string `json:"request_cache.miss_count,omitempty"`// ScriptCacheEvictions The total compiled scripts evicted from the cache.ScriptCacheEvictions *string `json:"script.cache_evictions,omitempty"`// ScriptCompilationLimitTriggered The script cache compilation limit triggered.ScriptCompilationLimitTriggered *string `json:"script.compilation_limit_triggered,omitempty"`// ScriptCompilations The total script compilations.ScriptCompilations *string `json:"script.compilations,omitempty"`// SearchFetchCurrent The current fetch phase operations.SearchFetchCurrent *string `json:"search.fetch_current,omitempty"`// SearchFetchTime The time spent in fetch phase.SearchFetchTime *string `json:"search.fetch_time,omitempty"`// SearchFetchTotal The total fetch operations.SearchFetchTotal *string `json:"search.fetch_total,omitempty"`// SearchOpenContexts The open search contexts.SearchOpenContexts *string `json:"search.open_contexts,omitempty"`// SearchQueryCurrent The current query phase operations.SearchQueryCurrent *string `json:"search.query_current,omitempty"`// SearchQueryTime The time spent in query phase.SearchQueryTime *string `json:"search.query_time,omitempty"`// SearchQueryTotal The total query phase operations.SearchQueryTotal *string `json:"search.query_total,omitempty"`// SearchScrollCurrent The open scroll contexts.SearchScrollCurrent *string `json:"search.scroll_current,omitempty"`// SearchScrollTime The time scroll contexts held open.SearchScrollTime *string `json:"search.scroll_time,omitempty"`// SearchScrollTotal The completed scroll contexts.SearchScrollTotal *string `json:"search.scroll_total,omitempty"`// SegmentsCount The number of segments.SegmentsCount *string `json:"segments.count,omitempty"`// SegmentsFixedBitsetMemory The memory used by fixed bit sets for nested object field types and export// type filters for types referred in _parent fields.SegmentsFixedBitsetMemory *string `json:"segments.fixed_bitset_memory,omitempty"`// SegmentsIndexWriterMemory The memory used by the index writer.SegmentsIndexWriterMemory *string `json:"segments.index_writer_memory,omitempty"`// SegmentsMemory The memory used by segments.SegmentsMemory *string `json:"segments.memory,omitempty"`// SegmentsVersionMapMemory The memory used by the version map.SegmentsVersionMapMemory *string `json:"segments.version_map_memory,omitempty"`// SuggestCurrent The number of current suggest operations.SuggestCurrent *string `json:"suggest.current,omitempty"`// SuggestTime The time spend in suggest.SuggestTime *string `json:"suggest.time,omitempty"`// SuggestTotal The number of suggest operations.SuggestTotal *string `json:"suggest.total,omitempty"`// Type The Elasticsearch distribution type.Type *string `json:"type,omitempty"`// Uptime The node uptime.Uptime *string `json:"uptime,omitempty"`// Version The Elasticsearch version.Version *string `json:"version,omitempty"`}NodesRecord type.
funcNewNodesRecord¶added inv8.5.0
func NewNodesRecord() *NodesRecord
NewNodesRecord returns a NodesRecord.
func (*NodesRecord)UnmarshalJSON¶added inv8.7.1
func (s *NodesRecord) UnmarshalJSON(data []byte)error
typeNoriAnalyzer¶
type NoriAnalyzer struct {DecompoundMode *noridecompoundmode.NoriDecompoundMode `json:"decompound_mode,omitempty"`Stoptags []string `json:"stoptags,omitempty"`Typestring `json:"type,omitempty"`UserDictionary *string `json:"user_dictionary,omitempty"`Version *string `json:"version,omitempty"`}NoriAnalyzer type.
funcNewNoriAnalyzer¶added inv8.5.0
func NewNoriAnalyzer() *NoriAnalyzer
NewNoriAnalyzer returns a NoriAnalyzer.
func (NoriAnalyzer)MarshalJSON¶added inv8.9.0
func (sNoriAnalyzer) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*NoriAnalyzer)UnmarshalJSON¶added inv8.7.1
func (s *NoriAnalyzer) UnmarshalJSON(data []byte)error
typeNoriPartOfSpeechTokenFilter¶
type NoriPartOfSpeechTokenFilter struct {// Stoptags An array of part-of-speech tags that should be removed.Stoptags []string `json:"stoptags,omitempty"`Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}NoriPartOfSpeechTokenFilter type.
funcNewNoriPartOfSpeechTokenFilter¶added inv8.5.0
func NewNoriPartOfSpeechTokenFilter() *NoriPartOfSpeechTokenFilter
NewNoriPartOfSpeechTokenFilter returns a NoriPartOfSpeechTokenFilter.
func (NoriPartOfSpeechTokenFilter)MarshalJSON¶added inv8.9.0
func (sNoriPartOfSpeechTokenFilter) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*NoriPartOfSpeechTokenFilter)UnmarshalJSON¶added inv8.7.1
func (s *NoriPartOfSpeechTokenFilter) UnmarshalJSON(data []byte)error
typeNoriTokenizer¶
type NoriTokenizer struct {DecompoundMode *noridecompoundmode.NoriDecompoundMode `json:"decompound_mode,omitempty"`DiscardPunctuation *bool `json:"discard_punctuation,omitempty"`Typestring `json:"type,omitempty"`UserDictionary *string `json:"user_dictionary,omitempty"`UserDictionaryRules []string `json:"user_dictionary_rules,omitempty"`Version *string `json:"version,omitempty"`}NoriTokenizer type.
funcNewNoriTokenizer¶added inv8.5.0
func NewNoriTokenizer() *NoriTokenizer
NewNoriTokenizer returns a NoriTokenizer.
func (NoriTokenizer)MarshalJSON¶added inv8.9.0
func (sNoriTokenizer) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*NoriTokenizer)UnmarshalJSON¶added inv8.7.1
func (s *NoriTokenizer) UnmarshalJSON(data []byte)error
typeNormalizeAggregation¶
type NormalizeAggregation struct {// BucketsPath Path to the buckets that contain one set of values to correlate.BucketsPathBucketsPath `json:"buckets_path,omitempty"`// Format `DecimalFormat` pattern for the output value.// If specified, the formatted value is returned in the aggregation’s// `value_as_string` property.Format *string `json:"format,omitempty"`// GapPolicy Policy to apply when gaps are found in the data.GapPolicy *gappolicy.GapPolicy `json:"gap_policy,omitempty"`// Method The specific method to apply.Method *normalizemethod.NormalizeMethod `json:"method,omitempty"`}NormalizeAggregation type.
funcNewNormalizeAggregation¶added inv8.5.0
func NewNormalizeAggregation() *NormalizeAggregation
NewNormalizeAggregation returns a NormalizeAggregation.
func (*NormalizeAggregation)UnmarshalJSON¶added inv8.7.0
func (s *NormalizeAggregation) UnmarshalJSON(data []byte)error
typeNormalizer¶
type Normalizerany
Normalizer holds the union for the following types:
LowercaseNormalizerCustomNormalizer
typeNorwegianAnalyzer¶added inv8.16.0
type NorwegianAnalyzer struct {StemExclusion []string `json:"stem_exclusion,omitempty"`StopwordsStopWords `json:"stopwords,omitempty"`StopwordsPath *string `json:"stopwords_path,omitempty"`Typestring `json:"type,omitempty"`}NorwegianAnalyzer type.
funcNewNorwegianAnalyzer¶added inv8.16.0
func NewNorwegianAnalyzer() *NorwegianAnalyzer
NewNorwegianAnalyzer returns a NorwegianAnalyzer.
func (NorwegianAnalyzer)MarshalJSON¶added inv8.16.0
func (sNorwegianAnalyzer) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*NorwegianAnalyzer)UnmarshalJSON¶added inv8.16.0
func (s *NorwegianAnalyzer) UnmarshalJSON(data []byte)error
typeNotFoundAliases¶added inv8.19.0
type NotFoundAliases struct {Errorstring `json:"error"`NotFoundAliases map[string]IndexAliases `json:"-"`Statusint `json:"status"`}NotFoundAliases type.
funcNewNotFoundAliases¶added inv8.19.0
func NewNotFoundAliases() *NotFoundAliases
NewNotFoundAliases returns a NotFoundAliases.
func (NotFoundAliases)MarshalJSON¶added inv8.19.0
func (sNotFoundAliases) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
func (*NotFoundAliases)UnmarshalJSON¶added inv8.19.0
func (s *NotFoundAliases) UnmarshalJSON(data []byte)error
typeNullValue¶added inv8.14.0
type NullValue struct{}NullValue is a custom type used to represent the concept of a null or missing value.It can be used as a placeholder for variables or fields that are not initialized,or to indicate that a specific piece of data is intentionally absent.
func (NullValue)MarshalJSON¶added inv8.14.0
MarshalJSON converts the NullValue to JSON format.It always returns a "null" value as per JSON standard for null values.
typeNumberRangeQuery¶
type NumberRangeQuery struct {// Boost Floating point number used to decrease or increase the relevance scores of// the query.// Boost values are relative to the default value of 1.0.// A boost value between 0 and 1.0 decreases the relevance score.// A value greater than 1.0 increases the relevance score.Boost *float32 `json:"boost,omitempty"`From *Float64 `json:"from,omitempty"`// Gt Greater than.Gt *Float64 `json:"gt,omitempty"`// Gte Greater than or equal to.Gte *Float64 `json:"gte,omitempty"`// Lt Less than.Lt *Float64 `json:"lt,omitempty"`// Lte Less than or equal to.Lte *Float64 `json:"lte,omitempty"`QueryName_ *string `json:"_name,omitempty"`// Relation Indicates how the range query matches values for `range` fields.Relation *rangerelation.RangeRelation `json:"relation,omitempty"`To *Float64 `json:"to,omitempty"`}NumberRangeQuery type.
funcNewNumberRangeQuery¶added inv8.5.0
func NewNumberRangeQuery() *NumberRangeQuery
NewNumberRangeQuery returns a NumberRangeQuery.
func (*NumberRangeQuery)UnmarshalJSON¶added inv8.7.1
func (s *NumberRangeQuery) UnmarshalJSON(data []byte)error
typeNumericDecayFunction¶
type NumericDecayFunction struct {DecayFunctionBasedoubledouble map[string]DecayPlacementdoubledouble `json:"-"`// MultiValueMode Determines how the distance is calculated when a field used for computing the// decay contains multiple values.MultiValueMode *multivaluemode.MultiValueMode `json:"multi_value_mode,omitempty"`}NumericDecayFunction type.
funcNewNumericDecayFunction¶added inv8.5.0
func NewNumericDecayFunction() *NumericDecayFunction
NewNumericDecayFunction returns a NumericDecayFunction.
func (NumericDecayFunction)MarshalJSON¶
func (sNumericDecayFunction) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
typeNumericFielddata¶
type NumericFielddata struct {Formatnumericfielddataformat.NumericFielddataFormat `json:"format"`}NumericFielddata type.
funcNewNumericFielddata¶added inv8.5.0
func NewNumericFielddata() *NumericFielddata
NewNumericFielddata returns a NumericFielddata.
typeObjectProperty¶
type ObjectProperty struct {CopyTo []string `json:"copy_to,omitempty"`Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`Enabled *bool `json:"enabled,omitempty"`Fields map[string]Property `json:"fields,omitempty"`IgnoreAbove *int `json:"ignore_above,omitempty"`// Meta Metadata about the field.Meta map[string]string `json:"meta,omitempty"`Properties map[string]Property `json:"properties,omitempty"`Store *bool `json:"store,omitempty"`Subobjects *subobjects.Subobjects `json:"subobjects,omitempty"`SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`Typestring `json:"type,omitempty"`}ObjectProperty type.
funcNewObjectProperty¶added inv8.5.0
func NewObjectProperty() *ObjectProperty
NewObjectProperty returns a ObjectProperty.
func (ObjectProperty)MarshalJSON¶added inv8.9.0
func (sObjectProperty) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*ObjectProperty)UnmarshalJSON¶added inv8.7.0
func (s *ObjectProperty) UnmarshalJSON(data []byte)error
typeOneHotEncodingPreprocessor¶
type OneHotEncodingPreprocessor struct {Fieldstring `json:"field"`HotMap map[string]string `json:"hot_map"`}OneHotEncodingPreprocessor type.
funcNewOneHotEncodingPreprocessor¶added inv8.5.0
func NewOneHotEncodingPreprocessor() *OneHotEncodingPreprocessor
NewOneHotEncodingPreprocessor returns a OneHotEncodingPreprocessor.
func (*OneHotEncodingPreprocessor)UnmarshalJSON¶added inv8.9.0
func (s *OneHotEncodingPreprocessor) UnmarshalJSON(data []byte)error
typeOpenAIServiceSettings¶added inv8.18.0
type OpenAIServiceSettings struct {// ApiKey A valid API key of your OpenAI account.// You can find your OpenAI API keys in your OpenAI account under the API keys// section.//// IMPORTANT: You need to provide the API key only once, during the inference// model creation.// The get inference endpoint API does not retrieve your API key.// After creating the inference model, you cannot change the associated API key.// If you want to use a different API key, delete the inference model and// recreate it with the same name and the updated API key.ApiKeystring `json:"api_key"`// Dimensions The number of dimensions the resulting output embeddings should have.// It is supported only in `text-embedding-3` and later models.// If it is not set, the OpenAI defined default for the model is used.Dimensions *int `json:"dimensions,omitempty"`// ModelId The name of the model to use for the inference task.// Refer to the OpenAI documentation for the list of available text embedding// models.ModelIdstring `json:"model_id"`// OrganizationId The unique identifier for your organization.// You can find the Organization ID in your OpenAI account under *Settings >// Organizations*.OrganizationId *string `json:"organization_id,omitempty"`// RateLimit This setting helps to minimize the number of rate limit errors returned from// OpenAI.// The `openai` service sets a default number of requests allowed per minute// depending on the task type.// For `text_embedding`, it is set to `3000`.// For `completion`, it is set to `500`.RateLimit *RateLimitSetting `json:"rate_limit,omitempty"`// Url The URL endpoint to use for the requests.// It can be changed for testing purposes.Url *string `json:"url,omitempty"`}OpenAIServiceSettings type.
funcNewOpenAIServiceSettings¶added inv8.18.0
func NewOpenAIServiceSettings() *OpenAIServiceSettings
NewOpenAIServiceSettings returns a OpenAIServiceSettings.
func (*OpenAIServiceSettings)UnmarshalJSON¶added inv8.18.0
func (s *OpenAIServiceSettings) UnmarshalJSON(data []byte)error
typeOpenAITaskSettings¶added inv8.18.0
type OpenAITaskSettings struct {// User For a `completion` or `text_embedding` task, specify the user issuing the// request.// This information can be used for abuse detection.User *string `json:"user,omitempty"`}OpenAITaskSettings type.
funcNewOpenAITaskSettings¶added inv8.18.0
func NewOpenAITaskSettings() *OpenAITaskSettings
NewOpenAITaskSettings returns a OpenAITaskSettings.
func (*OpenAITaskSettings)UnmarshalJSON¶added inv8.18.0
func (s *OpenAITaskSettings) UnmarshalJSON(data []byte)error
typeOperatingSystem¶
type OperatingSystem struct {Cgroup *Cgroup `json:"cgroup,omitempty"`Cpu *Cpu `json:"cpu,omitempty"`Mem *ExtendedMemoryStats `json:"mem,omitempty"`Swap *MemoryStats `json:"swap,omitempty"`Timestamp *int64 `json:"timestamp,omitempty"`}OperatingSystem type.
funcNewOperatingSystem¶added inv8.5.0
func NewOperatingSystem() *OperatingSystem
NewOperatingSystem returns a OperatingSystem.
func (*OperatingSystem)UnmarshalJSON¶added inv8.7.1
func (s *OperatingSystem) UnmarshalJSON(data []byte)error
typeOperatingSystemMemoryInfo¶
type OperatingSystemMemoryInfo struct {// AdjustedTotal Total amount of memory across all selected nodes, but using the value// specified using the `es.total_memory_bytes` system property instead of// measured total memory for those nodes where that system property was set.AdjustedTotalByteSize `json:"adjusted_total,omitempty"`// AdjustedTotalInBytes Total amount, in bytes, of memory across all selected nodes, but using the// value specified using the `es.total_memory_bytes` system property instead of// measured total memory for those nodes where that system property was set.AdjustedTotalInBytes *int64 `json:"adjusted_total_in_bytes,omitempty"`// Free Amount of free physical memory across all selected nodes.FreeByteSize `json:"free,omitempty"`// FreeInBytes Amount, in bytes, of free physical memory across all selected nodes.FreeInBytesint64 `json:"free_in_bytes"`// FreePercent Percentage of free physical memory across all selected nodes.FreePercentint `json:"free_percent"`// Total Total amount of physical memory across all selected nodes.TotalByteSize `json:"total,omitempty"`// TotalInBytes Total amount, in bytes, of physical memory across all selected nodes.TotalInBytesint64 `json:"total_in_bytes"`// Used Amount of physical memory in use across all selected nodes.UsedByteSize `json:"used,omitempty"`// UsedInBytes Amount, in bytes, of physical memory in use across all selected nodes.UsedInBytesint64 `json:"used_in_bytes"`// UsedPercent Percentage of physical memory in use across all selected nodes.UsedPercentint `json:"used_percent"`}OperatingSystemMemoryInfo type.
funcNewOperatingSystemMemoryInfo¶added inv8.5.0
func NewOperatingSystemMemoryInfo() *OperatingSystemMemoryInfo
NewOperatingSystemMemoryInfo returns a OperatingSystemMemoryInfo.
func (*OperatingSystemMemoryInfo)UnmarshalJSON¶added inv8.7.1
func (s *OperatingSystemMemoryInfo) UnmarshalJSON(data []byte)error
typeOperationContainer¶added inv8.9.0
type OperationContainer struct {AdditionalOperationContainerProperty map[string]json.RawMessage `json:"-"`// Create Index the specified document if it does not already exist.// The following line must contain the source data to be indexed.Create *CreateOperation `json:"create,omitempty"`// Delete Remove the specified document from the index.Delete *DeleteOperation `json:"delete,omitempty"`// Index Index the specified document.// If the document exists, it replaces the document and increments the version.// The following line must contain the source data to be indexed.Index *IndexOperation `json:"index,omitempty"`// Update Perform a partial document update.// The following line must contain the partial document and update options.Update *UpdateOperation `json:"update,omitempty"`}OperationContainer type.
funcNewOperationContainer¶added inv8.9.0
func NewOperationContainer() *OperationContainer
NewOperationContainer returns a OperationContainer.
func (OperationContainer)MarshalJSON¶added inv8.18.0
func (sOperationContainer) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
typeOutlierDetectionParameters¶
type OutlierDetectionParameters struct {// ComputeFeatureInfluence Specifies whether the feature influence calculation is enabled.ComputeFeatureInfluence *bool `json:"compute_feature_influence,omitempty"`// FeatureInfluenceThreshold The minimum outlier score that a document needs to have in order to calculate// its feature influence score.// Value range: 0-1FeatureInfluenceThreshold *Float64 `json:"feature_influence_threshold,omitempty"`// Method The method that outlier detection uses.// Available methods are `lof`, `ldof`, `distance_kth_nn`, `distance_knn`, and// `ensemble`.// The default value is ensemble, which means that outlier detection uses an// ensemble of different methods and normalises and combines their individual// outlier scores to obtain the overall outlier score.Method *string `json:"method,omitempty"`// NNeighbors Defines the value for how many nearest neighbors each method of outlier// detection uses to calculate its outlier score.// When the value is not set, different values are used for different ensemble// members.// This default behavior helps improve the diversity in the ensemble; only// override it if you are confident that the value you choose is appropriate for// the data set.NNeighbors *int `json:"n_neighbors,omitempty"`// OutlierFraction The proportion of the data set that is assumed to be outlying prior to// outlier detection.// For example, 0.05 means it is assumed that 5% of values are real outliers and// 95% are inliers.OutlierFraction *Float64 `json:"outlier_fraction,omitempty"`// StandardizationEnabled If `true`, the following operation is performed on the columns before// computing outlier scores: (x_i - mean(x_i)) / sd(x_i).StandardizationEnabled *bool `json:"standardization_enabled,omitempty"`}OutlierDetectionParameters type.
funcNewOutlierDetectionParameters¶added inv8.5.0
func NewOutlierDetectionParameters() *OutlierDetectionParameters
NewOutlierDetectionParameters returns a OutlierDetectionParameters.
func (*OutlierDetectionParameters)UnmarshalJSON¶added inv8.7.1
func (s *OutlierDetectionParameters) UnmarshalJSON(data []byte)error
typeOverallBucket¶
type OverallBucket struct {// BucketSpan The length of the bucket in seconds. Matches the job with the longest// bucket_span value.BucketSpanint64 `json:"bucket_span"`// IsInterim If true, this is an interim result. In other words, the results are// calculated based on partial input data.IsInterimbool `json:"is_interim"`// Jobs An array of objects that contain the max_anomaly_score per job_id.Jobs []OverallBucketJob `json:"jobs"`// OverallScore The top_n average of the maximum bucket anomaly_score per job.OverallScoreFloat64 `json:"overall_score"`// ResultType Internal. This is always set to overall_bucket.ResultTypestring `json:"result_type"`// Timestamp The start time of the bucket for which these results were calculated.Timestampint64 `json:"timestamp"`// TimestampString The start time of the bucket for which these results were calculated.TimestampStringDateTime `json:"timestamp_string,omitempty"`}OverallBucket type.
funcNewOverallBucket¶added inv8.5.0
func NewOverallBucket() *OverallBucket
NewOverallBucket returns a OverallBucket.
func (*OverallBucket)UnmarshalJSON¶added inv8.7.1
func (s *OverallBucket) UnmarshalJSON(data []byte)error
typeOverallBucketJob¶
type OverallBucketJob struct {JobIdstring `json:"job_id"`MaxAnomalyScoreFloat64 `json:"max_anomaly_score"`}OverallBucketJob type.
funcNewOverallBucketJob¶added inv8.5.0
func NewOverallBucketJob() *OverallBucketJob
NewOverallBucketJob returns a OverallBucketJob.
func (*OverallBucketJob)UnmarshalJSON¶added inv8.7.1
func (s *OverallBucketJob) UnmarshalJSON(data []byte)error
typeOverlapping¶
Overlapping type.
funcNewOverlapping¶added inv8.5.0
func NewOverlapping() *Overlapping
NewOverlapping returns a Overlapping.
func (*Overlapping)UnmarshalJSON¶added inv8.7.1
func (s *Overlapping) UnmarshalJSON(data []byte)error
typePage¶
type Page struct {// From Skips the specified number of items.From *int `json:"from,omitempty"`// Size Specifies the maximum number of items to obtain.Size *int `json:"size,omitempty"`}Page type.
func (*Page)UnmarshalJSON¶added inv8.7.1
typePagerDutyAction¶
type PagerDutyAction struct {Account *string `json:"account,omitempty"`AttachPayloadbool `json:"attach_payload"`Client *string `json:"client,omitempty"`ClientUrl *string `json:"client_url,omitempty"`Contexts []PagerDutyContext `json:"contexts,omitempty"`Descriptionstring `json:"description"`EventType *pagerdutyeventtype.PagerDutyEventType `json:"event_type,omitempty"`IncidentKeystring `json:"incident_key"`Proxy *PagerDutyEventProxy `json:"proxy,omitempty"`}PagerDutyAction type.
funcNewPagerDutyAction¶added inv8.5.0
func NewPagerDutyAction() *PagerDutyAction
NewPagerDutyAction returns a PagerDutyAction.
func (*PagerDutyAction)UnmarshalJSON¶added inv8.7.1
func (s *PagerDutyAction) UnmarshalJSON(data []byte)error
typePagerDutyContext¶
type PagerDutyContext struct {Href *string `json:"href,omitempty"`Src *string `json:"src,omitempty"`Typepagerdutycontexttype.PagerDutyContextType `json:"type"`}PagerDutyContext type.
funcNewPagerDutyContext¶added inv8.5.0
func NewPagerDutyContext() *PagerDutyContext
NewPagerDutyContext returns a PagerDutyContext.
func (*PagerDutyContext)UnmarshalJSON¶added inv8.9.0
func (s *PagerDutyContext) UnmarshalJSON(data []byte)error
typePagerDutyEvent¶
type PagerDutyEvent struct {Account *string `json:"account,omitempty"`AttachPayloadbool `json:"attach_payload"`Client *string `json:"client,omitempty"`ClientUrl *string `json:"client_url,omitempty"`Contexts []PagerDutyContext `json:"contexts,omitempty"`Descriptionstring `json:"description"`EventType *pagerdutyeventtype.PagerDutyEventType `json:"event_type,omitempty"`IncidentKeystring `json:"incident_key"`Proxy *PagerDutyEventProxy `json:"proxy,omitempty"`}PagerDutyEvent type.
funcNewPagerDutyEvent¶added inv8.5.0
func NewPagerDutyEvent() *PagerDutyEvent
NewPagerDutyEvent returns a PagerDutyEvent.
func (*PagerDutyEvent)UnmarshalJSON¶added inv8.7.1
func (s *PagerDutyEvent) UnmarshalJSON(data []byte)error
typePagerDutyEventProxy¶
type PagerDutyEventProxy struct {Host *string `json:"host,omitempty"`Port *int `json:"port,omitempty"`}PagerDutyEventProxy type.
funcNewPagerDutyEventProxy¶added inv8.5.0
func NewPagerDutyEventProxy() *PagerDutyEventProxy
NewPagerDutyEventProxy returns a PagerDutyEventProxy.
func (*PagerDutyEventProxy)UnmarshalJSON¶added inv8.7.1
func (s *PagerDutyEventProxy) UnmarshalJSON(data []byte)error
typePagerDutyResult¶
type PagerDutyResult struct {EventPagerDutyEvent `json:"event"`Reason *string `json:"reason,omitempty"`Request *HttpInputRequestResult `json:"request,omitempty"`Response *HttpInputResponseResult `json:"response,omitempty"`}PagerDutyResult type.
funcNewPagerDutyResult¶added inv8.5.0
func NewPagerDutyResult() *PagerDutyResult
NewPagerDutyResult returns a PagerDutyResult.
func (*PagerDutyResult)UnmarshalJSON¶added inv8.9.0
func (s *PagerDutyResult) UnmarshalJSON(data []byte)error
typePainlessContextSetup¶
type PainlessContextSetup struct {// Document Document that's temporarily indexed in-memory and accessible from the script.Documentjson.RawMessage `json:"document,omitempty"`// Index Index containing a mapping that's compatible with the indexed document.// You may specify a remote index by prefixing the index with the remote cluster// alias.// For example, `remote1:my_index` indicates that you want to run the painless// script against the "my_index" index on the "remote1" cluster.// This request will be forwarded to the "remote1" cluster if you have// configured a connection to that remote cluster.//// NOTE: Wildcards are not accepted in the index expression for this endpoint.// The expression `*:myindex` will return the error "No such remote cluster" and// the expression `logs*` or `remote1:logs*` will return the error "index not// found".Indexstring `json:"index"`// Query Use this parameter to specify a query for computing a score.Query *Query `json:"query,omitempty"`}PainlessContextSetup type.
funcNewPainlessContextSetup¶added inv8.5.0
func NewPainlessContextSetup() *PainlessContextSetup
NewPainlessContextSetup returns a PainlessContextSetup.
func (*PainlessContextSetup)UnmarshalJSON¶added inv8.7.1
func (s *PainlessContextSetup) UnmarshalJSON(data []byte)error
typeParentAggregate¶
type ParentAggregate struct {Aggregations map[string]Aggregate `json:"-"`DocCountint64 `json:"doc_count"`MetaMetadata `json:"meta,omitempty"`}ParentAggregate type.
funcNewParentAggregate¶added inv8.5.0
func NewParentAggregate() *ParentAggregate
NewParentAggregate returns a ParentAggregate.
func (ParentAggregate)MarshalJSON¶
func (sParentAggregate) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
func (*ParentAggregate)UnmarshalJSON¶added inv8.7.0
func (s *ParentAggregate) UnmarshalJSON(data []byte)error
typeParentAggregation¶
type ParentAggregation struct {// Type The child type that should be selected.Type *string `json:"type,omitempty"`}ParentAggregation type.
funcNewParentAggregation¶added inv8.5.0
func NewParentAggregation() *ParentAggregation
NewParentAggregation returns a ParentAggregation.
func (*ParentAggregation)UnmarshalJSON¶added inv8.7.1
func (s *ParentAggregation) UnmarshalJSON(data []byte)error
typeParentIdQuery¶
type ParentIdQuery struct {// Boost Floating point number used to decrease or increase the relevance scores of// the query.// Boost values are relative to the default value of 1.0.// A boost value between 0 and 1.0 decreases the relevance score.// A value greater than 1.0 increases the relevance score.Boost *float32 `json:"boost,omitempty"`// Id ID of the parent document.Id *string `json:"id,omitempty"`// IgnoreUnmapped Indicates whether to ignore an unmapped `type` and not return any documents// instead of an error.IgnoreUnmapped *bool `json:"ignore_unmapped,omitempty"`QueryName_ *string `json:"_name,omitempty"`// Type Name of the child relationship mapped for the `join` field.Type *string `json:"type,omitempty"`}ParentIdQuery type.
funcNewParentIdQuery¶added inv8.5.0
func NewParentIdQuery() *ParentIdQuery
NewParentIdQuery returns a ParentIdQuery.
func (*ParentIdQuery)UnmarshalJSON¶added inv8.7.1
func (s *ParentIdQuery) UnmarshalJSON(data []byte)error
typeParentTaskInfo¶
type ParentTaskInfo struct {Actionstring `json:"action"`Cancellablebool `json:"cancellable"`Cancelled *bool `json:"cancelled,omitempty"`Children []TaskInfo `json:"children,omitempty"`// Description Human readable text that identifies the particular request that the task is// performing.// For example, it might identify the search request being performed by a search// task.// Other kinds of tasks have different descriptions, like `_reindex` which has// the source and the destination, or `_bulk` which just has the number of// requests and the destination indices.// Many requests will have only an empty description because more detailed// information about the request is not easily available or particularly helpful// in identifying the request.Description *string `json:"description,omitempty"`Headers map[string]string `json:"headers"`Idint64 `json:"id"`Nodestring `json:"node"`ParentTaskIdTaskId `json:"parent_task_id,omitempty"`RunningTimeDuration `json:"running_time,omitempty"`RunningTimeInNanosint64 `json:"running_time_in_nanos"`StartTimeInMillisint64 `json:"start_time_in_millis"`// Status The internal status of the task, which varies from task to task.// The format also varies.// While the goal is to keep the status for a particular task consistent from// version to version, this is not always possible because sometimes the// implementation changes.// Fields might be removed from the status for a particular request so any// parsing you do of the status might break in minor releases.Statusjson.RawMessage `json:"status,omitempty"`Typestring `json:"type"`}ParentTaskInfo type.
funcNewParentTaskInfo¶added inv8.5.0
func NewParentTaskInfo() *ParentTaskInfo
NewParentTaskInfo returns a ParentTaskInfo.
func (*ParentTaskInfo)UnmarshalJSON¶added inv8.7.1
func (s *ParentTaskInfo) UnmarshalJSON(data []byte)error
typePassThroughInferenceOptions¶
type PassThroughInferenceOptions struct {// ResultsField The field that is added to incoming documents to contain the inference// prediction. Defaults to predicted_value.ResultsField *string `json:"results_field,omitempty"`// Tokenization The tokenization optionsTokenization *TokenizationConfigContainer `json:"tokenization,omitempty"`Vocabulary *Vocabulary `json:"vocabulary,omitempty"`}PassThroughInferenceOptions type.
funcNewPassThroughInferenceOptions¶added inv8.5.0
func NewPassThroughInferenceOptions() *PassThroughInferenceOptions
NewPassThroughInferenceOptions returns a PassThroughInferenceOptions.
func (*PassThroughInferenceOptions)UnmarshalJSON¶added inv8.9.0
func (s *PassThroughInferenceOptions) UnmarshalJSON(data []byte)error
typePassThroughInferenceUpdateOptions¶
type PassThroughInferenceUpdateOptions struct {// ResultsField The field that is added to incoming documents to contain the inference// prediction. Defaults to predicted_value.ResultsField *string `json:"results_field,omitempty"`// Tokenization The tokenization options to update when inferringTokenization *NlpTokenizationUpdateOptions `json:"tokenization,omitempty"`}PassThroughInferenceUpdateOptions type.
funcNewPassThroughInferenceUpdateOptions¶added inv8.5.0
func NewPassThroughInferenceUpdateOptions() *PassThroughInferenceUpdateOptions
NewPassThroughInferenceUpdateOptions returns a PassThroughInferenceUpdateOptions.
func (*PassThroughInferenceUpdateOptions)UnmarshalJSON¶added inv8.9.0
func (s *PassThroughInferenceUpdateOptions) UnmarshalJSON(data []byte)error
typePassthroughObjectProperty¶added inv8.18.0
type PassthroughObjectProperty struct {CopyTo []string `json:"copy_to,omitempty"`Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`Enabled *bool `json:"enabled,omitempty"`Fields map[string]Property `json:"fields,omitempty"`IgnoreAbove *int `json:"ignore_above,omitempty"`// Meta Metadata about the field.Meta map[string]string `json:"meta,omitempty"`Priority *int `json:"priority,omitempty"`Properties map[string]Property `json:"properties,omitempty"`Store *bool `json:"store,omitempty"`SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`TimeSeriesDimension *bool `json:"time_series_dimension,omitempty"`Typestring `json:"type,omitempty"`}PassthroughObjectProperty type.
funcNewPassthroughObjectProperty¶added inv8.18.0
func NewPassthroughObjectProperty() *PassthroughObjectProperty
NewPassthroughObjectProperty returns a PassthroughObjectProperty.
func (PassthroughObjectProperty)MarshalJSON¶added inv8.18.0
func (sPassthroughObjectProperty) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*PassthroughObjectProperty)UnmarshalJSON¶added inv8.18.0
func (s *PassthroughObjectProperty) UnmarshalJSON(data []byte)error
typePathHierarchyTokenizer¶
type PathHierarchyTokenizer struct {BufferSizeStringifiedinteger `json:"buffer_size,omitempty"`Delimiter *string `json:"delimiter,omitempty"`Replacement *string `json:"replacement,omitempty"`ReverseStringifiedboolean `json:"reverse,omitempty"`SkipStringifiedinteger `json:"skip,omitempty"`Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}PathHierarchyTokenizer type.
funcNewPathHierarchyTokenizer¶added inv8.5.0
func NewPathHierarchyTokenizer() *PathHierarchyTokenizer
NewPathHierarchyTokenizer returns a PathHierarchyTokenizer.
func (PathHierarchyTokenizer)MarshalJSON¶added inv8.9.0
func (sPathHierarchyTokenizer) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*PathHierarchyTokenizer)UnmarshalJSON¶added inv8.7.1
func (s *PathHierarchyTokenizer) UnmarshalJSON(data []byte)error
typePatternAnalyzer¶
type PatternAnalyzer struct {Flags *string `json:"flags,omitempty"`Lowercase *bool `json:"lowercase,omitempty"`Patternstring `json:"pattern"`StopwordsStopWords `json:"stopwords,omitempty"`Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}PatternAnalyzer type.
funcNewPatternAnalyzer¶added inv8.5.0
func NewPatternAnalyzer() *PatternAnalyzer
NewPatternAnalyzer returns a PatternAnalyzer.
func (PatternAnalyzer)MarshalJSON¶added inv8.9.0
func (sPatternAnalyzer) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*PatternAnalyzer)UnmarshalJSON¶added inv8.7.1
func (s *PatternAnalyzer) UnmarshalJSON(data []byte)error
typePatternCaptureTokenFilter¶
type PatternCaptureTokenFilter struct {// Patterns A list of regular expressions to match.Patterns []string `json:"patterns"`// PreserveOriginal If set to `true` (the default) it will emit the original token.PreserveOriginalStringifiedboolean `json:"preserve_original,omitempty"`Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}PatternCaptureTokenFilter type.
funcNewPatternCaptureTokenFilter¶added inv8.5.0
func NewPatternCaptureTokenFilter() *PatternCaptureTokenFilter
NewPatternCaptureTokenFilter returns a PatternCaptureTokenFilter.
func (PatternCaptureTokenFilter)MarshalJSON¶added inv8.9.0
func (sPatternCaptureTokenFilter) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*PatternCaptureTokenFilter)UnmarshalJSON¶added inv8.7.1
func (s *PatternCaptureTokenFilter) UnmarshalJSON(data []byte)error
typePatternReplaceCharFilter¶
type PatternReplaceCharFilter struct {Flags *string `json:"flags,omitempty"`Patternstring `json:"pattern"`Replacement *string `json:"replacement,omitempty"`Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}PatternReplaceCharFilter type.
funcNewPatternReplaceCharFilter¶added inv8.5.0
func NewPatternReplaceCharFilter() *PatternReplaceCharFilter
NewPatternReplaceCharFilter returns a PatternReplaceCharFilter.
func (PatternReplaceCharFilter)MarshalJSON¶added inv8.9.0
func (sPatternReplaceCharFilter) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*PatternReplaceCharFilter)UnmarshalJSON¶added inv8.7.1
func (s *PatternReplaceCharFilter) UnmarshalJSON(data []byte)error
typePatternReplaceTokenFilter¶
type PatternReplaceTokenFilter struct {// All If `true`, all substrings matching the pattern parameter’s regular expression// are replaced. If `false`, the filter replaces only the first matching// substring in each token. Defaults to `true`.All *bool `json:"all,omitempty"`Flags *string `json:"flags,omitempty"`// Pattern Regular expression, written in Java’s regular expression syntax. The filter// replaces token substrings matching this pattern with the substring in the// `replacement` parameter.Patternstring `json:"pattern"`// Replacement Replacement substring. Defaults to an empty substring (`""`).Replacement *string `json:"replacement,omitempty"`Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}PatternReplaceTokenFilter type.
funcNewPatternReplaceTokenFilter¶added inv8.5.0
func NewPatternReplaceTokenFilter() *PatternReplaceTokenFilter
NewPatternReplaceTokenFilter returns a PatternReplaceTokenFilter.
func (PatternReplaceTokenFilter)MarshalJSON¶added inv8.9.0
func (sPatternReplaceTokenFilter) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*PatternReplaceTokenFilter)UnmarshalJSON¶added inv8.7.1
func (s *PatternReplaceTokenFilter) UnmarshalJSON(data []byte)error
typePatternTokenizer¶
type PatternTokenizer struct {Flags *string `json:"flags,omitempty"`Group *int `json:"group,omitempty"`Pattern *string `json:"pattern,omitempty"`Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}PatternTokenizer type.
funcNewPatternTokenizer¶added inv8.5.0
func NewPatternTokenizer() *PatternTokenizer
NewPatternTokenizer returns a PatternTokenizer.
func (PatternTokenizer)MarshalJSON¶added inv8.9.0
func (sPatternTokenizer) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*PatternTokenizer)UnmarshalJSON¶added inv8.7.1
func (s *PatternTokenizer) UnmarshalJSON(data []byte)error
typePendingTask¶
type PendingTask struct {// Executing Indicates whether the pending tasks are currently executing or not.Executingbool `json:"executing"`// InsertOrder The number that represents when the task has been inserted into the task// queue.InsertOrderint `json:"insert_order"`// Priority The priority of the pending task.// The valid priorities in descending priority order are: `IMMEDIATE` > `URGENT`// > `HIGH` > `NORMAL` > `LOW` > `LANGUID`.Prioritystring `json:"priority"`// Source A general description of the cluster task that may include a reason and// origin.Sourcestring `json:"source"`// TimeInQueue The time since the task is waiting for being performed.TimeInQueueDuration `json:"time_in_queue,omitempty"`// TimeInQueueMillis The time expressed in milliseconds since the task is waiting for being// performed.TimeInQueueMillisint64 `json:"time_in_queue_millis"`}PendingTask type.
funcNewPendingTask¶added inv8.5.0
func NewPendingTask() *PendingTask
NewPendingTask returns a PendingTask.
func (*PendingTask)UnmarshalJSON¶added inv8.7.1
func (s *PendingTask) UnmarshalJSON(data []byte)error
typePendingTasksRecord¶
type PendingTasksRecord struct {// InsertOrder The task insertion order.InsertOrder *string `json:"insertOrder,omitempty"`// Priority The task priority.Priority *string `json:"priority,omitempty"`// Source The task source.Source *string `json:"source,omitempty"`// TimeInQueue Indicates how long the task has been in queue.TimeInQueue *string `json:"timeInQueue,omitempty"`}PendingTasksRecord type.
funcNewPendingTasksRecord¶added inv8.5.0
func NewPendingTasksRecord() *PendingTasksRecord
NewPendingTasksRecord returns a PendingTasksRecord.
func (*PendingTasksRecord)UnmarshalJSON¶added inv8.9.0
func (s *PendingTasksRecord) UnmarshalJSON(data []byte)error
typePerPartitionCategorization¶
type PerPartitionCategorization struct {// Enabled To enable this setting, you must also set the `partition_field_name` property// to the same value in every detector that uses the keyword `mlcategory`.// Otherwise, job creation fails.Enabled *bool `json:"enabled,omitempty"`// StopOnWarn This setting can be set to true only if per-partition categorization is// enabled. If true, both categorization and subsequent anomaly detection stops// for partitions where the categorization status changes to warn. This setting// makes it viable to have a job where it is expected that categorization works// well for some partitions but not others; you do not pay the cost of bad// categorization forever in the partitions where it works badly.StopOnWarn *bool `json:"stop_on_warn,omitempty"`}PerPartitionCategorization type.
funcNewPerPartitionCategorization¶added inv8.5.0
func NewPerPartitionCategorization() *PerPartitionCategorization
NewPerPartitionCategorization returns a PerPartitionCategorization.
func (*PerPartitionCategorization)UnmarshalJSON¶added inv8.7.1
func (s *PerPartitionCategorization) UnmarshalJSON(data []byte)error
typePerRepositoryStats¶added inv8.19.0
type PerRepositoryStats struct {CurrentCountsRepositoryStatsCurrentCounts `json:"current_counts"`OldestStartTime *string `json:"oldest_start_time,omitempty"`OldestStartTimeMillisint64 `json:"oldest_start_time_millis"`Typestring `json:"type"`}PerRepositoryStats type.
funcNewPerRepositoryStats¶added inv8.19.0
func NewPerRepositoryStats() *PerRepositoryStats
NewPerRepositoryStats returns a PerRepositoryStats.
func (*PerRepositoryStats)UnmarshalJSON¶added inv8.19.0
func (s *PerRepositoryStats) UnmarshalJSON(data []byte)error
typePercentageScoreHeuristic¶
type PercentageScoreHeuristic struct {}PercentageScoreHeuristic type.
funcNewPercentageScoreHeuristic¶added inv8.5.0
func NewPercentageScoreHeuristic() *PercentageScoreHeuristic
NewPercentageScoreHeuristic returns a PercentageScoreHeuristic.
typePercentileRanksAggregation¶
type PercentileRanksAggregation struct {// Field The field on which to run the aggregation.Field *string `json:"field,omitempty"`Format *string `json:"format,omitempty"`// Hdr Uses the alternative High Dynamic Range Histogram algorithm to calculate// percentile ranks.Hdr *HdrMethod `json:"hdr,omitempty"`// Keyed By default, the aggregation associates a unique string key with each bucket// and returns the ranges as a hash rather than an array.// Set to `false` to disable this behavior.Keyed *bool `json:"keyed,omitempty"`// Missing The value to apply to documents that do not have a value.// By default, documents without a value are ignored.MissingMissing `json:"missing,omitempty"`Script *Script `json:"script,omitempty"`// Tdigest Sets parameters for the default TDigest algorithm used to calculate// percentile ranks.Tdigest *TDigest `json:"tdigest,omitempty"`// Values An array of values for which to calculate the percentile ranks.Values *[]Float64 `json:"values,omitempty"`}PercentileRanksAggregation type.
funcNewPercentileRanksAggregation¶added inv8.5.0
func NewPercentileRanksAggregation() *PercentileRanksAggregation
NewPercentileRanksAggregation returns a PercentileRanksAggregation.
func (*PercentileRanksAggregation)UnmarshalJSON¶added inv8.7.1
func (s *PercentileRanksAggregation) UnmarshalJSON(data []byte)error
typePercentiles¶
type Percentilesany
Percentiles holds the union for the following types:
KeyedPercentiles[]ArrayPercentilesItem
typePercentilesAggregation¶
type PercentilesAggregation struct {// Field The field on which to run the aggregation.Field *string `json:"field,omitempty"`Format *string `json:"format,omitempty"`// Hdr Uses the alternative High Dynamic Range Histogram algorithm to calculate// percentiles.Hdr *HdrMethod `json:"hdr,omitempty"`// Keyed By default, the aggregation associates a unique string key with each bucket// and returns the ranges as a hash rather than an array.// Set to `false` to disable this behavior.Keyed *bool `json:"keyed,omitempty"`// Missing The value to apply to documents that do not have a value.// By default, documents without a value are ignored.MissingMissing `json:"missing,omitempty"`// Percents The percentiles to calculate.Percents []Float64 `json:"percents,omitempty"`Script *Script `json:"script,omitempty"`// Tdigest Sets parameters for the default TDigest algorithm used to calculate// percentiles.Tdigest *TDigest `json:"tdigest,omitempty"`}PercentilesAggregation type.
funcNewPercentilesAggregation¶added inv8.5.0
func NewPercentilesAggregation() *PercentilesAggregation
NewPercentilesAggregation returns a PercentilesAggregation.
func (*PercentilesAggregation)UnmarshalJSON¶added inv8.7.1
func (s *PercentilesAggregation) UnmarshalJSON(data []byte)error
typePercentilesBucketAggregate¶
type PercentilesBucketAggregate struct {MetaMetadata `json:"meta,omitempty"`ValuesPercentiles `json:"values"`}PercentilesBucketAggregate type.
funcNewPercentilesBucketAggregate¶added inv8.5.0
func NewPercentilesBucketAggregate() *PercentilesBucketAggregate
NewPercentilesBucketAggregate returns a PercentilesBucketAggregate.
func (*PercentilesBucketAggregate)UnmarshalJSON¶added inv8.7.1
func (s *PercentilesBucketAggregate) UnmarshalJSON(data []byte)error
typePercentilesBucketAggregation¶
type PercentilesBucketAggregation struct {// BucketsPath Path to the buckets that contain one set of values to correlate.BucketsPathBucketsPath `json:"buckets_path,omitempty"`// Format `DecimalFormat` pattern for the output value.// If specified, the formatted value is returned in the aggregation’s// `value_as_string` property.Format *string `json:"format,omitempty"`// GapPolicy Policy to apply when gaps are found in the data.GapPolicy *gappolicy.GapPolicy `json:"gap_policy,omitempty"`// Percents The list of percentiles to calculate.Percents []Float64 `json:"percents,omitempty"`}PercentilesBucketAggregation type.
funcNewPercentilesBucketAggregation¶added inv8.5.0
func NewPercentilesBucketAggregation() *PercentilesBucketAggregation
NewPercentilesBucketAggregation returns a PercentilesBucketAggregation.
func (*PercentilesBucketAggregation)UnmarshalJSON¶added inv8.7.0
func (s *PercentilesBucketAggregation) UnmarshalJSON(data []byte)error
typePercolateQuery¶
type PercolateQuery struct {// Boost Floating point number used to decrease or increase the relevance scores of// the query.// Boost values are relative to the default value of 1.0.// A boost value between 0 and 1.0 decreases the relevance score.// A value greater than 1.0 increases the relevance score.Boost *float32 `json:"boost,omitempty"`// Document The source of the document being percolated.Documentjson.RawMessage `json:"document,omitempty"`// Documents An array of sources of the documents being percolated.Documents []json.RawMessage `json:"documents,omitempty"`// Field Field that holds the indexed queries. The field must use the `percolator`// mapping type.Fieldstring `json:"field"`// Id The ID of a stored document to percolate.Id *string `json:"id,omitempty"`// Index The index of a stored document to percolate.Index *string `json:"index,omitempty"`// Name The suffix used for the `_percolator_document_slot` field when multiple// `percolate` queries are specified.Name *string `json:"name,omitempty"`// Preference Preference used to fetch document to percolate.Preference *string `json:"preference,omitempty"`QueryName_ *string `json:"_name,omitempty"`// Routing Routing used to fetch document to percolate.Routing *string `json:"routing,omitempty"`// Version The expected version of a stored document to percolate.Version *int64 `json:"version,omitempty"`}PercolateQuery type.
funcNewPercolateQuery¶added inv8.5.0
func NewPercolateQuery() *PercolateQuery
NewPercolateQuery returns a PercolateQuery.
func (*PercolateQuery)UnmarshalJSON¶added inv8.7.1
func (s *PercolateQuery) UnmarshalJSON(data []byte)error
typePercolatorProperty¶
type PercolatorProperty struct {Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`Fields map[string]Property `json:"fields,omitempty"`IgnoreAbove *int `json:"ignore_above,omitempty"`// Meta Metadata about the field.Meta map[string]string `json:"meta,omitempty"`Properties map[string]Property `json:"properties,omitempty"`SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`Typestring `json:"type,omitempty"`}PercolatorProperty type.
funcNewPercolatorProperty¶added inv8.5.0
func NewPercolatorProperty() *PercolatorProperty
NewPercolatorProperty returns a PercolatorProperty.
func (PercolatorProperty)MarshalJSON¶added inv8.9.0
func (sPercolatorProperty) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*PercolatorProperty)UnmarshalJSON¶added inv8.7.0
func (s *PercolatorProperty) UnmarshalJSON(data []byte)error
typePersianAnalyzer¶added inv8.16.0
type PersianAnalyzer struct {StopwordsStopWords `json:"stopwords,omitempty"`StopwordsPath *string `json:"stopwords_path,omitempty"`Typestring `json:"type,omitempty"`}PersianAnalyzer type.
funcNewPersianAnalyzer¶added inv8.16.0
func NewPersianAnalyzer() *PersianAnalyzer
NewPersianAnalyzer returns a PersianAnalyzer.
func (PersianAnalyzer)MarshalJSON¶added inv8.16.0
func (sPersianAnalyzer) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*PersianAnalyzer)UnmarshalJSON¶added inv8.16.0
func (s *PersianAnalyzer) UnmarshalJSON(data []byte)error
typePersianNormalizationTokenFilter¶added inv8.18.1
type PersianNormalizationTokenFilter struct {Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}PersianNormalizationTokenFilter type.
funcNewPersianNormalizationTokenFilter¶added inv8.18.1
func NewPersianNormalizationTokenFilter() *PersianNormalizationTokenFilter
NewPersianNormalizationTokenFilter returns a PersianNormalizationTokenFilter.
func (PersianNormalizationTokenFilter)MarshalJSON¶added inv8.18.1
func (sPersianNormalizationTokenFilter) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*PersianNormalizationTokenFilter)UnmarshalJSON¶added inv8.18.1
func (s *PersianNormalizationTokenFilter) UnmarshalJSON(data []byte)error
typePersianStemTokenFilter¶added inv8.19.0
type PersianStemTokenFilter struct {Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}PersianStemTokenFilter type.
funcNewPersianStemTokenFilter¶added inv8.19.0
func NewPersianStemTokenFilter() *PersianStemTokenFilter
NewPersianStemTokenFilter returns a PersianStemTokenFilter.
func (PersianStemTokenFilter)MarshalJSON¶added inv8.19.0
func (sPersianStemTokenFilter) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*PersianStemTokenFilter)UnmarshalJSON¶added inv8.19.0
func (s *PersianStemTokenFilter) UnmarshalJSON(data []byte)error
typePersistentTaskStatus¶
type PersistentTaskStatus struct {Statusshutdownstatus.ShutdownStatus `json:"status"`}PersistentTaskStatus type.
funcNewPersistentTaskStatus¶added inv8.5.0
func NewPersistentTaskStatus() *PersistentTaskStatus
NewPersistentTaskStatus returns a PersistentTaskStatus.
typePhase¶
type Phase struct {Actions *IlmActions `json:"actions,omitempty"`MinAgeDuration `json:"min_age,omitempty"`}Phase type.
func (*Phase)UnmarshalJSON¶added inv8.7.1
typePhases¶
type Phases struct {Cold *Phase `json:"cold,omitempty"`Delete *Phase `json:"delete,omitempty"`Frozen *Phase `json:"frozen,omitempty"`Hot *Phase `json:"hot,omitempty"`Warm *Phase `json:"warm,omitempty"`}Phases type.
typePhoneticTokenFilter¶
type PhoneticTokenFilter struct {Encoderphoneticencoder.PhoneticEncoder `json:"encoder"`Languageset []phoneticlanguage.PhoneticLanguage `json:"languageset,omitempty"`MaxCodeLen *int `json:"max_code_len,omitempty"`NameType *phoneticnametype.PhoneticNameType `json:"name_type,omitempty"`Replace *bool `json:"replace,omitempty"`RuleType *phoneticruletype.PhoneticRuleType `json:"rule_type,omitempty"`Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}PhoneticTokenFilter type.
funcNewPhoneticTokenFilter¶added inv8.5.0
func NewPhoneticTokenFilter() *PhoneticTokenFilter
NewPhoneticTokenFilter returns a PhoneticTokenFilter.
func (PhoneticTokenFilter)MarshalJSON¶added inv8.9.0
func (sPhoneticTokenFilter) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*PhoneticTokenFilter)UnmarshalJSON¶added inv8.7.1
func (s *PhoneticTokenFilter) UnmarshalJSON(data []byte)error
typePhraseSuggest¶
type PhraseSuggest struct {Lengthint `json:"length"`Offsetint `json:"offset"`Options []PhraseSuggestOption `json:"options"`Textstring `json:"text"`}PhraseSuggest type.
funcNewPhraseSuggest¶added inv8.5.0
func NewPhraseSuggest() *PhraseSuggest
NewPhraseSuggest returns a PhraseSuggest.
func (*PhraseSuggest)UnmarshalJSON¶added inv8.7.1
func (s *PhraseSuggest) UnmarshalJSON(data []byte)error
typePhraseSuggestCollate¶
type PhraseSuggestCollate struct {// Params Parameters to use if the query is templated.Params map[string]json.RawMessage `json:"params,omitempty"`// Prune Returns all suggestions with an extra `collate_match` option indicating// whether the generated phrase matched any document.Prune *bool `json:"prune,omitempty"`// Query A collate query that is run once for every suggestion.QueryPhraseSuggestCollateQuery `json:"query"`}PhraseSuggestCollate type.
funcNewPhraseSuggestCollate¶added inv8.5.0
func NewPhraseSuggestCollate() *PhraseSuggestCollate
NewPhraseSuggestCollate returns a PhraseSuggestCollate.
func (*PhraseSuggestCollate)UnmarshalJSON¶added inv8.7.1
func (s *PhraseSuggestCollate) UnmarshalJSON(data []byte)error
typePhraseSuggestCollateQuery¶
type PhraseSuggestCollateQuery struct {// Id The search template ID.Id *string `json:"id,omitempty"`// Source The query source.Source *string `json:"source,omitempty"`}PhraseSuggestCollateQuery type.
funcNewPhraseSuggestCollateQuery¶added inv8.5.0
func NewPhraseSuggestCollateQuery() *PhraseSuggestCollateQuery
NewPhraseSuggestCollateQuery returns a PhraseSuggestCollateQuery.
func (*PhraseSuggestCollateQuery)UnmarshalJSON¶added inv8.7.1
func (s *PhraseSuggestCollateQuery) UnmarshalJSON(data []byte)error
typePhraseSuggestHighlight¶
type PhraseSuggestHighlight struct {// PostTag Use in conjunction with `pre_tag` to define the HTML tags to use for the// highlighted text.PostTagstring `json:"post_tag"`// PreTag Use in conjunction with `post_tag` to define the HTML tags to use for the// highlighted text.PreTagstring `json:"pre_tag"`}PhraseSuggestHighlight type.
funcNewPhraseSuggestHighlight¶added inv8.5.0
func NewPhraseSuggestHighlight() *PhraseSuggestHighlight
NewPhraseSuggestHighlight returns a PhraseSuggestHighlight.
func (*PhraseSuggestHighlight)UnmarshalJSON¶added inv8.9.0
func (s *PhraseSuggestHighlight) UnmarshalJSON(data []byte)error
typePhraseSuggestOption¶
type PhraseSuggestOption struct {CollateMatch *bool `json:"collate_match,omitempty"`Highlighted *string `json:"highlighted,omitempty"`ScoreFloat64 `json:"score"`Textstring `json:"text"`}PhraseSuggestOption type.
funcNewPhraseSuggestOption¶added inv8.5.0
func NewPhraseSuggestOption() *PhraseSuggestOption
NewPhraseSuggestOption returns a PhraseSuggestOption.
func (*PhraseSuggestOption)UnmarshalJSON¶added inv8.7.1
func (s *PhraseSuggestOption) UnmarshalJSON(data []byte)error
typePhraseSuggester¶
type PhraseSuggester struct {// Analyzer The analyzer to analyze the suggest text with.// Defaults to the search analyzer of the suggest field.Analyzer *string `json:"analyzer,omitempty"`// Collate Checks each suggestion against the specified query to prune suggestions for// which no matching docs exist in the index.Collate *PhraseSuggestCollate `json:"collate,omitempty"`// Confidence Defines a factor applied to the input phrases score, which is used as a// threshold for other suggest candidates.// Only candidates that score higher than the threshold will be included in the// result.Confidence *Float64 `json:"confidence,omitempty"`// DirectGenerator A list of candidate generators that produce a list of possible terms per term// in the given text.DirectGenerator []DirectGenerator `json:"direct_generator,omitempty"`// Field The field to fetch the candidate suggestions from.// Needs to be set globally or per suggestion.Fieldstring `json:"field"`ForceUnigrams *bool `json:"force_unigrams,omitempty"`// GramSize Sets max size of the n-grams (shingles) in the field.// If the field doesn’t contain n-grams (shingles), this should be omitted or// set to `1`.// If the field uses a shingle filter, the `gram_size` is set to the// `max_shingle_size` if not explicitly set.GramSize *int `json:"gram_size,omitempty"`// Highlight Sets up suggestion highlighting.// If not provided, no highlighted field is returned.Highlight *PhraseSuggestHighlight `json:"highlight,omitempty"`// MaxErrors The maximum percentage of the terms considered to be misspellings in order to// form a correction.// This method accepts a float value in the range `[0..1)` as a fraction of the// actual query terms or a number `>=1` as an absolute number of query terms.MaxErrors *Float64 `json:"max_errors,omitempty"`// RealWordErrorLikelihood The likelihood of a term being misspelled even if the term exists in the// dictionary.RealWordErrorLikelihood *Float64 `json:"real_word_error_likelihood,omitempty"`// Separator The separator that is used to separate terms in the bigram field.// If not set, the whitespace character is used as a separator.Separator *string `json:"separator,omitempty"`// ShardSize Sets the maximum number of suggested terms to be retrieved from each// individual shard.ShardSize *int `json:"shard_size,omitempty"`// Size The maximum corrections to be returned per suggest text token.Size *int `json:"size,omitempty"`// Smoothing The smoothing model used to balance weight between infrequent grams (grams// (shingles) are not existing in the index) and frequent grams (appear at least// once in the index).// The default model is Stupid Backoff.Smoothing *SmoothingModelContainer `json:"smoothing,omitempty"`// Text The text/query to provide suggestions for.Text *string `json:"text,omitempty"`TokenLimit *int `json:"token_limit,omitempty"`}PhraseSuggester type.
funcNewPhraseSuggester¶added inv8.5.0
func NewPhraseSuggester() *PhraseSuggester
NewPhraseSuggester returns a PhraseSuggester.
func (*PhraseSuggester)UnmarshalJSON¶added inv8.7.1
func (s *PhraseSuggester) UnmarshalJSON(data []byte)error
typePinnedDoc¶
type PinnedDoc struct {// Id_ The unique document ID.Id_string `json:"_id"`// Index_ The index that contains the document.Index_string `json:"_index"`}PinnedDoc type.
func (*PinnedDoc)UnmarshalJSON¶added inv8.7.1
typePinnedQuery¶
type PinnedQuery struct {AdditionalPinnedQueryProperty map[string]json.RawMessage `json:"-"`// Boost Floating point number used to decrease or increase the relevance scores of// the query.// Boost values are relative to the default value of 1.0.// A boost value between 0 and 1.0 decreases the relevance score.// A value greater than 1.0 increases the relevance score.Boost *float32 `json:"boost,omitempty"`// Docs Documents listed in the order they are to appear in results.// Required if `ids` is not specified.Docs []PinnedDoc `json:"docs,omitempty"`// Ids Document IDs listed in the order they are to appear in results.// Required if `docs` is not specified.Ids []string `json:"ids,omitempty"`// Organic Any choice of query used to rank documents which will be ranked below the// "pinned" documents.OrganicQuery `json:"organic"`QueryName_ *string `json:"_name,omitempty"`}PinnedQuery type.
funcNewPinnedQuery¶added inv8.5.0
func NewPinnedQuery() *PinnedQuery
NewPinnedQuery returns a PinnedQuery.
func (PinnedQuery)MarshalJSON¶added inv8.18.0
func (sPinnedQuery) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
func (*PinnedQuery)UnmarshalJSON¶added inv8.7.1
func (s *PinnedQuery) UnmarshalJSON(data []byte)error
typePinnedRetriever¶added inv8.18.1
type PinnedRetriever struct {Docs []SpecifiedDocument `json:"docs,omitempty"`// Filter Query to filter the documents that can match.Filter []Query `json:"filter,omitempty"`Ids []string `json:"ids,omitempty"`// MinScore Minimum _score for matching documents. Documents with a lower _score are not// included in the top documents.MinScore *float32 `json:"min_score,omitempty"`// Name_ Retriever name.Name_ *string `json:"_name,omitempty"`RankWindowSize *int `json:"rank_window_size,omitempty"`// Retriever Inner retriever.RetrieverRetrieverContainer `json:"retriever"`}PinnedRetriever type.
funcNewPinnedRetriever¶added inv8.18.1
func NewPinnedRetriever() *PinnedRetriever
NewPinnedRetriever returns a PinnedRetriever.
func (*PinnedRetriever)UnmarshalJSON¶added inv8.18.1
func (s *PinnedRetriever) UnmarshalJSON(data []byte)error
typePipeSeparatedFlagsSimpleQueryStringFlag¶added inv8.10.0
type PipeSeparatedFlagsSimpleQueryStringFlagany
PipeSeparatedFlagsSimpleQueryStringFlag holds the union for the following types:
simplequerystringflag.SimpleQueryStringFlagstring
typePipelineConfig¶
type PipelineConfig struct {// Description Description of the ingest pipeline.Description *string `json:"description,omitempty"`// Processors Processors used to perform transformations on documents before indexing.// Processors run sequentially in the order specified.Processors []ProcessorContainer `json:"processors"`// Version Version number used by external systems to track ingest pipelines.Version *int64 `json:"version,omitempty"`}PipelineConfig type.
funcNewPipelineConfig¶added inv8.5.0
func NewPipelineConfig() *PipelineConfig
NewPipelineConfig returns a PipelineConfig.
func (*PipelineConfig)UnmarshalJSON¶added inv8.7.1
func (s *PipelineConfig) UnmarshalJSON(data []byte)error
typePipelineMetadata¶
PipelineMetadata type.
funcNewPipelineMetadata¶added inv8.5.0
func NewPipelineMetadata() *PipelineMetadata
NewPipelineMetadata returns a PipelineMetadata.
func (*PipelineMetadata)UnmarshalJSON¶added inv8.9.0
func (s *PipelineMetadata) UnmarshalJSON(data []byte)error
typePipelineProcessor¶
type PipelineProcessor struct {// Description Description of the processor.// Useful for describing the purpose of the processor or its configuration.Description *string `json:"description,omitempty"`// If Conditionally execute the processor.If *string `json:"if,omitempty"`// IgnoreFailure Ignore failures for the processor.IgnoreFailure *bool `json:"ignore_failure,omitempty"`// IgnoreMissingPipeline Whether to ignore missing pipelines instead of failing.IgnoreMissingPipeline *bool `json:"ignore_missing_pipeline,omitempty"`// Name The name of the pipeline to execute.// Supports template snippets.Namestring `json:"name"`// OnFailure Handle failures for the processor.OnFailure []ProcessorContainer `json:"on_failure,omitempty"`// Tag Identifier for the processor.// Useful for debugging and metrics.Tag *string `json:"tag,omitempty"`}PipelineProcessor type.
funcNewPipelineProcessor¶added inv8.5.0
func NewPipelineProcessor() *PipelineProcessor
NewPipelineProcessor returns a PipelineProcessor.
func (*PipelineProcessor)UnmarshalJSON¶added inv8.7.1
func (s *PipelineProcessor) UnmarshalJSON(data []byte)error
typePipelineProcessorResult¶added inv8.18.1
type PipelineProcessorResult struct {Description *string `json:"description,omitempty"`Doc *DocumentSimulation `json:"doc,omitempty"`Error *ErrorCause `json:"error,omitempty"`IgnoredError *ErrorCause `json:"ignored_error,omitempty"`ProcessorType *string `json:"processor_type,omitempty"`Status *pipelinesimulationstatusoptions.PipelineSimulationStatusOptions `json:"status,omitempty"`Tag *string `json:"tag,omitempty"`}PipelineProcessorResult type.
funcNewPipelineProcessorResult¶added inv8.18.1
func NewPipelineProcessorResult() *PipelineProcessorResult
NewPipelineProcessorResult returns a PipelineProcessorResult.
func (*PipelineProcessorResult)UnmarshalJSON¶added inv8.18.1
func (s *PipelineProcessorResult) UnmarshalJSON(data []byte)error
typePipelineSettings¶
type PipelineSettings struct {// PipelineBatchDelay When creating pipeline event batches, how long in milliseconds to wait for// each event before dispatching an undersized batch to pipeline workers.PipelineBatchDelayint `json:"pipeline.batch.delay"`// PipelineBatchSize The maximum number of events an individual worker thread will collect from// inputs before attempting to execute its filters and outputs.PipelineBatchSizeint `json:"pipeline.batch.size"`// PipelineWorkers The number of workers that will, in parallel, execute the filter and output// stages of the pipeline.PipelineWorkersint `json:"pipeline.workers"`// QueueCheckpointWrites The maximum number of written events before forcing a checkpoint when// persistent queues are enabled (`queue.type: persisted`).QueueCheckpointWritesint `json:"queue.checkpoint.writes"`// QueueMaxBytes The total capacity of the queue (`queue.type: persisted`) in number of bytes.QueueMaxBytesstring `json:"queue.max_bytes"`// QueueType The internal queuing model to use for event buffering.QueueTypestring `json:"queue.type"`}PipelineSettings type.
funcNewPipelineSettings¶added inv8.5.0
func NewPipelineSettings() *PipelineSettings
NewPipelineSettings returns a PipelineSettings.
func (*PipelineSettings)UnmarshalJSON¶added inv8.7.1
func (s *PipelineSettings) UnmarshalJSON(data []byte)error
typePivot¶
type Pivot struct {// Aggregations Defines how to aggregate the grouped data. The following aggregations are// currently supported: average, bucket// script, bucket selector, cardinality, filter, geo bounds, geo centroid, geo// line, max, median absolute deviation,// min, missing, percentiles, rare terms, scripted metric, stats, sum, terms,// top metrics, value count, weighted// average.Aggregations map[string]Aggregations `json:"aggregations,omitempty"`// GroupBy Defines how to group the data. More than one grouping can be defined per// pivot. The following groupings are// currently supported: date histogram, geotile grid, histogram, terms.GroupBy map[string]PivotGroupByContainer `json:"group_by,omitempty"`}Pivot type.
typePivotGroupByContainer¶
type PivotGroupByContainer struct {AdditionalPivotGroupByContainerProperty map[string]json.RawMessage `json:"-"`DateHistogram *DateHistogramAggregation `json:"date_histogram,omitempty"`GeotileGrid *GeoTileGridAggregation `json:"geotile_grid,omitempty"`Histogram *HistogramAggregation `json:"histogram,omitempty"`Terms *TermsAggregation `json:"terms,omitempty"`}PivotGroupByContainer type.
funcNewPivotGroupByContainer¶added inv8.5.0
func NewPivotGroupByContainer() *PivotGroupByContainer
NewPivotGroupByContainer returns a PivotGroupByContainer.
func (PivotGroupByContainer)MarshalJSON¶added inv8.18.0
func (sPivotGroupByContainer) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
typePluginStats¶
type PluginStats struct {Classnamestring `json:"classname"`Descriptionstring `json:"description"`ElasticsearchVersionstring `json:"elasticsearch_version"`ExtendedPlugins []string `json:"extended_plugins"`HasNativeControllerbool `json:"has_native_controller"`JavaVersionstring `json:"java_version"`Licensedbool `json:"licensed"`Namestring `json:"name"`Versionstring `json:"version"`}PluginStats type.
funcNewPluginStats¶added inv8.5.0
func NewPluginStats() *PluginStats
NewPluginStats returns a PluginStats.
func (*PluginStats)UnmarshalJSON¶added inv8.7.1
func (s *PluginStats) UnmarshalJSON(data []byte)error
typePluginsRecord¶
type PluginsRecord struct {// Component The component name.Component *string `json:"component,omitempty"`// Description The plugin details.Description *string `json:"description,omitempty"`// Id The unique node identifier.Id *string `json:"id,omitempty"`// Name The node name.Name *string `json:"name,omitempty"`// Type The plugin type.Type *string `json:"type,omitempty"`// Version The component version.Version *string `json:"version,omitempty"`}PluginsRecord type.
funcNewPluginsRecord¶added inv8.5.0
func NewPluginsRecord() *PluginsRecord
NewPluginsRecord returns a PluginsRecord.
func (*PluginsRecord)UnmarshalJSON¶added inv8.7.1
func (s *PluginsRecord) UnmarshalJSON(data []byte)error
typePluginsStatus¶
type PluginsStatus struct {Statusshutdownstatus.ShutdownStatus `json:"status"`}PluginsStatus type.
funcNewPluginsStatus¶added inv8.5.0
func NewPluginsStatus() *PluginsStatus
NewPluginsStatus returns a PluginsStatus.
typePointInTimeReference¶
type PointInTimeReference struct {Idstring `json:"id"`KeepAliveDuration `json:"keep_alive,omitempty"`}PointInTimeReference type.
funcNewPointInTimeReference¶added inv8.5.0
func NewPointInTimeReference() *PointInTimeReference
NewPointInTimeReference returns a PointInTimeReference.
func (*PointInTimeReference)UnmarshalJSON¶added inv8.7.1
func (s *PointInTimeReference) UnmarshalJSON(data []byte)error
typePointProperty¶
type PointProperty struct {CopyTo []string `json:"copy_to,omitempty"`DocValues *bool `json:"doc_values,omitempty"`Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`Fields map[string]Property `json:"fields,omitempty"`IgnoreAbove *int `json:"ignore_above,omitempty"`IgnoreMalformed *bool `json:"ignore_malformed,omitempty"`IgnoreZValue *bool `json:"ignore_z_value,omitempty"`// Meta Metadata about the field.Meta map[string]string `json:"meta,omitempty"`NullValue *string `json:"null_value,omitempty"`Properties map[string]Property `json:"properties,omitempty"`Store *bool `json:"store,omitempty"`SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`Typestring `json:"type,omitempty"`}PointProperty type.
funcNewPointProperty¶added inv8.5.0
func NewPointProperty() *PointProperty
NewPointProperty returns a PointProperty.
func (PointProperty)MarshalJSON¶added inv8.9.0
func (sPointProperty) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*PointProperty)UnmarshalJSON¶added inv8.7.0
func (s *PointProperty) UnmarshalJSON(data []byte)error
typePool¶
type Pool struct {// MaxInBytes Maximum amount of memory, in bytes, available for use by the heap.MaxInBytes *int64 `json:"max_in_bytes,omitempty"`// PeakMaxInBytes Largest amount of memory, in bytes, historically used by the heap.PeakMaxInBytes *int64 `json:"peak_max_in_bytes,omitempty"`// PeakUsedInBytes Largest amount of memory, in bytes, historically used by the heap.PeakUsedInBytes *int64 `json:"peak_used_in_bytes,omitempty"`// UsedInBytes Memory, in bytes, used by the heap.UsedInBytes *int64 `json:"used_in_bytes,omitempty"`}Pool type.
func (*Pool)UnmarshalJSON¶added inv8.7.1
typePorterStemTokenFilter¶
type PorterStemTokenFilter struct {Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}PorterStemTokenFilter type.
funcNewPorterStemTokenFilter¶added inv8.5.0
func NewPorterStemTokenFilter() *PorterStemTokenFilter
NewPorterStemTokenFilter returns a PorterStemTokenFilter.
func (PorterStemTokenFilter)MarshalJSON¶added inv8.9.0
func (sPorterStemTokenFilter) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*PorterStemTokenFilter)UnmarshalJSON¶added inv8.7.1
func (s *PorterStemTokenFilter) UnmarshalJSON(data []byte)error
typePortugueseAnalyzer¶added inv8.16.0
type PortugueseAnalyzer struct {StemExclusion []string `json:"stem_exclusion,omitempty"`StopwordsStopWords `json:"stopwords,omitempty"`StopwordsPath *string `json:"stopwords_path,omitempty"`Typestring `json:"type,omitempty"`}PortugueseAnalyzer type.
funcNewPortugueseAnalyzer¶added inv8.16.0
func NewPortugueseAnalyzer() *PortugueseAnalyzer
NewPortugueseAnalyzer returns a PortugueseAnalyzer.
func (PortugueseAnalyzer)MarshalJSON¶added inv8.16.0
func (sPortugueseAnalyzer) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*PortugueseAnalyzer)UnmarshalJSON¶added inv8.16.0
func (s *PortugueseAnalyzer) UnmarshalJSON(data []byte)error
typePostMigrationFeature¶added inv8.5.0
type PostMigrationFeature struct {FeatureNamestring `json:"feature_name"`}PostMigrationFeature type.
funcNewPostMigrationFeature¶added inv8.5.0
func NewPostMigrationFeature() *PostMigrationFeature
NewPostMigrationFeature returns a PostMigrationFeature.
func (*PostMigrationFeature)UnmarshalJSON¶added inv8.9.0
func (s *PostMigrationFeature) UnmarshalJSON(data []byte)error
typePredicateTokenFilter¶
type PredicateTokenFilter struct {// Script Script containing a condition used to filter incoming tokens. Only tokens// that match this script are included in the output.ScriptScript `json:"script"`Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}PredicateTokenFilter type.
funcNewPredicateTokenFilter¶added inv8.5.0
func NewPredicateTokenFilter() *PredicateTokenFilter
NewPredicateTokenFilter returns a PredicateTokenFilter.
func (PredicateTokenFilter)MarshalJSON¶added inv8.9.0
func (sPredicateTokenFilter) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*PredicateTokenFilter)UnmarshalJSON¶added inv8.7.1
func (s *PredicateTokenFilter) UnmarshalJSON(data []byte)error
typePrefixQuery¶
type PrefixQuery struct {// Boost Floating point number used to decrease or increase the relevance scores of// the query.// Boost values are relative to the default value of 1.0.// A boost value between 0 and 1.0 decreases the relevance score.// A value greater than 1.0 increases the relevance score.Boost *float32 `json:"boost,omitempty"`// CaseInsensitive Allows ASCII case insensitive matching of the value with the indexed field// values when set to `true`.// Default is `false` which means the case sensitivity of matching depends on// the underlying field’s mapping.CaseInsensitive *bool `json:"case_insensitive,omitempty"`QueryName_ *string `json:"_name,omitempty"`// Rewrite Method used to rewrite the query.Rewrite *string `json:"rewrite,omitempty"`// Value Beginning characters of terms you wish to find in the provided field.Valuestring `json:"value"`}PrefixQuery type.
funcNewPrefixQuery¶added inv8.5.0
func NewPrefixQuery() *PrefixQuery
NewPrefixQuery returns a PrefixQuery.
func (*PrefixQuery)UnmarshalJSON¶added inv8.7.1
func (s *PrefixQuery) UnmarshalJSON(data []byte)error
typePreprocessor¶
type Preprocessor struct {AdditionalPreprocessorProperty map[string]json.RawMessage `json:"-"`FrequencyEncoding *FrequencyEncodingPreprocessor `json:"frequency_encoding,omitempty"`OneHotEncoding *OneHotEncodingPreprocessor `json:"one_hot_encoding,omitempty"`TargetMeanEncoding *TargetMeanEncodingPreprocessor `json:"target_mean_encoding,omitempty"`}Preprocessor type.
funcNewPreprocessor¶added inv8.5.0
func NewPreprocessor() *Preprocessor
NewPreprocessor returns a Preprocessor.
func (Preprocessor)MarshalJSON¶added inv8.18.0
func (sPreprocessor) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
typePressureMemory¶
type PressureMemory struct {// All Memory consumed by indexing requests in the coordinating, primary, or replica// stage.AllByteSize `json:"all,omitempty"`// AllInBytes Memory consumed, in bytes, by indexing requests in the coordinating, primary,// or replica stage.AllInBytes *int64 `json:"all_in_bytes,omitempty"`// CombinedCoordinatingAndPrimary Memory consumed by indexing requests in the coordinating or primary stage.// This value is not the sum of coordinating and primary as a node can reuse the// coordinating memory if the primary stage is executed locally.CombinedCoordinatingAndPrimaryByteSize `json:"combined_coordinating_and_primary,omitempty"`// CombinedCoordinatingAndPrimaryInBytes Memory consumed, in bytes, by indexing requests in the coordinating or// primary stage.// This value is not the sum of coordinating and primary as a node can reuse the// coordinating memory if the primary stage is executed locally.CombinedCoordinatingAndPrimaryInBytes *int64 `json:"combined_coordinating_and_primary_in_bytes,omitempty"`// Coordinating Memory consumed by indexing requests in the coordinating stage.CoordinatingByteSize `json:"coordinating,omitempty"`// CoordinatingInBytes Memory consumed, in bytes, by indexing requests in the coordinating stage.CoordinatingInBytes *int64 `json:"coordinating_in_bytes,omitempty"`// CoordinatingRejections Number of indexing requests rejected in the coordinating stage.CoordinatingRejections *int64 `json:"coordinating_rejections,omitempty"`LargeOperationRejections *int64 `json:"large_operation_rejections,omitempty"`// Primary Memory consumed by indexing requests in the primary stage.PrimaryByteSize `json:"primary,omitempty"`PrimaryDocumentRejections *int64 `json:"primary_document_rejections,omitempty"`// PrimaryInBytes Memory consumed, in bytes, by indexing requests in the primary stage.PrimaryInBytes *int64 `json:"primary_in_bytes,omitempty"`// PrimaryRejections Number of indexing requests rejected in the primary stage.PrimaryRejections *int64 `json:"primary_rejections,omitempty"`// Replica Memory consumed by indexing requests in the replica stage.ReplicaByteSize `json:"replica,omitempty"`// ReplicaInBytes Memory consumed, in bytes, by indexing requests in the replica stage.ReplicaInBytes *int64 `json:"replica_in_bytes,omitempty"`// ReplicaRejections Number of indexing requests rejected in the replica stage.ReplicaRejections *int64 `json:"replica_rejections,omitempty"`}PressureMemory type.
funcNewPressureMemory¶added inv8.5.0
func NewPressureMemory() *PressureMemory
NewPressureMemory returns a PressureMemory.
func (*PressureMemory)UnmarshalJSON¶added inv8.7.1
func (s *PressureMemory) UnmarshalJSON(data []byte)error
typePrivileges¶
Privileges type alias.
typePrivilegesActions¶added inv8.5.0
type PrivilegesActions struct {Actions []string `json:"actions"`Application *string `json:"application,omitempty"`MetadataMetadata `json:"metadata,omitempty"`Name *string `json:"name,omitempty"`}PrivilegesActions type.
funcNewPrivilegesActions¶added inv8.5.0
func NewPrivilegesActions() *PrivilegesActions
NewPrivilegesActions returns a PrivilegesActions.
func (*PrivilegesActions)UnmarshalJSON¶added inv8.7.1
func (s *PrivilegesActions) UnmarshalJSON(data []byte)error
typePrivilegesCheck¶
type PrivilegesCheck struct {Application []ApplicationPrivilegesCheck `json:"application,omitempty"`// Cluster A list of the cluster privileges that you want to check.Cluster []clusterprivilege.ClusterPrivilege `json:"cluster,omitempty"`Index []IndexPrivilegesCheck `json:"index,omitempty"`}PrivilegesCheck type.
funcNewPrivilegesCheck¶added inv8.5.0
func NewPrivilegesCheck() *PrivilegesCheck
NewPrivilegesCheck returns a PrivilegesCheck.
typeProcess¶
type Process struct {// Cpu Contains CPU statistics for the node.Cpu *Cpu `json:"cpu,omitempty"`// MaxFileDescriptors Maximum number of file descriptors allowed on the system, or `-1` if not// supported.MaxFileDescriptors *int `json:"max_file_descriptors,omitempty"`// Mem Contains virtual memory statistics for the node.Mem *MemoryStats `json:"mem,omitempty"`// OpenFileDescriptors Number of opened file descriptors associated with the current or `-1` if not// supported.OpenFileDescriptors *int `json:"open_file_descriptors,omitempty"`// Timestamp Last time the statistics were refreshed.// Recorded in milliseconds since the Unix Epoch.Timestamp *int64 `json:"timestamp,omitempty"`}Process type.
func (*Process)UnmarshalJSON¶added inv8.7.1
typeProcessor¶
type Processor struct {// Count Number of documents transformed by the processor.Count *int64 `json:"count,omitempty"`// Current Number of documents currently being transformed by the processor.Current *int64 `json:"current,omitempty"`// Failed Number of failed operations for the processor.Failed *int64 `json:"failed,omitempty"`// TimeInMillis Time, in milliseconds, spent by the processor transforming documents.TimeInMillis *int64 `json:"time_in_millis,omitempty"`}Processor type.
func (*Processor)UnmarshalJSON¶added inv8.7.1
typeProcessorContainer¶
type ProcessorContainer struct {AdditionalProcessorContainerProperty map[string]json.RawMessage `json:"-"`// Append Appends one or more values to an existing array if the field already exists// and it is an array.// Converts a scalar to an array and appends one or more values to it if the// field exists and it is a scalar.// Creates an array containing the provided values if the field doesn’t exist.// Accepts a single value or an array of values.Append *AppendProcessor `json:"append,omitempty"`// Attachment The attachment processor lets Elasticsearch extract file attachments in// common formats (such as PPT, XLS, and PDF) by using the Apache text// extraction library Tika.Attachment *AttachmentProcessor `json:"attachment,omitempty"`// Bytes Converts a human readable byte value (for example `1kb`) to its value in// bytes (for example `1024`).// If the field is an array of strings, all members of the array will be// converted.// Supported human readable units are "b", "kb", "mb", "gb", "tb", "pb" case// insensitive.// An error will occur if the field is not a supported format or resultant value// exceeds 2^63.Bytes *BytesProcessor `json:"bytes,omitempty"`// Circle Converts circle definitions of shapes to regular polygons which approximate// them.Circle *CircleProcessor `json:"circle,omitempty"`// CommunityId Computes the Community ID for network flow data as defined in the// Community ID Specification. You can use a community ID to correlate network// events related to a single flow.CommunityId *CommunityIDProcessor `json:"community_id,omitempty"`// Convert Converts a field in the currently ingested document to a different type, such// as converting a string to an integer.// If the field value is an array, all members will be converted.Convert *ConvertProcessor `json:"convert,omitempty"`// Csv Extracts fields from CSV line out of a single text field within a document.// Any empty field in CSV will be skipped.Csv *CsvProcessor `json:"csv,omitempty"`// Date Parses dates from fields, and then uses the date or timestamp as the// timestamp for the document.Date *DateProcessor `json:"date,omitempty"`// DateIndexName The purpose of this processor is to point documents to the right time based// index based on a date or timestamp field in a document by using the date math// index name support.DateIndexName *DateIndexNameProcessor `json:"date_index_name,omitempty"`// Dissect Extracts structured fields out of a single text field by matching the text// field against a delimiter-based pattern.Dissect *DissectProcessor `json:"dissect,omitempty"`// DotExpander Expands a field with dots into an object field.// This processor allows fields with dots in the name to be accessible by other// processors in the pipeline.// Otherwise these fields can’t be accessed by any processor.DotExpander *DotExpanderProcessor `json:"dot_expander,omitempty"`// Drop Drops the document without raising any errors.// This is useful to prevent the document from getting indexed based on some// condition.Drop *DropProcessor `json:"drop,omitempty"`// Enrich The `enrich` processor can enrich documents with data from another index.Enrich *EnrichProcessor `json:"enrich,omitempty"`// Fail Raises an exception.// This is useful for when you expect a pipeline to fail and want to relay a// specific message to the requester.Fail *FailProcessor `json:"fail,omitempty"`// Fingerprint Computes a hash of the document’s content. You can use this hash for// content fingerprinting.Fingerprint *FingerprintProcessor `json:"fingerprint,omitempty"`// Foreach Runs an ingest processor on each element of an array or object.Foreach *ForeachProcessor `json:"foreach,omitempty"`// GeoGrid Converts geo-grid definitions of grid tiles or cells to regular bounding// boxes or polygons which describe their shape.// This is useful if there is a need to interact with the tile shapes as// spatially indexable fields.GeoGrid *GeoGridProcessor `json:"geo_grid,omitempty"`// Geoip The `geoip` processor adds information about the geographical location of an// IPv4 or IPv6 address.Geoip *GeoIpProcessor `json:"geoip,omitempty"`// Grok Extracts structured fields out of a single text field within a document.// You choose which field to extract matched fields from, as well as the grok// pattern you expect will match.// A grok pattern is like a regular expression that supports aliased expressions// that can be reused.Grok *GrokProcessor `json:"grok,omitempty"`// Gsub Converts a string field by applying a regular expression and a replacement.// If the field is an array of string, all members of the array will be// converted.// If any non-string values are encountered, the processor will throw an// exception.Gsub *GsubProcessor `json:"gsub,omitempty"`// HtmlStrip Removes HTML tags from the field.// If the field is an array of strings, HTML tags will be removed from all// members of the array.HtmlStrip *HtmlStripProcessor `json:"html_strip,omitempty"`// Inference Uses a pre-trained data frame analytics model or a model deployed for natural// language processing tasks to infer against the data that is being ingested in// the pipeline.Inference *InferenceProcessor `json:"inference,omitempty"`// IpLocation Currently an undocumented alias for GeoIP Processor.IpLocation *IpLocationProcessor `json:"ip_location,omitempty"`// Join Joins each element of an array into a single string using a separator// character between each element.// Throws an error when the field is not an array.Join *JoinProcessor `json:"join,omitempty"`// Json Converts a JSON string into a structured JSON object.Json *JsonProcessor `json:"json,omitempty"`// Kv This processor helps automatically parse messages (or specific event fields)// which are of the `foo=bar` variety.Kv *KeyValueProcessor `json:"kv,omitempty"`// Lowercase Converts a string to its lowercase equivalent.// If the field is an array of strings, all members of the array will be// converted.Lowercase *LowercaseProcessor `json:"lowercase,omitempty"`// NetworkDirection Calculates the network direction given a source IP address, destination IP// address, and a list of internal networks.NetworkDirection *NetworkDirectionProcessor `json:"network_direction,omitempty"`// Pipeline Executes another pipeline.Pipeline *PipelineProcessor `json:"pipeline,omitempty"`// Redact The Redact processor uses the Grok rules engine to obscure text in the input// document matching the given Grok patterns.// The processor can be used to obscure Personal Identifying Information (PII)// by configuring it to detect known patterns such as email or IP addresses.// Text that matches a Grok pattern is replaced with a configurable string such// as `<EMAIL>` where an email address is matched or simply replace all matches// with the text `<REDACTED>` if preferred.Redact *RedactProcessor `json:"redact,omitempty"`// RegisteredDomain Extracts the registered domain (also known as the effective top-level// domain or eTLD), sub-domain, and top-level domain from a fully qualified// domain name (FQDN). Uses the registered domains defined in the Mozilla// Public Suffix List.RegisteredDomain *RegisteredDomainProcessor `json:"registered_domain,omitempty"`// Remove Removes existing fields.// If one field doesn’t exist, an exception will be thrown.Remove *RemoveProcessor `json:"remove,omitempty"`// Rename Renames an existing field.// If the field doesn’t exist or the new name is already used, an exception will// be thrown.Rename *RenameProcessor `json:"rename,omitempty"`// Reroute Routes a document to another target index or data stream.// When setting the `destination` option, the target is explicitly specified and// the dataset and namespace options can’t be set.// When the `destination` option is not set, this processor is in a data stream// mode. Note that in this mode, the reroute processor can only be used on data// streams that follow the data stream naming scheme.Reroute *RerouteProcessor `json:"reroute,omitempty"`// Script Runs an inline or stored script on incoming documents.// The script runs in the `ingest` context.Script *ScriptProcessor `json:"script,omitempty"`// Set Adds a field with the specified value.// If the field already exists, its value will be replaced with the provided// one.Set *SetProcessor `json:"set,omitempty"`// SetSecurityUser Sets user-related details (such as `username`, `roles`, `email`, `full_name`,// `metadata`, `api_key`, `realm` and `authentication_type`) from the current// authenticated user to the current document by pre-processing the ingest.SetSecurityUser *SetSecurityUserProcessor `json:"set_security_user,omitempty"`// Sort Sorts the elements of an array ascending or descending.// Homogeneous arrays of numbers will be sorted numerically, while arrays of// strings or heterogeneous arrays of strings + numbers will be sorted// lexicographically.// Throws an error when the field is not an array.Sort *SortProcessor `json:"sort,omitempty"`// Split Splits a field into an array using a separator character.// Only works on string fields.Split *SplitProcessor `json:"split,omitempty"`// Terminate Terminates the current ingest pipeline, causing no further processors to be// run.// This will normally be executed conditionally, using the `if` option.Terminate *TerminateProcessor `json:"terminate,omitempty"`// Trim Trims whitespace from a field.// If the field is an array of strings, all members of the array will be// trimmed.// This only works on leading and trailing whitespace.Trim *TrimProcessor `json:"trim,omitempty"`// Uppercase Converts a string to its uppercase equivalent.// If the field is an array of strings, all members of the array will be// converted.Uppercase *UppercaseProcessor `json:"uppercase,omitempty"`// UriParts Parses a Uniform Resource Identifier (URI) string and extracts its components// as an object.// This URI object includes properties for the URI’s domain, path, fragment,// port, query, scheme, user info, username, and password.UriParts *UriPartsProcessor `json:"uri_parts,omitempty"`// Urldecode URL-decodes a string.// If the field is an array of strings, all members of the array will be// decoded.Urldecode *UrlDecodeProcessor `json:"urldecode,omitempty"`// UserAgent The `user_agent` processor extracts details from the user agent string a// browser sends with its web requests.// This processor adds this information by default under the `user_agent` field.UserAgent *UserAgentProcessor `json:"user_agent,omitempty"`}ProcessorContainer type.
funcNewProcessorContainer¶added inv8.5.0
func NewProcessorContainer() *ProcessorContainer
NewProcessorContainer returns a ProcessorContainer.
func (ProcessorContainer)MarshalJSON¶added inv8.18.0
func (sProcessorContainer) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
typeProperty¶
type Propertyany
Property holds the union for the following types:
BinaryPropertyBooleanPropertyDynamicPropertyJoinPropertyKeywordPropertyMatchOnlyTextPropertyPercolatorPropertyRankFeaturePropertyRankFeaturesPropertySearchAsYouTypePropertyTextPropertyVersionPropertyWildcardPropertyDateNanosPropertyDatePropertyAggregateMetricDoublePropertyDenseVectorPropertyFlattenedPropertyNestedPropertyObjectPropertyPassthroughObjectPropertyRankVectorPropertySemanticTextPropertySparseVectorPropertyCompletionPropertyConstantKeywordPropertyCountedKeywordPropertyFieldAliasPropertyHistogramPropertyIpPropertyMurmur3HashPropertyTokenCountPropertyGeoPointPropertyGeoShapePropertyPointPropertyShapePropertyByteNumberPropertyDoubleNumberPropertyFloatNumberPropertyHalfFloatNumberPropertyIntegerNumberPropertyLongNumberPropertyScaledFloatNumberPropertyShortNumberPropertyUnsignedLongNumberPropertyDateRangePropertyDoubleRangePropertyFloatRangePropertyIntegerRangePropertyIpRangePropertyLongRangePropertyIcuCollationProperty
typePublishedClusterStates¶
type PublishedClusterStates struct {// CompatibleDiffs Number of compatible differences between published cluster states.CompatibleDiffs *int64 `json:"compatible_diffs,omitempty"`// FullStates Number of published cluster states.FullStates *int64 `json:"full_states,omitempty"`// IncompatibleDiffs Number of incompatible differences between published cluster states.IncompatibleDiffs *int64 `json:"incompatible_diffs,omitempty"`}PublishedClusterStates type.
funcNewPublishedClusterStates¶added inv8.5.0
func NewPublishedClusterStates() *PublishedClusterStates
NewPublishedClusterStates returns a PublishedClusterStates.
func (*PublishedClusterStates)UnmarshalJSON¶added inv8.7.1
func (s *PublishedClusterStates) UnmarshalJSON(data []byte)error
typeQuery¶
type Query struct {AdditionalQueryProperty map[string]json.RawMessage `json:"-"`// Bool matches documents matching boolean combinations of other queries.Bool *BoolQuery `json:"bool,omitempty"`// Boosting Returns documents matching a `positive` query while reducing the relevance// score of documents that also match a `negative` query.Boosting *BoostingQuery `json:"boosting,omitempty"`// CombinedFields The `combined_fields` query supports searching multiple text fields as if// their contents had been indexed into one combined field.CombinedFields *CombinedFieldsQuery `json:"combined_fields,omitempty"`Common map[string]CommonTermsQuery `json:"common,omitempty"`// ConstantScore Wraps a filter query and returns every matching document with a relevance// score equal to the `boost` parameter value.ConstantScore *ConstantScoreQuery `json:"constant_score,omitempty"`// DisMax Returns documents matching one or more wrapped queries, called query clauses// or clauses.// If a returned document matches multiple query clauses, the `dis_max` query// assigns the document the highest relevance score from any matching clause,// plus a tie breaking increment for any additional matching subqueries.DisMax *DisMaxQuery `json:"dis_max,omitempty"`// DistanceFeature Boosts the relevance score of documents closer to a provided origin date or// point.// For example, you can use this query to give more weight to documents closer// to a certain date or location.DistanceFeatureDistanceFeatureQuery `json:"distance_feature,omitempty"`// Exists Returns documents that contain an indexed value for a field.Exists *ExistsQuery `json:"exists,omitempty"`// FunctionScore The `function_score` enables you to modify the score of documents that are// retrieved by a query.FunctionScore *FunctionScoreQuery `json:"function_score,omitempty"`// Fuzzy Returns documents that contain terms similar to the search term, as measured// by a Levenshtein edit distance.Fuzzy map[string]FuzzyQuery `json:"fuzzy,omitempty"`// GeoBoundingBox Matches geo_point and geo_shape values that intersect a bounding box.GeoBoundingBox *GeoBoundingBoxQuery `json:"geo_bounding_box,omitempty"`// GeoDistance Matches `geo_point` and `geo_shape` values within a given distance of a// geopoint.GeoDistance *GeoDistanceQuery `json:"geo_distance,omitempty"`// GeoGrid Matches `geo_point` and `geo_shape` values that intersect a grid cell from a// GeoGrid aggregation.GeoGrid map[string]GeoGridQuery `json:"geo_grid,omitempty"`GeoPolygon *GeoPolygonQuery `json:"geo_polygon,omitempty"`// GeoShape Filter documents indexed using either the `geo_shape` or the `geo_point`// type.GeoShape *GeoShapeQuery `json:"geo_shape,omitempty"`// HasChild Returns parent documents whose joined child documents match a provided query.HasChild *HasChildQuery `json:"has_child,omitempty"`// HasParent Returns child documents whose joined parent document matches a provided// query.HasParent *HasParentQuery `json:"has_parent,omitempty"`// Ids Returns documents based on their IDs.// This query uses document IDs stored in the `_id` field.Ids *IdsQuery `json:"ids,omitempty"`// Intervals Returns documents based on the order and proximity of matching terms.Intervals map[string]IntervalsQuery `json:"intervals,omitempty"`// Knn Finds the k nearest vectors to a query vector, as measured by a similarity// metric. knn query finds nearest vectors through approximate search on indexed// dense_vectors.Knn *KnnQuery `json:"knn,omitempty"`// Match Returns documents that match a provided text, number, date or boolean value.// The provided text is analyzed before matching.Match map[string]MatchQuery `json:"match,omitempty"`// MatchAll Matches all documents, giving them all a `_score` of 1.0.MatchAll *MatchAllQuery `json:"match_all,omitempty"`// MatchBoolPrefix Analyzes its input and constructs a `bool` query from the terms.// Each term except the last is used in a `term` query.// The last term is used in a prefix query.MatchBoolPrefix map[string]MatchBoolPrefixQuery `json:"match_bool_prefix,omitempty"`// MatchNone Matches no documents.MatchNone *MatchNoneQuery `json:"match_none,omitempty"`// MatchPhrase Analyzes the text and creates a phrase query out of the analyzed text.MatchPhrase map[string]MatchPhraseQuery `json:"match_phrase,omitempty"`// MatchPhrasePrefix Returns documents that contain the words of a provided text, in the same// order as provided.// The last term of the provided text is treated as a prefix, matching any words// that begin with that term.MatchPhrasePrefix map[string]MatchPhrasePrefixQuery `json:"match_phrase_prefix,omitempty"`// MoreLikeThis Returns documents that are "like" a given set of documents.MoreLikeThis *MoreLikeThisQuery `json:"more_like_this,omitempty"`// MultiMatch Enables you to search for a provided text, number, date or boolean value// across multiple fields.// The provided text is analyzed before matching.MultiMatch *MultiMatchQuery `json:"multi_match,omitempty"`// Nested Wraps another query to search nested fields.// If an object matches the search, the nested query returns the root parent// document.Nested *NestedQuery `json:"nested,omitempty"`// ParentId Returns child documents joined to a specific parent document.ParentId *ParentIdQuery `json:"parent_id,omitempty"`// Percolate Matches queries stored in an index.Percolate *PercolateQuery `json:"percolate,omitempty"`// Pinned Promotes selected documents to rank higher than those matching a given query.Pinned *PinnedQuery `json:"pinned,omitempty"`// Prefix Returns documents that contain a specific prefix in a provided field.Prefix map[string]PrefixQuery `json:"prefix,omitempty"`// QueryString Returns documents based on a provided query string, using a parser with a// strict syntax.QueryString *QueryStringQuery `json:"query_string,omitempty"`// Range Returns documents that contain terms within a provided range.Range map[string]RangeQuery `json:"range,omitempty"`// RankFeature Boosts the relevance score of documents based on the numeric value of a// `rank_feature` or `rank_features` field.RankFeature *RankFeatureQuery `json:"rank_feature,omitempty"`// Regexp Returns documents that contain terms matching a regular expression.Regexp map[string]RegexpQuery `json:"regexp,omitempty"`Rule *RuleQuery `json:"rule,omitempty"`// Script Filters documents based on a provided script.// The script query is typically used in a filter context.Script *ScriptQuery `json:"script,omitempty"`// ScriptScore Uses a script to provide a custom score for returned documents.ScriptScore *ScriptScoreQuery `json:"script_score,omitempty"`// Semantic A semantic query to semantic_text field typesSemantic *SemanticQuery `json:"semantic,omitempty"`// Shape Queries documents that contain fields indexed using the `shape` type.Shape *ShapeQuery `json:"shape,omitempty"`// SimpleQueryString Returns documents based on a provided query string, using a parser with a// limited but fault-tolerant syntax.SimpleQueryString *SimpleQueryStringQuery `json:"simple_query_string,omitempty"`// SpanContaining Returns matches which enclose another span query.SpanContaining *SpanContainingQuery `json:"span_containing,omitempty"`// SpanFieldMasking Wrapper to allow span queries to participate in composite single-field span// queries by _lying_ about their search field.SpanFieldMasking *SpanFieldMaskingQuery `json:"span_field_masking,omitempty"`// SpanFirst Matches spans near the beginning of a field.SpanFirst *SpanFirstQuery `json:"span_first,omitempty"`// SpanMulti Allows you to wrap a multi term query (one of `wildcard`, `fuzzy`, `prefix`,// `range`, or `regexp` query) as a `span` query, so it can be nested.SpanMulti *SpanMultiTermQuery `json:"span_multi,omitempty"`// SpanNear Matches spans which are near one another.// You can specify `slop`, the maximum number of intervening unmatched// positions, as well as whether matches are required to be in-order.SpanNear *SpanNearQuery `json:"span_near,omitempty"`// SpanNot Removes matches which overlap with another span query or which are within x// tokens before (controlled by the parameter `pre`) or y tokens after// (controlled by the parameter `post`) another span query.SpanNot *SpanNotQuery `json:"span_not,omitempty"`// SpanOr Matches the union of its span clauses.SpanOr *SpanOrQuery `json:"span_or,omitempty"`// SpanTerm Matches spans containing a term.SpanTerm map[string]SpanTermQuery `json:"span_term,omitempty"`// SpanWithin Returns matches which are enclosed inside another span query.SpanWithin *SpanWithinQuery `json:"span_within,omitempty"`// SparseVector Using input query vectors or a natural language processing model to convert a// query into a list of token-weight pairs, queries against a sparse vector// field.SparseVector *SparseVectorQuery `json:"sparse_vector,omitempty"`// Term Returns documents that contain an exact term in a provided field.// To return a document, the query term must exactly match the queried field's// value, including whitespace and capitalization.Term map[string]TermQuery `json:"term,omitempty"`// Terms Returns documents that contain one or more exact terms in a provided field.// To return a document, one or more terms must exactly match a field value,// including whitespace and capitalization.Terms *TermsQuery `json:"terms,omitempty"`// TermsSet Returns documents that contain a minimum number of exact terms in a provided// field.// To return a document, a required number of terms must exactly match the field// values, including whitespace and capitalization.TermsSet map[string]TermsSetQuery `json:"terms_set,omitempty"`// TextExpansion Uses a natural language processing model to convert the query text into a// list of token-weight pairs which are then used in a query against a sparse// vector or rank features field.TextExpansion map[string]TextExpansionQuery `json:"text_expansion,omitempty"`Type *TypeQuery `json:"type,omitempty"`// WeightedTokens Supports returning text_expansion query results by sending in precomputed// tokens with the query.WeightedTokens map[string]WeightedTokensQuery `json:"weighted_tokens,omitempty"`// Wildcard Returns documents that contain terms matching a wildcard pattern.Wildcard map[string]WildcardQuery `json:"wildcard,omitempty"`// Wrapper A query that accepts any other query as base64 encoded string.Wrapper *WrapperQuery `json:"wrapper,omitempty"`}Query type.
func (Query)MarshalJSON¶added inv8.18.0
MarhsalJSON overrides marshalling for types with additional properties
func (*Query)UnmarshalJSON¶added inv8.7.1
typeQueryBreakdown¶
type QueryBreakdown struct {Advanceint64 `json:"advance"`AdvanceCountint64 `json:"advance_count"`BuildScorerint64 `json:"build_scorer"`BuildScorerCountint64 `json:"build_scorer_count"`ComputeMaxScoreint64 `json:"compute_max_score"`ComputeMaxScoreCountint64 `json:"compute_max_score_count"`CountWeightint64 `json:"count_weight"`CountWeightCountint64 `json:"count_weight_count"`CreateWeightint64 `json:"create_weight"`CreateWeightCountint64 `json:"create_weight_count"`Matchint64 `json:"match"`MatchCountint64 `json:"match_count"`NextDocint64 `json:"next_doc"`NextDocCountint64 `json:"next_doc_count"`Scoreint64 `json:"score"`ScoreCountint64 `json:"score_count"`SetMinCompetitiveScoreint64 `json:"set_min_competitive_score"`SetMinCompetitiveScoreCountint64 `json:"set_min_competitive_score_count"`ShallowAdvanceint64 `json:"shallow_advance"`ShallowAdvanceCountint64 `json:"shallow_advance_count"`}QueryBreakdown type.
funcNewQueryBreakdown¶added inv8.5.0
func NewQueryBreakdown() *QueryBreakdown
NewQueryBreakdown returns a QueryBreakdown.
func (*QueryBreakdown)UnmarshalJSON¶added inv8.7.1
func (s *QueryBreakdown) UnmarshalJSON(data []byte)error
typeQueryCacheStats¶
type QueryCacheStats struct {// CacheCount Total number of entries added to the query cache across all shards assigned// to selected nodes.// This number includes current and evicted entries.CacheCountint64 `json:"cache_count"`// CacheSize Total number of entries currently in the query cache across all shards// assigned to selected nodes.CacheSizeint64 `json:"cache_size"`// Evictions Total number of query cache evictions across all shards assigned to selected// nodes.Evictionsint64 `json:"evictions"`// HitCount Total count of query cache hits across all shards assigned to selected nodes.HitCountint64 `json:"hit_count"`// MemorySize Total amount of memory used for the query cache across all shards assigned to// selected nodes.MemorySizeByteSize `json:"memory_size,omitempty"`// MemorySizeInBytes Total amount, in bytes, of memory used for the query cache across all shards// assigned to selected nodes.MemorySizeInBytesint64 `json:"memory_size_in_bytes"`// MissCount Total count of query cache misses across all shards assigned to selected// nodes.MissCountint64 `json:"miss_count"`// TotalCount Total count of hits and misses in the query cache across all shards assigned// to selected nodes.TotalCountint64 `json:"total_count"`}QueryCacheStats type.
funcNewQueryCacheStats¶added inv8.5.0
func NewQueryCacheStats() *QueryCacheStats
NewQueryCacheStats returns a QueryCacheStats.
func (*QueryCacheStats)UnmarshalJSON¶added inv8.7.1
func (s *QueryCacheStats) UnmarshalJSON(data []byte)error
typeQueryFeatureExtractor¶added inv8.18.0
type QueryFeatureExtractor struct {DefaultScore *float32 `json:"default_score,omitempty"`FeatureNamestring `json:"feature_name"`QueryQuery `json:"query"`}QueryFeatureExtractor type.
funcNewQueryFeatureExtractor¶added inv8.18.0
func NewQueryFeatureExtractor() *QueryFeatureExtractor
NewQueryFeatureExtractor returns a QueryFeatureExtractor.
func (*QueryFeatureExtractor)UnmarshalJSON¶added inv8.18.0
func (s *QueryFeatureExtractor) UnmarshalJSON(data []byte)error
typeQueryProfile¶
type QueryProfile struct {BreakdownQueryBreakdown `json:"breakdown"`Children []QueryProfile `json:"children,omitempty"`Descriptionstring `json:"description"`TimeInNanosint64 `json:"time_in_nanos"`Typestring `json:"type"`}QueryProfile type.
funcNewQueryProfile¶added inv8.5.0
func NewQueryProfile() *QueryProfile
NewQueryProfile returns a QueryProfile.
func (*QueryProfile)UnmarshalJSON¶added inv8.7.1
func (s *QueryProfile) UnmarshalJSON(data []byte)error
typeQueryRole¶added inv8.15.0
type QueryRole struct {// Applications A list of application privilege entriesApplications []ApplicationPrivileges `json:"applications,omitempty"`// Cluster A list of cluster privileges. These privileges define the cluster level// actions that API keys are able to execute.Cluster []clusterprivilege.ClusterPrivilege `json:"cluster,omitempty"`// Description Optional description of the role descriptorDescription *string `json:"description,omitempty"`// Global An object defining global privileges. A global privilege is a form of cluster// privilege that is request-aware. Support for global privileges is currently// limited to the management of application privileges.Global []GlobalPrivilege `json:"global,omitempty"`// Indices A list of indices permissions entries.Indices []IndicesPrivileges `json:"indices,omitempty"`// Metadata Optional meta-data. Within the metadata object, keys that begin with `_` are// reserved for system usage.MetadataMetadata `json:"metadata,omitempty"`// Name Name of the role.Namestring `json:"name"`// RemoteCluster A list of cluster permissions for remote clusters.// NOTE: This is limited a subset of the cluster permissions.RemoteCluster []RemoteClusterPrivileges `json:"remote_cluster,omitempty"`// RemoteIndices A list of indices permissions for remote clusters.RemoteIndices []RemoteIndicesPrivileges `json:"remote_indices,omitempty"`// Restriction Restriction for when the role descriptor is allowed to be effective.Restriction *Restriction `json:"restriction,omitempty"`// RunAs A list of users that the API keys can impersonate.// NOTE: In Elastic Cloud Serverless, the run-as feature is disabled.// For API compatibility, you can still specify an empty `run_as` field, but a// non-empty list will be rejected.RunAs []string `json:"run_as,omitempty"`Sort_ []FieldValue `json:"_sort,omitempty"`TransientMetadata map[string]json.RawMessage `json:"transient_metadata,omitempty"`}QueryRole type.
func (*QueryRole)UnmarshalJSON¶added inv8.15.0
typeQueryRule¶added inv8.10.0
type QueryRule struct {// Actions The actions to take when the rule is matched.// The format of this action depends on the rule type.ActionsQueryRuleActions `json:"actions"`// Criteria The criteria that must be met for the rule to be applied.// If multiple criteria are specified for a rule, all criteria must be met for// the rule to be applied.Criteria []QueryRuleCriteria `json:"criteria"`Priority *int `json:"priority,omitempty"`// RuleId A unique identifier for the rule.RuleIdstring `json:"rule_id"`// Type The type of rule.// `pinned` will identify and pin specific documents to the top of search// results.// `exclude` will exclude specific documents from search results.Typequeryruletype.QueryRuleType `json:"type"`}QueryRule type.
func (*QueryRule)UnmarshalJSON¶added inv8.10.0
typeQueryRuleActions¶added inv8.10.0
type QueryRuleActions struct {// Docs The documents to apply the rule to.// Only one of `ids` or `docs` may be specified and at least one must be// specified.// There is a maximum value of 100 documents in a rule.// You can specify the following attributes for each document://// * `_index`: The index of the document to pin.// * `_id`: The unique document ID.Docs []PinnedDoc `json:"docs,omitempty"`// Ids The unique document IDs of the documents to apply the rule to.// Only one of `ids` or `docs` may be specified and at least one must be// specified.Ids []string `json:"ids,omitempty"`}QueryRuleActions type.
funcNewQueryRuleActions¶added inv8.10.0
func NewQueryRuleActions() *QueryRuleActions
NewQueryRuleActions returns a QueryRuleActions.
typeQueryRuleCriteria¶added inv8.10.0
type QueryRuleCriteria struct {// Metadata The metadata field to match against.// This metadata will be used to match against `match_criteria` sent in the// rule.// It is required for all criteria types except `always`.Metadata *string `json:"metadata,omitempty"`// Type The type of criteria. The following criteria types are supported://// * `always`: Matches all queries, regardless of input.// * `contains`: Matches that contain this value anywhere in the field meet the// criteria defined by the rule. Only applicable for string values.// * `exact`: Only exact matches meet the criteria defined by the rule.// Applicable for string or numerical values.// * `fuzzy`: Exact matches or matches within the allowed Levenshtein Edit// Distance meet the criteria defined by the rule. Only applicable for string// values.// * `gt`: Matches with a value greater than this value meet the criteria// defined by the rule. Only applicable for numerical values.// * `gte`: Matches with a value greater than or equal to this value meet the// criteria defined by the rule. Only applicable for numerical values.// * `lt`: Matches with a value less than this value meet the criteria defined// by the rule. Only applicable for numerical values.// * `lte`: Matches with a value less than or equal to this value meet the// criteria defined by the rule. Only applicable for numerical values.// * `prefix`: Matches that start with this value meet the criteria defined by// the rule. Only applicable for string values.// * `suffix`: Matches that end with this value meet the criteria defined by the// rule. Only applicable for string values.Typequeryrulecriteriatype.QueryRuleCriteriaType `json:"type"`// Values The values to match against the `metadata` field.// Only one value must match for the criteria to be met.// It is required for all criteria types except `always`.Values []json.RawMessage `json:"values,omitempty"`}QueryRuleCriteria type.
funcNewQueryRuleCriteria¶added inv8.10.0
func NewQueryRuleCriteria() *QueryRuleCriteria
NewQueryRuleCriteria returns a QueryRuleCriteria.
func (*QueryRuleCriteria)UnmarshalJSON¶added inv8.10.0
func (s *QueryRuleCriteria) UnmarshalJSON(data []byte)error
typeQueryRulesetListItem¶added inv8.10.0
type QueryRulesetListItem struct {// RuleCriteriaTypesCounts A map of criteria type (for example, `exact`) to the number of rules of that// type.//// NOTE: The counts in `rule_criteria_types_counts` may be larger than the value// of `rule_total_count` because a rule may have multiple criteria.RuleCriteriaTypesCounts map[string]int `json:"rule_criteria_types_counts"`// RuleTotalCount The number of rules associated with the ruleset.RuleTotalCountint `json:"rule_total_count"`// RuleTypeCounts A map of rule type (for example, `pinned`) to the number of rules of that// type.RuleTypeCounts map[string]int `json:"rule_type_counts"`// RulesetId A unique identifier for the ruleset.RulesetIdstring `json:"ruleset_id"`}QueryRulesetListItem type.
funcNewQueryRulesetListItem¶added inv8.10.0
func NewQueryRulesetListItem() *QueryRulesetListItem
NewQueryRulesetListItem returns a QueryRulesetListItem.
func (*QueryRulesetListItem)UnmarshalJSON¶added inv8.10.0
func (s *QueryRulesetListItem) UnmarshalJSON(data []byte)error
typeQueryRulesetMatchedRule¶added inv8.16.0
type QueryRulesetMatchedRule struct {// RuleId Rule unique identifier within that rulesetRuleIdstring `json:"rule_id"`// RulesetId Ruleset unique identifierRulesetIdstring `json:"ruleset_id"`}QueryRulesetMatchedRule type.
funcNewQueryRulesetMatchedRule¶added inv8.16.0
func NewQueryRulesetMatchedRule() *QueryRulesetMatchedRule
NewQueryRulesetMatchedRule returns a QueryRulesetMatchedRule.
func (*QueryRulesetMatchedRule)UnmarshalJSON¶added inv8.16.0
func (s *QueryRulesetMatchedRule) UnmarshalJSON(data []byte)error
typeQueryStringQuery¶
type QueryStringQuery struct {// AllowLeadingWildcard If `true`, the wildcard characters `*` and `?` are allowed as the first// character of the query string.AllowLeadingWildcard *bool `json:"allow_leading_wildcard,omitempty"`// AnalyzeWildcard If `true`, the query attempts to analyze wildcard terms in the query string.AnalyzeWildcard *bool `json:"analyze_wildcard,omitempty"`// Analyzer Analyzer used to convert text in the query string into tokens.Analyzer *string `json:"analyzer,omitempty"`// AutoGenerateSynonymsPhraseQuery If `true`, match phrase queries are automatically created for multi-term// synonyms.AutoGenerateSynonymsPhraseQuery *bool `json:"auto_generate_synonyms_phrase_query,omitempty"`// Boost Floating point number used to decrease or increase the relevance scores of// the query.// Boost values are relative to the default value of 1.0.// A boost value between 0 and 1.0 decreases the relevance score.// A value greater than 1.0 increases the relevance score.Boost *float32 `json:"boost,omitempty"`// DefaultField Default field to search if no field is provided in the query string.// Supports wildcards (`*`).// Defaults to the `index.query.default_field` index setting, which has a// default value of `*`.DefaultField *string `json:"default_field,omitempty"`// DefaultOperator Default boolean logic used to interpret text in the query string if no// operators are specified.DefaultOperator *operator.Operator `json:"default_operator,omitempty"`// EnablePositionIncrements If `true`, enable position increments in queries constructed from a// `query_string` search.EnablePositionIncrements *bool `json:"enable_position_increments,omitempty"`Escape *bool `json:"escape,omitempty"`// Fields Array of fields to search. Supports wildcards (`*`).Fields []string `json:"fields,omitempty"`// Fuzziness Maximum edit distance allowed for fuzzy matching.FuzzinessFuzziness `json:"fuzziness,omitempty"`// FuzzyMaxExpansions Maximum number of terms to which the query expands for fuzzy matching.FuzzyMaxExpansions *int `json:"fuzzy_max_expansions,omitempty"`// FuzzyPrefixLength Number of beginning characters left unchanged for fuzzy matching.FuzzyPrefixLength *int `json:"fuzzy_prefix_length,omitempty"`// FuzzyRewrite Method used to rewrite the query.FuzzyRewrite *string `json:"fuzzy_rewrite,omitempty"`// FuzzyTranspositions If `true`, edits for fuzzy matching include transpositions of two adjacent// characters (for example, `ab` to `ba`).FuzzyTranspositions *bool `json:"fuzzy_transpositions,omitempty"`// Lenient If `true`, format-based errors, such as providing a text value for a numeric// field, are ignored.Lenient *bool `json:"lenient,omitempty"`// MaxDeterminizedStates Maximum number of automaton states required for the query.MaxDeterminizedStates *int `json:"max_determinized_states,omitempty"`// MinimumShouldMatch Minimum number of clauses that must match for a document to be returned.MinimumShouldMatchMinimumShouldMatch `json:"minimum_should_match,omitempty"`// PhraseSlop Maximum number of positions allowed between matching tokens for phrases.PhraseSlop *Float64 `json:"phrase_slop,omitempty"`// Query Query string you wish to parse and use for search.Querystring `json:"query"`QueryName_ *string `json:"_name,omitempty"`// QuoteAnalyzer Analyzer used to convert quoted text in the query string into tokens.// For quoted text, this parameter overrides the analyzer specified in the// `analyzer` parameter.QuoteAnalyzer *string `json:"quote_analyzer,omitempty"`// QuoteFieldSuffix Suffix appended to quoted text in the query string.// You can use this suffix to use a different analysis method for exact matches.QuoteFieldSuffix *string `json:"quote_field_suffix,omitempty"`// Rewrite Method used to rewrite the query.Rewrite *string `json:"rewrite,omitempty"`// TieBreaker How to combine the queries generated from the individual search terms in the// resulting `dis_max` query.TieBreaker *Float64 `json:"tie_breaker,omitempty"`// TimeZone Coordinated Universal Time (UTC) offset or IANA time zone used to convert// date values in the query string to UTC.TimeZone *string `json:"time_zone,omitempty"`// Type Determines how the query matches and scores documents.Type *textquerytype.TextQueryType `json:"type,omitempty"`}QueryStringQuery type.
funcNewQueryStringQuery¶added inv8.5.0
func NewQueryStringQuery() *QueryStringQuery
NewQueryStringQuery returns a QueryStringQuery.
func (*QueryStringQuery)UnmarshalJSON¶added inv8.7.1
func (s *QueryStringQuery) UnmarshalJSON(data []byte)error
typeQueryUser¶added inv8.15.0
type QueryUser struct {Email *string `json:"email,omitempty"`Enabledbool `json:"enabled"`FullName *string `json:"full_name,omitempty"`MetadataMetadata `json:"metadata"`ProfileUid *string `json:"profile_uid,omitempty"`Roles []string `json:"roles"`Sort_ []FieldValue `json:"_sort,omitempty"`Usernamestring `json:"username"`}QueryUser type.
func (*QueryUser)UnmarshalJSON¶added inv8.15.0
typeQueryVectorBuilder¶
type QueryVectorBuilder struct {AdditionalQueryVectorBuilderProperty map[string]json.RawMessage `json:"-"`TextEmbedding *TextEmbedding `json:"text_embedding,omitempty"`}QueryVectorBuilder type.
funcNewQueryVectorBuilder¶
func NewQueryVectorBuilder() *QueryVectorBuilder
NewQueryVectorBuilder returns a QueryVectorBuilder.
func (QueryVectorBuilder)MarshalJSON¶added inv8.18.0
func (sQueryVectorBuilder) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
typeQueryWatch¶
type QueryWatch struct {Id_string `json:"_id"`PrimaryTerm_ *int `json:"_primary_term,omitempty"`SeqNo_ *int64 `json:"_seq_no,omitempty"`Status *WatchStatus `json:"status,omitempty"`Watch *Watch `json:"watch,omitempty"`}QueryWatch type.
func (*QueryWatch)UnmarshalJSON¶added inv8.7.1
func (s *QueryWatch) UnmarshalJSON(data []byte)error
typeQuestionAnsweringInferenceOptions¶
type QuestionAnsweringInferenceOptions struct {// MaxAnswerLength The maximum answer length to considerMaxAnswerLength *int `json:"max_answer_length,omitempty"`// NumTopClasses Specifies the number of top class predictions to return. Defaults to 0.NumTopClasses *int `json:"num_top_classes,omitempty"`// ResultsField The field that is added to incoming documents to contain the inference// prediction. Defaults to predicted_value.ResultsField *string `json:"results_field,omitempty"`// Tokenization The tokenization options to update when inferringTokenization *TokenizationConfigContainer `json:"tokenization,omitempty"`}QuestionAnsweringInferenceOptions type.
funcNewQuestionAnsweringInferenceOptions¶added inv8.5.0
func NewQuestionAnsweringInferenceOptions() *QuestionAnsweringInferenceOptions
NewQuestionAnsweringInferenceOptions returns a QuestionAnsweringInferenceOptions.
func (*QuestionAnsweringInferenceOptions)UnmarshalJSON¶added inv8.7.1
func (s *QuestionAnsweringInferenceOptions) UnmarshalJSON(data []byte)error
typeQuestionAnsweringInferenceUpdateOptions¶
type QuestionAnsweringInferenceUpdateOptions struct {// MaxAnswerLength The maximum answer length to consider for extractionMaxAnswerLength *int `json:"max_answer_length,omitempty"`// NumTopClasses Specifies the number of top class predictions to return. Defaults to 0.NumTopClasses *int `json:"num_top_classes,omitempty"`// Question The question to answer given the inference contextQuestionstring `json:"question"`// ResultsField The field that is added to incoming documents to contain the inference// prediction. Defaults to predicted_value.ResultsField *string `json:"results_field,omitempty"`// Tokenization The tokenization options to update when inferringTokenization *NlpTokenizationUpdateOptions `json:"tokenization,omitempty"`}QuestionAnsweringInferenceUpdateOptions type.
funcNewQuestionAnsweringInferenceUpdateOptions¶added inv8.5.0
func NewQuestionAnsweringInferenceUpdateOptions() *QuestionAnsweringInferenceUpdateOptions
NewQuestionAnsweringInferenceUpdateOptions returns a QuestionAnsweringInferenceUpdateOptions.
func (*QuestionAnsweringInferenceUpdateOptions)UnmarshalJSON¶added inv8.7.1
func (s *QuestionAnsweringInferenceUpdateOptions) UnmarshalJSON(data []byte)error
typeRRFRetriever¶added inv8.14.0
type RRFRetriever struct {Fields []string `json:"fields,omitempty"`// Filter Query to filter the documents that can match.Filter []Query `json:"filter,omitempty"`// MinScore Minimum _score for matching documents. Documents with a lower _score are not// included in the top documents.MinScore *float32 `json:"min_score,omitempty"`// Name_ Retriever name.Name_ *string `json:"_name,omitempty"`Query *string `json:"query,omitempty"`// RankConstant This value determines how much influence documents in individual result sets// per query have over the final ranked result set.RankConstant *int `json:"rank_constant,omitempty"`// RankWindowSize This value determines the size of the individual result sets per query.RankWindowSize *int `json:"rank_window_size,omitempty"`// Retrievers A list of child retrievers to specify which sets of returned top documents// will have the RRF formula applied to them.Retrievers []RetrieverContainer `json:"retrievers"`}RRFRetriever type.
funcNewRRFRetriever¶added inv8.14.0
func NewRRFRetriever() *RRFRetriever
NewRRFRetriever returns a RRFRetriever.
func (*RRFRetriever)UnmarshalJSON¶added inv8.14.0
func (s *RRFRetriever) UnmarshalJSON(data []byte)error
typeRandomSamplerAggregation¶added inv8.16.0
type RandomSamplerAggregation struct {// Probability The probability that a document will be included in the aggregated data.// Must be greater than 0, less than 0.5, or exactly 1.// The lower the probability, the fewer documents are matched.ProbabilityFloat64 `json:"probability"`// Seed The seed to generate the random sampling of documents.// When a seed is provided, the random subset of documents is the same between// calls.Seed *int `json:"seed,omitempty"`// ShardSeed When combined with seed, setting shard_seed ensures 100% consistent sampling// over shards where data is exactly the same.ShardSeed *int `json:"shard_seed,omitempty"`}RandomSamplerAggregation type.
funcNewRandomSamplerAggregation¶added inv8.16.0
func NewRandomSamplerAggregation() *RandomSamplerAggregation
NewRandomSamplerAggregation returns a RandomSamplerAggregation.
func (*RandomSamplerAggregation)UnmarshalJSON¶added inv8.16.0
func (s *RandomSamplerAggregation) UnmarshalJSON(data []byte)error
typeRandomScoreFunction¶
type RandomScoreFunction struct {Field *string `json:"field,omitempty"`Seed *string `json:"seed,omitempty"`}RandomScoreFunction type.
funcNewRandomScoreFunction¶added inv8.5.0
func NewRandomScoreFunction() *RandomScoreFunction
NewRandomScoreFunction returns a RandomScoreFunction.
func (*RandomScoreFunction)UnmarshalJSON¶added inv8.7.1
func (s *RandomScoreFunction) UnmarshalJSON(data []byte)error
typeRangeAggregate¶
type RangeAggregate struct {BucketsBucketsRangeBucket `json:"buckets"`MetaMetadata `json:"meta,omitempty"`}RangeAggregate type.
funcNewRangeAggregate¶added inv8.5.0
func NewRangeAggregate() *RangeAggregate
NewRangeAggregate returns a RangeAggregate.
func (*RangeAggregate)UnmarshalJSON¶added inv8.7.0
func (s *RangeAggregate) UnmarshalJSON(data []byte)error
typeRangeAggregation¶
type RangeAggregation struct {// Field The date field whose values are use to build ranges.Field *string `json:"field,omitempty"`Format *string `json:"format,omitempty"`// Keyed Set to `true` to associate a unique string key with each bucket and return// the ranges as a hash rather than an array.Keyed *bool `json:"keyed,omitempty"`// Missing The value to apply to documents that do not have a value.// By default, documents without a value are ignored.Missing *int `json:"missing,omitempty"`// Ranges An array of ranges used to bucket documents.Ranges []AggregationRange `json:"ranges,omitempty"`Script *Script `json:"script,omitempty"`}RangeAggregation type.
funcNewRangeAggregation¶added inv8.5.0
func NewRangeAggregation() *RangeAggregation
NewRangeAggregation returns a RangeAggregation.
func (*RangeAggregation)UnmarshalJSON¶added inv8.7.1
func (s *RangeAggregation) UnmarshalJSON(data []byte)error
typeRangeBucket¶
type RangeBucket struct {Aggregations map[string]Aggregate `json:"-"`DocCountint64 `json:"doc_count"`From *Float64 `json:"from,omitempty"`FromAsString *string `json:"from_as_string,omitempty"`// Key The bucket key. Present if the aggregation is _not_ keyedKey *string `json:"key,omitempty"`To *Float64 `json:"to,omitempty"`ToAsString *string `json:"to_as_string,omitempty"`}RangeBucket type.
funcNewRangeBucket¶added inv8.5.0
func NewRangeBucket() *RangeBucket
NewRangeBucket returns a RangeBucket.
func (RangeBucket)MarshalJSON¶
func (sRangeBucket) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
func (*RangeBucket)UnmarshalJSON¶added inv8.7.0
func (s *RangeBucket) UnmarshalJSON(data []byte)error
typeRangeQuery¶
type RangeQueryany
RangeQuery holds the union for the following types:
UntypedRangeQueryDateRangeQueryNumberRangeQueryTermRangeQuery
typeRankContainer¶added inv8.8.1
type RankContainer struct {AdditionalRankContainerProperty map[string]json.RawMessage `json:"-"`// Rrf The reciprocal rank fusion parametersRrf *RrfRank `json:"rrf,omitempty"`}RankContainer type.
funcNewRankContainer¶added inv8.8.1
func NewRankContainer() *RankContainer
NewRankContainer returns a RankContainer.
func (RankContainer)MarshalJSON¶added inv8.18.0
func (sRankContainer) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
typeRankEvalHit¶
type RankEvalHit struct {Id_string `json:"_id"`Index_string `json:"_index"`Score_Float64 `json:"_score"`}RankEvalHit type.
funcNewRankEvalHit¶added inv8.5.0
func NewRankEvalHit() *RankEvalHit
NewRankEvalHit returns a RankEvalHit.
func (*RankEvalHit)UnmarshalJSON¶added inv8.7.1
func (s *RankEvalHit) UnmarshalJSON(data []byte)error
typeRankEvalHitItem¶
type RankEvalHitItem struct {HitRankEvalHit `json:"hit"`Rating *Float64 `json:"rating,omitempty"`}RankEvalHitItem type.
funcNewRankEvalHitItem¶added inv8.5.0
func NewRankEvalHitItem() *RankEvalHitItem
NewRankEvalHitItem returns a RankEvalHitItem.
func (*RankEvalHitItem)UnmarshalJSON¶added inv8.7.1
func (s *RankEvalHitItem) UnmarshalJSON(data []byte)error
typeRankEvalMetric¶
type RankEvalMetric struct {Dcg *RankEvalMetricDiscountedCumulativeGain `json:"dcg,omitempty"`ExpectedReciprocalRank *RankEvalMetricExpectedReciprocalRank `json:"expected_reciprocal_rank,omitempty"`MeanReciprocalRank *RankEvalMetricMeanReciprocalRank `json:"mean_reciprocal_rank,omitempty"`Precision *RankEvalMetricPrecision `json:"precision,omitempty"`Recall *RankEvalMetricRecall `json:"recall,omitempty"`}RankEvalMetric type.
funcNewRankEvalMetric¶added inv8.5.0
func NewRankEvalMetric() *RankEvalMetric
NewRankEvalMetric returns a RankEvalMetric.
typeRankEvalMetricDetail¶
type RankEvalMetricDetail struct {// Hits The hits section shows a grouping of the search results with their supplied// ratingsHits []RankEvalHitItem `json:"hits"`// MetricDetails The metric_details give additional information about the calculated quality// metric (e.g. how many of the retrieved documents were relevant). The content// varies for each metric but allows for better interpretation of the resultsMetricDetails map[string]map[string]json.RawMessage `json:"metric_details"`// MetricScore The metric_score in the details section shows the contribution of this query// to the global quality metric scoreMetricScoreFloat64 `json:"metric_score"`// UnratedDocs The unrated_docs section contains an _index and _id entry for each document// in the search result for this query that didn’t have a ratings value. This// can be used to ask the user to supply ratings for these documentsUnratedDocs []UnratedDocument `json:"unrated_docs"`}RankEvalMetricDetail type.
funcNewRankEvalMetricDetail¶added inv8.5.0
func NewRankEvalMetricDetail() *RankEvalMetricDetail
NewRankEvalMetricDetail returns a RankEvalMetricDetail.
func (*RankEvalMetricDetail)UnmarshalJSON¶added inv8.7.1
func (s *RankEvalMetricDetail) UnmarshalJSON(data []byte)error
typeRankEvalMetricDiscountedCumulativeGain¶
type RankEvalMetricDiscountedCumulativeGain struct {// K Sets the maximum number of documents retrieved per query. This value will act// in place of the usual size parameter in the query.K *int `json:"k,omitempty"`// Normalize If set to true, this metric will calculate the Normalized DCG.Normalize *bool `json:"normalize,omitempty"`}RankEvalMetricDiscountedCumulativeGain type.
funcNewRankEvalMetricDiscountedCumulativeGain¶added inv8.5.0
func NewRankEvalMetricDiscountedCumulativeGain() *RankEvalMetricDiscountedCumulativeGain
NewRankEvalMetricDiscountedCumulativeGain returns a RankEvalMetricDiscountedCumulativeGain.
func (*RankEvalMetricDiscountedCumulativeGain)UnmarshalJSON¶added inv8.7.1
func (s *RankEvalMetricDiscountedCumulativeGain) UnmarshalJSON(data []byte)error
typeRankEvalMetricExpectedReciprocalRank¶
type RankEvalMetricExpectedReciprocalRank struct {// K Sets the maximum number of documents retrieved per query. This value will act// in place of the usual size parameter in the query.K *int `json:"k,omitempty"`// MaximumRelevance The highest relevance grade used in the user-supplied relevance judgments.MaximumRelevanceint `json:"maximum_relevance"`}RankEvalMetricExpectedReciprocalRank type.
funcNewRankEvalMetricExpectedReciprocalRank¶added inv8.5.0
func NewRankEvalMetricExpectedReciprocalRank() *RankEvalMetricExpectedReciprocalRank
NewRankEvalMetricExpectedReciprocalRank returns a RankEvalMetricExpectedReciprocalRank.
func (*RankEvalMetricExpectedReciprocalRank)UnmarshalJSON¶added inv8.7.1
func (s *RankEvalMetricExpectedReciprocalRank) UnmarshalJSON(data []byte)error
typeRankEvalMetricMeanReciprocalRank¶
type RankEvalMetricMeanReciprocalRank struct {// K Sets the maximum number of documents retrieved per query. This value will act// in place of the usual size parameter in the query.K *int `json:"k,omitempty"`// RelevantRatingThreshold Sets the rating threshold above which documents are considered to be// "relevant".RelevantRatingThreshold *int `json:"relevant_rating_threshold,omitempty"`}RankEvalMetricMeanReciprocalRank type.
funcNewRankEvalMetricMeanReciprocalRank¶added inv8.5.0
func NewRankEvalMetricMeanReciprocalRank() *RankEvalMetricMeanReciprocalRank
NewRankEvalMetricMeanReciprocalRank returns a RankEvalMetricMeanReciprocalRank.
func (*RankEvalMetricMeanReciprocalRank)UnmarshalJSON¶added inv8.7.1
func (s *RankEvalMetricMeanReciprocalRank) UnmarshalJSON(data []byte)error
typeRankEvalMetricPrecision¶
type RankEvalMetricPrecision struct {// IgnoreUnlabeled Controls how unlabeled documents in the search results are counted. If set to// true, unlabeled documents are ignored and neither count as relevant or// irrelevant. Set to false (the default), they are treated as irrelevant.IgnoreUnlabeled *bool `json:"ignore_unlabeled,omitempty"`// K Sets the maximum number of documents retrieved per query. This value will act// in place of the usual size parameter in the query.K *int `json:"k,omitempty"`// RelevantRatingThreshold Sets the rating threshold above which documents are considered to be// "relevant".RelevantRatingThreshold *int `json:"relevant_rating_threshold,omitempty"`}RankEvalMetricPrecision type.
funcNewRankEvalMetricPrecision¶added inv8.5.0
func NewRankEvalMetricPrecision() *RankEvalMetricPrecision
NewRankEvalMetricPrecision returns a RankEvalMetricPrecision.
func (*RankEvalMetricPrecision)UnmarshalJSON¶added inv8.7.1
func (s *RankEvalMetricPrecision) UnmarshalJSON(data []byte)error
typeRankEvalMetricRecall¶
type RankEvalMetricRecall struct {// K Sets the maximum number of documents retrieved per query. This value will act// in place of the usual size parameter in the query.K *int `json:"k,omitempty"`// RelevantRatingThreshold Sets the rating threshold above which documents are considered to be// "relevant".RelevantRatingThreshold *int `json:"relevant_rating_threshold,omitempty"`}RankEvalMetricRecall type.
funcNewRankEvalMetricRecall¶added inv8.5.0
func NewRankEvalMetricRecall() *RankEvalMetricRecall
NewRankEvalMetricRecall returns a RankEvalMetricRecall.
func (*RankEvalMetricRecall)UnmarshalJSON¶added inv8.7.1
func (s *RankEvalMetricRecall) UnmarshalJSON(data []byte)error
typeRankEvalQuery¶
RankEvalQuery type.
funcNewRankEvalQuery¶added inv8.5.0
func NewRankEvalQuery() *RankEvalQuery
NewRankEvalQuery returns a RankEvalQuery.
func (*RankEvalQuery)UnmarshalJSON¶added inv8.7.1
func (s *RankEvalQuery) UnmarshalJSON(data []byte)error
typeRankEvalRequestItem¶
type RankEvalRequestItem struct {// Id The search request’s ID, used to group result details later.Idstring `json:"id"`// Params The search template parameters.Params map[string]json.RawMessage `json:"params,omitempty"`// Ratings List of document ratingsRatings []DocumentRating `json:"ratings"`// Request The query being evaluated.Request *RankEvalQuery `json:"request,omitempty"`// TemplateId The search template IdTemplateId *string `json:"template_id,omitempty"`}RankEvalRequestItem type.
funcNewRankEvalRequestItem¶added inv8.5.0
func NewRankEvalRequestItem() *RankEvalRequestItem
NewRankEvalRequestItem returns a RankEvalRequestItem.
func (*RankEvalRequestItem)UnmarshalJSON¶added inv8.7.1
func (s *RankEvalRequestItem) UnmarshalJSON(data []byte)error
typeRankFeatureFunctionLinear¶
type RankFeatureFunctionLinear struct {}RankFeatureFunctionLinear type.
funcNewRankFeatureFunctionLinear¶added inv8.5.0
func NewRankFeatureFunctionLinear() *RankFeatureFunctionLinear
NewRankFeatureFunctionLinear returns a RankFeatureFunctionLinear.
typeRankFeatureFunctionLogarithm¶
type RankFeatureFunctionLogarithm struct {// ScalingFactor Configurable scaling factor.ScalingFactorfloat32 `json:"scaling_factor"`}RankFeatureFunctionLogarithm type.
funcNewRankFeatureFunctionLogarithm¶added inv8.5.0
func NewRankFeatureFunctionLogarithm() *RankFeatureFunctionLogarithm
NewRankFeatureFunctionLogarithm returns a RankFeatureFunctionLogarithm.
func (*RankFeatureFunctionLogarithm)UnmarshalJSON¶added inv8.7.1
func (s *RankFeatureFunctionLogarithm) UnmarshalJSON(data []byte)error
typeRankFeatureFunctionSaturation¶
type RankFeatureFunctionSaturation struct {// Pivot Configurable pivot value so that the result will be less than 0.5.Pivot *float32 `json:"pivot,omitempty"`}RankFeatureFunctionSaturation type.
funcNewRankFeatureFunctionSaturation¶added inv8.5.0
func NewRankFeatureFunctionSaturation() *RankFeatureFunctionSaturation
NewRankFeatureFunctionSaturation returns a RankFeatureFunctionSaturation.
func (*RankFeatureFunctionSaturation)UnmarshalJSON¶added inv8.7.1
func (s *RankFeatureFunctionSaturation) UnmarshalJSON(data []byte)error
typeRankFeatureFunctionSigmoid¶
type RankFeatureFunctionSigmoid struct {// Exponent Configurable Exponent.Exponentfloat32 `json:"exponent"`// Pivot Configurable pivot value so that the result will be less than 0.5.Pivotfloat32 `json:"pivot"`}RankFeatureFunctionSigmoid type.
funcNewRankFeatureFunctionSigmoid¶added inv8.5.0
func NewRankFeatureFunctionSigmoid() *RankFeatureFunctionSigmoid
NewRankFeatureFunctionSigmoid returns a RankFeatureFunctionSigmoid.
func (*RankFeatureFunctionSigmoid)UnmarshalJSON¶added inv8.7.1
func (s *RankFeatureFunctionSigmoid) UnmarshalJSON(data []byte)error
typeRankFeatureProperty¶
type RankFeatureProperty struct {Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`Fields map[string]Property `json:"fields,omitempty"`IgnoreAbove *int `json:"ignore_above,omitempty"`// Meta Metadata about the field.Meta map[string]string `json:"meta,omitempty"`PositiveScoreImpact *bool `json:"positive_score_impact,omitempty"`Properties map[string]Property `json:"properties,omitempty"`SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`Typestring `json:"type,omitempty"`}RankFeatureProperty type.
funcNewRankFeatureProperty¶added inv8.5.0
func NewRankFeatureProperty() *RankFeatureProperty
NewRankFeatureProperty returns a RankFeatureProperty.
func (RankFeatureProperty)MarshalJSON¶added inv8.9.0
func (sRankFeatureProperty) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*RankFeatureProperty)UnmarshalJSON¶added inv8.7.0
func (s *RankFeatureProperty) UnmarshalJSON(data []byte)error
typeRankFeatureQuery¶
type RankFeatureQuery struct {// Boost Floating point number used to decrease or increase the relevance scores of// the query.// Boost values are relative to the default value of 1.0.// A boost value between 0 and 1.0 decreases the relevance score.// A value greater than 1.0 increases the relevance score.Boost *float32 `json:"boost,omitempty"`// Field `rank_feature` or `rank_features` field used to boost relevance scores.Fieldstring `json:"field"`// Linear Linear function used to boost relevance scores based on the value of the rank// feature `field`.Linear *RankFeatureFunctionLinear `json:"linear,omitempty"`// Log Logarithmic function used to boost relevance scores based on the value of the// rank feature `field`.Log *RankFeatureFunctionLogarithm `json:"log,omitempty"`QueryName_ *string `json:"_name,omitempty"`// Saturation Saturation function used to boost relevance scores based on the value of the// rank feature `field`.Saturation *RankFeatureFunctionSaturation `json:"saturation,omitempty"`// Sigmoid Sigmoid function used to boost relevance scores based on the value of the// rank feature `field`.Sigmoid *RankFeatureFunctionSigmoid `json:"sigmoid,omitempty"`}RankFeatureQuery type.
funcNewRankFeatureQuery¶added inv8.5.0
func NewRankFeatureQuery() *RankFeatureQuery
NewRankFeatureQuery returns a RankFeatureQuery.
func (*RankFeatureQuery)UnmarshalJSON¶added inv8.7.1
func (s *RankFeatureQuery) UnmarshalJSON(data []byte)error
typeRankFeaturesProperty¶
type RankFeaturesProperty struct {Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`Fields map[string]Property `json:"fields,omitempty"`IgnoreAbove *int `json:"ignore_above,omitempty"`// Meta Metadata about the field.Meta map[string]string `json:"meta,omitempty"`PositiveScoreImpact *bool `json:"positive_score_impact,omitempty"`Properties map[string]Property `json:"properties,omitempty"`SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`Typestring `json:"type,omitempty"`}RankFeaturesProperty type.
funcNewRankFeaturesProperty¶added inv8.5.0
func NewRankFeaturesProperty() *RankFeaturesProperty
NewRankFeaturesProperty returns a RankFeaturesProperty.
func (RankFeaturesProperty)MarshalJSON¶added inv8.9.0
func (sRankFeaturesProperty) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*RankFeaturesProperty)UnmarshalJSON¶added inv8.7.0
func (s *RankFeaturesProperty) UnmarshalJSON(data []byte)error
typeRankVectorProperty¶added inv8.19.0
type RankVectorProperty struct {Dims *int `json:"dims,omitempty"`Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`ElementType *rankvectorelementtype.RankVectorElementType `json:"element_type,omitempty"`Fields map[string]Property `json:"fields,omitempty"`IgnoreAbove *int `json:"ignore_above,omitempty"`// Meta Metadata about the field.Meta map[string]string `json:"meta,omitempty"`Properties map[string]Property `json:"properties,omitempty"`SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`Typestring `json:"type,omitempty"`}RankVectorProperty type.
funcNewRankVectorProperty¶added inv8.19.0
func NewRankVectorProperty() *RankVectorProperty
NewRankVectorProperty returns a RankVectorProperty.
func (RankVectorProperty)MarshalJSON¶added inv8.19.0
func (sRankVectorProperty) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*RankVectorProperty)UnmarshalJSON¶added inv8.19.0
func (s *RankVectorProperty) UnmarshalJSON(data []byte)error
typeRankedDocument¶added inv8.14.0
type RankedDocument struct {Indexint `json:"index"`RelevanceScorefloat32 `json:"relevance_score"`Text *string `json:"text,omitempty"`}RankedDocument type.
funcNewRankedDocument¶added inv8.14.0
func NewRankedDocument() *RankedDocument
NewRankedDocument returns a RankedDocument.
func (*RankedDocument)UnmarshalJSON¶added inv8.14.0
func (s *RankedDocument) UnmarshalJSON(data []byte)error
typeRareTermsAggregation¶
type RareTermsAggregation struct {// Exclude Terms that should be excluded from the aggregation.Exclude []string `json:"exclude,omitempty"`// Field The field from which to return rare terms.Field *string `json:"field,omitempty"`// Include Terms that should be included in the aggregation.IncludeTermsInclude `json:"include,omitempty"`// MaxDocCount The maximum number of documents a term should appear in.MaxDocCount *int64 `json:"max_doc_count,omitempty"`// Missing The value to apply to documents that do not have a value.// By default, documents without a value are ignored.MissingMissing `json:"missing,omitempty"`// Precision The precision of the internal CuckooFilters.// Smaller precision leads to better approximation, but higher memory usage.Precision *Float64 `json:"precision,omitempty"`ValueType *string `json:"value_type,omitempty"`}RareTermsAggregation type.
funcNewRareTermsAggregation¶added inv8.5.0
func NewRareTermsAggregation() *RareTermsAggregation
NewRareTermsAggregation returns a RareTermsAggregation.
func (*RareTermsAggregation)UnmarshalJSON¶added inv8.7.1
func (s *RareTermsAggregation) UnmarshalJSON(data []byte)error
typeRateAggregate¶
type RateAggregate struct {MetaMetadata `json:"meta,omitempty"`ValueFloat64 `json:"value"`ValueAsString *string `json:"value_as_string,omitempty"`}RateAggregate type.
funcNewRateAggregate¶added inv8.5.0
func NewRateAggregate() *RateAggregate
NewRateAggregate returns a RateAggregate.
func (*RateAggregate)UnmarshalJSON¶added inv8.7.1
func (s *RateAggregate) UnmarshalJSON(data []byte)error
typeRateAggregation¶
type RateAggregation struct {// Field The field on which to run the aggregation.Field *string `json:"field,omitempty"`Format *string `json:"format,omitempty"`// Missing The value to apply to documents that do not have a value.// By default, documents without a value are ignored.MissingMissing `json:"missing,omitempty"`// Mode How the rate is calculated.Mode *ratemode.RateMode `json:"mode,omitempty"`Script *Script `json:"script,omitempty"`// Unit The interval used to calculate the rate.// By default, the interval of the `date_histogram` is used.Unit *calendarinterval.CalendarInterval `json:"unit,omitempty"`}RateAggregation type.
funcNewRateAggregation¶added inv8.5.0
func NewRateAggregation() *RateAggregation
NewRateAggregation returns a RateAggregation.
func (*RateAggregation)UnmarshalJSON¶added inv8.7.1
func (s *RateAggregation) UnmarshalJSON(data []byte)error
typeRateLimitSetting¶added inv8.18.0
type RateLimitSetting struct {// RequestsPerMinute The number of requests allowed per minute.RequestsPerMinute *int `json:"requests_per_minute,omitempty"`}RateLimitSetting type.
funcNewRateLimitSetting¶added inv8.18.0
func NewRateLimitSetting() *RateLimitSetting
NewRateLimitSetting returns a RateLimitSetting.
func (*RateLimitSetting)UnmarshalJSON¶added inv8.18.0
func (s *RateLimitSetting) UnmarshalJSON(data []byte)error
typeReadBlobDetails¶added inv8.18.0
type ReadBlobDetails struct {// BeforeWriteComplete Indicates whether the read operation may have started before the write// operation was complete.BeforeWriteComplete *bool `json:"before_write_complete,omitempty"`// Elapsed The length of time spent reading the blob.// If the blob was not found, this detail is omitted.ElapsedDuration `json:"elapsed,omitempty"`// ElapsedNanos The length of time spent reading the blob, in nanoseconds.// If the blob was not found, this detail is omitted.ElapsedNanos *int64 `json:"elapsed_nanos,omitempty"`// FirstByteTime The length of time waiting for the first byte of the read operation to be// received.// If the blob was not found, this detail is omitted.FirstByteTimeDuration `json:"first_byte_time,omitempty"`// FirstByteTimeNanos The length of time waiting for the first byte of the read operation to be// received, in nanoseconds.// If the blob was not found, this detail is omitted.FirstByteTimeNanosint64 `json:"first_byte_time_nanos"`// Found Indicates whether the blob was found by the read operation.// If the read was started before the write completed or the write was ended// before completion, it might be false.Foundbool `json:"found"`// Node The node that performed the read operation.NodeSnapshotNodeInfo `json:"node"`// Throttled The length of time spent waiting due to the `max_restore_bytes_per_sec` or// `indices.recovery.max_bytes_per_sec` throttles during the read of the blob.// If the blob was not found, this detail is omitted.ThrottledDuration `json:"throttled,omitempty"`// ThrottledNanos The length of time spent waiting due to the `max_restore_bytes_per_sec` or// `indices.recovery.max_bytes_per_sec` throttles during the read of the blob,// in nanoseconds.// If the blob was not found, this detail is omitted.ThrottledNanos *int64 `json:"throttled_nanos,omitempty"`}ReadBlobDetails type.
funcNewReadBlobDetails¶added inv8.18.0
func NewReadBlobDetails() *ReadBlobDetails
NewReadBlobDetails returns a ReadBlobDetails.
func (*ReadBlobDetails)UnmarshalJSON¶added inv8.18.0
func (s *ReadBlobDetails) UnmarshalJSON(data []byte)error
typeReadException¶
type ReadException struct {// Exception The exception that caused the read to fail.ExceptionErrorCause `json:"exception"`// FromSeqNo The starting sequence number of the batch requested from the leader.FromSeqNoint64 `json:"from_seq_no"`// Retries The number of times the batch has been retried.Retriesint `json:"retries"`}ReadException type.
funcNewReadException¶added inv8.5.0
func NewReadException() *ReadException
NewReadException returns a ReadException.
func (*ReadException)UnmarshalJSON¶added inv8.7.1
func (s *ReadException) UnmarshalJSON(data []byte)error
typeReadOnlyUrlRepository¶added inv8.13.0
type ReadOnlyUrlRepository struct {SettingsReadOnlyUrlRepositorySettings `json:"settings"`Typestring `json:"type,omitempty"`Uuid *string `json:"uuid,omitempty"`}ReadOnlyUrlRepository type.
funcNewReadOnlyUrlRepository¶added inv8.13.0
func NewReadOnlyUrlRepository() *ReadOnlyUrlRepository
NewReadOnlyUrlRepository returns a ReadOnlyUrlRepository.
func (ReadOnlyUrlRepository)MarshalJSON¶added inv8.13.0
func (sReadOnlyUrlRepository) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*ReadOnlyUrlRepository)UnmarshalJSON¶added inv8.13.0
func (s *ReadOnlyUrlRepository) UnmarshalJSON(data []byte)error
typeReadOnlyUrlRepositorySettings¶added inv8.13.0
type ReadOnlyUrlRepositorySettings struct {ChunkSizeByteSize `json:"chunk_size,omitempty"`Compress *bool `json:"compress,omitempty"`HttpMaxRetries *int `json:"http_max_retries,omitempty"`HttpSocketTimeoutDuration `json:"http_socket_timeout,omitempty"`MaxNumberOfSnapshots *int `json:"max_number_of_snapshots,omitempty"`MaxRestoreBytesPerSecByteSize `json:"max_restore_bytes_per_sec,omitempty"`MaxSnapshotBytesPerSecByteSize `json:"max_snapshot_bytes_per_sec,omitempty"`Urlstring `json:"url"`}ReadOnlyUrlRepositorySettings type.
funcNewReadOnlyUrlRepositorySettings¶added inv8.13.0
func NewReadOnlyUrlRepositorySettings() *ReadOnlyUrlRepositorySettings
NewReadOnlyUrlRepositorySettings returns a ReadOnlyUrlRepositorySettings.
func (*ReadOnlyUrlRepositorySettings)UnmarshalJSON¶added inv8.13.0
func (s *ReadOnlyUrlRepositorySettings) UnmarshalJSON(data []byte)error
typeReadSummaryInfo¶added inv8.18.0
type ReadSummaryInfo struct {// Count The number of read operations performed in the test.Countint `json:"count"`// MaxWait The maximum time spent waiting for the first byte of any read request to be// received.MaxWaitDuration `json:"max_wait"`// MaxWaitNanos The maximum time spent waiting for the first byte of any read request to be// received, in nanoseconds.MaxWaitNanosint64 `json:"max_wait_nanos"`// TotalElapsed The total elapsed time spent on reading blobs in the test.TotalElapsedDuration `json:"total_elapsed"`// TotalElapsedNanos The total elapsed time spent on reading blobs in the test, in nanoseconds.TotalElapsedNanosint64 `json:"total_elapsed_nanos"`// TotalSize The total size of all the blobs or partial blobs read in the test.TotalSizeByteSize `json:"total_size"`// TotalSizeBytes The total size of all the blobs or partial blobs read in the test, in bytes.TotalSizeBytesint64 `json:"total_size_bytes"`// TotalThrottled The total time spent waiting due to the `max_restore_bytes_per_sec` or// `indices.recovery.max_bytes_per_sec` throttles.TotalThrottledDuration `json:"total_throttled"`// TotalThrottledNanos The total time spent waiting due to the `max_restore_bytes_per_sec` or// `indices.recovery.max_bytes_per_sec` throttles, in nanoseconds.TotalThrottledNanosint64 `json:"total_throttled_nanos"`// TotalWait The total time spent waiting for the first byte of each read request to be// received.TotalWaitDuration `json:"total_wait"`// TotalWaitNanos The total time spent waiting for the first byte of each read request to be// received, in nanoseconds.TotalWaitNanosint64 `json:"total_wait_nanos"`}ReadSummaryInfo type.
funcNewReadSummaryInfo¶added inv8.18.0
func NewReadSummaryInfo() *ReadSummaryInfo
NewReadSummaryInfo returns a ReadSummaryInfo.
func (*ReadSummaryInfo)UnmarshalJSON¶added inv8.18.0
func (s *ReadSummaryInfo) UnmarshalJSON(data []byte)error
typeRealmCache¶
type RealmCache struct {Sizeint64 `json:"size"`}RealmCache type.
func (*RealmCache)UnmarshalJSON¶added inv8.7.1
func (s *RealmCache) UnmarshalJSON(data []byte)error
typeRecording¶
type Recording struct {CumulativeExecutionCount *int64 `json:"cumulative_execution_count,omitempty"`CumulativeExecutionTimeDuration `json:"cumulative_execution_time,omitempty"`CumulativeExecutionTimeMillis *int64 `json:"cumulative_execution_time_millis,omitempty"`Name *string `json:"name,omitempty"`}Recording type.
func (*Recording)UnmarshalJSON¶added inv8.7.1
typeRecoveryBytes¶
type RecoveryBytes struct {PercentPercentage `json:"percent"`RecoveredByteSize `json:"recovered,omitempty"`RecoveredFromSnapshotByteSize `json:"recovered_from_snapshot,omitempty"`RecoveredFromSnapshotInBytesByteSize `json:"recovered_from_snapshot_in_bytes,omitempty"`RecoveredInBytesByteSize `json:"recovered_in_bytes"`ReusedByteSize `json:"reused,omitempty"`ReusedInBytesByteSize `json:"reused_in_bytes"`TotalByteSize `json:"total,omitempty"`TotalInBytesByteSize `json:"total_in_bytes"`}RecoveryBytes type.
funcNewRecoveryBytes¶added inv8.5.0
func NewRecoveryBytes() *RecoveryBytes
NewRecoveryBytes returns a RecoveryBytes.
func (*RecoveryBytes)UnmarshalJSON¶added inv8.7.1
func (s *RecoveryBytes) UnmarshalJSON(data []byte)error
typeRecoveryFiles¶
type RecoveryFiles struct {Details []FileDetails `json:"details,omitempty"`PercentPercentage `json:"percent"`Recoveredint64 `json:"recovered"`Reusedint64 `json:"reused"`Totalint64 `json:"total"`}RecoveryFiles type.
funcNewRecoveryFiles¶added inv8.5.0
func NewRecoveryFiles() *RecoveryFiles
NewRecoveryFiles returns a RecoveryFiles.
func (*RecoveryFiles)UnmarshalJSON¶added inv8.7.1
func (s *RecoveryFiles) UnmarshalJSON(data []byte)error
typeRecoveryIndexStatus¶
type RecoveryIndexStatus struct {Bytes *RecoveryBytes `json:"bytes,omitempty"`FilesRecoveryFiles `json:"files"`SizeRecoveryBytes `json:"size"`SourceThrottleTimeDuration `json:"source_throttle_time,omitempty"`SourceThrottleTimeInMillisint64 `json:"source_throttle_time_in_millis"`TargetThrottleTimeDuration `json:"target_throttle_time,omitempty"`TargetThrottleTimeInMillisint64 `json:"target_throttle_time_in_millis"`TotalTimeDuration `json:"total_time,omitempty"`TotalTimeInMillisint64 `json:"total_time_in_millis"`}RecoveryIndexStatus type.
funcNewRecoveryIndexStatus¶added inv8.5.0
func NewRecoveryIndexStatus() *RecoveryIndexStatus
NewRecoveryIndexStatus returns a RecoveryIndexStatus.
func (*RecoveryIndexStatus)UnmarshalJSON¶added inv8.7.1
func (s *RecoveryIndexStatus) UnmarshalJSON(data []byte)error
typeRecoveryOrigin¶
type RecoveryOrigin struct {BootstrapNewHistoryUuid *bool `json:"bootstrap_new_history_uuid,omitempty"`Host *string `json:"host,omitempty"`Hostname *string `json:"hostname,omitempty"`Id *string `json:"id,omitempty"`Index *string `json:"index,omitempty"`Ip *string `json:"ip,omitempty"`Name *string `json:"name,omitempty"`Repository *string `json:"repository,omitempty"`RestoreUUID *string `json:"restoreUUID,omitempty"`Snapshot *string `json:"snapshot,omitempty"`TransportAddress *string `json:"transport_address,omitempty"`Version *string `json:"version,omitempty"`}RecoveryOrigin type.
funcNewRecoveryOrigin¶added inv8.5.0
func NewRecoveryOrigin() *RecoveryOrigin
NewRecoveryOrigin returns a RecoveryOrigin.
func (*RecoveryOrigin)UnmarshalJSON¶added inv8.7.1
func (s *RecoveryOrigin) UnmarshalJSON(data []byte)error
typeRecoveryRecord¶
type RecoveryRecord struct {// Bytes The number of bytes to recover.Bytes *string `json:"bytes,omitempty"`// BytesPercent The ratio of bytes recovered.BytesPercentPercentage `json:"bytes_percent,omitempty"`// BytesRecovered The bytes recovered.BytesRecovered *string `json:"bytes_recovered,omitempty"`// BytesTotal The total number of bytes.BytesTotal *string `json:"bytes_total,omitempty"`// Files The number of files to recover.Files *string `json:"files,omitempty"`// FilesPercent The ratio of files recovered.FilesPercentPercentage `json:"files_percent,omitempty"`// FilesRecovered The files recovered.FilesRecovered *string `json:"files_recovered,omitempty"`// FilesTotal The total number of files.FilesTotal *string `json:"files_total,omitempty"`// Index The index name.Index *string `json:"index,omitempty"`// Repository The repository name.Repository *string `json:"repository,omitempty"`// Shard The shard name.Shard *string `json:"shard,omitempty"`// Snapshot The snapshot name.Snapshot *string `json:"snapshot,omitempty"`// SourceHost The source host.SourceHost *string `json:"source_host,omitempty"`// SourceNode The source node name.SourceNode *string `json:"source_node,omitempty"`// Stage The recovery stage.Stage *string `json:"stage,omitempty"`// StartTime The recovery start time.StartTimeDateTime `json:"start_time,omitempty"`// StartTimeMillis The recovery start time in epoch milliseconds.StartTimeMillis *int64 `json:"start_time_millis,omitempty"`// StopTime The recovery stop time.StopTimeDateTime `json:"stop_time,omitempty"`// StopTimeMillis The recovery stop time in epoch milliseconds.StopTimeMillis *int64 `json:"stop_time_millis,omitempty"`// TargetHost The target host.TargetHost *string `json:"target_host,omitempty"`// TargetNode The target node name.TargetNode *string `json:"target_node,omitempty"`// Time The recovery time.TimeDuration `json:"time,omitempty"`// TranslogOps The number of translog operations to recover.TranslogOps *string `json:"translog_ops,omitempty"`// TranslogOpsPercent The ratio of translog operations recovered.TranslogOpsPercentPercentage `json:"translog_ops_percent,omitempty"`// TranslogOpsRecovered The translog operations recovered.TranslogOpsRecovered *string `json:"translog_ops_recovered,omitempty"`// Type The recovery type.Type *string `json:"type,omitempty"`}RecoveryRecord type.
funcNewRecoveryRecord¶added inv8.5.0
func NewRecoveryRecord() *RecoveryRecord
NewRecoveryRecord returns a RecoveryRecord.
func (*RecoveryRecord)UnmarshalJSON¶added inv8.7.1
func (s *RecoveryRecord) UnmarshalJSON(data []byte)error
typeRecoveryStartStatus¶
type RecoveryStartStatus struct {CheckIndexTimeDuration `json:"check_index_time,omitempty"`CheckIndexTimeInMillisint64 `json:"check_index_time_in_millis"`TotalTimeDuration `json:"total_time,omitempty"`TotalTimeInMillisint64 `json:"total_time_in_millis"`}RecoveryStartStatus type.
funcNewRecoveryStartStatus¶added inv8.5.0
func NewRecoveryStartStatus() *RecoveryStartStatus
NewRecoveryStartStatus returns a RecoveryStartStatus.
func (*RecoveryStartStatus)UnmarshalJSON¶added inv8.7.1
func (s *RecoveryStartStatus) UnmarshalJSON(data []byte)error
typeRecoveryStats¶
type RecoveryStats struct {CurrentAsSourceint64 `json:"current_as_source"`CurrentAsTargetint64 `json:"current_as_target"`ThrottleTimeDuration `json:"throttle_time,omitempty"`ThrottleTimeInMillisint64 `json:"throttle_time_in_millis"`}RecoveryStats type.
funcNewRecoveryStats¶added inv8.5.0
func NewRecoveryStats() *RecoveryStats
NewRecoveryStats returns a RecoveryStats.
func (*RecoveryStats)UnmarshalJSON¶added inv8.7.1
func (s *RecoveryStats) UnmarshalJSON(data []byte)error
typeRecoveryStatus¶
type RecoveryStatus struct {Shards []ShardRecovery `json:"shards"`}RecoveryStatus type.
funcNewRecoveryStatus¶added inv8.5.0
func NewRecoveryStatus() *RecoveryStatus
NewRecoveryStatus returns a RecoveryStatus.
typeRedact¶added inv8.16.0
type Redact struct {// IsRedacted_ indicates if document has been redactedIsRedacted_bool `json:"_is_redacted"`}Redact type.
func (*Redact)UnmarshalJSON¶added inv8.16.0
typeRedactProcessor¶added inv8.16.0
type RedactProcessor struct {// Description Description of the processor.// Useful for describing the purpose of the processor or its configuration.Description *string `json:"description,omitempty"`// Field The field to be redactedFieldstring `json:"field"`// If Conditionally execute the processor.If *string `json:"if,omitempty"`// IgnoreFailure Ignore failures for the processor.IgnoreFailure *bool `json:"ignore_failure,omitempty"`// IgnoreMissing If `true` and `field` does not exist or is `null`, the processor quietly// exits without modifying the document.IgnoreMissing *bool `json:"ignore_missing,omitempty"`// OnFailure Handle failures for the processor.OnFailure []ProcessorContainer `json:"on_failure,omitempty"`PatternDefinitions map[string]string `json:"pattern_definitions,omitempty"`// Patterns A list of grok expressions to match and redact named captures withPatterns []string `json:"patterns"`// Prefix Start a redacted section with this tokenPrefix *string `json:"prefix,omitempty"`// SkipIfUnlicensed If `true` and the current license does not support running redact processors,// then the processor quietly exits without modifying the documentSkipIfUnlicensed *bool `json:"skip_if_unlicensed,omitempty"`// Suffix End a redacted section with this tokenSuffix *string `json:"suffix,omitempty"`// Tag Identifier for the processor.// Useful for debugging and metrics.Tag *string `json:"tag,omitempty"`// TraceRedact If `true` then ingest metadata `_ingest._redact._is_redacted` is set to// `true` if the document has been redactedTraceRedact *bool `json:"trace_redact,omitempty"`}RedactProcessor type.
funcNewRedactProcessor¶added inv8.16.0
func NewRedactProcessor() *RedactProcessor
NewRedactProcessor returns a RedactProcessor.
func (*RedactProcessor)UnmarshalJSON¶added inv8.16.0
func (s *RedactProcessor) UnmarshalJSON(data []byte)error
typeRefreshStats¶
type RefreshStats struct {ExternalTotalint64 `json:"external_total"`ExternalTotalTimeInMillisint64 `json:"external_total_time_in_millis"`Listenersint64 `json:"listeners"`Totalint64 `json:"total"`TotalTimeDuration `json:"total_time,omitempty"`TotalTimeInMillisint64 `json:"total_time_in_millis"`}RefreshStats type.
funcNewRefreshStats¶added inv8.5.0
func NewRefreshStats() *RefreshStats
NewRefreshStats returns a RefreshStats.
func (*RefreshStats)UnmarshalJSON¶added inv8.7.1
func (s *RefreshStats) UnmarshalJSON(data []byte)error
typeRegexOptions¶added inv8.7.1
type RegexOptions struct {// Flags Optional operators for the regular expression.Flags *string `json:"flags,omitempty"`// MaxDeterminizedStates Maximum number of automaton states required for the query.MaxDeterminizedStates *int `json:"max_determinized_states,omitempty"`}RegexOptions type.
funcNewRegexOptions¶added inv8.7.1
func NewRegexOptions() *RegexOptions
NewRegexOptions returns a RegexOptions.
func (*RegexOptions)UnmarshalJSON¶added inv8.7.1
func (s *RegexOptions) UnmarshalJSON(data []byte)error
typeRegexValidation¶added inv8.15.0
type RegexValidation struct {Constraintstring `json:"constraint"`Typestring `json:"type,omitempty"`}RegexValidation type.
funcNewRegexValidation¶added inv8.15.0
func NewRegexValidation() *RegexValidation
NewRegexValidation returns a RegexValidation.
func (RegexValidation)MarshalJSON¶added inv8.15.0
func (sRegexValidation) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*RegexValidation)UnmarshalJSON¶added inv8.15.0
func (s *RegexValidation) UnmarshalJSON(data []byte)error
typeRegexpQuery¶
type RegexpQuery struct {// Boost Floating point number used to decrease or increase the relevance scores of// the query.// Boost values are relative to the default value of 1.0.// A boost value between 0 and 1.0 decreases the relevance score.// A value greater than 1.0 increases the relevance score.Boost *float32 `json:"boost,omitempty"`// CaseInsensitive Allows case insensitive matching of the regular expression value with the// indexed field values when set to `true`.// When `false`, case sensitivity of matching depends on the underlying field’s// mapping.CaseInsensitive *bool `json:"case_insensitive,omitempty"`// Flags Enables optional operators for the regular expression.Flags *string `json:"flags,omitempty"`// MaxDeterminizedStates Maximum number of automaton states required for the query.MaxDeterminizedStates *int `json:"max_determinized_states,omitempty"`QueryName_ *string `json:"_name,omitempty"`// Rewrite Method used to rewrite the query.Rewrite *string `json:"rewrite,omitempty"`// Value Regular expression for terms you wish to find in the provided field.Valuestring `json:"value"`}RegexpQuery type.
funcNewRegexpQuery¶added inv8.5.0
func NewRegexpQuery() *RegexpQuery
NewRegexpQuery returns a RegexpQuery.
func (*RegexpQuery)UnmarshalJSON¶added inv8.7.1
func (s *RegexpQuery) UnmarshalJSON(data []byte)error
typeRegisteredDomainProcessor¶added inv8.16.0
type RegisteredDomainProcessor struct {// Description Description of the processor.// Useful for describing the purpose of the processor or its configuration.Description *string `json:"description,omitempty"`// Field Field containing the source FQDN.Fieldstring `json:"field"`// If Conditionally execute the processor.If *string `json:"if,omitempty"`// IgnoreFailure Ignore failures for the processor.IgnoreFailure *bool `json:"ignore_failure,omitempty"`// IgnoreMissing If true and any required fields are missing, the processor quietly exits// without modifying the document.IgnoreMissing *bool `json:"ignore_missing,omitempty"`// OnFailure Handle failures for the processor.OnFailure []ProcessorContainer `json:"on_failure,omitempty"`// Tag Identifier for the processor.// Useful for debugging and metrics.Tag *string `json:"tag,omitempty"`// TargetField Object field containing extracted domain components. If an empty string,// the processor adds components to the document’s root.TargetField *string `json:"target_field,omitempty"`}RegisteredDomainProcessor type.
funcNewRegisteredDomainProcessor¶added inv8.16.0
func NewRegisteredDomainProcessor() *RegisteredDomainProcessor
NewRegisteredDomainProcessor returns a RegisteredDomainProcessor.
func (*RegisteredDomainProcessor)UnmarshalJSON¶added inv8.16.0
func (s *RegisteredDomainProcessor) UnmarshalJSON(data []byte)error
typeRegressionInferenceOptions¶
type RegressionInferenceOptions struct {// NumTopFeatureImportanceValues Specifies the maximum number of feature importance values per document.NumTopFeatureImportanceValues *int `json:"num_top_feature_importance_values,omitempty"`// ResultsField The field that is added to incoming documents to contain the inference// prediction. Defaults to predicted_value.ResultsField *string `json:"results_field,omitempty"`}RegressionInferenceOptions type.
funcNewRegressionInferenceOptions¶added inv8.5.0
func NewRegressionInferenceOptions() *RegressionInferenceOptions
NewRegressionInferenceOptions returns a RegressionInferenceOptions.
func (*RegressionInferenceOptions)UnmarshalJSON¶added inv8.7.1
func (s *RegressionInferenceOptions) UnmarshalJSON(data []byte)error
typeReindexDestination¶added inv8.5.0
type ReindexDestination struct {// Index The name of the data stream, index, or index alias you are copying to.Indexstring `json:"index"`// OpType If it is `create`, the operation will only index documents that do not// already exist (also known as "put if absent").//// IMPORTANT: To reindex to a data stream destination, this argument must be// `create`.OpType *optype.OpType `json:"op_type,omitempty"`// Pipeline The name of the pipeline to use.Pipeline *string `json:"pipeline,omitempty"`// Routing By default, a document's routing is preserved unless it's changed by the// script.// If it is `keep`, the routing on the bulk request sent for each match is set// to the routing on the match.// If it is `discard`, the routing on the bulk request sent for each match is// set to `null`.// If it is `=value`, the routing on the bulk request sent for each match is set// to all value specified after the equals sign (`=`).Routing *string `json:"routing,omitempty"`// VersionType The versioning to use for the indexing operation.VersionType *versiontype.VersionType `json:"version_type,omitempty"`}ReindexDestination type.
funcNewReindexDestination¶added inv8.5.0
func NewReindexDestination() *ReindexDestination
NewReindexDestination returns a ReindexDestination.
func (*ReindexDestination)UnmarshalJSON¶added inv8.7.1
func (s *ReindexDestination) UnmarshalJSON(data []byte)error
typeReindexNode¶
type ReindexNode struct {Attributes map[string]string `json:"attributes"`Hoststring `json:"host"`Ipstring `json:"ip"`Namestring `json:"name"`Roles []noderole.NodeRole `json:"roles,omitempty"`Tasks map[string]ReindexTask `json:"tasks"`TransportAddressstring `json:"transport_address"`}ReindexNode type.
funcNewReindexNode¶added inv8.5.0
func NewReindexNode() *ReindexNode
NewReindexNode returns a ReindexNode.
func (*ReindexNode)UnmarshalJSON¶added inv8.7.1
func (s *ReindexNode) UnmarshalJSON(data []byte)error
typeReindexSource¶added inv8.5.0
type ReindexSource struct {// Index The name of the data stream, index, or alias you are copying from.// It accepts a comma-separated list to reindex from multiple sources.Index []string `json:"index"`// Query The documents to reindex, which is defined with Query DSL.Query *Query `json:"query,omitempty"`// Remote A remote instance of Elasticsearch that you want to index from.Remote *RemoteSource `json:"remote,omitempty"`RuntimeMappingsRuntimeFields `json:"runtime_mappings,omitempty"`// Size The number of documents to index per batch.// Use it when you are indexing from remote to ensure that the batches fit// within the on-heap buffer, which defaults to a maximum size of 100 MB.Size *int `json:"size,omitempty"`// Slice Slice the reindex request manually using the provided slice ID and total// number of slices.Slice *SlicedScroll `json:"slice,omitempty"`// Sort A comma-separated list of `<field>:<direction>` pairs to sort by before// indexing.// Use it in conjunction with `max_docs` to control what documents are// reindexed.//// WARNING: Sort in reindex is deprecated.// Sorting in reindex was never guaranteed to index documents in order and// prevents further development of reindex such as resilience and performance// improvements.// If used in combination with `max_docs`, consider using a query filter// instead.Sort []SortCombinations `json:"sort,omitempty"`// SourceFields_ If `true`, reindex all source fields.// Set it to a list to reindex select fields.SourceFields_ []string `json:"_source,omitempty"`}ReindexSource type.
funcNewReindexSource¶added inv8.5.0
func NewReindexSource() *ReindexSource
NewReindexSource returns a ReindexSource.
func (*ReindexSource)UnmarshalJSON¶added inv8.7.1
func (s *ReindexSource) UnmarshalJSON(data []byte)error
typeReindexStatus¶
type ReindexStatus struct {// Batches The number of scroll responses pulled back by the reindex.Batchesint64 `json:"batches"`// Created The number of documents that were successfully created.Createdint64 `json:"created"`// Deleted The number of documents that were successfully deleted.Deletedint64 `json:"deleted"`// Noops The number of documents that were ignored because the script used for the// reindex returned a `noop` value for `ctx.op`.Noopsint64 `json:"noops"`// RequestsPerSecond The number of requests per second effectively executed during the reindex.RequestsPerSecondfloat32 `json:"requests_per_second"`// Retries The number of retries attempted by reindex. `bulk` is the number of bulk// actions retried and `search` is the number of search actions retried.RetriesRetries `json:"retries"`ThrottledDuration `json:"throttled,omitempty"`// ThrottledMillis Number of milliseconds the request slept to conform to `requests_per_second`.ThrottledMillisint64 `json:"throttled_millis"`ThrottledUntilDuration `json:"throttled_until,omitempty"`// ThrottledUntilMillis This field should always be equal to zero in a `_reindex` response.// It only has meaning when using the Task API, where it indicates the next time// (in milliseconds since epoch) a throttled request will be executed again in// order to conform to `requests_per_second`.ThrottledUntilMillisint64 `json:"throttled_until_millis"`// Total The number of documents that were successfully processed.Totalint64 `json:"total"`// Updated The number of documents that were successfully updated, for example, a// document with same ID already existed prior to reindex updating it.Updatedint64 `json:"updated"`// VersionConflicts The number of version conflicts that reindex hits.VersionConflictsint64 `json:"version_conflicts"`}ReindexStatus type.
funcNewReindexStatus¶added inv8.5.0
func NewReindexStatus() *ReindexStatus
NewReindexStatus returns a ReindexStatus.
func (*ReindexStatus)UnmarshalJSON¶added inv8.7.1
func (s *ReindexStatus) UnmarshalJSON(data []byte)error
typeReindexTask¶
type ReindexTask struct {Actionstring `json:"action"`Cancellablebool `json:"cancellable"`Descriptionstring `json:"description"`HeadersHttpHeaders `json:"headers"`Idint64 `json:"id"`Nodestring `json:"node"`RunningTimeInNanosint64 `json:"running_time_in_nanos"`StartTimeInMillisint64 `json:"start_time_in_millis"`StatusReindexStatus `json:"status"`Typestring `json:"type"`}ReindexTask type.
funcNewReindexTask¶added inv8.5.0
func NewReindexTask() *ReindexTask
NewReindexTask returns a ReindexTask.
func (*ReindexTask)UnmarshalJSON¶added inv8.7.1
func (s *ReindexTask) UnmarshalJSON(data []byte)error
typeReloadDetails¶
type ReloadDetails struct {Indexstring `json:"index"`ReloadedAnalyzers []string `json:"reloaded_analyzers"`ReloadedNodeIds []string `json:"reloaded_node_ids"`}ReloadDetails type.
funcNewReloadDetails¶added inv8.5.0
func NewReloadDetails() *ReloadDetails
NewReloadDetails returns a ReloadDetails.
func (*ReloadDetails)UnmarshalJSON¶added inv8.9.0
func (s *ReloadDetails) UnmarshalJSON(data []byte)error
typeReloadResult¶added inv8.10.0
type ReloadResult struct {ReloadDetails []ReloadDetails `json:"reload_details"`Shards_ShardStatistics `json:"_shards"`}ReloadResult type.
funcNewReloadResult¶added inv8.10.0
func NewReloadResult() *ReloadResult
NewReloadResult returns a ReloadResult.
typeRelocationFailureInfo¶added inv8.7.0
type RelocationFailureInfo struct {FailedAttemptsint `json:"failed_attempts"`}RelocationFailureInfo type.
funcNewRelocationFailureInfo¶added inv8.7.0
func NewRelocationFailureInfo() *RelocationFailureInfo
NewRelocationFailureInfo returns a RelocationFailureInfo.
func (*RelocationFailureInfo)UnmarshalJSON¶added inv8.7.1
func (s *RelocationFailureInfo) UnmarshalJSON(data []byte)error
typeRemoteClusterInfo¶added inv8.18.1
type RemoteClusterInfo struct {// ClusterUuid The UUID of the remote cluster.ClusterUuidstring `json:"cluster_uuid"`// IndicesCount The total number of indices in the remote cluster.IndicesCountint `json:"indices_count"`// IndicesTotalSize Total data set size of all shards assigned to selected nodes, as a// human-readable string.IndicesTotalSize *string `json:"indices_total_size,omitempty"`// IndicesTotalSizeInBytes Total data set size, in bytes, of all shards assigned to selected nodes.IndicesTotalSizeInBytesint64 `json:"indices_total_size_in_bytes"`// MaxHeap Maximum amount of memory available for use by the heap across the nodes of// the remote cluster, as a human-readable string.MaxHeap *string `json:"max_heap,omitempty"`// MaxHeapInBytes Maximum amount of memory, in bytes, available for use by the heap across the// nodes of the remote cluster.MaxHeapInBytesint64 `json:"max_heap_in_bytes"`// MemTotal Total amount of physical memory across the nodes of the remote cluster, as a// human-readable string.MemTotal *string `json:"mem_total,omitempty"`// MemTotalInBytes Total amount, in bytes, of physical memory across the nodes of the remote// cluster.MemTotalInBytesint64 `json:"mem_total_in_bytes"`// Mode The connection mode used to communicate with the remote cluster.Modestring `json:"mode"`// NodesCount The total count of nodes in the remote cluster.NodesCountint `json:"nodes_count"`// ShardsCount The total number of shards in the remote cluster.ShardsCountint `json:"shards_count"`// SkipUnavailable The `skip_unavailable` setting used for this remote cluster.SkipUnavailablebool `json:"skip_unavailable"`// Status Health status of the cluster, based on the state of its primary and replica// shards.Statushealthstatus.HealthStatus `json:"status"`// TransportCompress Transport compression setting used for this remote cluster.TransportCompressstring `json:"transport.compress"`// Version The list of Elasticsearch versions used by the nodes on the remote cluster.Version []string `json:"version"`}RemoteClusterInfo type.
funcNewRemoteClusterInfo¶added inv8.18.1
func NewRemoteClusterInfo() *RemoteClusterInfo
NewRemoteClusterInfo returns a RemoteClusterInfo.
func (*RemoteClusterInfo)UnmarshalJSON¶added inv8.18.1
func (s *RemoteClusterInfo) UnmarshalJSON(data []byte)error
typeRemoteClusterPrivileges¶added inv8.17.0
type RemoteClusterPrivileges struct {// Clusters A list of cluster aliases to which the permissions in this entry apply.Clusters []string `json:"clusters"`// Privileges The cluster level privileges that owners of the role have on the remote// cluster.Privileges []remoteclusterprivilege.RemoteClusterPrivilege `json:"privileges"`}RemoteClusterPrivileges type.
funcNewRemoteClusterPrivileges¶added inv8.17.0
func NewRemoteClusterPrivileges() *RemoteClusterPrivileges
NewRemoteClusterPrivileges returns a RemoteClusterPrivileges.
func (*RemoteClusterPrivileges)UnmarshalJSON¶added inv8.17.0
func (s *RemoteClusterPrivileges) UnmarshalJSON(data []byte)error
typeRemoteIndicesPrivileges¶added inv8.16.0
type RemoteIndicesPrivileges struct {// AllowRestrictedIndices Set to `true` if using wildcard or regular expressions for patterns that// cover restricted indices. Implicitly, restricted indices have limited// privileges that can cause pattern tests to fail. If restricted indices are// explicitly included in the `names` list, Elasticsearch checks privileges// against these indices regardless of the value set for// `allow_restricted_indices`.AllowRestrictedIndices *bool `json:"allow_restricted_indices,omitempty"`// Clusters A list of cluster aliases to which the permissions in this entry apply.Clusters []string `json:"clusters"`// FieldSecurity The document fields that the owners of the role have read access to.FieldSecurity *FieldSecurity `json:"field_security,omitempty"`// Names A list of indices (or index name patterns) to which the permissions in this// entry apply.Names []string `json:"names"`// Privileges The index level privileges that owners of the role have on the specified// indices.Privileges []indexprivilege.IndexPrivilege `json:"privileges"`// Query A search query that defines the documents the owners of the role have access// to. A document within the specified indices must match this query for it to// be accessible by the owners of the role.QueryIndicesPrivilegesQuery `json:"query,omitempty"`}RemoteIndicesPrivileges type.
funcNewRemoteIndicesPrivileges¶added inv8.16.0
func NewRemoteIndicesPrivileges() *RemoteIndicesPrivileges
NewRemoteIndicesPrivileges returns a RemoteIndicesPrivileges.
func (*RemoteIndicesPrivileges)UnmarshalJSON¶added inv8.16.0
func (s *RemoteIndicesPrivileges) UnmarshalJSON(data []byte)error
typeRemoteSource¶
type RemoteSource struct {// ConnectTimeout The remote connection timeout.ConnectTimeoutDuration `json:"connect_timeout,omitempty"`// Headers An object containing the headers of the request.Headers map[string]string `json:"headers,omitempty"`// Host The URL for the remote instance of Elasticsearch that you want to index from.// This information is required when you're indexing from remote.Hoststring `json:"host"`// Password The password to use for authentication with the remote host.Password *string `json:"password,omitempty"`// SocketTimeout The remote socket read timeout.SocketTimeoutDuration `json:"socket_timeout,omitempty"`// Username The username to use for authentication with the remote host.Username *string `json:"username,omitempty"`}RemoteSource type.
funcNewRemoteSource¶added inv8.5.0
func NewRemoteSource() *RemoteSource
NewRemoteSource returns a RemoteSource.
func (*RemoteSource)UnmarshalJSON¶added inv8.7.1
func (s *RemoteSource) UnmarshalJSON(data []byte)error
typeRemoteUserIndicesPrivileges¶added inv8.18.0
type RemoteUserIndicesPrivileges struct {// AllowRestrictedIndices Set to `true` if using wildcard or regular expressions for patterns that// cover restricted indices. Implicitly, restricted indices have limited// privileges that can cause pattern tests to fail. If restricted indices are// explicitly included in the `names` list, Elasticsearch checks privileges// against these indices regardless of the value set for// `allow_restricted_indices`.AllowRestrictedIndicesbool `json:"allow_restricted_indices"`Clusters []string `json:"clusters"`// FieldSecurity The document fields that the owners of the role have read access to.FieldSecurity []FieldSecurity `json:"field_security,omitempty"`// Names A list of indices (or index name patterns) to which the permissions in this// entry apply.Names []string `json:"names"`// Privileges The index level privileges that owners of the role have on the specified// indices.Privileges []indexprivilege.IndexPrivilege `json:"privileges"`// Query Search queries that define the documents the user has access to. A document// within the specified indices must match these queries for it to be accessible// by the owners of the role.Query []IndicesPrivilegesQuery `json:"query,omitempty"`}RemoteUserIndicesPrivileges type.
funcNewRemoteUserIndicesPrivileges¶added inv8.18.0
func NewRemoteUserIndicesPrivileges() *RemoteUserIndicesPrivileges
NewRemoteUserIndicesPrivileges returns a RemoteUserIndicesPrivileges.
func (*RemoteUserIndicesPrivileges)UnmarshalJSON¶added inv8.18.0
func (s *RemoteUserIndicesPrivileges) UnmarshalJSON(data []byte)error
typeRemoveAction¶
type RemoveAction struct {// Alias Alias for the action.// Index alias names support date math.Alias *string `json:"alias,omitempty"`// Aliases Aliases for the action.// Index alias names support date math.Aliases []string `json:"aliases,omitempty"`// Index Data stream or index for the action.// Supports wildcards (`*`).Index *string `json:"index,omitempty"`// Indices Data streams or indices for the action.// Supports wildcards (`*`).Indices []string `json:"indices,omitempty"`// MustExist If `true`, the alias must exist to perform the action.MustExist *bool `json:"must_exist,omitempty"`}RemoveAction type.
funcNewRemoveAction¶added inv8.5.0
func NewRemoveAction() *RemoveAction
NewRemoveAction returns a RemoveAction.
func (*RemoveAction)UnmarshalJSON¶added inv8.7.1
func (s *RemoveAction) UnmarshalJSON(data []byte)error
typeRemoveClusterServer¶added inv8.19.0
type RemoveClusterServer struct {BoundAddress []string `json:"bound_address"`PublishAddressstring `json:"publish_address"`}RemoveClusterServer type.
funcNewRemoveClusterServer¶added inv8.19.0
func NewRemoveClusterServer() *RemoveClusterServer
NewRemoveClusterServer returns a RemoveClusterServer.
func (*RemoveClusterServer)UnmarshalJSON¶added inv8.19.0
func (s *RemoveClusterServer) UnmarshalJSON(data []byte)error
typeRemoveDuplicatesTokenFilter¶
type RemoveDuplicatesTokenFilter struct {Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}RemoveDuplicatesTokenFilter type.
funcNewRemoveDuplicatesTokenFilter¶added inv8.5.0
func NewRemoveDuplicatesTokenFilter() *RemoveDuplicatesTokenFilter
NewRemoveDuplicatesTokenFilter returns a RemoveDuplicatesTokenFilter.
func (RemoveDuplicatesTokenFilter)MarshalJSON¶added inv8.9.0
func (sRemoveDuplicatesTokenFilter) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*RemoveDuplicatesTokenFilter)UnmarshalJSON¶added inv8.7.1
func (s *RemoveDuplicatesTokenFilter) UnmarshalJSON(data []byte)error
typeRemoveIndexAction¶
type RemoveIndexAction struct {// Index Data stream or index for the action.// Supports wildcards (`*`).Index *string `json:"index,omitempty"`// Indices Data streams or indices for the action.// Supports wildcards (`*`).Indices []string `json:"indices,omitempty"`// MustExist If `true`, the alias must exist to perform the action.MustExist *bool `json:"must_exist,omitempty"`}RemoveIndexAction type.
funcNewRemoveIndexAction¶added inv8.5.0
func NewRemoveIndexAction() *RemoveIndexAction
NewRemoveIndexAction returns a RemoveIndexAction.
func (*RemoveIndexAction)UnmarshalJSON¶added inv8.7.1
func (s *RemoveIndexAction) UnmarshalJSON(data []byte)error
typeRemoveProcessor¶
type RemoveProcessor struct {// Description Description of the processor.// Useful for describing the purpose of the processor or its configuration.Description *string `json:"description,omitempty"`// Field Fields to be removed. Supports template snippets.Field []string `json:"field"`// If Conditionally execute the processor.If *string `json:"if,omitempty"`// IgnoreFailure Ignore failures for the processor.IgnoreFailure *bool `json:"ignore_failure,omitempty"`// IgnoreMissing If `true` and `field` does not exist or is `null`, the processor quietly// exits without modifying the document.IgnoreMissing *bool `json:"ignore_missing,omitempty"`// Keep Fields to be kept. When set, all fields other than those specified are// removed.Keep []string `json:"keep,omitempty"`// OnFailure Handle failures for the processor.OnFailure []ProcessorContainer `json:"on_failure,omitempty"`// Tag Identifier for the processor.// Useful for debugging and metrics.Tag *string `json:"tag,omitempty"`}RemoveProcessor type.
funcNewRemoveProcessor¶added inv8.5.0
func NewRemoveProcessor() *RemoveProcessor
NewRemoveProcessor returns a RemoveProcessor.
func (*RemoveProcessor)UnmarshalJSON¶added inv8.7.1
func (s *RemoveProcessor) UnmarshalJSON(data []byte)error
typeRenameProcessor¶
type RenameProcessor struct {// Description Description of the processor.// Useful for describing the purpose of the processor or its configuration.Description *string `json:"description,omitempty"`// Field The field to be renamed.// Supports template snippets.Fieldstring `json:"field"`// If Conditionally execute the processor.If *string `json:"if,omitempty"`// IgnoreFailure Ignore failures for the processor.IgnoreFailure *bool `json:"ignore_failure,omitempty"`// IgnoreMissing If `true` and `field` does not exist, the processor quietly exits without// modifying the document.IgnoreMissing *bool `json:"ignore_missing,omitempty"`// OnFailure Handle failures for the processor.OnFailure []ProcessorContainer `json:"on_failure,omitempty"`// Tag Identifier for the processor.// Useful for debugging and metrics.Tag *string `json:"tag,omitempty"`// TargetField The new name of the field.// Supports template snippets.TargetFieldstring `json:"target_field"`}RenameProcessor type.
funcNewRenameProcessor¶added inv8.5.0
func NewRenameProcessor() *RenameProcessor
NewRenameProcessor returns a RenameProcessor.
func (*RenameProcessor)UnmarshalJSON¶added inv8.7.1
func (s *RenameProcessor) UnmarshalJSON(data []byte)error
typeReplicationAccess¶added inv8.17.0
type ReplicationAccess struct {// AllowRestrictedIndices This needs to be set to true if the patterns in the names field should cover// system indices.AllowRestrictedIndices *bool `json:"allow_restricted_indices,omitempty"`// Names A list of indices (or index name patterns) to which the permissions in this// entry apply.Names []string `json:"names"`}ReplicationAccess type.
funcNewReplicationAccess¶added inv8.17.0
func NewReplicationAccess() *ReplicationAccess
NewReplicationAccess returns a ReplicationAccess.
func (*ReplicationAccess)UnmarshalJSON¶added inv8.17.0
func (s *ReplicationAccess) UnmarshalJSON(data []byte)error
typeReportingEmailAttachment¶
type ReportingEmailAttachment struct {Inline *bool `json:"inline,omitempty"`IntervalDuration `json:"interval,omitempty"`Request *HttpInputRequestDefinition `json:"request,omitempty"`Retries *int `json:"retries,omitempty"`Urlstring `json:"url"`}ReportingEmailAttachment type.
funcNewReportingEmailAttachment¶added inv8.5.0
func NewReportingEmailAttachment() *ReportingEmailAttachment
NewReportingEmailAttachment returns a ReportingEmailAttachment.
func (*ReportingEmailAttachment)UnmarshalJSON¶added inv8.7.1
func (s *ReportingEmailAttachment) UnmarshalJSON(data []byte)error
typeRepositoriesRecord¶
type RepositoriesRecord struct {// Id The unique repository identifier.Id *string `json:"id,omitempty"`// Type The repository type.Type *string `json:"type,omitempty"`}RepositoriesRecord type.
funcNewRepositoriesRecord¶added inv8.5.0
func NewRepositoriesRecord() *RepositoriesRecord
NewRepositoriesRecord returns a RepositoriesRecord.
func (*RepositoriesRecord)UnmarshalJSON¶added inv8.9.0
func (s *RepositoriesRecord) UnmarshalJSON(data []byte)error
typeRepository¶
type Repositoryany
Repository holds the union for the following types:
AzureRepositoryGcsRepositoryS3RepositorySharedFileSystemRepositoryReadOnlyUrlRepositorySourceOnlyRepository
typeRepositoryIntegrityIndicator¶added inv8.7.1
type RepositoryIntegrityIndicator struct {Details *RepositoryIntegrityIndicatorDetails `json:"details,omitempty"`Diagnosis []Diagnosis `json:"diagnosis,omitempty"`Impacts []Impact `json:"impacts,omitempty"`Statusindicatorhealthstatus.IndicatorHealthStatus `json:"status"`Symptomstring `json:"symptom"`}RepositoryIntegrityIndicator type.
funcNewRepositoryIntegrityIndicator¶added inv8.7.1
func NewRepositoryIntegrityIndicator() *RepositoryIntegrityIndicator
NewRepositoryIntegrityIndicator returns a RepositoryIntegrityIndicator.
func (*RepositoryIntegrityIndicator)UnmarshalJSON¶added inv8.9.0
func (s *RepositoryIntegrityIndicator) UnmarshalJSON(data []byte)error
typeRepositoryIntegrityIndicatorDetails¶added inv8.7.1
type RepositoryIntegrityIndicatorDetails struct {Corrupted []string `json:"corrupted,omitempty"`CorruptedRepositories *int64 `json:"corrupted_repositories,omitempty"`TotalRepositories *int64 `json:"total_repositories,omitempty"`}RepositoryIntegrityIndicatorDetails type.
funcNewRepositoryIntegrityIndicatorDetails¶added inv8.7.1
func NewRepositoryIntegrityIndicatorDetails() *RepositoryIntegrityIndicatorDetails
NewRepositoryIntegrityIndicatorDetails returns a RepositoryIntegrityIndicatorDetails.
func (*RepositoryIntegrityIndicatorDetails)UnmarshalJSON¶added inv8.7.1
func (s *RepositoryIntegrityIndicatorDetails) UnmarshalJSON(data []byte)error
typeRepositoryLocation¶
type RepositoryLocation struct {BasePathstring `json:"base_path"`// Bucket Bucket name (GCP, S3)Bucket *string `json:"bucket,omitempty"`// Container Container name (Azure)Container *string `json:"container,omitempty"`}RepositoryLocation type.
funcNewRepositoryLocation¶added inv8.5.0
func NewRepositoryLocation() *RepositoryLocation
NewRepositoryLocation returns a RepositoryLocation.
func (*RepositoryLocation)UnmarshalJSON¶added inv8.9.0
func (s *RepositoryLocation) UnmarshalJSON(data []byte)error
typeRepositoryMeteringInformation¶
type RepositoryMeteringInformation struct {// Archived A flag that tells whether or not this object has been archived. When a// repository is closed or updated the// repository metering information is archived and kept for a certain period of// time. This allows retrieving the// repository metering information of previous repository instantiations.Archivedbool `json:"archived"`// ClusterVersion The cluster state version when this object was archived, this field can be// used as a logical timestamp to delete// all the archived metrics up to an observed version. This field is only// present for archived repository metering// information objects. The main purpose of this field is to avoid possible race// conditions during repository metering// information deletions, i.e. deleting archived repositories metering// information that we haven’t observed yet.ClusterVersion *int64 `json:"cluster_version,omitempty"`// RepositoryEphemeralId An identifier that changes every time the repository is updated.RepositoryEphemeralIdstring `json:"repository_ephemeral_id"`// RepositoryLocation Represents an unique location within the repository.RepositoryLocationRepositoryLocation `json:"repository_location"`// RepositoryName Repository name.RepositoryNamestring `json:"repository_name"`// RepositoryStartedAt Time the repository was created or updated. Recorded in milliseconds since// the Unix Epoch.RepositoryStartedAtint64 `json:"repository_started_at"`// RepositoryStoppedAt Time the repository was deleted or updated. Recorded in milliseconds since// the Unix Epoch.RepositoryStoppedAt *int64 `json:"repository_stopped_at,omitempty"`// RepositoryType Repository type.RepositoryTypestring `json:"repository_type"`// RequestCounts An object with the number of request performed against the repository grouped// by request type.RequestCountsRequestCounts `json:"request_counts"`}RepositoryMeteringInformation type.
funcNewRepositoryMeteringInformation¶added inv8.5.0
func NewRepositoryMeteringInformation() *RepositoryMeteringInformation
NewRepositoryMeteringInformation returns a RepositoryMeteringInformation.
func (*RepositoryMeteringInformation)UnmarshalJSON¶added inv8.7.1
func (s *RepositoryMeteringInformation) UnmarshalJSON(data []byte)error
typeRepositoryStatsCurrentCounts¶added inv8.19.0
type RepositoryStatsCurrentCounts struct {ActiveDeletionsint `json:"active_deletions"`Clonesint `json:"clones"`Deletionsint `json:"deletions"`Finalizationsint `json:"finalizations"`ShardsRepositoryStatsShards `json:"shards"`SnapshotDeletionsint `json:"snapshot_deletions"`Snapshotsint `json:"snapshots"`}RepositoryStatsCurrentCounts type.
funcNewRepositoryStatsCurrentCounts¶added inv8.19.0
func NewRepositoryStatsCurrentCounts() *RepositoryStatsCurrentCounts
NewRepositoryStatsCurrentCounts returns a RepositoryStatsCurrentCounts.
func (*RepositoryStatsCurrentCounts)UnmarshalJSON¶added inv8.19.0
func (s *RepositoryStatsCurrentCounts) UnmarshalJSON(data []byte)error
typeRepositoryStatsShards¶added inv8.19.0
type RepositoryStatsShards struct {Completeint `json:"complete"`Incompleteint `json:"incomplete"`States map[shardstate.ShardState]int `json:"states"`Totalint `json:"total"`}RepositoryStatsShards type.
funcNewRepositoryStatsShards¶added inv8.19.0
func NewRepositoryStatsShards() *RepositoryStatsShards
NewRepositoryStatsShards returns a RepositoryStatsShards.
func (*RepositoryStatsShards)UnmarshalJSON¶added inv8.19.0
func (s *RepositoryStatsShards) UnmarshalJSON(data []byte)error
typeRequestCacheStats¶
type RequestCacheStats struct {Evictionsint64 `json:"evictions"`HitCountint64 `json:"hit_count"`MemorySize *string `json:"memory_size,omitempty"`MemorySizeInBytesint64 `json:"memory_size_in_bytes"`MissCountint64 `json:"miss_count"`}RequestCacheStats type.
funcNewRequestCacheStats¶added inv8.5.0
func NewRequestCacheStats() *RequestCacheStats
NewRequestCacheStats returns a RequestCacheStats.
func (*RequestCacheStats)UnmarshalJSON¶added inv8.7.1
func (s *RequestCacheStats) UnmarshalJSON(data []byte)error
typeRequestChatCompletion¶added inv8.18.0
type RequestChatCompletion struct {// MaxCompletionTokens The upper bound limit for the number of tokens that can be generated for a// completion request.MaxCompletionTokens *int64 `json:"max_completion_tokens,omitempty"`// Messages A list of objects representing the conversation.// Requests should generally only add new messages from the user (role `user`).// The other message roles (`assistant`, `system`, or `tool`) should generally// only be copied from the response to a previous completion request, such that// the messages array is built up throughout a conversation.Messages []Message `json:"messages"`// Model The ID of the model to use.Model *string `json:"model,omitempty"`// Stop A sequence of strings to control when the model should stop generating// additional tokens.Stop []string `json:"stop,omitempty"`// Temperature The sampling temperature to use.Temperature *float32 `json:"temperature,omitempty"`// ToolChoice Controls which tool is called by the model.// String representation: One of `auto`, `none`, or `requrired`. `auto` allows// the model to choose between calling tools and generating a message. `none`// causes the model to not call any tools. `required` forces the model to call// one or more tools.// Example (object representation):// “`////{// "tool_choice": {// "type": "function",// "function": {// "name": "get_current_weather"// }// }//}//// “`ToolChoiceCompletionToolType `json:"tool_choice,omitempty"`// Tools A list of tools that the model can call.// Example:// “`////{// "tools": [// {// "type": "function",// "function": {// "name": "get_price_of_item",// "description": "Get the current price of an item",// "parameters": {// "type": "object",// "properties": {// "item": {// "id": "12345"// },// "unit": {// "type": "currency"// }// }// }// }// }// ]//}//// “`Tools []CompletionTool `json:"tools,omitempty"`// TopP Nucleus sampling, an alternative to sampling with temperature.TopP *float32 `json:"top_p,omitempty"`}RequestChatCompletion type.
funcNewRequestChatCompletion¶added inv8.18.0
func NewRequestChatCompletion() *RequestChatCompletion
NewRequestChatCompletion returns a RequestChatCompletion.
func (*RequestChatCompletion)UnmarshalJSON¶added inv8.18.0
func (s *RequestChatCompletion) UnmarshalJSON(data []byte)error
typeRequestCounts¶
type RequestCounts struct {// GetBlob Number of Get Blob requests (Azure)GetBlob *int64 `json:"GetBlob,omitempty"`// GetBlobProperties Number of Get Blob Properties requests (Azure)GetBlobProperties *int64 `json:"GetBlobProperties,omitempty"`// GetObject Number of get object requests (GCP, S3)GetObject *int64 `json:"GetObject,omitempty"`// InsertObject Number of insert object requests, including simple, multipart and resumable// uploads. Resumable uploads// can perform multiple http requests to insert a single object but they are// considered as a single request// since they are billed as an individual operation. (GCP)InsertObject *int64 `json:"InsertObject,omitempty"`// ListBlobs Number of List Blobs requests (Azure)ListBlobs *int64 `json:"ListBlobs,omitempty"`// ListObjects Number of list objects requests (GCP, S3)ListObjects *int64 `json:"ListObjects,omitempty"`// PutBlob Number of Put Blob requests (Azure)PutBlob *int64 `json:"PutBlob,omitempty"`// PutBlock Number of Put Block (Azure)PutBlock *int64 `json:"PutBlock,omitempty"`// PutBlockList Number of Put Block List requestsPutBlockList *int64 `json:"PutBlockList,omitempty"`// PutMultipartObject Number of Multipart requests, including CreateMultipartUpload, UploadPart and// CompleteMultipartUpload requests (S3)PutMultipartObject *int64 `json:"PutMultipartObject,omitempty"`// PutObject Number of PutObject requests (S3)PutObject *int64 `json:"PutObject,omitempty"`}RequestCounts type.
funcNewRequestCounts¶added inv8.5.0
func NewRequestCounts() *RequestCounts
NewRequestCounts returns a RequestCounts.
func (*RequestCounts)UnmarshalJSON¶added inv8.7.1
func (s *RequestCounts) UnmarshalJSON(data []byte)error
typeRequestItem¶added inv8.9.0
type RequestItemany
RequestItem holds the union for the following types:
MultisearchHeaderTemplateConfig
typeRerouteDecision¶
type RerouteDecision struct {Deciderstring `json:"decider"`Decisionstring `json:"decision"`Explanationstring `json:"explanation"`}RerouteDecision type.
funcNewRerouteDecision¶added inv8.5.0
func NewRerouteDecision() *RerouteDecision
NewRerouteDecision returns a RerouteDecision.
func (*RerouteDecision)UnmarshalJSON¶added inv8.9.0
func (s *RerouteDecision) UnmarshalJSON(data []byte)error
typeRerouteExplanation¶
type RerouteExplanation struct {Commandstring `json:"command"`Decisions []RerouteDecision `json:"decisions"`ParametersRerouteParameters `json:"parameters"`}RerouteExplanation type.
funcNewRerouteExplanation¶added inv8.5.0
func NewRerouteExplanation() *RerouteExplanation
NewRerouteExplanation returns a RerouteExplanation.
func (*RerouteExplanation)UnmarshalJSON¶added inv8.9.0
func (s *RerouteExplanation) UnmarshalJSON(data []byte)error
typeRerouteParameters¶
type RerouteParameters struct {AllowPrimarybool `json:"allow_primary"`FromNode *string `json:"from_node,omitempty"`Indexstring `json:"index"`Nodestring `json:"node"`Shardint `json:"shard"`ToNode *string `json:"to_node,omitempty"`}RerouteParameters type.
funcNewRerouteParameters¶added inv8.5.0
func NewRerouteParameters() *RerouteParameters
NewRerouteParameters returns a RerouteParameters.
func (*RerouteParameters)UnmarshalJSON¶added inv8.7.1
func (s *RerouteParameters) UnmarshalJSON(data []byte)error
typeRerouteProcessor¶added inv8.12.1
type RerouteProcessor struct {// Dataset Field references or a static value for the dataset part of the data stream// name.// In addition to the criteria for index names, cannot contain - and must be no// longer than 100 characters.// Example values are nginx.access and nginx.error.//// Supports field references with a mustache-like syntax (denoted as {{double}}// or {{{triple}}} curly braces).// When resolving field references, the processor replaces invalid characters// with _. Uses the <dataset> part// of the index name as a fallback if all field references resolve to a null,// missing, or non-string value.//// default {{data_stream.dataset}}Dataset []string `json:"dataset,omitempty"`// Description Description of the processor.// Useful for describing the purpose of the processor or its configuration.Description *string `json:"description,omitempty"`// Destination A static value for the target. Can’t be set when the dataset or namespace// option is set.Destination *string `json:"destination,omitempty"`// If Conditionally execute the processor.If *string `json:"if,omitempty"`// IgnoreFailure Ignore failures for the processor.IgnoreFailure *bool `json:"ignore_failure,omitempty"`// Namespace Field references or a static value for the namespace part of the data stream// name. See the criteria for// index names for allowed characters. Must be no longer than 100 characters.//// Supports field references with a mustache-like syntax (denoted as {{double}}// or {{{triple}}} curly braces).// When resolving field references, the processor replaces invalid characters// with _. Uses the <namespace> part// of the index name as a fallback if all field references resolve to a null,// missing, or non-string value.//// default {{data_stream.namespace}}Namespace []string `json:"namespace,omitempty"`// OnFailure Handle failures for the processor.OnFailure []ProcessorContainer `json:"on_failure,omitempty"`// Tag Identifier for the processor.// Useful for debugging and metrics.Tag *string `json:"tag,omitempty"`}RerouteProcessor type.
funcNewRerouteProcessor¶added inv8.12.1
func NewRerouteProcessor() *RerouteProcessor
NewRerouteProcessor returns a RerouteProcessor.
func (*RerouteProcessor)UnmarshalJSON¶added inv8.12.1
func (s *RerouteProcessor) UnmarshalJSON(data []byte)error
typeRescore¶
type Rescore struct {AdditionalRescoreProperty map[string]json.RawMessage `json:"-"`LearningToRank *LearningToRank `json:"learning_to_rank,omitempty"`Query *RescoreQuery `json:"query,omitempty"`WindowSize *int `json:"window_size,omitempty"`}Rescore type.
func (Rescore)MarshalJSON¶added inv8.18.0
MarhsalJSON overrides marshalling for types with additional properties
func (*Rescore)UnmarshalJSON¶added inv8.7.1
typeRescoreQuery¶
type RescoreQuery struct {// Query The query to use for rescoring.// This query is only run on the Top-K results returned by the `query` and// `post_filter` phases.QueryQuery `json:"rescore_query"`// QueryWeight Relative importance of the original query versus the rescore query.QueryWeight *Float64 `json:"query_weight,omitempty"`// RescoreQueryWeight Relative importance of the rescore query versus the original query.RescoreQueryWeight *Float64 `json:"rescore_query_weight,omitempty"`// ScoreMode Determines how scores are combined.ScoreMode *scoremode.ScoreMode `json:"score_mode,omitempty"`}RescoreQuery type.
funcNewRescoreQuery¶added inv8.5.0
func NewRescoreQuery() *RescoreQuery
NewRescoreQuery returns a RescoreQuery.
func (*RescoreQuery)UnmarshalJSON¶added inv8.7.1
func (s *RescoreQuery) UnmarshalJSON(data []byte)error
typeRescoreVector¶added inv8.18.0
type RescoreVector struct {// Oversample Applies the specified oversample factor to k on the approximate kNN searchOversamplefloat32 `json:"oversample"`}RescoreVector type.
funcNewRescoreVector¶added inv8.18.0
func NewRescoreVector() *RescoreVector
NewRescoreVector returns a RescoreVector.
func (*RescoreVector)UnmarshalJSON¶added inv8.18.0
func (s *RescoreVector) UnmarshalJSON(data []byte)error
typeRescorerRetriever¶added inv8.18.1
type RescorerRetriever struct {// Filter Query to filter the documents that can match.Filter []Query `json:"filter,omitempty"`// MinScore Minimum _score for matching documents. Documents with a lower _score are not// included in the top documents.MinScore *float32 `json:"min_score,omitempty"`// Name_ Retriever name.Name_ *string `json:"_name,omitempty"`Rescore []Rescore `json:"rescore"`// Retriever Inner retriever.RetrieverRetrieverContainer `json:"retriever"`}RescorerRetriever type.
funcNewRescorerRetriever¶added inv8.18.1
func NewRescorerRetriever() *RescorerRetriever
NewRescorerRetriever returns a RescorerRetriever.
func (*RescorerRetriever)UnmarshalJSON¶added inv8.18.1
func (s *RescorerRetriever) UnmarshalJSON(data []byte)error
typeReservedSize¶
type ReservedSize struct {NodeIdstring `json:"node_id"`Pathstring `json:"path"`Shards []string `json:"shards"`Totalint64 `json:"total"`}ReservedSize type.
funcNewReservedSize¶added inv8.5.0
func NewReservedSize() *ReservedSize
NewReservedSize returns a ReservedSize.
func (*ReservedSize)UnmarshalJSON¶added inv8.7.1
func (s *ReservedSize) UnmarshalJSON(data []byte)error
typeResolveClusterInfo¶added inv8.13.0
type ResolveClusterInfo struct {// Connected Whether the remote cluster is connected to the local (querying) cluster.Connectedbool `json:"connected"`// Error Provides error messages that are likely to occur if you do a search with this// index expression// on the specified cluster (for example, lack of security privileges to query// an index).Error *string `json:"error,omitempty"`// MatchingIndices Whether the index expression provided in the request matches any indices,// aliases or data streams// on the cluster.MatchingIndices *bool `json:"matching_indices,omitempty"`// SkipUnavailable The `skip_unavailable` setting for a remote cluster.SkipUnavailablebool `json:"skip_unavailable"`// Version Provides version information about the cluster.Version *ElasticsearchVersionMinInfo `json:"version,omitempty"`}ResolveClusterInfo type.
funcNewResolveClusterInfo¶added inv8.13.0
func NewResolveClusterInfo() *ResolveClusterInfo
NewResolveClusterInfo returns a ResolveClusterInfo.
func (*ResolveClusterInfo)UnmarshalJSON¶added inv8.13.0
func (s *ResolveClusterInfo) UnmarshalJSON(data []byte)error
typeResolveIndexAliasItem¶
ResolveIndexAliasItem type.
funcNewResolveIndexAliasItem¶added inv8.5.0
func NewResolveIndexAliasItem() *ResolveIndexAliasItem
NewResolveIndexAliasItem returns a ResolveIndexAliasItem.
func (*ResolveIndexAliasItem)UnmarshalJSON¶added inv8.7.1
func (s *ResolveIndexAliasItem) UnmarshalJSON(data []byte)error
typeResolveIndexDataStreamsItem¶
type ResolveIndexDataStreamsItem struct {BackingIndices []string `json:"backing_indices"`Namestring `json:"name"`TimestampFieldstring `json:"timestamp_field"`}ResolveIndexDataStreamsItem type.
funcNewResolveIndexDataStreamsItem¶added inv8.5.0
func NewResolveIndexDataStreamsItem() *ResolveIndexDataStreamsItem
NewResolveIndexDataStreamsItem returns a ResolveIndexDataStreamsItem.
func (*ResolveIndexDataStreamsItem)UnmarshalJSON¶added inv8.7.1
func (s *ResolveIndexDataStreamsItem) UnmarshalJSON(data []byte)error
typeResolveIndexItem¶
type ResolveIndexItem struct {Aliases []string `json:"aliases,omitempty"`Attributes []string `json:"attributes"`DataStream *string `json:"data_stream,omitempty"`Namestring `json:"name"`}ResolveIndexItem type.
funcNewResolveIndexItem¶added inv8.5.0
func NewResolveIndexItem() *ResolveIndexItem
NewResolveIndexItem returns a ResolveIndexItem.
func (*ResolveIndexItem)UnmarshalJSON¶added inv8.7.1
func (s *ResolveIndexItem) UnmarshalJSON(data []byte)error
typeResponseItem¶
type ResponseItem struct {// Error Additional information about the failed operation.// The property is returned only for failed operations.Error *ErrorCause `json:"error,omitempty"`FailureStore *failurestorestatus.FailureStoreStatus `json:"failure_store,omitempty"`ForcedRefresh *bool `json:"forced_refresh,omitempty"`Get *InlineGetDictUserDefined `json:"get,omitempty"`// Id_ The document ID associated with the operation.Id_ *string `json:"_id,omitempty"`// Index_ The name of the index associated with the operation.// If the operation targeted a data stream, this is the backing index into which// the document was written.Index_string `json:"_index"`// PrimaryTerm_ The primary term assigned to the document for the operation.// This property is returned only for successful operations.PrimaryTerm_ *int64 `json:"_primary_term,omitempty"`// Result The result of the operation.// Successful values are `created`, `deleted`, and `updated`.Result *string `json:"result,omitempty"`// SeqNo_ The sequence number assigned to the document for the operation.// Sequence numbers are used to ensure an older version of a document doesn't// overwrite a newer version.SeqNo_ *int64 `json:"_seq_no,omitempty"`// Shards_ Shard information for the operation.Shards_ *ShardStatistics `json:"_shards,omitempty"`// Status The HTTP status code returned for the operation.Statusint `json:"status"`// Version_ The document version associated with the operation.// The document version is incremented each time the document is updated.// This property is returned only for successful actions.Version_ *int64 `json:"_version,omitempty"`}ResponseItem type.
funcNewResponseItem¶added inv8.9.0
func NewResponseItem() *ResponseItem
NewResponseItem returns a ResponseItem.
func (*ResponseItem)UnmarshalJSON¶added inv8.9.0
func (s *ResponseItem) UnmarshalJSON(data []byte)error
typeRestriction¶added inv8.17.0
type Restriction struct {// Workflows A list of workflows to which the API key is restricted.// NOTE: In order to use a role restriction, an API key must be created with a// single role descriptor.Workflows []restrictionworkflow.RestrictionWorkflow `json:"workflows"`}Restriction type.
funcNewRestriction¶added inv8.17.0
func NewRestriction() *Restriction
NewRestriction returns a Restriction.
typeRetention¶
type Retention struct {// ExpireAfter Time period after which a snapshot is considered expired and eligible for// deletion. SLM deletes expired snapshots based on the slm.retention_schedule.ExpireAfterDuration `json:"expire_after"`// MaxCount Maximum number of snapshots to retain, even if the snapshots have not yet// expired. If the number of snapshots in the repository exceeds this limit, the// policy retains the most recent snapshots and deletes older snapshots.MaxCountint `json:"max_count"`// MinCount Minimum number of snapshots to retain, even if the snapshots have expired.MinCountint `json:"min_count"`}Retention type.
func (*Retention)UnmarshalJSON¶added inv8.7.1
typeRetentionLease¶
type RetentionLease struct {PeriodDuration `json:"period"`}RetentionLease type.
funcNewRetentionLease¶added inv8.5.0
func NewRetentionLease() *RetentionLease
NewRetentionLease returns a RetentionLease.
func (*RetentionLease)UnmarshalJSON¶added inv8.7.1
func (s *RetentionLease) UnmarshalJSON(data []byte)error
typeRetentionPolicy¶
type RetentionPolicy struct {// Field The date field that is used to calculate the age of the document.Fieldstring `json:"field"`// MaxAge Specifies the maximum age of a document in the destination index. Documents// that are older than the configured// value are removed from the destination index.MaxAgeDuration `json:"max_age"`}RetentionPolicy type.
funcNewRetentionPolicy¶added inv8.5.0
func NewRetentionPolicy() *RetentionPolicy
NewRetentionPolicy returns a RetentionPolicy.
func (*RetentionPolicy)UnmarshalJSON¶added inv8.7.1
func (s *RetentionPolicy) UnmarshalJSON(data []byte)error
typeRetentionPolicyContainer¶
type RetentionPolicyContainer struct {AdditionalRetentionPolicyContainerProperty map[string]json.RawMessage `json:"-"`// Time Specifies that the transform uses a time field to set the retention policy.Time *RetentionPolicy `json:"time,omitempty"`}RetentionPolicyContainer type.
funcNewRetentionPolicyContainer¶added inv8.5.0
func NewRetentionPolicyContainer() *RetentionPolicyContainer
NewRetentionPolicyContainer returns a RetentionPolicyContainer.
func (RetentionPolicyContainer)MarshalJSON¶added inv8.18.0
func (sRetentionPolicyContainer) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
typeRetries¶
type Retries struct {// Bulk The number of bulk actions retried.Bulkint64 `json:"bulk"`// Search The number of search actions retried.Searchint64 `json:"search"`}Retries type.
func (*Retries)UnmarshalJSON¶added inv8.7.1
typeRetrieverContainer¶added inv8.14.0
type RetrieverContainer struct {AdditionalRetrieverContainerProperty map[string]json.RawMessage `json:"-"`// Knn A retriever that replaces the functionality of a knn search.Knn *KnnRetriever `json:"knn,omitempty"`// Linear A retriever that supports the combination of different retrievers through a// weighted linear combination.Linear *LinearRetriever `json:"linear,omitempty"`// Pinned A pinned retriever applies pinned documents to the underlying retriever.// This retriever will rewrite to a PinnedQueryBuilder.Pinned *PinnedRetriever `json:"pinned,omitempty"`// Rescorer A retriever that re-scores only the results produced by its child retriever.Rescorer *RescorerRetriever `json:"rescorer,omitempty"`// Rrf A retriever that produces top documents from reciprocal rank fusion (RRF).Rrf *RRFRetriever `json:"rrf,omitempty"`// Rule A retriever that replaces the functionality of a rule query.Rule *RuleRetriever `json:"rule,omitempty"`// Standard A retriever that replaces the functionality of a traditional query.Standard *StandardRetriever `json:"standard,omitempty"`// TextSimilarityReranker A retriever that reranks the top documents based on a reranking model using// the InferenceAPITextSimilarityReranker *TextSimilarityReranker `json:"text_similarity_reranker,omitempty"`}RetrieverContainer type.
funcNewRetrieverContainer¶added inv8.14.0
func NewRetrieverContainer() *RetrieverContainer
NewRetrieverContainer returns a RetrieverContainer.
func (RetrieverContainer)MarshalJSON¶added inv8.18.0
func (sRetrieverContainer) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
typeReverseNestedAggregate¶
type ReverseNestedAggregate struct {Aggregations map[string]Aggregate `json:"-"`DocCountint64 `json:"doc_count"`MetaMetadata `json:"meta,omitempty"`}ReverseNestedAggregate type.
funcNewReverseNestedAggregate¶added inv8.5.0
func NewReverseNestedAggregate() *ReverseNestedAggregate
NewReverseNestedAggregate returns a ReverseNestedAggregate.
func (ReverseNestedAggregate)MarshalJSON¶
func (sReverseNestedAggregate) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
func (*ReverseNestedAggregate)UnmarshalJSON¶added inv8.7.0
func (s *ReverseNestedAggregate) UnmarshalJSON(data []byte)error
typeReverseNestedAggregation¶
type ReverseNestedAggregation struct {// Path Defines the nested object field that should be joined back to.// The default is empty, which means that it joins back to the root/main// document level.Path *string `json:"path,omitempty"`}ReverseNestedAggregation type.
funcNewReverseNestedAggregation¶added inv8.5.0
func NewReverseNestedAggregation() *ReverseNestedAggregation
NewReverseNestedAggregation returns a ReverseNestedAggregation.
func (*ReverseNestedAggregation)UnmarshalJSON¶added inv8.7.1
func (s *ReverseNestedAggregation) UnmarshalJSON(data []byte)error
typeReverseTokenFilter¶
type ReverseTokenFilter struct {Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}ReverseTokenFilter type.
funcNewReverseTokenFilter¶added inv8.5.0
func NewReverseTokenFilter() *ReverseTokenFilter
NewReverseTokenFilter returns a ReverseTokenFilter.
func (ReverseTokenFilter)MarshalJSON¶added inv8.9.0
func (sReverseTokenFilter) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*ReverseTokenFilter)UnmarshalJSON¶added inv8.7.1
func (s *ReverseTokenFilter) UnmarshalJSON(data []byte)error
typeRole¶
type Role struct {Applications []ApplicationPrivileges `json:"applications"`Cluster []clusterprivilege.ClusterPrivilege `json:"cluster"`Description *string `json:"description,omitempty"`Global map[string]map[string]map[string][]string `json:"global,omitempty"`Indices []IndicesPrivileges `json:"indices"`MetadataMetadata `json:"metadata"`RemoteCluster []RemoteClusterPrivileges `json:"remote_cluster,omitempty"`RemoteIndices []RemoteIndicesPrivileges `json:"remote_indices,omitempty"`RoleTemplates []RoleTemplate `json:"role_templates,omitempty"`RunAs []string `json:"run_as,omitempty"`TransientMetadata map[string]json.RawMessage `json:"transient_metadata,omitempty"`}Role type.
func (*Role)UnmarshalJSON¶added inv8.7.1
typeRoleDescriptor¶
type RoleDescriptor struct {// Applications A list of application privilege entriesApplications []ApplicationPrivileges `json:"applications,omitempty"`// Cluster A list of cluster privileges. These privileges define the cluster level// actions that API keys are able to execute.Cluster []clusterprivilege.ClusterPrivilege `json:"cluster,omitempty"`// Description Optional description of the role descriptorDescription *string `json:"description,omitempty"`// Global An object defining global privileges. A global privilege is a form of cluster// privilege that is request-aware. Support for global privileges is currently// limited to the management of application privileges.Global []GlobalPrivilege `json:"global,omitempty"`// Indices A list of indices permissions entries.Indices []IndicesPrivileges `json:"indices,omitempty"`// Metadata Optional meta-data. Within the metadata object, keys that begin with `_` are// reserved for system usage.MetadataMetadata `json:"metadata,omitempty"`// RemoteCluster A list of cluster permissions for remote clusters.// NOTE: This is limited a subset of the cluster permissions.RemoteCluster []RemoteClusterPrivileges `json:"remote_cluster,omitempty"`// RemoteIndices A list of indices permissions for remote clusters.RemoteIndices []RemoteIndicesPrivileges `json:"remote_indices,omitempty"`// Restriction Restriction for when the role descriptor is allowed to be effective.Restriction *Restriction `json:"restriction,omitempty"`// RunAs A list of users that the API keys can impersonate.// NOTE: In Elastic Cloud Serverless, the run-as feature is disabled.// For API compatibility, you can still specify an empty `run_as` field, but a// non-empty list will be rejected.RunAs []string `json:"run_as,omitempty"`TransientMetadata map[string]json.RawMessage `json:"transient_metadata,omitempty"`}RoleDescriptor type.
funcNewRoleDescriptor¶added inv8.5.0
func NewRoleDescriptor() *RoleDescriptor
NewRoleDescriptor returns a RoleDescriptor.
func (*RoleDescriptor)UnmarshalJSON¶added inv8.7.1
func (s *RoleDescriptor) UnmarshalJSON(data []byte)error
typeRoleDescriptorRead¶
type RoleDescriptorRead struct {// Applications A list of application privilege entriesApplications []ApplicationPrivileges `json:"applications,omitempty"`// Cluster A list of cluster privileges. These privileges define the cluster level// actions that API keys are able to execute.Cluster []clusterprivilege.ClusterPrivilege `json:"cluster"`// Description An optional description of the role descriptor.Description *string `json:"description,omitempty"`// Global An object defining global privileges. A global privilege is a form of cluster// privilege that is request-aware. Support for global privileges is currently// limited to the management of application privileges.Global []GlobalPrivilege `json:"global,omitempty"`// Indices A list of indices permissions entries.Indices []IndicesPrivileges `json:"indices"`// Metadata Optional meta-data. Within the metadata object, keys that begin with `_` are// reserved for system usage.MetadataMetadata `json:"metadata,omitempty"`// RemoteCluster A list of cluster permissions for remote clusters.// NOTE: This is limited a subset of the cluster permissions.RemoteCluster []RemoteClusterPrivileges `json:"remote_cluster,omitempty"`// RemoteIndices A list of indices permissions for remote clusters.RemoteIndices []RemoteIndicesPrivileges `json:"remote_indices,omitempty"`// Restriction A restriction for when the role descriptor is allowed to be effective.Restriction *Restriction `json:"restriction,omitempty"`// RunAs A list of users that the API keys can impersonate.RunAs []string `json:"run_as,omitempty"`TransientMetadata map[string]json.RawMessage `json:"transient_metadata,omitempty"`}RoleDescriptorRead type.
funcNewRoleDescriptorRead¶added inv8.5.0
func NewRoleDescriptorRead() *RoleDescriptorRead
NewRoleDescriptorRead returns a RoleDescriptorRead.
func (*RoleDescriptorRead)UnmarshalJSON¶added inv8.7.1
func (s *RoleDescriptorRead) UnmarshalJSON(data []byte)error
typeRoleDescriptorWrapper¶
type RoleDescriptorWrapper struct {RoleDescriptorRoleDescriptorRead `json:"role_descriptor"`}RoleDescriptorWrapper type.
funcNewRoleDescriptorWrapper¶added inv8.5.0
func NewRoleDescriptorWrapper() *RoleDescriptorWrapper
NewRoleDescriptorWrapper returns a RoleDescriptorWrapper.
typeRoleMappingRule¶
type RoleMappingRule struct {AdditionalRoleMappingRuleProperty map[string]json.RawMessage `json:"-"`All []RoleMappingRule `json:"all,omitempty"`Any []RoleMappingRule `json:"any,omitempty"`Except *RoleMappingRule `json:"except,omitempty"`Field *FieldRule `json:"field,omitempty"`}RoleMappingRule type.
funcNewRoleMappingRule¶added inv8.5.0
func NewRoleMappingRule() *RoleMappingRule
NewRoleMappingRule returns a RoleMappingRule.
func (RoleMappingRule)MarshalJSON¶added inv8.18.0
func (sRoleMappingRule) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
typeRoleQueryContainer¶added inv8.15.0
type RoleQueryContainer struct {AdditionalRoleQueryContainerProperty map[string]json.RawMessage `json:"-"`// Bool matches roles matching boolean combinations of other queries.Bool *BoolQuery `json:"bool,omitempty"`// Exists Returns roles that contain an indexed value for a field.Exists *ExistsQuery `json:"exists,omitempty"`// Ids Returns roles based on their IDs.// This query uses role document IDs stored in the `_id` field.Ids *IdsQuery `json:"ids,omitempty"`// Match Returns roles that match a provided text, number, date or boolean value.// The provided text is analyzed before matching.Match map[string]MatchQuery `json:"match,omitempty"`// MatchAll Matches all roles, giving them all a `_score` of 1.0.MatchAll *MatchAllQuery `json:"match_all,omitempty"`// Prefix Returns roles that contain a specific prefix in a provided field.Prefix map[string]PrefixQuery `json:"prefix,omitempty"`// Range Returns roles that contain terms within a provided range.Range map[string]RangeQuery `json:"range,omitempty"`// SimpleQueryString Returns roles based on a provided query string, using a parser with a limited// but fault-tolerant syntax.SimpleQueryString *SimpleQueryStringQuery `json:"simple_query_string,omitempty"`// Term Returns roles that contain an exact term in a provided field.// To return a document, the query term must exactly match the queried field's// value, including whitespace and capitalization.Term map[string]TermQuery `json:"term,omitempty"`// Terms Returns roles that contain one or more exact terms in a provided field.// To return a document, one or more terms must exactly match a field value,// including whitespace and capitalization.Terms *TermsQuery `json:"terms,omitempty"`// Wildcard Returns roles that contain terms matching a wildcard pattern.Wildcard map[string]WildcardQuery `json:"wildcard,omitempty"`}RoleQueryContainer type.
funcNewRoleQueryContainer¶added inv8.15.0
func NewRoleQueryContainer() *RoleQueryContainer
NewRoleQueryContainer returns a RoleQueryContainer.
func (RoleQueryContainer)MarshalJSON¶added inv8.18.0
func (sRoleQueryContainer) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
func (*RoleQueryContainer)UnmarshalJSON¶added inv8.15.0
func (s *RoleQueryContainer) UnmarshalJSON(data []byte)error
typeRoleTemplate¶
type RoleTemplate struct {Format *templateformat.TemplateFormat `json:"format,omitempty"`TemplateScript `json:"template"`}RoleTemplate type.
funcNewRoleTemplate¶added inv8.5.0
func NewRoleTemplate() *RoleTemplate
NewRoleTemplate returns a RoleTemplate.
typeRoleTemplateInlineQuery¶added inv8.5.0
type RoleTemplateInlineQueryany
RoleTemplateInlineQuery holds the union for the following types:
stringQuery
typeRoleTemplateQuery¶
type RoleTemplateQuery struct {// Template When you create a role, you can specify a query that defines the document// level security permissions. You can optionally// use Mustache templates in the role query to insert the username of the// current authenticated user into the role.// Like other places in Elasticsearch that support templating or scripting, you// can specify inline, stored, or file-based// templates and define custom parameters. You access the details for the// current authenticated user through the _user parameter.Template *RoleTemplateScript `json:"template,omitempty"`}RoleTemplateQuery type.
funcNewRoleTemplateQuery¶added inv8.5.0
func NewRoleTemplateQuery() *RoleTemplateQuery
NewRoleTemplateQuery returns a RoleTemplateQuery.
typeRoleTemplateScript¶
type RoleTemplateScript struct {// Id The `id` for a stored script.Id *string `json:"id,omitempty"`// Lang Specifies the language the script is written in.Lang *scriptlanguage.ScriptLanguage `json:"lang,omitempty"`Options map[string]string `json:"options,omitempty"`// Params Specifies any named parameters that are passed into the script as variables.// Use parameters instead of hard-coded values to decrease compile time.Params map[string]json.RawMessage `json:"params,omitempty"`SourceRoleTemplateInlineQuery `json:"source,omitempty"`}RoleTemplateScript type.
funcNewRoleTemplateScript¶added inv8.15.0
func NewRoleTemplateScript() *RoleTemplateScript
NewRoleTemplateScript returns a RoleTemplateScript.
func (*RoleTemplateScript)UnmarshalJSON¶added inv8.15.0
func (s *RoleTemplateScript) UnmarshalJSON(data []byte)error
typeRolloverAction¶added inv8.15.0
type RolloverAction struct {MaxAgeDuration `json:"max_age,omitempty"`MaxDocs *int64 `json:"max_docs,omitempty"`MaxPrimaryShardDocs *int64 `json:"max_primary_shard_docs,omitempty"`MaxPrimaryShardSizeByteSize `json:"max_primary_shard_size,omitempty"`MaxSizeByteSize `json:"max_size,omitempty"`MinAgeDuration `json:"min_age,omitempty"`MinDocs *int64 `json:"min_docs,omitempty"`MinPrimaryShardDocs *int64 `json:"min_primary_shard_docs,omitempty"`MinPrimaryShardSizeByteSize `json:"min_primary_shard_size,omitempty"`MinSizeByteSize `json:"min_size,omitempty"`}RolloverAction type.
funcNewRolloverAction¶added inv8.15.0
func NewRolloverAction() *RolloverAction
NewRolloverAction returns a RolloverAction.
func (*RolloverAction)UnmarshalJSON¶added inv8.15.0
func (s *RolloverAction) UnmarshalJSON(data []byte)error
typeRolloverConditions¶
type RolloverConditions struct {MaxAgeDuration `json:"max_age,omitempty"`MaxAgeMillis *int64 `json:"max_age_millis,omitempty"`MaxDocs *int64 `json:"max_docs,omitempty"`MaxPrimaryShardDocs *int64 `json:"max_primary_shard_docs,omitempty"`MaxPrimaryShardSizeByteSize `json:"max_primary_shard_size,omitempty"`MaxPrimaryShardSizeBytes *int64 `json:"max_primary_shard_size_bytes,omitempty"`MaxSizeByteSize `json:"max_size,omitempty"`MaxSizeBytes *int64 `json:"max_size_bytes,omitempty"`MinAgeDuration `json:"min_age,omitempty"`MinDocs *int64 `json:"min_docs,omitempty"`MinPrimaryShardDocs *int64 `json:"min_primary_shard_docs,omitempty"`MinPrimaryShardSizeByteSize `json:"min_primary_shard_size,omitempty"`MinPrimaryShardSizeBytes *int64 `json:"min_primary_shard_size_bytes,omitempty"`MinSizeByteSize `json:"min_size,omitempty"`MinSizeBytes *int64 `json:"min_size_bytes,omitempty"`}RolloverConditions type.
funcNewRolloverConditions¶added inv8.5.0
func NewRolloverConditions() *RolloverConditions
NewRolloverConditions returns a RolloverConditions.
func (*RolloverConditions)UnmarshalJSON¶added inv8.7.1
func (s *RolloverConditions) UnmarshalJSON(data []byte)error
typeRollupCapabilities¶
type RollupCapabilities struct {// RollupJobs There can be multiple, independent jobs configured for a single index or// index pattern. Each of these jobs may have different configurations, so the// API returns a list of all the various configurations available.RollupJobs []RollupCapabilitySummary `json:"rollup_jobs"`}RollupCapabilities type.
funcNewRollupCapabilities¶added inv8.5.0
func NewRollupCapabilities() *RollupCapabilities
NewRollupCapabilities returns a RollupCapabilities.
typeRollupCapabilitySummary¶
type RollupCapabilitySummary struct {Fields map[string][]RollupFieldSummary `json:"fields"`IndexPatternstring `json:"index_pattern"`JobIdstring `json:"job_id"`RollupIndexstring `json:"rollup_index"`}RollupCapabilitySummary type.
funcNewRollupCapabilitySummary¶added inv8.5.0
func NewRollupCapabilitySummary() *RollupCapabilitySummary
NewRollupCapabilitySummary returns a RollupCapabilitySummary.
func (*RollupCapabilitySummary)UnmarshalJSON¶added inv8.7.1
func (s *RollupCapabilitySummary) UnmarshalJSON(data []byte)error
typeRollupFieldSummary¶added inv8.7.0
type RollupFieldSummary struct {Aggstring `json:"agg"`CalendarIntervalDuration `json:"calendar_interval,omitempty"`TimeZone *string `json:"time_zone,omitempty"`}RollupFieldSummary type.
funcNewRollupFieldSummary¶added inv8.7.0
func NewRollupFieldSummary() *RollupFieldSummary
NewRollupFieldSummary returns a RollupFieldSummary.
func (*RollupFieldSummary)UnmarshalJSON¶added inv8.7.1
func (s *RollupFieldSummary) UnmarshalJSON(data []byte)error
typeRollupJob¶
type RollupJob struct {// Config The rollup job configuration.ConfigRollupJobConfiguration `json:"config"`// Stats Transient statistics about the rollup job, such as how many documents have// been processed and how many rollup summary docs have been indexed.// These stats are not persisted.// If a node is restarted, these stats are reset.StatsRollupJobStats `json:"stats"`// Status The current status of the indexer for the rollup job.StatusRollupJobStatus `json:"status"`}RollupJob type.
typeRollupJobConfiguration¶
type RollupJobConfiguration struct {Cronstring `json:"cron"`GroupsGroupings `json:"groups"`Idstring `json:"id"`IndexPatternstring `json:"index_pattern"`Metrics []FieldMetric `json:"metrics"`PageSizeint64 `json:"page_size"`RollupIndexstring `json:"rollup_index"`TimeoutDuration `json:"timeout"`}RollupJobConfiguration type.
funcNewRollupJobConfiguration¶added inv8.5.0
func NewRollupJobConfiguration() *RollupJobConfiguration
NewRollupJobConfiguration returns a RollupJobConfiguration.
func (*RollupJobConfiguration)UnmarshalJSON¶added inv8.7.1
func (s *RollupJobConfiguration) UnmarshalJSON(data []byte)error
typeRollupJobStats¶
type RollupJobStats struct {DocumentsProcessedint64 `json:"documents_processed"`IndexFailuresint64 `json:"index_failures"`IndexTimeInMsint64 `json:"index_time_in_ms"`IndexTotalint64 `json:"index_total"`PagesProcessedint64 `json:"pages_processed"`ProcessingTimeInMsint64 `json:"processing_time_in_ms"`ProcessingTotalint64 `json:"processing_total"`RollupsIndexedint64 `json:"rollups_indexed"`SearchFailuresint64 `json:"search_failures"`SearchTimeInMsint64 `json:"search_time_in_ms"`SearchTotalint64 `json:"search_total"`TriggerCountint64 `json:"trigger_count"`}RollupJobStats type.
funcNewRollupJobStats¶added inv8.5.0
func NewRollupJobStats() *RollupJobStats
NewRollupJobStats returns a RollupJobStats.
func (*RollupJobStats)UnmarshalJSON¶added inv8.7.1
func (s *RollupJobStats) UnmarshalJSON(data []byte)error
typeRollupJobStatus¶
type RollupJobStatus struct {CurrentPosition map[string]json.RawMessage `json:"current_position,omitempty"`JobStateindexingjobstate.IndexingJobState `json:"job_state"`UpgradedDocId *bool `json:"upgraded_doc_id,omitempty"`}RollupJobStatus type.
funcNewRollupJobStatus¶added inv8.5.0
func NewRollupJobStatus() *RollupJobStatus
NewRollupJobStatus returns a RollupJobStatus.
func (*RollupJobStatus)UnmarshalJSON¶added inv8.7.1
func (s *RollupJobStatus) UnmarshalJSON(data []byte)error
typeRollupJobSummary¶
type RollupJobSummary struct {Fields map[string][]RollupJobSummaryField `json:"fields"`IndexPatternstring `json:"index_pattern"`JobIdstring `json:"job_id"`RollupIndexstring `json:"rollup_index"`}RollupJobSummary type.
funcNewRollupJobSummary¶added inv8.5.0
func NewRollupJobSummary() *RollupJobSummary
NewRollupJobSummary returns a RollupJobSummary.
func (*RollupJobSummary)UnmarshalJSON¶added inv8.7.1
func (s *RollupJobSummary) UnmarshalJSON(data []byte)error
typeRollupJobSummaryField¶
type RollupJobSummaryField struct {Aggstring `json:"agg"`CalendarIntervalDuration `json:"calendar_interval,omitempty"`TimeZone *string `json:"time_zone,omitempty"`}RollupJobSummaryField type.
funcNewRollupJobSummaryField¶added inv8.5.0
func NewRollupJobSummaryField() *RollupJobSummaryField
NewRollupJobSummaryField returns a RollupJobSummaryField.
func (*RollupJobSummaryField)UnmarshalJSON¶added inv8.7.1
func (s *RollupJobSummaryField) UnmarshalJSON(data []byte)error
typeRomanianAnalyzer¶added inv8.16.0
type RomanianAnalyzer struct {StemExclusion []string `json:"stem_exclusion,omitempty"`StopwordsStopWords `json:"stopwords,omitempty"`StopwordsPath *string `json:"stopwords_path,omitempty"`Typestring `json:"type,omitempty"`}RomanianAnalyzer type.
funcNewRomanianAnalyzer¶added inv8.16.0
func NewRomanianAnalyzer() *RomanianAnalyzer
NewRomanianAnalyzer returns a RomanianAnalyzer.
func (RomanianAnalyzer)MarshalJSON¶added inv8.16.0
func (sRomanianAnalyzer) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*RomanianAnalyzer)UnmarshalJSON¶added inv8.16.0
func (s *RomanianAnalyzer) UnmarshalJSON(data []byte)error
typeRoutingField¶
type RoutingField struct {Requiredbool `json:"required"`}RoutingField type.
funcNewRoutingField¶added inv8.5.0
func NewRoutingField() *RoutingField
NewRoutingField returns a RoutingField.
func (*RoutingField)UnmarshalJSON¶added inv8.7.1
func (s *RoutingField) UnmarshalJSON(data []byte)error
typeRrfRank¶added inv8.8.1
type RrfRank struct {// RankConstant How much influence documents in individual result sets per query have over// the final ranked result setRankConstant *int64 `json:"rank_constant,omitempty"`// RankWindowSize Size of the individual result sets per queryRankWindowSize *int64 `json:"rank_window_size,omitempty"`}RrfRank type.
func (*RrfRank)UnmarshalJSON¶added inv8.8.1
typeRuleCondition¶
type RuleCondition struct {// AppliesTo Specifies the result property to which the condition applies. If your// detector uses `lat_long`, `metric`, `rare`, or `freq_rare` functions, you can// only specify conditions that apply to time.AppliesToappliesto.AppliesTo `json:"applies_to"`// Operator Specifies the condition operator. The available options are greater than,// greater than or equals, less than, and less than or equals.Operatorconditionoperator.ConditionOperator `json:"operator"`// Value The value that is compared against the `applies_to` field using the operator.ValueFloat64 `json:"value"`}RuleCondition type.
funcNewRuleCondition¶added inv8.5.0
func NewRuleCondition() *RuleCondition
NewRuleCondition returns a RuleCondition.
func (*RuleCondition)UnmarshalJSON¶added inv8.7.1
func (s *RuleCondition) UnmarshalJSON(data []byte)error
typeRuleQuery¶added inv8.10.0
type RuleQuery struct {// Boost Floating point number used to decrease or increase the relevance scores of// the query.// Boost values are relative to the default value of 1.0.// A boost value between 0 and 1.0 decreases the relevance score.// A value greater than 1.0 increases the relevance score.Boost *float32 `json:"boost,omitempty"`MatchCriteriajson.RawMessage `json:"match_criteria,omitempty"`OrganicQuery `json:"organic"`QueryName_ *string `json:"_name,omitempty"`RulesetId *string `json:"ruleset_id,omitempty"`RulesetIds []string `json:"ruleset_ids,omitempty"`}RuleQuery type.
func (*RuleQuery)UnmarshalJSON¶added inv8.10.0
typeRuleRetriever¶added inv8.17.0
type RuleRetriever struct {// Filter Query to filter the documents that can match.Filter []Query `json:"filter,omitempty"`// MatchCriteria The match criteria that will determine if a rule in the provided rulesets// should be applied.MatchCriteriajson.RawMessage `json:"match_criteria,omitempty"`// MinScore Minimum _score for matching documents. Documents with a lower _score are not// included in the top documents.MinScore *float32 `json:"min_score,omitempty"`// Name_ Retriever name.Name_ *string `json:"_name,omitempty"`// RankWindowSize This value determines the size of the individual result set.RankWindowSize *int `json:"rank_window_size,omitempty"`// Retriever The retriever whose results rules should be applied to.RetrieverRetrieverContainer `json:"retriever"`// RulesetIds The ruleset IDs containing the rules this retriever is evaluating against.RulesetIds []string `json:"ruleset_ids"`}RuleRetriever type.
funcNewRuleRetriever¶added inv8.17.0
func NewRuleRetriever() *RuleRetriever
NewRuleRetriever returns a RuleRetriever.
func (*RuleRetriever)UnmarshalJSON¶added inv8.17.0
func (s *RuleRetriever) UnmarshalJSON(data []byte)error
typeRunningStateSearchInterval¶
type RunningStateSearchInterval struct {// End The end time.EndDuration `json:"end,omitempty"`// EndMs The end time as an epoch in milliseconds.EndMsint64 `json:"end_ms"`// Start The start time.StartDuration `json:"start,omitempty"`// StartMs The start time as an epoch in milliseconds.StartMsint64 `json:"start_ms"`}RunningStateSearchInterval type.
funcNewRunningStateSearchInterval¶added inv8.5.0
func NewRunningStateSearchInterval() *RunningStateSearchInterval
NewRunningStateSearchInterval returns a RunningStateSearchInterval.
func (*RunningStateSearchInterval)UnmarshalJSON¶added inv8.7.1
func (s *RunningStateSearchInterval) UnmarshalJSON(data []byte)error
typeRuntimeField¶
type RuntimeField struct {// FetchFields For type `lookup`FetchFields []RuntimeFieldFetchFields `json:"fetch_fields,omitempty"`// Fields For type `composite`Fields map[string]CompositeSubField `json:"fields,omitempty"`// Format A custom format for `date` type runtime fields.Format *string `json:"format,omitempty"`// InputField For type `lookup`InputField *string `json:"input_field,omitempty"`// Script Painless script executed at query time.Script *Script `json:"script,omitempty"`// TargetField For type `lookup`TargetField *string `json:"target_field,omitempty"`// TargetIndex For type `lookup`TargetIndex *string `json:"target_index,omitempty"`// Type Field type, which can be: `boolean`, `composite`, `date`, `double`,// `geo_point`, `ip`,`keyword`, `long`, or `lookup`.Typeruntimefieldtype.RuntimeFieldType `json:"type"`}RuntimeField type.
funcNewRuntimeField¶added inv8.5.0
func NewRuntimeField() *RuntimeField
NewRuntimeField returns a RuntimeField.
func (*RuntimeField)UnmarshalJSON¶added inv8.7.1
func (s *RuntimeField) UnmarshalJSON(data []byte)error
typeRuntimeFieldFetchFields¶added inv8.7.0
type RuntimeFieldFetchFields struct {Fieldstring `json:"field"`Format *string `json:"format,omitempty"`}RuntimeFieldFetchFields type.
funcNewRuntimeFieldFetchFields¶added inv8.7.0
func NewRuntimeFieldFetchFields() *RuntimeFieldFetchFields
NewRuntimeFieldFetchFields returns a RuntimeFieldFetchFields.
func (*RuntimeFieldFetchFields)UnmarshalJSON¶added inv8.7.1
func (s *RuntimeFieldFetchFields) UnmarshalJSON(data []byte)error
typeRuntimeFieldsType¶
type RuntimeFieldsType struct {CharsMaxint64 `json:"chars_max"`CharsTotalint64 `json:"chars_total"`Countint64 `json:"count"`DocMaxint64 `json:"doc_max"`DocTotalint64 `json:"doc_total"`IndexCountint64 `json:"index_count"`Lang []string `json:"lang"`LinesMaxint64 `json:"lines_max"`LinesTotalint64 `json:"lines_total"`Namestring `json:"name"`ScriptlessCountint64 `json:"scriptless_count"`ShadowedCountint64 `json:"shadowed_count"`SourceMaxint64 `json:"source_max"`SourceTotalint64 `json:"source_total"`}RuntimeFieldsType type.
funcNewRuntimeFieldsType¶added inv8.5.0
func NewRuntimeFieldsType() *RuntimeFieldsType
NewRuntimeFieldsType returns a RuntimeFieldsType.
func (*RuntimeFieldsType)UnmarshalJSON¶added inv8.7.1
func (s *RuntimeFieldsType) UnmarshalJSON(data []byte)error
typeRussianAnalyzer¶added inv8.16.0
type RussianAnalyzer struct {StemExclusion []string `json:"stem_exclusion,omitempty"`StopwordsStopWords `json:"stopwords,omitempty"`StopwordsPath *string `json:"stopwords_path,omitempty"`Typestring `json:"type,omitempty"`}RussianAnalyzer type.
funcNewRussianAnalyzer¶added inv8.16.0
func NewRussianAnalyzer() *RussianAnalyzer
NewRussianAnalyzer returns a RussianAnalyzer.
func (RussianAnalyzer)MarshalJSON¶added inv8.16.0
func (sRussianAnalyzer) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*RussianAnalyzer)UnmarshalJSON¶added inv8.16.0
func (s *RussianAnalyzer) UnmarshalJSON(data []byte)error
typeRussianStemTokenFilter¶added inv8.19.0
type RussianStemTokenFilter struct {Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}RussianStemTokenFilter type.
funcNewRussianStemTokenFilter¶added inv8.19.0
func NewRussianStemTokenFilter() *RussianStemTokenFilter
NewRussianStemTokenFilter returns a RussianStemTokenFilter.
func (RussianStemTokenFilter)MarshalJSON¶added inv8.19.0
func (sRussianStemTokenFilter) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*RussianStemTokenFilter)UnmarshalJSON¶added inv8.19.0
func (s *RussianStemTokenFilter) UnmarshalJSON(data []byte)error
typeS3Repository¶added inv8.13.0
type S3Repository struct {SettingsS3RepositorySettings `json:"settings"`Typestring `json:"type,omitempty"`Uuid *string `json:"uuid,omitempty"`}S3Repository type.
funcNewS3Repository¶added inv8.13.0
func NewS3Repository() *S3Repository
NewS3Repository returns a S3Repository.
func (S3Repository)MarshalJSON¶added inv8.13.0
func (sS3Repository) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*S3Repository)UnmarshalJSON¶added inv8.13.0
func (s *S3Repository) UnmarshalJSON(data []byte)error
typeS3RepositorySettings¶added inv8.13.0
type S3RepositorySettings struct {BasePath *string `json:"base_path,omitempty"`Bucketstring `json:"bucket"`BufferSizeByteSize `json:"buffer_size,omitempty"`CannedAcl *string `json:"canned_acl,omitempty"`ChunkSizeByteSize `json:"chunk_size,omitempty"`Client *string `json:"client,omitempty"`Compress *bool `json:"compress,omitempty"`MaxRestoreBytesPerSecByteSize `json:"max_restore_bytes_per_sec,omitempty"`MaxSnapshotBytesPerSecByteSize `json:"max_snapshot_bytes_per_sec,omitempty"`Readonly *bool `json:"readonly,omitempty"`ServerSideEncryption *bool `json:"server_side_encryption,omitempty"`StorageClass *string `json:"storage_class,omitempty"`}S3RepositorySettings type.
funcNewS3RepositorySettings¶added inv8.13.0
func NewS3RepositorySettings() *S3RepositorySettings
NewS3RepositorySettings returns a S3RepositorySettings.
func (*S3RepositorySettings)UnmarshalJSON¶added inv8.13.0
func (s *S3RepositorySettings) UnmarshalJSON(data []byte)error
typeSLMPolicy¶added inv8.5.0
type SLMPolicy struct {Config *Configuration `json:"config,omitempty"`Namestring `json:"name"`Repositorystring `json:"repository"`Retention *Retention `json:"retention,omitempty"`Schedulestring `json:"schedule"`}SLMPolicy type.
func (*SLMPolicy)UnmarshalJSON¶added inv8.7.1
typeSampleDiversity¶
type SampleDiversity struct {Fieldstring `json:"field"`MaxDocsPerValueint `json:"max_docs_per_value"`}SampleDiversity type.
funcNewSampleDiversity¶added inv8.5.0
func NewSampleDiversity() *SampleDiversity
NewSampleDiversity returns a SampleDiversity.
func (*SampleDiversity)UnmarshalJSON¶added inv8.7.1
func (s *SampleDiversity) UnmarshalJSON(data []byte)error
typeSamplerAggregate¶
type SamplerAggregate struct {Aggregations map[string]Aggregate `json:"-"`DocCountint64 `json:"doc_count"`MetaMetadata `json:"meta,omitempty"`}SamplerAggregate type.
funcNewSamplerAggregate¶added inv8.5.0
func NewSamplerAggregate() *SamplerAggregate
NewSamplerAggregate returns a SamplerAggregate.
func (SamplerAggregate)MarshalJSON¶
func (sSamplerAggregate) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
func (*SamplerAggregate)UnmarshalJSON¶added inv8.7.0
func (s *SamplerAggregate) UnmarshalJSON(data []byte)error
typeSamplerAggregation¶
type SamplerAggregation struct {// ShardSize Limits how many top-scoring documents are collected in the sample processed// on each shard.ShardSize *int `json:"shard_size,omitempty"`}SamplerAggregation type.
funcNewSamplerAggregation¶added inv8.5.0
func NewSamplerAggregation() *SamplerAggregation
NewSamplerAggregation returns a SamplerAggregation.
func (*SamplerAggregation)UnmarshalJSON¶added inv8.7.1
func (s *SamplerAggregation) UnmarshalJSON(data []byte)error
typeScalarValue¶added inv8.12.0
type ScalarValueany
ScalarValue holds the union for the following types:
int64Float64stringboolnil
typeScaledFloatNumberProperty¶
type ScaledFloatNumberProperty struct {Boost *Float64 `json:"boost,omitempty"`Coerce *bool `json:"coerce,omitempty"`CopyTo []string `json:"copy_to,omitempty"`DocValues *bool `json:"doc_values,omitempty"`Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`Fields map[string]Property `json:"fields,omitempty"`IgnoreAbove *int `json:"ignore_above,omitempty"`IgnoreMalformed *bool `json:"ignore_malformed,omitempty"`Index *bool `json:"index,omitempty"`// Meta Metadata about the field.Meta map[string]string `json:"meta,omitempty"`NullValue *Float64 `json:"null_value,omitempty"`OnScriptError *onscripterror.OnScriptError `json:"on_script_error,omitempty"`Properties map[string]Property `json:"properties,omitempty"`ScalingFactor *Float64 `json:"scaling_factor,omitempty"`Script *Script `json:"script,omitempty"`Store *bool `json:"store,omitempty"`SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`// TimeSeriesDimension For internal use by Elastic only. Marks the field as a time series dimension.// Defaults to false.TimeSeriesDimension *bool `json:"time_series_dimension,omitempty"`// TimeSeriesMetric For internal use by Elastic only. Marks the field as a time series dimension.// Defaults to false.TimeSeriesMetric *timeseriesmetrictype.TimeSeriesMetricType `json:"time_series_metric,omitempty"`Typestring `json:"type,omitempty"`}ScaledFloatNumberProperty type.
funcNewScaledFloatNumberProperty¶added inv8.5.0
func NewScaledFloatNumberProperty() *ScaledFloatNumberProperty
NewScaledFloatNumberProperty returns a ScaledFloatNumberProperty.
func (ScaledFloatNumberProperty)MarshalJSON¶added inv8.9.0
func (sScaledFloatNumberProperty) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*ScaledFloatNumberProperty)UnmarshalJSON¶added inv8.7.0
func (s *ScaledFloatNumberProperty) UnmarshalJSON(data []byte)error
typeScandinavianFoldingTokenFilter¶added inv8.18.1
type ScandinavianFoldingTokenFilter struct {Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}ScandinavianFoldingTokenFilter type.
funcNewScandinavianFoldingTokenFilter¶added inv8.18.1
func NewScandinavianFoldingTokenFilter() *ScandinavianFoldingTokenFilter
NewScandinavianFoldingTokenFilter returns a ScandinavianFoldingTokenFilter.
func (ScandinavianFoldingTokenFilter)MarshalJSON¶added inv8.18.1
func (sScandinavianFoldingTokenFilter) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*ScandinavianFoldingTokenFilter)UnmarshalJSON¶added inv8.18.1
func (s *ScandinavianFoldingTokenFilter) UnmarshalJSON(data []byte)error
typeScandinavianNormalizationTokenFilter¶added inv8.18.1
type ScandinavianNormalizationTokenFilter struct {Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}ScandinavianNormalizationTokenFilter type.
funcNewScandinavianNormalizationTokenFilter¶added inv8.18.1
func NewScandinavianNormalizationTokenFilter() *ScandinavianNormalizationTokenFilter
NewScandinavianNormalizationTokenFilter returns a ScandinavianNormalizationTokenFilter.
func (ScandinavianNormalizationTokenFilter)MarshalJSON¶added inv8.18.1
func (sScandinavianNormalizationTokenFilter) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*ScandinavianNormalizationTokenFilter)UnmarshalJSON¶added inv8.18.1
func (s *ScandinavianNormalizationTokenFilter) UnmarshalJSON(data []byte)error
typeScheduleContainer¶
type ScheduleContainer struct {AdditionalScheduleContainerProperty map[string]json.RawMessage `json:"-"`Cron *string `json:"cron,omitempty"`Daily *DailySchedule `json:"daily,omitempty"`Hourly *HourlySchedule `json:"hourly,omitempty"`IntervalDuration `json:"interval,omitempty"`Monthly []TimeOfMonth `json:"monthly,omitempty"`Timezone *string `json:"timezone,omitempty"`Weekly []TimeOfWeek `json:"weekly,omitempty"`Yearly []TimeOfYear `json:"yearly,omitempty"`}ScheduleContainer type.
funcNewScheduleContainer¶added inv8.5.0
func NewScheduleContainer() *ScheduleContainer
NewScheduleContainer returns a ScheduleContainer.
func (ScheduleContainer)MarshalJSON¶added inv8.18.0
func (sScheduleContainer) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
func (*ScheduleContainer)UnmarshalJSON¶added inv8.7.1
func (s *ScheduleContainer) UnmarshalJSON(data []byte)error
typeScheduleTimeOfDay¶
type ScheduleTimeOfDayany
ScheduleTimeOfDay holds the union for the following types:
stringHourAndMinute
typeScheduleTriggerEvent¶
type ScheduleTriggerEvent struct {ScheduledTimeDateTime `json:"scheduled_time"`TriggeredTimeDateTime `json:"triggered_time,omitempty"`}ScheduleTriggerEvent type.
funcNewScheduleTriggerEvent¶added inv8.5.0
func NewScheduleTriggerEvent() *ScheduleTriggerEvent
NewScheduleTriggerEvent returns a ScheduleTriggerEvent.
func (*ScheduleTriggerEvent)UnmarshalJSON¶added inv8.7.1
func (s *ScheduleTriggerEvent) UnmarshalJSON(data []byte)error
typeSchedulingConfiguration¶added inv8.15.0
type SchedulingConfiguration struct {AccessControl *ConnectorScheduling `json:"access_control,omitempty"`Full *ConnectorScheduling `json:"full,omitempty"`Incremental *ConnectorScheduling `json:"incremental,omitempty"`}SchedulingConfiguration type.
funcNewSchedulingConfiguration¶added inv8.15.0
func NewSchedulingConfiguration() *SchedulingConfiguration
NewSchedulingConfiguration returns a SchedulingConfiguration.
typeScript¶
type Script struct {// Id The `id` for a stored script.Id *string `json:"id,omitempty"`// Lang Specifies the language the script is written in.Lang *scriptlanguage.ScriptLanguage `json:"lang,omitempty"`Options map[string]string `json:"options,omitempty"`// Params Specifies any named parameters that are passed into the script as variables.// Use parameters instead of hard-coded values to decrease compile time.Params map[string]json.RawMessage `json:"params,omitempty"`// Source The script source.Source *string `json:"source,omitempty"`}Script type.
func (*Script)UnmarshalJSON¶added inv8.15.0
typeScriptCache¶
type ScriptCache struct {// CacheEvictions Total number of times the script cache has evicted old data.CacheEvictions *int64 `json:"cache_evictions,omitempty"`// CompilationLimitTriggered Total number of times the script compilation circuit breaker has limited// inline script compilations.CompilationLimitTriggered *int64 `json:"compilation_limit_triggered,omitempty"`// Compilations Total number of inline script compilations performed by the node.Compilations *int64 `json:"compilations,omitempty"`Context *string `json:"context,omitempty"`}ScriptCache type.
funcNewScriptCache¶added inv8.5.0
func NewScriptCache() *ScriptCache
NewScriptCache returns a ScriptCache.
func (*ScriptCache)UnmarshalJSON¶added inv8.7.1
func (s *ScriptCache) UnmarshalJSON(data []byte)error
typeScriptCondition¶
type ScriptCondition struct {Id *string `json:"id,omitempty"`Lang *string `json:"lang,omitempty"`Params map[string]json.RawMessage `json:"params,omitempty"`Source *string `json:"source,omitempty"`}ScriptCondition type.
funcNewScriptCondition¶added inv8.5.0
func NewScriptCondition() *ScriptCondition
NewScriptCondition returns a ScriptCondition.
func (*ScriptCondition)UnmarshalJSON¶added inv8.9.0
func (s *ScriptCondition) UnmarshalJSON(data []byte)error
typeScriptField¶
type ScriptField struct {IgnoreFailure *bool `json:"ignore_failure,omitempty"`ScriptScript `json:"script"`}ScriptField type.
funcNewScriptField¶added inv8.5.0
func NewScriptField() *ScriptField
NewScriptField returns a ScriptField.
func (*ScriptField)UnmarshalJSON¶added inv8.7.1
func (s *ScriptField) UnmarshalJSON(data []byte)error
typeScriptProcessor¶added inv8.13.0
type ScriptProcessor struct {// Description Description of the processor.// Useful for describing the purpose of the processor or its configuration.Description *string `json:"description,omitempty"`// Id ID of a stored script.// If no `source` is specified, this parameter is required.Id *string `json:"id,omitempty"`// If Conditionally execute the processor.If *string `json:"if,omitempty"`// IgnoreFailure Ignore failures for the processor.IgnoreFailure *bool `json:"ignore_failure,omitempty"`// Lang Script language.Lang *string `json:"lang,omitempty"`// OnFailure Handle failures for the processor.OnFailure []ProcessorContainer `json:"on_failure,omitempty"`// Params Object containing parameters for the script.Params map[string]json.RawMessage `json:"params,omitempty"`// Source Inline script.// If no `id` is specified, this parameter is required.Source *string `json:"source,omitempty"`// Tag Identifier for the processor.// Useful for debugging and metrics.Tag *string `json:"tag,omitempty"`}ScriptProcessor type.
funcNewScriptProcessor¶added inv8.13.0
func NewScriptProcessor() *ScriptProcessor
NewScriptProcessor returns a ScriptProcessor.
func (*ScriptProcessor)UnmarshalJSON¶added inv8.13.0
func (s *ScriptProcessor) UnmarshalJSON(data []byte)error
typeScriptQuery¶
type ScriptQuery struct {// Boost Floating point number used to decrease or increase the relevance scores of// the query.// Boost values are relative to the default value of 1.0.// A boost value between 0 and 1.0 decreases the relevance score.// A value greater than 1.0 increases the relevance score.Boost *float32 `json:"boost,omitempty"`QueryName_ *string `json:"_name,omitempty"`// Script Contains a script to run as a query.// This script must return a boolean value, `true` or `false`.ScriptScript `json:"script"`}ScriptQuery type.
funcNewScriptQuery¶added inv8.5.0
func NewScriptQuery() *ScriptQuery
NewScriptQuery returns a ScriptQuery.
func (*ScriptQuery)UnmarshalJSON¶added inv8.7.1
func (s *ScriptQuery) UnmarshalJSON(data []byte)error
typeScriptScoreFunction¶
type ScriptScoreFunction struct {// Script A script that computes a score.ScriptScript `json:"script"`}ScriptScoreFunction type.
funcNewScriptScoreFunction¶added inv8.5.0
func NewScriptScoreFunction() *ScriptScoreFunction
NewScriptScoreFunction returns a ScriptScoreFunction.
typeScriptScoreQuery¶
type ScriptScoreQuery struct {// Boost Floating point number used to decrease or increase the relevance scores of// the query.// Boost values are relative to the default value of 1.0.// A boost value between 0 and 1.0 decreases the relevance score.// A value greater than 1.0 increases the relevance score.Boost *float32 `json:"boost,omitempty"`// MinScore Documents with a score lower than this floating point number are excluded// from the search results.MinScore *float32 `json:"min_score,omitempty"`// Query Query used to return documents.QueryQuery `json:"query"`QueryName_ *string `json:"_name,omitempty"`// Script Script used to compute the score of documents returned by the query.// Important: final relevance scores from the `script_score` query cannot be// negative.ScriptScript `json:"script"`}ScriptScoreQuery type.
funcNewScriptScoreQuery¶added inv8.5.0
func NewScriptScoreQuery() *ScriptScoreQuery
NewScriptScoreQuery returns a ScriptScoreQuery.
func (*ScriptScoreQuery)UnmarshalJSON¶added inv8.7.1
func (s *ScriptScoreQuery) UnmarshalJSON(data []byte)error
typeScriptSort¶
type ScriptSort struct {Mode *sortmode.SortMode `json:"mode,omitempty"`Nested *NestedSortValue `json:"nested,omitempty"`Order *sortorder.SortOrder `json:"order,omitempty"`ScriptScript `json:"script"`Type *scriptsorttype.ScriptSortType `json:"type,omitempty"`}ScriptSort type.
typeScriptTransform¶
type ScriptTransform struct {Id *string `json:"id,omitempty"`Lang *string `json:"lang,omitempty"`Params map[string]json.RawMessage `json:"params,omitempty"`Source *string `json:"source,omitempty"`}ScriptTransform type.
funcNewScriptTransform¶added inv8.5.0
func NewScriptTransform() *ScriptTransform
NewScriptTransform returns a ScriptTransform.
func (*ScriptTransform)UnmarshalJSON¶added inv8.9.0
func (s *ScriptTransform) UnmarshalJSON(data []byte)error
typeScriptedHeuristic¶
type ScriptedHeuristic struct {ScriptScript `json:"script"`}ScriptedHeuristic type.
funcNewScriptedHeuristic¶added inv8.5.0
func NewScriptedHeuristic() *ScriptedHeuristic
NewScriptedHeuristic returns a ScriptedHeuristic.
typeScriptedMetricAggregate¶
type ScriptedMetricAggregate struct {MetaMetadata `json:"meta,omitempty"`Valuejson.RawMessage `json:"value,omitempty"`}ScriptedMetricAggregate type.
funcNewScriptedMetricAggregate¶added inv8.5.0
func NewScriptedMetricAggregate() *ScriptedMetricAggregate
NewScriptedMetricAggregate returns a ScriptedMetricAggregate.
func (*ScriptedMetricAggregate)UnmarshalJSON¶added inv8.7.1
func (s *ScriptedMetricAggregate) UnmarshalJSON(data []byte)error
typeScriptedMetricAggregation¶
type ScriptedMetricAggregation struct {// CombineScript Runs once on each shard after document collection is complete.// Allows the aggregation to consolidate the state returned from each shard.CombineScript *Script `json:"combine_script,omitempty"`// Field The field on which to run the aggregation.Field *string `json:"field,omitempty"`// InitScript Runs prior to any collection of documents.// Allows the aggregation to set up any initial state.InitScript *Script `json:"init_script,omitempty"`// MapScript Run once per document collected.// If no `combine_script` is specified, the resulting state needs to be stored// in the `state` object.MapScript *Script `json:"map_script,omitempty"`// Missing The value to apply to documents that do not have a value.// By default, documents without a value are ignored.MissingMissing `json:"missing,omitempty"`// Params A global object with script parameters for `init`, `map` and `combine`// scripts.// It is shared between the scripts.Params map[string]json.RawMessage `json:"params,omitempty"`// ReduceScript Runs once on the coordinating node after all shards have returned their// results.// The script is provided with access to a variable `states`, which is an array// of the result of the `combine_script` on each shard.ReduceScript *Script `json:"reduce_script,omitempty"`Script *Script `json:"script,omitempty"`}ScriptedMetricAggregation type.
funcNewScriptedMetricAggregation¶added inv8.5.0
func NewScriptedMetricAggregation() *ScriptedMetricAggregation
NewScriptedMetricAggregation returns a ScriptedMetricAggregation.
func (*ScriptedMetricAggregation)UnmarshalJSON¶added inv8.7.1
func (s *ScriptedMetricAggregation) UnmarshalJSON(data []byte)error
typeScripting¶
type Scripting struct {// CacheEvictions Total number of times the script cache has evicted old data.CacheEvictions *int64 `json:"cache_evictions,omitempty"`// CompilationLimitTriggered Total number of times the script compilation circuit breaker has limited// inline script compilations.CompilationLimitTriggered *int64 `json:"compilation_limit_triggered,omitempty"`// Compilations Total number of inline script compilations performed by the node.Compilations *int64 `json:"compilations,omitempty"`// CompilationsHistory Contains this recent history of script compilations.CompilationsHistory map[string]int64 `json:"compilations_history,omitempty"`Contexts []NodesContext `json:"contexts,omitempty"`}Scripting type.
func (*Scripting)UnmarshalJSON¶added inv8.7.1
typeSearchAccess¶added inv8.17.0
type SearchAccess struct {// AllowRestrictedIndices Set to `true` if using wildcard or regular expressions for patterns that// cover restricted indices. Implicitly, restricted indices have limited// privileges that can cause pattern tests to fail. If restricted indices are// explicitly included in the `names` list, Elasticsearch checks privileges// against these indices regardless of the value set for// `allow_restricted_indices`.AllowRestrictedIndices *bool `json:"allow_restricted_indices,omitempty"`// FieldSecurity The document fields that the owners of the role have read access to.FieldSecurity *FieldSecurity `json:"field_security,omitempty"`// Names A list of indices (or index name patterns) to which the permissions in this// entry apply.Names []string `json:"names"`// Query A search query that defines the documents the owners of the role have access// to. A document within the specified indices must match this query for it to// be accessible by the owners of the role.QueryIndicesPrivilegesQuery `json:"query,omitempty"`}SearchAccess type.
funcNewSearchAccess¶added inv8.17.0
func NewSearchAccess() *SearchAccess
NewSearchAccess returns a SearchAccess.
func (*SearchAccess)UnmarshalJSON¶added inv8.17.0
func (s *SearchAccess) UnmarshalJSON(data []byte)error
typeSearchApplication¶added inv8.8.0
type SearchApplication struct {// AnalyticsCollectionName Analytics collection associated to the Search Application.AnalyticsCollectionName *string `json:"analytics_collection_name,omitempty"`// Indices Indices that are part of the Search Application.Indices []string `json:"indices"`// Name Search Application nameNamestring `json:"name"`// Template Search template to use on search operations.Template *SearchApplicationTemplate `json:"template,omitempty"`// UpdatedAtMillis Last time the Search Application was updated.UpdatedAtMillisint64 `json:"updated_at_millis"`}SearchApplication type.
funcNewSearchApplication¶added inv8.8.0
func NewSearchApplication() *SearchApplication
NewSearchApplication returns a SearchApplication.
func (*SearchApplication)UnmarshalJSON¶added inv8.8.0
func (s *SearchApplication) UnmarshalJSON(data []byte)error
typeSearchApplicationParameters¶added inv8.18.0
type SearchApplicationParameters struct {// AnalyticsCollectionName Analytics collection associated to the Search Application.AnalyticsCollectionName *string `json:"analytics_collection_name,omitempty"`// Indices Indices that are part of the Search Application.Indices []string `json:"indices"`// Template Search template to use on search operations.Template *SearchApplicationTemplate `json:"template,omitempty"`}SearchApplicationParameters type.
funcNewSearchApplicationParameters¶added inv8.18.0
func NewSearchApplicationParameters() *SearchApplicationParameters
NewSearchApplicationParameters returns a SearchApplicationParameters.
func (*SearchApplicationParameters)UnmarshalJSON¶added inv8.18.0
func (s *SearchApplicationParameters) UnmarshalJSON(data []byte)error
typeSearchApplicationTemplate¶added inv8.8.0
type SearchApplicationTemplate struct {// Script The associated mustache template.ScriptScript `json:"script"`}SearchApplicationTemplate type.
funcNewSearchApplicationTemplate¶added inv8.8.0
func NewSearchApplicationTemplate() *SearchApplicationTemplate
NewSearchApplicationTemplate returns a SearchApplicationTemplate.
typeSearchAsYouTypeProperty¶
type SearchAsYouTypeProperty struct {Analyzer *string `json:"analyzer,omitempty"`CopyTo []string `json:"copy_to,omitempty"`Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`Fields map[string]Property `json:"fields,omitempty"`IgnoreAbove *int `json:"ignore_above,omitempty"`Index *bool `json:"index,omitempty"`IndexOptions *indexoptions.IndexOptions `json:"index_options,omitempty"`MaxShingleSize *int `json:"max_shingle_size,omitempty"`// Meta Metadata about the field.Meta map[string]string `json:"meta,omitempty"`Norms *bool `json:"norms,omitempty"`Properties map[string]Property `json:"properties,omitempty"`SearchAnalyzer *string `json:"search_analyzer,omitempty"`SearchQuoteAnalyzer *string `json:"search_quote_analyzer,omitempty"`Similarity *string `json:"similarity,omitempty"`Store *bool `json:"store,omitempty"`SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`TermVector *termvectoroption.TermVectorOption `json:"term_vector,omitempty"`Typestring `json:"type,omitempty"`}SearchAsYouTypeProperty type.
funcNewSearchAsYouTypeProperty¶added inv8.5.0
func NewSearchAsYouTypeProperty() *SearchAsYouTypeProperty
NewSearchAsYouTypeProperty returns a SearchAsYouTypeProperty.
func (SearchAsYouTypeProperty)MarshalJSON¶added inv8.9.0
func (sSearchAsYouTypeProperty) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*SearchAsYouTypeProperty)UnmarshalJSON¶added inv8.7.0
func (s *SearchAsYouTypeProperty) UnmarshalJSON(data []byte)error
typeSearchIdle¶
type SearchIdle struct {AfterDuration `json:"after,omitempty"`}SearchIdle type.
func (*SearchIdle)UnmarshalJSON¶added inv8.7.1
func (s *SearchIdle) UnmarshalJSON(data []byte)error
typeSearchInput¶
type SearchInput struct {Extract []string `json:"extract,omitempty"`RequestSearchInputRequestDefinition `json:"request"`TimeoutDuration `json:"timeout,omitempty"`}SearchInput type.
funcNewSearchInput¶added inv8.5.0
func NewSearchInput() *SearchInput
NewSearchInput returns a SearchInput.
func (*SearchInput)UnmarshalJSON¶added inv8.7.1
func (s *SearchInput) UnmarshalJSON(data []byte)error
typeSearchInputRequestBody¶
type SearchInputRequestBody struct {QueryQuery `json:"query"`}SearchInputRequestBody type.
funcNewSearchInputRequestBody¶added inv8.5.0
func NewSearchInputRequestBody() *SearchInputRequestBody
NewSearchInputRequestBody returns a SearchInputRequestBody.
typeSearchInputRequestDefinition¶
type SearchInputRequestDefinition struct {Body *SearchInputRequestBody `json:"body,omitempty"`Indices []string `json:"indices,omitempty"`IndicesOptions *IndicesOptions `json:"indices_options,omitempty"`RestTotalHitsAsInt *bool `json:"rest_total_hits_as_int,omitempty"`SearchType *searchtype.SearchType `json:"search_type,omitempty"`Template *SearchTemplateRequestBody `json:"template,omitempty"`}SearchInputRequestDefinition type.
funcNewSearchInputRequestDefinition¶added inv8.5.0
func NewSearchInputRequestDefinition() *SearchInputRequestDefinition
NewSearchInputRequestDefinition returns a SearchInputRequestDefinition.
func (*SearchInputRequestDefinition)UnmarshalJSON¶added inv8.7.1
func (s *SearchInputRequestDefinition) UnmarshalJSON(data []byte)error
typeSearchProfile¶
type SearchProfile struct {Collector []Collector `json:"collector"`Query []QueryProfile `json:"query"`RewriteTimeint64 `json:"rewrite_time"`}SearchProfile type.
funcNewSearchProfile¶added inv8.5.0
func NewSearchProfile() *SearchProfile
NewSearchProfile returns a SearchProfile.
func (*SearchProfile)UnmarshalJSON¶added inv8.7.1
func (s *SearchProfile) UnmarshalJSON(data []byte)error
typeSearchShardsNodeAttributes¶added inv8.16.0
type SearchShardsNodeAttributes struct {// Attributes Lists node attributes.Attributes map[string]string `json:"attributes"`// EphemeralId The ephemeral ID of the node.EphemeralIdstring `json:"ephemeral_id"`ExternalIdstring `json:"external_id"`MaxIndexVersionint `json:"max_index_version"`MinIndexVersionint `json:"min_index_version"`// Name The human-readable identifier of the node.Namestring `json:"name"`Roles []noderole.NodeRole `json:"roles"`// TransportAddress The host and port where transport HTTP connections are accepted.TransportAddressstring `json:"transport_address"`Versionstring `json:"version"`}SearchShardsNodeAttributes type.
funcNewSearchShardsNodeAttributes¶added inv8.16.0
func NewSearchShardsNodeAttributes() *SearchShardsNodeAttributes
NewSearchShardsNodeAttributes returns a SearchShardsNodeAttributes.
func (*SearchShardsNodeAttributes)UnmarshalJSON¶added inv8.16.0
func (s *SearchShardsNodeAttributes) UnmarshalJSON(data []byte)error
typeSearchStats¶
type SearchStats struct {FetchCurrentint64 `json:"fetch_current"`FetchTimeDuration `json:"fetch_time,omitempty"`FetchTimeInMillisint64 `json:"fetch_time_in_millis"`FetchTotalint64 `json:"fetch_total"`Groups map[string]SearchStats `json:"groups,omitempty"`OpenContexts *int64 `json:"open_contexts,omitempty"`QueryCurrentint64 `json:"query_current"`QueryTimeDuration `json:"query_time,omitempty"`QueryTimeInMillisint64 `json:"query_time_in_millis"`QueryTotalint64 `json:"query_total"`ScrollCurrentint64 `json:"scroll_current"`ScrollTimeDuration `json:"scroll_time,omitempty"`ScrollTimeInMillisint64 `json:"scroll_time_in_millis"`ScrollTotalint64 `json:"scroll_total"`SuggestCurrentint64 `json:"suggest_current"`SuggestTimeDuration `json:"suggest_time,omitempty"`SuggestTimeInMillisint64 `json:"suggest_time_in_millis"`SuggestTotalint64 `json:"suggest_total"`}SearchStats type.
funcNewSearchStats¶added inv8.5.0
func NewSearchStats() *SearchStats
NewSearchStats returns a SearchStats.
func (*SearchStats)UnmarshalJSON¶added inv8.7.1
func (s *SearchStats) UnmarshalJSON(data []byte)error
typeSearchTemplateRequestBody¶
type SearchTemplateRequestBody struct {Explain *bool `json:"explain,omitempty"`// Id ID of the search template to use. If no source is specified,// this parameter is required.Id *string `json:"id,omitempty"`Params map[string]json.RawMessage `json:"params,omitempty"`Profile *bool `json:"profile,omitempty"`// Source An inline search template. Supports the same parameters as the search API's// request body. Also supports Mustache variables. If no id is specified, this// parameter is required.Source *string `json:"source,omitempty"`}SearchTemplateRequestBody type.
funcNewSearchTemplateRequestBody¶added inv8.5.0
func NewSearchTemplateRequestBody() *SearchTemplateRequestBody
NewSearchTemplateRequestBody returns a SearchTemplateRequestBody.
func (*SearchTemplateRequestBody)UnmarshalJSON¶added inv8.7.1
func (s *SearchTemplateRequestBody) UnmarshalJSON(data []byte)error
typeSearchTransform¶
type SearchTransform struct {RequestSearchInputRequestDefinition `json:"request"`TimeoutDuration `json:"timeout"`}SearchTransform type.
funcNewSearchTransform¶added inv8.5.0
func NewSearchTransform() *SearchTransform
NewSearchTransform returns a SearchTransform.
func (*SearchTransform)UnmarshalJSON¶added inv8.7.1
func (s *SearchTransform) UnmarshalJSON(data []byte)error
typeSearchUsageStats¶added inv8.19.0
type SearchUsageStats struct {Queries map[string]int64 `json:"queries"`Rescorers map[string]int64 `json:"rescorers"`Retrievers map[string]int64 `json:"retrievers"`Sections map[string]int64 `json:"sections"`Totalint64 `json:"total"`}SearchUsageStats type.
funcNewSearchUsageStats¶added inv8.19.0
func NewSearchUsageStats() *SearchUsageStats
NewSearchUsageStats returns a SearchUsageStats.
func (*SearchUsageStats)UnmarshalJSON¶added inv8.19.0
func (s *SearchUsageStats) UnmarshalJSON(data []byte)error
typeSearchableSnapshotAction¶added inv8.15.0
type SearchableSnapshotAction struct {ForceMergeIndex *bool `json:"force_merge_index,omitempty"`SnapshotRepositorystring `json:"snapshot_repository"`}SearchableSnapshotAction type.
funcNewSearchableSnapshotAction¶added inv8.15.0
func NewSearchableSnapshotAction() *SearchableSnapshotAction
NewSearchableSnapshotAction returns a SearchableSnapshotAction.
func (*SearchableSnapshotAction)UnmarshalJSON¶added inv8.15.0
func (s *SearchableSnapshotAction) UnmarshalJSON(data []byte)error
typeSearchableSnapshots¶
type SearchableSnapshots struct {Availablebool `json:"available"`Enabledbool `json:"enabled"`FullCopyIndicesCount *int `json:"full_copy_indices_count,omitempty"`IndicesCountint `json:"indices_count"`SharedCacheIndicesCount *int `json:"shared_cache_indices_count,omitempty"`}SearchableSnapshots type.
funcNewSearchableSnapshots¶added inv8.5.0
func NewSearchableSnapshots() *SearchableSnapshots
NewSearchableSnapshots returns a SearchableSnapshots.
func (*SearchableSnapshots)UnmarshalJSON¶added inv8.7.1
func (s *SearchableSnapshots) UnmarshalJSON(data []byte)error
typeSecurity¶
type Security struct {AnonymousFeatureToggle `json:"anonymous"`ApiKeyServiceFeatureToggle `json:"api_key_service"`AuditAudit `json:"audit"`Availablebool `json:"available"`Enabledbool `json:"enabled"`Fips140FeatureToggle `json:"fips_140"`IpfilterIpFilter `json:"ipfilter"`OperatorPrivilegesBase `json:"operator_privileges"`Realms map[string]XpackRealm `json:"realms"`RoleMapping map[string]XpackRoleMapping `json:"role_mapping"`RolesSecurityRoles `json:"roles"`SslSsl `json:"ssl"`SystemKey *FeatureToggle `json:"system_key,omitempty"`TokenServiceFeatureToggle `json:"token_service"`}Security type.
func (*Security)UnmarshalJSON¶added inv8.7.1
typeSecurityRoleMapping¶added inv8.5.0
type SecurityRoleMapping struct {Enabledbool `json:"enabled"`MetadataMetadata `json:"metadata"`RoleTemplates []RoleTemplate `json:"role_templates,omitempty"`Roles []string `json:"roles,omitempty"`RulesRoleMappingRule `json:"rules"`}SecurityRoleMapping type.
funcNewSecurityRoleMapping¶added inv8.5.0
func NewSecurityRoleMapping() *SecurityRoleMapping
NewSecurityRoleMapping returns a SecurityRoleMapping.
func (*SecurityRoleMapping)UnmarshalJSON¶added inv8.7.1
func (s *SecurityRoleMapping) UnmarshalJSON(data []byte)error
typeSecurityRoles¶
type SecurityRoles struct {DlsSecurityRolesDls `json:"dls"`FileSecurityRolesFile `json:"file"`NativeSecurityRolesNative `json:"native"`}SecurityRoles type.
funcNewSecurityRoles¶added inv8.5.0
func NewSecurityRoles() *SecurityRoles
NewSecurityRoles returns a SecurityRoles.
typeSecurityRolesDls¶
type SecurityRolesDls struct {BitSetCacheSecurityRolesDlsBitSetCache `json:"bit_set_cache"`}SecurityRolesDls type.
funcNewSecurityRolesDls¶added inv8.5.0
func NewSecurityRolesDls() *SecurityRolesDls
NewSecurityRolesDls returns a SecurityRolesDls.
typeSecurityRolesDlsBitSetCache¶
type SecurityRolesDlsBitSetCache struct {Countint `json:"count"`MemoryByteSize `json:"memory,omitempty"`MemoryInBytesuint64 `json:"memory_in_bytes"`}SecurityRolesDlsBitSetCache type.
funcNewSecurityRolesDlsBitSetCache¶added inv8.5.0
func NewSecurityRolesDlsBitSetCache() *SecurityRolesDlsBitSetCache
NewSecurityRolesDlsBitSetCache returns a SecurityRolesDlsBitSetCache.
func (*SecurityRolesDlsBitSetCache)UnmarshalJSON¶added inv8.7.1
func (s *SecurityRolesDlsBitSetCache) UnmarshalJSON(data []byte)error
typeSecurityRolesFile¶
SecurityRolesFile type.
funcNewSecurityRolesFile¶added inv8.5.0
func NewSecurityRolesFile() *SecurityRolesFile
NewSecurityRolesFile returns a SecurityRolesFile.
func (*SecurityRolesFile)UnmarshalJSON¶added inv8.7.1
func (s *SecurityRolesFile) UnmarshalJSON(data []byte)error
typeSecurityRolesNative¶
SecurityRolesNative type.
funcNewSecurityRolesNative¶added inv8.5.0
func NewSecurityRolesNative() *SecurityRolesNative
NewSecurityRolesNative returns a SecurityRolesNative.
func (*SecurityRolesNative)UnmarshalJSON¶added inv8.7.1
func (s *SecurityRolesNative) UnmarshalJSON(data []byte)error
typeSecuritySettings¶added inv8.18.0
type SecuritySettings struct {Index *IndexSettings `json:"index,omitempty"`}SecuritySettings type.
funcNewSecuritySettings¶added inv8.18.0
func NewSecuritySettings() *SecuritySettings
NewSecuritySettings returns a SecuritySettings.
typeSegment¶
type Segment struct {Attributes map[string]string `json:"attributes"`Committedbool `json:"committed"`Compoundbool `json:"compound"`DeletedDocsint64 `json:"deleted_docs"`Generationint `json:"generation"`NumDocsint64 `json:"num_docs"`Searchbool `json:"search"`SizeInBytesFloat64 `json:"size_in_bytes"`Versionstring `json:"version"`}Segment type.
func (*Segment)UnmarshalJSON¶added inv8.7.1
typeSegmentsRecord¶
type SegmentsRecord struct {// Committed If `true`, the segment is synced to disk.// Segments that are synced can survive a hard reboot.// If `false`, the data from uncommitted segments is also stored in the// transaction log so that Elasticsearch is able to replay changes on the next// start.Committed *string `json:"committed,omitempty"`// Compound If `true`, the segment is stored in a compound file.// This means Lucene merged all files from the segment in a single file to save// file descriptors.Compound *string `json:"compound,omitempty"`// DocsCount The number of documents in the segment.// This excludes deleted documents and counts any nested documents separately// from their parents.// It also excludes documents which were indexed recently and do not yet belong// to a segment.DocsCount *string `json:"docs.count,omitempty"`// DocsDeleted The number of deleted documents in the segment, which might be higher or// lower than the number of delete operations you have performed.// This number excludes deletes that were performed recently and do not yet// belong to a segment.// Deleted documents are cleaned up by the automatic merge process if it makes// sense to do so.// Also, Elasticsearch creates extra deleted documents to internally track the// recent history of operations on a shard.DocsDeleted *string `json:"docs.deleted,omitempty"`// Generation The segment generation number.// Elasticsearch increments this generation number for each segment written then// uses this number to derive the segment name.Generation *string `json:"generation,omitempty"`// Id The unique identifier of the node where it lives.Id *string `json:"id,omitempty"`// Index The index name.Index *string `json:"index,omitempty"`// Ip The IP address of the node where it lives.Ip *string `json:"ip,omitempty"`// Prirep The shard type: `primary` or `replica`.Prirep *string `json:"prirep,omitempty"`// Searchable If `true`, the segment is searchable.// If `false`, the segment has most likely been written to disk but needs a// refresh to be searchable.Searchable *string `json:"searchable,omitempty"`// Segment The segment name, which is derived from the segment generation and used// internally to create file names in the directory of the shard.Segment *string `json:"segment,omitempty"`// Shard The shard name.Shard *string `json:"shard,omitempty"`// Size The segment size in bytes.SizeByteSize `json:"size,omitempty"`// SizeMemory The segment memory in bytes.// A value of `-1` indicates Elasticsearch was unable to compute this number.SizeMemoryByteSize `json:"size.memory,omitempty"`// Version The version of Lucene used to write the segment.Version *string `json:"version,omitempty"`}SegmentsRecord type.
funcNewSegmentsRecord¶added inv8.5.0
func NewSegmentsRecord() *SegmentsRecord
NewSegmentsRecord returns a SegmentsRecord.
func (*SegmentsRecord)UnmarshalJSON¶added inv8.7.1
func (s *SegmentsRecord) UnmarshalJSON(data []byte)error
typeSegmentsStats¶
type SegmentsStats struct {// Count Total number of segments across all shards assigned to selected nodes.Countint `json:"count"`// DocValuesMemory Total amount of memory used for doc values across all shards assigned to// selected nodes.DocValuesMemoryByteSize `json:"doc_values_memory,omitempty"`// DocValuesMemoryInBytes Total amount, in bytes, of memory used for doc values across all shards// assigned to selected nodes.DocValuesMemoryInBytesint64 `json:"doc_values_memory_in_bytes"`// FileSizes This object is not populated by the cluster stats API.// To get information on segment files, use the node stats API.FileSizes map[string]ShardFileSizeInfo `json:"file_sizes"`// FixedBitSet Total amount of memory used by fixed bit sets across all shards assigned to// selected nodes.// Fixed bit sets are used for nested object field types and type filters for// join fields.FixedBitSetByteSize `json:"fixed_bit_set,omitempty"`// FixedBitSetMemoryInBytes Total amount of memory, in bytes, used by fixed bit sets across all shards// assigned to selected nodes.FixedBitSetMemoryInBytesint64 `json:"fixed_bit_set_memory_in_bytes"`// IndexWriterMemory Total amount of memory used by all index writers across all shards assigned// to selected nodes.IndexWriterMemoryByteSize `json:"index_writer_memory,omitempty"`// IndexWriterMemoryInBytes Total amount, in bytes, of memory used by all index writers across all shards// assigned to selected nodes.IndexWriterMemoryInBytesint64 `json:"index_writer_memory_in_bytes"`// MaxUnsafeAutoIdTimestamp Unix timestamp, in milliseconds, of the most recently retried indexing// request.MaxUnsafeAutoIdTimestampint64 `json:"max_unsafe_auto_id_timestamp"`// Memory Total amount of memory used for segments across all shards assigned to// selected nodes.MemoryByteSize `json:"memory,omitempty"`// MemoryInBytes Total amount, in bytes, of memory used for segments across all shards// assigned to selected nodes.MemoryInBytesint64 `json:"memory_in_bytes"`// NormsMemory Total amount of memory used for normalization factors across all shards// assigned to selected nodes.NormsMemoryByteSize `json:"norms_memory,omitempty"`// NormsMemoryInBytes Total amount, in bytes, of memory used for normalization factors across all// shards assigned to selected nodes.NormsMemoryInBytesint64 `json:"norms_memory_in_bytes"`// PointsMemory Total amount of memory used for points across all shards assigned to selected// nodes.PointsMemoryByteSize `json:"points_memory,omitempty"`// PointsMemoryInBytes Total amount, in bytes, of memory used for points across all shards assigned// to selected nodes.PointsMemoryInBytesint64 `json:"points_memory_in_bytes"`// StoredFieldsMemory Total amount of memory used for stored fields across all shards assigned to// selected nodes.StoredFieldsMemoryByteSize `json:"stored_fields_memory,omitempty"`// StoredFieldsMemoryInBytes Total amount, in bytes, of memory used for stored fields across all shards// assigned to selected nodes.StoredFieldsMemoryInBytesint64 `json:"stored_fields_memory_in_bytes"`// TermVectorsMemory Total amount of memory used for term vectors across all shards assigned to// selected nodes.TermVectorsMemoryByteSize `json:"term_vectors_memory,omitempty"`// TermVectorsMemoryInBytes Total amount, in bytes, of memory used for term vectors across all shards// assigned to selected nodes.TermVectorsMemoryInBytesint64 `json:"term_vectors_memory_in_bytes"`// TermsMemory Total amount of memory used for terms across all shards assigned to selected// nodes.TermsMemoryByteSize `json:"terms_memory,omitempty"`// TermsMemoryInBytes Total amount, in bytes, of memory used for terms across all shards assigned// to selected nodes.TermsMemoryInBytesint64 `json:"terms_memory_in_bytes"`// VersionMapMemory Total amount of memory used by all version maps across all shards assigned to// selected nodes.VersionMapMemoryByteSize `json:"version_map_memory,omitempty"`// VersionMapMemoryInBytes Total amount, in bytes, of memory used by all version maps across all shards// assigned to selected nodes.VersionMapMemoryInBytesint64 `json:"version_map_memory_in_bytes"`}SegmentsStats type.
funcNewSegmentsStats¶added inv8.5.0
func NewSegmentsStats() *SegmentsStats
NewSegmentsStats returns a SegmentsStats.
func (*SegmentsStats)UnmarshalJSON¶added inv8.7.1
func (s *SegmentsStats) UnmarshalJSON(data []byte)error
typeSelectOption¶added inv8.15.0
type SelectOption struct {Labelstring `json:"label"`ValueScalarValue `json:"value"`}SelectOption type.
funcNewSelectOption¶added inv8.15.0
func NewSelectOption() *SelectOption
NewSelectOption returns a SelectOption.
func (*SelectOption)UnmarshalJSON¶added inv8.15.0
func (s *SelectOption) UnmarshalJSON(data []byte)error
typeSemanticQuery¶added inv8.15.0
type SemanticQuery struct {// Boost Floating point number used to decrease or increase the relevance scores of// the query.// Boost values are relative to the default value of 1.0.// A boost value between 0 and 1.0 decreases the relevance score.// A value greater than 1.0 increases the relevance score.Boost *float32 `json:"boost,omitempty"`// Field The field to query, which must be a semantic_text field typeFieldstring `json:"field"`// Query The query textQuerystring `json:"query"`QueryName_ *string `json:"_name,omitempty"`}SemanticQuery type.
funcNewSemanticQuery¶added inv8.15.0
func NewSemanticQuery() *SemanticQuery
NewSemanticQuery returns a SemanticQuery.
func (*SemanticQuery)UnmarshalJSON¶added inv8.15.0
func (s *SemanticQuery) UnmarshalJSON(data []byte)error
typeSemanticTextIndexOptions¶added inv8.19.0
type SemanticTextIndexOptions struct {DenseVector *DenseVectorIndexOptions `json:"dense_vector,omitempty"`}SemanticTextIndexOptions type.
funcNewSemanticTextIndexOptions¶added inv8.19.0
func NewSemanticTextIndexOptions() *SemanticTextIndexOptions
NewSemanticTextIndexOptions returns a SemanticTextIndexOptions.
typeSemanticTextProperty¶added inv8.15.0
type SemanticTextProperty struct {// ChunkingSettings Settings for chunking text into smaller passages. If specified, these will// override the// chunking settings sent in the inference endpoint associated with// inference_id. If chunking settings are updated,// they will not be applied to existing documents until they are reindexed.ChunkingSettings *ChunkingSettings `json:"chunking_settings,omitempty"`// IndexOptions Settings for index_options that override any defaults used by semantic_text,// for example// specific quantization settings.IndexOptions *SemanticTextIndexOptions `json:"index_options,omitempty"`// InferenceId Inference endpoint that will be used to generate embeddings for the field.// This parameter cannot be updated. Use the Create inference API to create the// endpoint.// If `search_inference_id` is specified, the inference endpoint will only be// used at index time.InferenceId *string `json:"inference_id,omitempty"`Meta map[string]string `json:"meta,omitempty"`// SearchInferenceId Inference endpoint that will be used to generate embeddings at query time.// You can update this parameter by using the Update mapping API. Use the Create// inference API to create the endpoint.// If not specified, the inference endpoint defined by inference_id will be used// at both index and query time.SearchInferenceId *string `json:"search_inference_id,omitempty"`Typestring `json:"type,omitempty"`}SemanticTextProperty type.
funcNewSemanticTextProperty¶added inv8.15.0
func NewSemanticTextProperty() *SemanticTextProperty
NewSemanticTextProperty returns a SemanticTextProperty.
func (SemanticTextProperty)MarshalJSON¶added inv8.15.0
func (sSemanticTextProperty) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*SemanticTextProperty)UnmarshalJSON¶added inv8.15.0
func (s *SemanticTextProperty) UnmarshalJSON(data []byte)error
typeSerbianAnalyzer¶added inv8.16.0
type SerbianAnalyzer struct {StemExclusion []string `json:"stem_exclusion,omitempty"`StopwordsStopWords `json:"stopwords,omitempty"`StopwordsPath *string `json:"stopwords_path,omitempty"`Typestring `json:"type,omitempty"`}SerbianAnalyzer type.
funcNewSerbianAnalyzer¶added inv8.16.0
func NewSerbianAnalyzer() *SerbianAnalyzer
NewSerbianAnalyzer returns a SerbianAnalyzer.
func (SerbianAnalyzer)MarshalJSON¶added inv8.16.0
func (sSerbianAnalyzer) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*SerbianAnalyzer)UnmarshalJSON¶added inv8.16.0
func (s *SerbianAnalyzer) UnmarshalJSON(data []byte)error
typeSerbianNormalizationTokenFilter¶added inv8.18.1
type SerbianNormalizationTokenFilter struct {Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}SerbianNormalizationTokenFilter type.
funcNewSerbianNormalizationTokenFilter¶added inv8.18.1
func NewSerbianNormalizationTokenFilter() *SerbianNormalizationTokenFilter
NewSerbianNormalizationTokenFilter returns a SerbianNormalizationTokenFilter.
func (SerbianNormalizationTokenFilter)MarshalJSON¶added inv8.18.1
func (sSerbianNormalizationTokenFilter) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*SerbianNormalizationTokenFilter)UnmarshalJSON¶added inv8.18.1
func (s *SerbianNormalizationTokenFilter) UnmarshalJSON(data []byte)error
typeSerialDifferencingAggregation¶
type SerialDifferencingAggregation struct {// BucketsPath Path to the buckets that contain one set of values to correlate.BucketsPathBucketsPath `json:"buckets_path,omitempty"`// Format `DecimalFormat` pattern for the output value.// If specified, the formatted value is returned in the aggregation’s// `value_as_string` property.Format *string `json:"format,omitempty"`// GapPolicy Policy to apply when gaps are found in the data.GapPolicy *gappolicy.GapPolicy `json:"gap_policy,omitempty"`// Lag The historical bucket to subtract from the current value.// Must be a positive, non-zero integer.Lag *int `json:"lag,omitempty"`}SerialDifferencingAggregation type.
funcNewSerialDifferencingAggregation¶added inv8.5.0
func NewSerialDifferencingAggregation() *SerialDifferencingAggregation
NewSerialDifferencingAggregation returns a SerialDifferencingAggregation.
func (*SerialDifferencingAggregation)UnmarshalJSON¶added inv8.7.0
func (s *SerialDifferencingAggregation) UnmarshalJSON(data []byte)error
typeSerializedClusterState¶
type SerializedClusterState struct {Diffs *SerializedClusterStateDetail `json:"diffs,omitempty"`// FullStates Number of published cluster states.FullStates *SerializedClusterStateDetail `json:"full_states,omitempty"`}SerializedClusterState type.
funcNewSerializedClusterState¶added inv8.5.0
func NewSerializedClusterState() *SerializedClusterState
NewSerializedClusterState returns a SerializedClusterState.
typeSerializedClusterStateDetail¶
type SerializedClusterStateDetail struct {CompressedSize *string `json:"compressed_size,omitempty"`CompressedSizeInBytes *int64 `json:"compressed_size_in_bytes,omitempty"`Count *int64 `json:"count,omitempty"`UncompressedSize *string `json:"uncompressed_size,omitempty"`UncompressedSizeInBytes *int64 `json:"uncompressed_size_in_bytes,omitempty"`}SerializedClusterStateDetail type.
funcNewSerializedClusterStateDetail¶added inv8.5.0
func NewSerializedClusterStateDetail() *SerializedClusterStateDetail
NewSerializedClusterStateDetail returns a SerializedClusterStateDetail.
func (*SerializedClusterStateDetail)UnmarshalJSON¶added inv8.7.1
func (s *SerializedClusterStateDetail) UnmarshalJSON(data []byte)error
typeServiceToken¶added inv8.5.0
ServiceToken type.
funcNewServiceToken¶added inv8.5.0
func NewServiceToken() *ServiceToken
NewServiceToken returns a ServiceToken.
func (*ServiceToken)UnmarshalJSON¶added inv8.7.1
func (s *ServiceToken) UnmarshalJSON(data []byte)error
typeSetPriorityAction¶added inv8.15.0
type SetPriorityAction struct {Priority *int `json:"priority,omitempty"`}SetPriorityAction type.
funcNewSetPriorityAction¶added inv8.15.0
func NewSetPriorityAction() *SetPriorityAction
NewSetPriorityAction returns a SetPriorityAction.
func (*SetPriorityAction)UnmarshalJSON¶added inv8.15.0
func (s *SetPriorityAction) UnmarshalJSON(data []byte)error
typeSetProcessor¶
type SetProcessor struct {// CopyFrom The origin field which will be copied to `field`, cannot set `value`// simultaneously.// Supported data types are `boolean`, `number`, `array`, `object`, `string`,// `date`, etc.CopyFrom *string `json:"copy_from,omitempty"`// Description Description of the processor.// Useful for describing the purpose of the processor or its configuration.Description *string `json:"description,omitempty"`// Field The field to insert, upsert, or update.// Supports template snippets.Fieldstring `json:"field"`// If Conditionally execute the processor.If *string `json:"if,omitempty"`// IgnoreEmptyValue If `true` and `value` is a template snippet that evaluates to `null` or the// empty string, the processor quietly exits without modifying the document.IgnoreEmptyValue *bool `json:"ignore_empty_value,omitempty"`// IgnoreFailure Ignore failures for the processor.IgnoreFailure *bool `json:"ignore_failure,omitempty"`// MediaType The media type for encoding `value`.// Applies only when value is a template snippet.// Must be one of `application/json`, `text/plain`, or// `application/x-www-form-urlencoded`.MediaType *string `json:"media_type,omitempty"`// OnFailure Handle failures for the processor.OnFailure []ProcessorContainer `json:"on_failure,omitempty"`// Override If `true` processor will update fields with pre-existing non-null-valued// field.// When set to `false`, such fields will not be touched.Override *bool `json:"override,omitempty"`// Tag Identifier for the processor.// Useful for debugging and metrics.Tag *string `json:"tag,omitempty"`// Value The value to be set for the field.// Supports template snippets.// May specify only one of `value` or `copy_from`.Valuejson.RawMessage `json:"value,omitempty"`}SetProcessor type.
funcNewSetProcessor¶added inv8.5.0
func NewSetProcessor() *SetProcessor
NewSetProcessor returns a SetProcessor.
func (*SetProcessor)UnmarshalJSON¶added inv8.7.1
func (s *SetProcessor) UnmarshalJSON(data []byte)error
typeSetSecurityUserProcessor¶
type SetSecurityUserProcessor struct {// Description Description of the processor.// Useful for describing the purpose of the processor or its configuration.Description *string `json:"description,omitempty"`// Field The field to store the user information into.Fieldstring `json:"field"`// If Conditionally execute the processor.If *string `json:"if,omitempty"`// IgnoreFailure Ignore failures for the processor.IgnoreFailure *bool `json:"ignore_failure,omitempty"`// OnFailure Handle failures for the processor.OnFailure []ProcessorContainer `json:"on_failure,omitempty"`// Properties Controls what user related properties are added to the field.Properties []string `json:"properties,omitempty"`// Tag Identifier for the processor.// Useful for debugging and metrics.Tag *string `json:"tag,omitempty"`}SetSecurityUserProcessor type.
funcNewSetSecurityUserProcessor¶added inv8.5.0
func NewSetSecurityUserProcessor() *SetSecurityUserProcessor
NewSetSecurityUserProcessor returns a SetSecurityUserProcessor.
func (*SetSecurityUserProcessor)UnmarshalJSON¶added inv8.7.1
func (s *SetSecurityUserProcessor) UnmarshalJSON(data []byte)error
typeSettings¶
type Settings struct {// AlignCheckpoints Specifies whether the transform checkpoint ranges should be optimized for// performance. Such optimization can align// checkpoint ranges with the date histogram interval when date histogram is// specified as a group source in the// transform config. As a result, less document updates in the destination index// will be performed thus improving// overall performance.AlignCheckpoints *bool `json:"align_checkpoints,omitempty"`// DatesAsEpochMillis Defines if dates in the ouput should be written as ISO formatted string or as// millis since epoch. epoch_millis was// the default for transforms created before version 7.11. For compatible output// set this value to `true`.DatesAsEpochMillis *bool `json:"dates_as_epoch_millis,omitempty"`// DeduceMappings Specifies whether the transform should deduce the destination index mappings// from the transform configuration.DeduceMappings *bool `json:"deduce_mappings,omitempty"`// DocsPerSecond Specifies a limit on the number of input documents per second. This setting// throttles the transform by adding a// wait time between search requests. The default value is null, which disables// throttling.DocsPerSecond *float32 `json:"docs_per_second,omitempty"`// MaxPageSearchSize Defines the initial page size to use for the composite aggregation for each// checkpoint. If circuit breaker// exceptions occur, the page size is dynamically adjusted to a lower value. The// minimum value is `10` and the// maximum is `65,536`.MaxPageSearchSize *int `json:"max_page_search_size,omitempty"`// Unattended If `true`, the transform runs in unattended mode. In unattended mode, the// transform retries indefinitely in case// of an error which means the transform never fails. Setting the number of// retries other than infinite fails in// validation.Unattended *bool `json:"unattended,omitempty"`}Settings type.
func (*Settings)UnmarshalJSON¶added inv8.7.1
typeSettingsAnalyze¶
type SettingsAnalyze struct {MaxTokenCountStringifiedinteger `json:"max_token_count,omitempty"`}SettingsAnalyze type.
funcNewSettingsAnalyze¶added inv8.5.0
func NewSettingsAnalyze() *SettingsAnalyze
NewSettingsAnalyze returns a SettingsAnalyze.
func (*SettingsAnalyze)UnmarshalJSON¶added inv8.7.1
func (s *SettingsAnalyze) UnmarshalJSON(data []byte)error
typeSettingsHighlight¶
type SettingsHighlight struct {MaxAnalyzedOffset *int `json:"max_analyzed_offset,omitempty"`}SettingsHighlight type.
funcNewSettingsHighlight¶added inv8.5.0
func NewSettingsHighlight() *SettingsHighlight
NewSettingsHighlight returns a SettingsHighlight.
func (*SettingsHighlight)UnmarshalJSON¶added inv8.7.1
func (s *SettingsHighlight) UnmarshalJSON(data []byte)error
typeSettingsQueryString¶
type SettingsQueryString struct {LenientStringifiedboolean `json:"lenient"`}SettingsQueryString type.
funcNewSettingsQueryString¶added inv8.5.0
func NewSettingsQueryString() *SettingsQueryString
NewSettingsQueryString returns a SettingsQueryString.
func (*SettingsQueryString)UnmarshalJSON¶added inv8.7.1
func (s *SettingsQueryString) UnmarshalJSON(data []byte)error
typeSettingsSearch¶
type SettingsSearch struct {Idle *SearchIdle `json:"idle,omitempty"`Slowlog *SlowlogSettings `json:"slowlog,omitempty"`}SettingsSearch type.
funcNewSettingsSearch¶added inv8.5.0
func NewSettingsSearch() *SettingsSearch
NewSettingsSearch returns a SettingsSearch.
typeSettingsSimilarity¶
type SettingsSimilarityany
SettingsSimilarity holds the union for the following types:
SettingsSimilarityBm25SettingsSimilarityBooleanSettingsSimilarityDfiSettingsSimilarityDfrSettingsSimilarityIbSettingsSimilarityLmdSettingsSimilarityLmjSettingsSimilarityScripted
typeSettingsSimilarityBm25¶
type SettingsSimilarityBm25 struct {B *Float64 `json:"b,omitempty"`DiscountOverlaps *bool `json:"discount_overlaps,omitempty"`K1 *Float64 `json:"k1,omitempty"`Typestring `json:"type,omitempty"`}SettingsSimilarityBm25 type.
funcNewSettingsSimilarityBm25¶added inv8.5.0
func NewSettingsSimilarityBm25() *SettingsSimilarityBm25
NewSettingsSimilarityBm25 returns a SettingsSimilarityBm25.
func (SettingsSimilarityBm25)MarshalJSON¶added inv8.9.0
func (sSettingsSimilarityBm25) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*SettingsSimilarityBm25)UnmarshalJSON¶added inv8.7.1
func (s *SettingsSimilarityBm25) UnmarshalJSON(data []byte)error
typeSettingsSimilarityBoolean¶added inv8.13.0
type SettingsSimilarityBoolean struct {Typestring `json:"type,omitempty"`}SettingsSimilarityBoolean type.
funcNewSettingsSimilarityBoolean¶added inv8.13.0
func NewSettingsSimilarityBoolean() *SettingsSimilarityBoolean
NewSettingsSimilarityBoolean returns a SettingsSimilarityBoolean.
func (SettingsSimilarityBoolean)MarshalJSON¶added inv8.13.0
func (sSettingsSimilarityBoolean) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
typeSettingsSimilarityDfi¶
type SettingsSimilarityDfi struct {IndependenceMeasuredfiindependencemeasure.DFIIndependenceMeasure `json:"independence_measure"`Typestring `json:"type,omitempty"`}SettingsSimilarityDfi type.
funcNewSettingsSimilarityDfi¶added inv8.5.0
func NewSettingsSimilarityDfi() *SettingsSimilarityDfi
NewSettingsSimilarityDfi returns a SettingsSimilarityDfi.
func (SettingsSimilarityDfi)MarshalJSON¶added inv8.9.0
func (sSettingsSimilarityDfi) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
typeSettingsSimilarityDfr¶
type SettingsSimilarityDfr struct {AfterEffectdfraftereffect.DFRAfterEffect `json:"after_effect"`BasicModeldfrbasicmodel.DFRBasicModel `json:"basic_model"`Normalizationnormalization.Normalization `json:"normalization"`Typestring `json:"type,omitempty"`}SettingsSimilarityDfr type.
funcNewSettingsSimilarityDfr¶added inv8.5.0
func NewSettingsSimilarityDfr() *SettingsSimilarityDfr
NewSettingsSimilarityDfr returns a SettingsSimilarityDfr.
func (SettingsSimilarityDfr)MarshalJSON¶added inv8.9.0
func (sSettingsSimilarityDfr) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
typeSettingsSimilarityIb¶
type SettingsSimilarityIb struct {Distributionibdistribution.IBDistribution `json:"distribution"`Lambdaiblambda.IBLambda `json:"lambda"`Normalizationnormalization.Normalization `json:"normalization"`Typestring `json:"type,omitempty"`}SettingsSimilarityIb type.
funcNewSettingsSimilarityIb¶added inv8.5.0
func NewSettingsSimilarityIb() *SettingsSimilarityIb
NewSettingsSimilarityIb returns a SettingsSimilarityIb.
func (SettingsSimilarityIb)MarshalJSON¶added inv8.9.0
func (sSettingsSimilarityIb) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
typeSettingsSimilarityLmd¶
type SettingsSimilarityLmd struct {Mu *Float64 `json:"mu,omitempty"`Typestring `json:"type,omitempty"`}SettingsSimilarityLmd type.
funcNewSettingsSimilarityLmd¶added inv8.5.0
func NewSettingsSimilarityLmd() *SettingsSimilarityLmd
NewSettingsSimilarityLmd returns a SettingsSimilarityLmd.
func (SettingsSimilarityLmd)MarshalJSON¶added inv8.9.0
func (sSettingsSimilarityLmd) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*SettingsSimilarityLmd)UnmarshalJSON¶added inv8.7.1
func (s *SettingsSimilarityLmd) UnmarshalJSON(data []byte)error
typeSettingsSimilarityLmj¶
type SettingsSimilarityLmj struct {Lambda *Float64 `json:"lambda,omitempty"`Typestring `json:"type,omitempty"`}SettingsSimilarityLmj type.
funcNewSettingsSimilarityLmj¶added inv8.5.0
func NewSettingsSimilarityLmj() *SettingsSimilarityLmj
NewSettingsSimilarityLmj returns a SettingsSimilarityLmj.
func (SettingsSimilarityLmj)MarshalJSON¶added inv8.9.0
func (sSettingsSimilarityLmj) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*SettingsSimilarityLmj)UnmarshalJSON¶added inv8.7.1
func (s *SettingsSimilarityLmj) UnmarshalJSON(data []byte)error
typeSettingsSimilarityScripted¶added inv8.13.0
type SettingsSimilarityScripted struct {ScriptScript `json:"script"`Typestring `json:"type,omitempty"`WeightScript *Script `json:"weight_script,omitempty"`}SettingsSimilarityScripted type.
funcNewSettingsSimilarityScripted¶added inv8.13.0
func NewSettingsSimilarityScripted() *SettingsSimilarityScripted
NewSettingsSimilarityScripted returns a SettingsSimilarityScripted.
func (SettingsSimilarityScripted)MarshalJSON¶added inv8.13.0
func (sSettingsSimilarityScripted) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
typeShapeFieldQuery¶
type ShapeFieldQuery struct {// IndexedShape Queries using a pre-indexed shape.IndexedShape *FieldLookup `json:"indexed_shape,omitempty"`// Relation Spatial relation between the query shape and the document shape.Relation *geoshaperelation.GeoShapeRelation `json:"relation,omitempty"`// Shape Queries using an inline shape definition in GeoJSON or Well Known Text (WKT)// format.Shapejson.RawMessage `json:"shape,omitempty"`}ShapeFieldQuery type.
funcNewShapeFieldQuery¶added inv8.5.0
func NewShapeFieldQuery() *ShapeFieldQuery
NewShapeFieldQuery returns a ShapeFieldQuery.
func (*ShapeFieldQuery)UnmarshalJSON¶added inv8.7.1
func (s *ShapeFieldQuery) UnmarshalJSON(data []byte)error
typeShapeProperty¶
type ShapeProperty struct {Coerce *bool `json:"coerce,omitempty"`CopyTo []string `json:"copy_to,omitempty"`DocValues *bool `json:"doc_values,omitempty"`Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`Fields map[string]Property `json:"fields,omitempty"`IgnoreAbove *int `json:"ignore_above,omitempty"`IgnoreMalformed *bool `json:"ignore_malformed,omitempty"`IgnoreZValue *bool `json:"ignore_z_value,omitempty"`// Meta Metadata about the field.Meta map[string]string `json:"meta,omitempty"`Orientation *geoorientation.GeoOrientation `json:"orientation,omitempty"`Properties map[string]Property `json:"properties,omitempty"`Store *bool `json:"store,omitempty"`SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`Typestring `json:"type,omitempty"`}ShapeProperty type.
funcNewShapeProperty¶added inv8.5.0
func NewShapeProperty() *ShapeProperty
NewShapeProperty returns a ShapeProperty.
func (ShapeProperty)MarshalJSON¶added inv8.9.0
func (sShapeProperty) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*ShapeProperty)UnmarshalJSON¶added inv8.7.0
func (s *ShapeProperty) UnmarshalJSON(data []byte)error
typeShapeQuery¶
type ShapeQuery struct {// Boost Floating point number used to decrease or increase the relevance scores of// the query.// Boost values are relative to the default value of 1.0.// A boost value between 0 and 1.0 decreases the relevance score.// A value greater than 1.0 increases the relevance score.Boost *float32 `json:"boost,omitempty"`// IgnoreUnmapped When set to `true` the query ignores an unmapped field and will not match any// documents.IgnoreUnmapped *bool `json:"ignore_unmapped,omitempty"`QueryName_ *string `json:"_name,omitempty"`ShapeQuery map[string]ShapeFieldQuery `json:"-"`}ShapeQuery type.
func (ShapeQuery)MarshalJSON¶
func (sShapeQuery) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
func (*ShapeQuery)UnmarshalJSON¶added inv8.7.1
func (s *ShapeQuery) UnmarshalJSON(data []byte)error
typeShardCommit¶
type ShardCommit struct {Generationint `json:"generation"`Idstring `json:"id"`NumDocsint64 `json:"num_docs"`UserData map[string]string `json:"user_data"`}ShardCommit type.
funcNewShardCommit¶added inv8.5.0
func NewShardCommit() *ShardCommit
NewShardCommit returns a ShardCommit.
func (*ShardCommit)UnmarshalJSON¶added inv8.7.1
func (s *ShardCommit) UnmarshalJSON(data []byte)error
typeShardFailure¶
type ShardFailure struct {Index *string `json:"index,omitempty"`Node *string `json:"node,omitempty"`ReasonErrorCause `json:"reason"`Shardint `json:"shard"`Status *string `json:"status,omitempty"`}ShardFailure type.
funcNewShardFailure¶added inv8.5.0
func NewShardFailure() *ShardFailure
NewShardFailure returns a ShardFailure.
func (*ShardFailure)UnmarshalJSON¶added inv8.7.1
func (s *ShardFailure) UnmarshalJSON(data []byte)error
typeShardFileSizeInfo¶
type ShardFileSizeInfo struct {AverageSizeInBytes *int64 `json:"average_size_in_bytes,omitempty"`Count *int64 `json:"count,omitempty"`Descriptionstring `json:"description"`MaxSizeInBytes *int64 `json:"max_size_in_bytes,omitempty"`MinSizeInBytes *int64 `json:"min_size_in_bytes,omitempty"`SizeInBytesint64 `json:"size_in_bytes"`}ShardFileSizeInfo type.
funcNewShardFileSizeInfo¶added inv8.5.0
func NewShardFileSizeInfo() *ShardFileSizeInfo
NewShardFileSizeInfo returns a ShardFileSizeInfo.
func (*ShardFileSizeInfo)UnmarshalJSON¶added inv8.7.1
func (s *ShardFileSizeInfo) UnmarshalJSON(data []byte)error
typeShardHealthStats¶
type ShardHealthStats struct {ActiveShardsint `json:"active_shards"`InitializingShardsint `json:"initializing_shards"`PrimaryActivebool `json:"primary_active"`RelocatingShardsint `json:"relocating_shards"`Statushealthstatus.HealthStatus `json:"status"`UnassignedPrimaryShardsint `json:"unassigned_primary_shards"`UnassignedShardsint `json:"unassigned_shards"`}ShardHealthStats type.
funcNewShardHealthStats¶added inv8.5.0
func NewShardHealthStats() *ShardHealthStats
NewShardHealthStats returns a ShardHealthStats.
func (*ShardHealthStats)UnmarshalJSON¶added inv8.7.1
func (s *ShardHealthStats) UnmarshalJSON(data []byte)error
typeShardLease¶
type ShardLease struct {Idstring `json:"id"`RetainingSeqNoint64 `json:"retaining_seq_no"`Sourcestring `json:"source"`Timestampint64 `json:"timestamp"`}ShardLease type.
func (*ShardLease)UnmarshalJSON¶added inv8.7.1
func (s *ShardLease) UnmarshalJSON(data []byte)error
typeShardMigrationStatus¶
type ShardMigrationStatus struct {Statusshutdownstatus.ShutdownStatus `json:"status"`}ShardMigrationStatus type.
funcNewShardMigrationStatus¶added inv8.5.0
func NewShardMigrationStatus() *ShardMigrationStatus
NewShardMigrationStatus returns a ShardMigrationStatus.
typeShardPath¶
type ShardPath struct {DataPathstring `json:"data_path"`IsCustomDataPathbool `json:"is_custom_data_path"`StatePathstring `json:"state_path"`}ShardPath type.
func (*ShardPath)UnmarshalJSON¶added inv8.7.1
typeShardProfile¶
type ShardProfile struct {Aggregations []AggregationProfile `json:"aggregations"`Clusterstring `json:"cluster"`Dfs *DfsProfile `json:"dfs,omitempty"`Fetch *FetchProfile `json:"fetch,omitempty"`Idstring `json:"id"`Indexstring `json:"index"`NodeIdstring `json:"node_id"`Searches []SearchProfile `json:"searches"`ShardIdint `json:"shard_id"`}ShardProfile type.
funcNewShardProfile¶added inv8.5.0
func NewShardProfile() *ShardProfile
NewShardProfile returns a ShardProfile.
func (*ShardProfile)UnmarshalJSON¶added inv8.9.0
func (s *ShardProfile) UnmarshalJSON(data []byte)error
typeShardQueryCache¶
type ShardQueryCache struct {CacheCountint64 `json:"cache_count"`CacheSizeint64 `json:"cache_size"`Evictionsint64 `json:"evictions"`HitCountint64 `json:"hit_count"`MemorySizeInBytesint64 `json:"memory_size_in_bytes"`MissCountint64 `json:"miss_count"`TotalCountint64 `json:"total_count"`}ShardQueryCache type.
funcNewShardQueryCache¶added inv8.5.0
func NewShardQueryCache() *ShardQueryCache
NewShardQueryCache returns a ShardQueryCache.
func (*ShardQueryCache)UnmarshalJSON¶added inv8.7.1
func (s *ShardQueryCache) UnmarshalJSON(data []byte)error
typeShardRecovery¶
type ShardRecovery struct {Idint64 `json:"id"`IndexRecoveryIndexStatus `json:"index"`Primarybool `json:"primary"`SourceRecoveryOrigin `json:"source"`Stagestring `json:"stage"`Start *RecoveryStartStatus `json:"start,omitempty"`StartTimeDateTime `json:"start_time,omitempty"`StartTimeInMillisint64 `json:"start_time_in_millis"`StopTimeDateTime `json:"stop_time,omitempty"`StopTimeInMillis *int64 `json:"stop_time_in_millis,omitempty"`TargetRecoveryOrigin `json:"target"`TotalTimeDuration `json:"total_time,omitempty"`TotalTimeInMillisint64 `json:"total_time_in_millis"`TranslogTranslogStatus `json:"translog"`Typestring `json:"type"`VerifyIndexVerifyIndex `json:"verify_index"`}ShardRecovery type.
funcNewShardRecovery¶added inv8.5.0
func NewShardRecovery() *ShardRecovery
NewShardRecovery returns a ShardRecovery.
func (*ShardRecovery)UnmarshalJSON¶added inv8.7.1
func (s *ShardRecovery) UnmarshalJSON(data []byte)error
typeShardRetentionLeases¶
type ShardRetentionLeases struct {Leases []ShardLease `json:"leases"`PrimaryTermint64 `json:"primary_term"`Versionint64 `json:"version"`}ShardRetentionLeases type.
funcNewShardRetentionLeases¶added inv8.5.0
func NewShardRetentionLeases() *ShardRetentionLeases
NewShardRetentionLeases returns a ShardRetentionLeases.
func (*ShardRetentionLeases)UnmarshalJSON¶added inv8.7.1
func (s *ShardRetentionLeases) UnmarshalJSON(data []byte)error
typeShardRouting¶
type ShardRouting struct {Nodestring `json:"node"`Primarybool `json:"primary"`RelocatingNode *string `json:"relocating_node,omitempty"`Stateshardroutingstate.ShardRoutingState `json:"state"`}ShardRouting type.
funcNewShardRouting¶added inv8.5.0
func NewShardRouting() *ShardRouting
NewShardRouting returns a ShardRouting.
func (*ShardRouting)UnmarshalJSON¶added inv8.7.1
func (s *ShardRouting) UnmarshalJSON(data []byte)error
typeShardSegmentRouting¶
type ShardSegmentRouting struct {Nodestring `json:"node"`Primarybool `json:"primary"`Statestring `json:"state"`}ShardSegmentRouting type.
funcNewShardSegmentRouting¶added inv8.5.0
func NewShardSegmentRouting() *ShardSegmentRouting
NewShardSegmentRouting returns a ShardSegmentRouting.
func (*ShardSegmentRouting)UnmarshalJSON¶added inv8.7.1
func (s *ShardSegmentRouting) UnmarshalJSON(data []byte)error
typeShardSequenceNumber¶
type ShardSequenceNumber struct {GlobalCheckpointint64 `json:"global_checkpoint"`LocalCheckpointint64 `json:"local_checkpoint"`MaxSeqNoint64 `json:"max_seq_no"`}ShardSequenceNumber type.
funcNewShardSequenceNumber¶added inv8.5.0
func NewShardSequenceNumber() *ShardSequenceNumber
NewShardSequenceNumber returns a ShardSequenceNumber.
func (*ShardSequenceNumber)UnmarshalJSON¶added inv8.7.1
func (s *ShardSequenceNumber) UnmarshalJSON(data []byte)error
typeShardStatistics¶
type ShardStatistics struct {// Failed The number of shards the operation or search attempted to run on but failed.Faileduint `json:"failed"`Failures []ShardFailure `json:"failures,omitempty"`Skipped *uint `json:"skipped,omitempty"`// Successful The number of shards the operation or search succeeded on.Successfuluint `json:"successful"`// Total The number of shards the operation or search will run on overall.Totaluint `json:"total"`}ShardStatistics type.
funcNewShardStatistics¶added inv8.5.0
func NewShardStatistics() *ShardStatistics
NewShardStatistics returns a ShardStatistics.
typeShardStore¶
type ShardStore struct {Allocationshardstoreallocation.ShardStoreAllocation `json:"allocation"`AllocationId *string `json:"allocation_id,omitempty"`ShardStore map[string]ShardStoreNode `json:"-"`StoreException *ShardStoreException `json:"store_exception,omitempty"`}ShardStore type.
func (ShardStore)MarshalJSON¶added inv8.7.0
func (sShardStore) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
func (*ShardStore)UnmarshalJSON¶added inv8.7.1
func (s *ShardStore) UnmarshalJSON(data []byte)error
typeShardStoreException¶
ShardStoreException type.
funcNewShardStoreException¶added inv8.5.0
func NewShardStoreException() *ShardStoreException
NewShardStoreException returns a ShardStoreException.
func (*ShardStoreException)UnmarshalJSON¶added inv8.9.0
func (s *ShardStoreException) UnmarshalJSON(data []byte)error
typeShardStoreIndex¶
type ShardStoreIndex struct {Aliases []string `json:"aliases,omitempty"`Filter *Query `json:"filter,omitempty"`}ShardStoreIndex type.
funcNewShardStoreIndex¶added inv8.5.0
func NewShardStoreIndex() *ShardStoreIndex
NewShardStoreIndex returns a ShardStoreIndex.
typeShardStoreNode¶added inv8.7.0
type ShardStoreNode struct {Attributes map[string]string `json:"attributes"`EphemeralId *string `json:"ephemeral_id,omitempty"`ExternalId *string `json:"external_id,omitempty"`Namestring `json:"name"`Roles []string `json:"roles"`TransportAddressstring `json:"transport_address"`}ShardStoreNode type.
funcNewShardStoreNode¶added inv8.7.0
func NewShardStoreNode() *ShardStoreNode
NewShardStoreNode returns a ShardStoreNode.
func (*ShardStoreNode)UnmarshalJSON¶added inv8.7.1
func (s *ShardStoreNode) UnmarshalJSON(data []byte)error
typeShardStoreWrapper¶
type ShardStoreWrapper struct {Stores []ShardStore `json:"stores"`}ShardStoreWrapper type.
funcNewShardStoreWrapper¶added inv8.5.0
func NewShardStoreWrapper() *ShardStoreWrapper
NewShardStoreWrapper returns a ShardStoreWrapper.
typeShardsAvailabilityIndicator¶added inv8.7.1
type ShardsAvailabilityIndicator struct {Details *ShardsAvailabilityIndicatorDetails `json:"details,omitempty"`Diagnosis []Diagnosis `json:"diagnosis,omitempty"`Impacts []Impact `json:"impacts,omitempty"`Statusindicatorhealthstatus.IndicatorHealthStatus `json:"status"`Symptomstring `json:"symptom"`}ShardsAvailabilityIndicator type.
funcNewShardsAvailabilityIndicator¶added inv8.7.1
func NewShardsAvailabilityIndicator() *ShardsAvailabilityIndicator
NewShardsAvailabilityIndicator returns a ShardsAvailabilityIndicator.
func (*ShardsAvailabilityIndicator)UnmarshalJSON¶added inv8.9.0
func (s *ShardsAvailabilityIndicator) UnmarshalJSON(data []byte)error
typeShardsAvailabilityIndicatorDetails¶added inv8.7.1
type ShardsAvailabilityIndicatorDetails struct {CreatingPrimariesint64 `json:"creating_primaries"`CreatingReplicasint64 `json:"creating_replicas"`InitializingPrimariesint64 `json:"initializing_primaries"`InitializingReplicasint64 `json:"initializing_replicas"`RestartingPrimariesint64 `json:"restarting_primaries"`RestartingReplicasint64 `json:"restarting_replicas"`StartedPrimariesint64 `json:"started_primaries"`StartedReplicasint64 `json:"started_replicas"`UnassignedPrimariesint64 `json:"unassigned_primaries"`UnassignedReplicasint64 `json:"unassigned_replicas"`}ShardsAvailabilityIndicatorDetails type.
funcNewShardsAvailabilityIndicatorDetails¶added inv8.7.1
func NewShardsAvailabilityIndicatorDetails() *ShardsAvailabilityIndicatorDetails
NewShardsAvailabilityIndicatorDetails returns a ShardsAvailabilityIndicatorDetails.
func (*ShardsAvailabilityIndicatorDetails)UnmarshalJSON¶added inv8.7.1
func (s *ShardsAvailabilityIndicatorDetails) UnmarshalJSON(data []byte)error
typeShardsCapacityIndicator¶added inv8.10.0
type ShardsCapacityIndicator struct {Details *ShardsCapacityIndicatorDetails `json:"details,omitempty"`Diagnosis []Diagnosis `json:"diagnosis,omitempty"`Impacts []Impact `json:"impacts,omitempty"`Statusindicatorhealthstatus.IndicatorHealthStatus `json:"status"`Symptomstring `json:"symptom"`}ShardsCapacityIndicator type.
funcNewShardsCapacityIndicator¶added inv8.10.0
func NewShardsCapacityIndicator() *ShardsCapacityIndicator
NewShardsCapacityIndicator returns a ShardsCapacityIndicator.
func (*ShardsCapacityIndicator)UnmarshalJSON¶added inv8.10.0
func (s *ShardsCapacityIndicator) UnmarshalJSON(data []byte)error
typeShardsCapacityIndicatorDetails¶added inv8.10.0
type ShardsCapacityIndicatorDetails struct {DataShardsCapacityIndicatorTierDetail `json:"data"`FrozenShardsCapacityIndicatorTierDetail `json:"frozen"`}ShardsCapacityIndicatorDetails type.
funcNewShardsCapacityIndicatorDetails¶added inv8.10.0
func NewShardsCapacityIndicatorDetails() *ShardsCapacityIndicatorDetails
NewShardsCapacityIndicatorDetails returns a ShardsCapacityIndicatorDetails.
typeShardsCapacityIndicatorTierDetail¶added inv8.10.0
type ShardsCapacityIndicatorTierDetail struct {CurrentUsedShards *int `json:"current_used_shards,omitempty"`MaxShardsInClusterint `json:"max_shards_in_cluster"`}ShardsCapacityIndicatorTierDetail type.
funcNewShardsCapacityIndicatorTierDetail¶added inv8.10.0
func NewShardsCapacityIndicatorTierDetail() *ShardsCapacityIndicatorTierDetail
NewShardsCapacityIndicatorTierDetail returns a ShardsCapacityIndicatorTierDetail.
func (*ShardsCapacityIndicatorTierDetail)UnmarshalJSON¶added inv8.10.0
func (s *ShardsCapacityIndicatorTierDetail) UnmarshalJSON(data []byte)error
typeShardsRecord¶
type ShardsRecord struct {// BulkAvgSizeInBytes The average size in bytes of shard bulk operations.BulkAvgSizeInBytes *string `json:"bulk.avg_size_in_bytes,omitempty"`// BulkAvgTime The average time spent in shard bulk operations.BulkAvgTime *string `json:"bulk.avg_time,omitempty"`// BulkTotalOperations The number of bulk shard operations.BulkTotalOperations *string `json:"bulk.total_operations,omitempty"`// BulkTotalSizeInBytes The total size in bytes of shard bulk operations.BulkTotalSizeInBytes *string `json:"bulk.total_size_in_bytes,omitempty"`// BulkTotalTime The time spent in shard bulk operations.BulkTotalTime *string `json:"bulk.total_time,omitempty"`// CompletionSize The size of completion.CompletionSize *string `json:"completion.size,omitempty"`// Dataset total size of dataset (including the cache for partially mounted indices)Dataset *string `json:"dataset,omitempty"`// Docs The number of documents in the shard.Docs *string `json:"docs,omitempty"`// FielddataEvictions The fielddata cache evictions.FielddataEvictions *string `json:"fielddata.evictions,omitempty"`// FielddataMemorySize The used fielddata cache memory.FielddataMemorySize *string `json:"fielddata.memory_size,omitempty"`// FlushTotal The number of flushes.FlushTotal *string `json:"flush.total,omitempty"`// FlushTotalTime The time spent in flush.FlushTotalTime *string `json:"flush.total_time,omitempty"`// GetCurrent The number of current get operations.GetCurrent *string `json:"get.current,omitempty"`// GetExistsTime The time spent in successful get operations.GetExistsTime *string `json:"get.exists_time,omitempty"`// GetExistsTotal The number of successful get operations.GetExistsTotal *string `json:"get.exists_total,omitempty"`// GetMissingTime The time spent in failed get operations.GetMissingTime *string `json:"get.missing_time,omitempty"`// GetMissingTotal The number of failed get operations.GetMissingTotal *string `json:"get.missing_total,omitempty"`// GetTime The time spent in get operations.GetTime *string `json:"get.time,omitempty"`// GetTotal The number of get operations.GetTotal *string `json:"get.total,omitempty"`// Id The unique identifier for the node.Id *string `json:"id,omitempty"`// Index The index name.Index *string `json:"index,omitempty"`// IndexingDeleteCurrent The number of current deletion operations.IndexingDeleteCurrent *string `json:"indexing.delete_current,omitempty"`// IndexingDeleteTime The time spent in deletion operations.IndexingDeleteTime *string `json:"indexing.delete_time,omitempty"`// IndexingDeleteTotal The number of delete operations.IndexingDeleteTotal *string `json:"indexing.delete_total,omitempty"`// IndexingIndexCurrent The number of current indexing operations.IndexingIndexCurrent *string `json:"indexing.index_current,omitempty"`// IndexingIndexFailed The number of failed indexing operations.IndexingIndexFailed *string `json:"indexing.index_failed,omitempty"`// IndexingIndexTime The time spent in indexing operations.IndexingIndexTime *string `json:"indexing.index_time,omitempty"`// IndexingIndexTotal The number of indexing operations.IndexingIndexTotal *string `json:"indexing.index_total,omitempty"`// Ip The IP address of the node.Ip *string `json:"ip,omitempty"`// MergesCurrent The number of current merge operations.MergesCurrent *string `json:"merges.current,omitempty"`// MergesCurrentDocs The number of current merging documents.MergesCurrentDocs *string `json:"merges.current_docs,omitempty"`// MergesCurrentSize The size of current merge operations.MergesCurrentSize *string `json:"merges.current_size,omitempty"`// MergesTotal The number of completed merge operations.MergesTotal *string `json:"merges.total,omitempty"`// MergesTotalDocs The nuber of merged documents.MergesTotalDocs *string `json:"merges.total_docs,omitempty"`// MergesTotalSize The size of current merges.MergesTotalSize *string `json:"merges.total_size,omitempty"`// MergesTotalTime The time spent merging documents.MergesTotalTime *string `json:"merges.total_time,omitempty"`// Node The name of node.Node *string `json:"node,omitempty"`// PathData The shard data path.PathData *string `json:"path.data,omitempty"`// PathState The shard state path.PathState *string `json:"path.state,omitempty"`// Prirep The shard type: `primary` or `replica`.Prirep *string `json:"prirep,omitempty"`// QueryCacheEvictions The query cache evictions.QueryCacheEvictions *string `json:"query_cache.evictions,omitempty"`// QueryCacheMemorySize The used query cache memory.QueryCacheMemorySize *string `json:"query_cache.memory_size,omitempty"`// RecoverysourceType The type of recovery source.RecoverysourceType *string `json:"recoverysource.type,omitempty"`// RefreshExternalTime The time spent in external refreshes.RefreshExternalTime *string `json:"refresh.external_time,omitempty"`// RefreshExternalTotal The total nunber of external refreshes.RefreshExternalTotal *string `json:"refresh.external_total,omitempty"`// RefreshListeners The number of pending refresh listeners.RefreshListeners *string `json:"refresh.listeners,omitempty"`// RefreshTime The time spent in refreshes.RefreshTime *string `json:"refresh.time,omitempty"`// RefreshTotal The total number of refreshes.RefreshTotal *string `json:"refresh.total,omitempty"`// SearchFetchCurrent The current fetch phase operations.SearchFetchCurrent *string `json:"search.fetch_current,omitempty"`// SearchFetchTime The time spent in fetch phase.SearchFetchTime *string `json:"search.fetch_time,omitempty"`// SearchFetchTotal The total number of fetch operations.SearchFetchTotal *string `json:"search.fetch_total,omitempty"`// SearchOpenContexts The number of open search contexts.SearchOpenContexts *string `json:"search.open_contexts,omitempty"`// SearchQueryCurrent The current query phase operations.SearchQueryCurrent *string `json:"search.query_current,omitempty"`// SearchQueryTime The time spent in query phase.SearchQueryTime *string `json:"search.query_time,omitempty"`// SearchQueryTotal The total number of query phase operations.SearchQueryTotal *string `json:"search.query_total,omitempty"`// SearchScrollCurrent The open scroll contexts.SearchScrollCurrent *string `json:"search.scroll_current,omitempty"`// SearchScrollTime The time scroll contexts were held open.SearchScrollTime *string `json:"search.scroll_time,omitempty"`// SearchScrollTotal The number of completed scroll contexts.SearchScrollTotal *string `json:"search.scroll_total,omitempty"`// SegmentsCount The number of segments.SegmentsCount *string `json:"segments.count,omitempty"`// SegmentsFixedBitsetMemory The memory used by fixed bit sets for nested object field types and export// type filters for types referred in `_parent` fields.SegmentsFixedBitsetMemory *string `json:"segments.fixed_bitset_memory,omitempty"`// SegmentsIndexWriterMemory The memory used by the index writer.SegmentsIndexWriterMemory *string `json:"segments.index_writer_memory,omitempty"`// SegmentsMemory The memory used by segments.SegmentsMemory *string `json:"segments.memory,omitempty"`// SegmentsVersionMapMemory The memory used by the version map.SegmentsVersionMapMemory *string `json:"segments.version_map_memory,omitempty"`// SeqNoGlobalCheckpoint The global checkpoint.SeqNoGlobalCheckpoint *string `json:"seq_no.global_checkpoint,omitempty"`// SeqNoLocalCheckpoint The local checkpoint.SeqNoLocalCheckpoint *string `json:"seq_no.local_checkpoint,omitempty"`// SeqNoMax The maximum sequence number.SeqNoMax *string `json:"seq_no.max,omitempty"`// Shard The shard name.Shard *string `json:"shard,omitempty"`// State The shard state.// Returned values include:// `INITIALIZING`: The shard is recovering from a peer shard or gateway.// `RELOCATING`: The shard is relocating.// `STARTED`: The shard has started.// `UNASSIGNED`: The shard is not assigned to any node.State *string `json:"state,omitempty"`// Store The disk space used by the shard.Store *string `json:"store,omitempty"`// SyncId The sync identifier.SyncId *string `json:"sync_id,omitempty"`// UnassignedAt The time at which the shard became unassigned in Coordinated Universal Time// (UTC).UnassignedAt *string `json:"unassigned.at,omitempty"`// UnassignedDetails Additional details as to why the shard became unassigned.// It does not explain why the shard is not assigned; use the cluster allocation// explain API for that information.UnassignedDetails *string `json:"unassigned.details,omitempty"`// UnassignedFor The time at which the shard was requested to be unassigned in Coordinated// Universal Time (UTC).UnassignedFor *string `json:"unassigned.for,omitempty"`// UnassignedReason The reason for the last change to the state of an unassigned shard.// It does not explain why the shard is currently unassigned; use the cluster// allocation explain API for that information.// Returned values include:// `ALLOCATION_FAILED`: Unassigned as a result of a failed allocation of the// shard.// `CLUSTER_RECOVERED`: Unassigned as a result of a full cluster recovery.// `DANGLING_INDEX_IMPORTED`: Unassigned as a result of importing a dangling// index.// `EXISTING_INDEX_RESTORED`: Unassigned as a result of restoring into a closed// index.// `FORCED_EMPTY_PRIMARY`: The shard’s allocation was last modified by forcing// an empty primary using the cluster reroute API.// `INDEX_CLOSED`: Unassigned because the index was closed.// `INDEX_CREATED`: Unassigned as a result of an API creation of an index.// `INDEX_REOPENED`: Unassigned as a result of opening a closed index.// `MANUAL_ALLOCATION`: The shard’s allocation was last modified by the cluster// reroute API.// `NEW_INDEX_RESTORED`: Unassigned as a result of restoring into a new index.// `NODE_LEFT`: Unassigned as a result of the node hosting it leaving the// cluster.// `NODE_RESTARTING`: Similar to `NODE_LEFT`, except that the node was// registered as restarting using the node shutdown API.// `PRIMARY_FAILED`: The shard was initializing as a replica, but the primary// shard failed before the initialization completed.// `REALLOCATED_REPLICA`: A better replica location is identified and causes the// existing replica allocation to be cancelled.// `REINITIALIZED`: When a shard moves from started back to initializing.// `REPLICA_ADDED`: Unassigned as a result of explicit addition of a replica.// `REROUTE_CANCELLED`: Unassigned as a result of explicit cancel reroute// command.UnassignedReason *string `json:"unassigned.reason,omitempty"`// WarmerCurrent The number of current warmer operations.WarmerCurrent *string `json:"warmer.current,omitempty"`// WarmerTotal The total number of warmer operations.WarmerTotal *string `json:"warmer.total,omitempty"`// WarmerTotalTime The time spent in warmer operations.WarmerTotalTime *string `json:"warmer.total_time,omitempty"`}ShardsRecord type.
funcNewShardsRecord¶added inv8.5.0
func NewShardsRecord() *ShardsRecord
NewShardsRecord returns a ShardsRecord.
func (*ShardsRecord)UnmarshalJSON¶added inv8.7.1
func (s *ShardsRecord) UnmarshalJSON(data []byte)error
typeShardsSegment¶
type ShardsSegment struct {NumCommittedSegmentsint `json:"num_committed_segments"`NumSearchSegmentsint `json:"num_search_segments"`RoutingShardSegmentRouting `json:"routing"`Segments map[string]Segment `json:"segments"`}ShardsSegment type.
funcNewShardsSegment¶added inv8.5.0
func NewShardsSegment() *ShardsSegment
NewShardsSegment returns a ShardsSegment.
func (*ShardsSegment)UnmarshalJSON¶added inv8.7.1
func (s *ShardsSegment) UnmarshalJSON(data []byte)error
typeShardsStatsSummary¶
type ShardsStatsSummary struct {IncrementalShardsStatsSummaryItem `json:"incremental"`StartTimeInMillisint64 `json:"start_time_in_millis"`TimeDuration `json:"time,omitempty"`TimeInMillisint64 `json:"time_in_millis"`TotalShardsStatsSummaryItem `json:"total"`}ShardsStatsSummary type.
funcNewShardsStatsSummary¶added inv8.5.0
func NewShardsStatsSummary() *ShardsStatsSummary
NewShardsStatsSummary returns a ShardsStatsSummary.
func (*ShardsStatsSummary)UnmarshalJSON¶added inv8.7.1
func (s *ShardsStatsSummary) UnmarshalJSON(data []byte)error
typeShardsStatsSummaryItem¶
type ShardsStatsSummaryItem struct {FileCountint64 `json:"file_count"`SizeInBytesint64 `json:"size_in_bytes"`}ShardsStatsSummaryItem type.
funcNewShardsStatsSummaryItem¶added inv8.5.0
func NewShardsStatsSummaryItem() *ShardsStatsSummaryItem
NewShardsStatsSummaryItem returns a ShardsStatsSummaryItem.
func (*ShardsStatsSummaryItem)UnmarshalJSON¶added inv8.7.1
func (s *ShardsStatsSummaryItem) UnmarshalJSON(data []byte)error
typeShardsTotalStats¶
type ShardsTotalStats struct {TotalCountint64 `json:"total_count"`}ShardsTotalStats type.
funcNewShardsTotalStats¶added inv8.5.0
func NewShardsTotalStats() *ShardsTotalStats
NewShardsTotalStats returns a ShardsTotalStats.
func (*ShardsTotalStats)UnmarshalJSON¶added inv8.7.1
func (s *ShardsTotalStats) UnmarshalJSON(data []byte)error
typeShared¶
type Shared struct {BytesReadInBytesByteSize `json:"bytes_read_in_bytes"`BytesWrittenInBytesByteSize `json:"bytes_written_in_bytes"`Evictionsint64 `json:"evictions"`NumRegionsint `json:"num_regions"`Readsint64 `json:"reads"`RegionSizeInBytesByteSize `json:"region_size_in_bytes"`SizeInBytesByteSize `json:"size_in_bytes"`Writesint64 `json:"writes"`}Shared type.
func (*Shared)UnmarshalJSON¶added inv8.7.1
typeSharedFileSystemRepository¶added inv8.13.0
type SharedFileSystemRepository struct {SettingsSharedFileSystemRepositorySettings `json:"settings"`Typestring `json:"type,omitempty"`Uuid *string `json:"uuid,omitempty"`}SharedFileSystemRepository type.
funcNewSharedFileSystemRepository¶added inv8.13.0
func NewSharedFileSystemRepository() *SharedFileSystemRepository
NewSharedFileSystemRepository returns a SharedFileSystemRepository.
func (SharedFileSystemRepository)MarshalJSON¶added inv8.13.0
func (sSharedFileSystemRepository) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*SharedFileSystemRepository)UnmarshalJSON¶added inv8.13.0
func (s *SharedFileSystemRepository) UnmarshalJSON(data []byte)error
typeSharedFileSystemRepositorySettings¶added inv8.13.0
type SharedFileSystemRepositorySettings struct {ChunkSizeByteSize `json:"chunk_size,omitempty"`Compress *bool `json:"compress,omitempty"`Locationstring `json:"location"`MaxNumberOfSnapshots *int `json:"max_number_of_snapshots,omitempty"`MaxRestoreBytesPerSecByteSize `json:"max_restore_bytes_per_sec,omitempty"`MaxSnapshotBytesPerSecByteSize `json:"max_snapshot_bytes_per_sec,omitempty"`Readonly *bool `json:"readonly,omitempty"`}SharedFileSystemRepositorySettings type.
funcNewSharedFileSystemRepositorySettings¶added inv8.13.0
func NewSharedFileSystemRepositorySettings() *SharedFileSystemRepositorySettings
NewSharedFileSystemRepositorySettings returns a SharedFileSystemRepositorySettings.
func (*SharedFileSystemRepositorySettings)UnmarshalJSON¶added inv8.13.0
func (s *SharedFileSystemRepositorySettings) UnmarshalJSON(data []byte)error
typeShingleTokenFilter¶
type ShingleTokenFilter struct {// FillerToken String used in shingles as a replacement for empty positions that do not// contain a token. This filler token is only used in shingles, not original// unigrams. Defaults to an underscore (`_`).FillerToken *string `json:"filler_token,omitempty"`// MaxShingleSize Maximum number of tokens to concatenate when creating shingles. Defaults to// `2`.MaxShingleSizeStringifiedinteger `json:"max_shingle_size,omitempty"`// MinShingleSize Minimum number of tokens to concatenate when creating shingles. Defaults to// `2`.MinShingleSizeStringifiedinteger `json:"min_shingle_size,omitempty"`// OutputUnigrams If `true`, the output includes the original input tokens. If `false`, the// output only includes shingles; the original input tokens are removed.// Defaults to `true`.OutputUnigrams *bool `json:"output_unigrams,omitempty"`// OutputUnigramsIfNoShingles If `true`, the output includes the original input tokens only if no shingles// are produced; if shingles are produced, the output only includes shingles.// Defaults to `false`.OutputUnigramsIfNoShingles *bool `json:"output_unigrams_if_no_shingles,omitempty"`// TokenSeparator Separator used to concatenate adjacent tokens to form a shingle. Defaults to// a space (`" "`).TokenSeparator *string `json:"token_separator,omitempty"`Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}ShingleTokenFilter type.
funcNewShingleTokenFilter¶added inv8.5.0
func NewShingleTokenFilter() *ShingleTokenFilter
NewShingleTokenFilter returns a ShingleTokenFilter.
func (ShingleTokenFilter)MarshalJSON¶added inv8.9.0
func (sShingleTokenFilter) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*ShingleTokenFilter)UnmarshalJSON¶added inv8.7.1
func (s *ShingleTokenFilter) UnmarshalJSON(data []byte)error
typeShortNumberProperty¶
type ShortNumberProperty struct {Boost *Float64 `json:"boost,omitempty"`Coerce *bool `json:"coerce,omitempty"`CopyTo []string `json:"copy_to,omitempty"`DocValues *bool `json:"doc_values,omitempty"`Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`Fields map[string]Property `json:"fields,omitempty"`IgnoreAbove *int `json:"ignore_above,omitempty"`IgnoreMalformed *bool `json:"ignore_malformed,omitempty"`Index *bool `json:"index,omitempty"`// Meta Metadata about the field.Meta map[string]string `json:"meta,omitempty"`NullValue *int `json:"null_value,omitempty"`OnScriptError *onscripterror.OnScriptError `json:"on_script_error,omitempty"`Properties map[string]Property `json:"properties,omitempty"`Script *Script `json:"script,omitempty"`Store *bool `json:"store,omitempty"`SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`// TimeSeriesDimension For internal use by Elastic only. Marks the field as a time series dimension.// Defaults to false.TimeSeriesDimension *bool `json:"time_series_dimension,omitempty"`// TimeSeriesMetric For internal use by Elastic only. Marks the field as a time series dimension.// Defaults to false.TimeSeriesMetric *timeseriesmetrictype.TimeSeriesMetricType `json:"time_series_metric,omitempty"`Typestring `json:"type,omitempty"`}ShortNumberProperty type.
funcNewShortNumberProperty¶added inv8.5.0
func NewShortNumberProperty() *ShortNumberProperty
NewShortNumberProperty returns a ShortNumberProperty.
func (ShortNumberProperty)MarshalJSON¶added inv8.9.0
func (sShortNumberProperty) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*ShortNumberProperty)UnmarshalJSON¶added inv8.7.0
func (s *ShortNumberProperty) UnmarshalJSON(data []byte)error
typeShrinkAction¶added inv8.15.0
type ShrinkAction struct {AllowWriteAfterShrink *bool `json:"allow_write_after_shrink,omitempty"`MaxPrimaryShardSizeByteSize `json:"max_primary_shard_size,omitempty"`NumberOfShards *int `json:"number_of_shards,omitempty"`}ShrinkAction type.
funcNewShrinkAction¶added inv8.15.0
func NewShrinkAction() *ShrinkAction
NewShrinkAction returns a ShrinkAction.
func (*ShrinkAction)UnmarshalJSON¶added inv8.15.0
func (s *ShrinkAction) UnmarshalJSON(data []byte)error
typeSignificantLongTermsAggregate¶
type SignificantLongTermsAggregate struct {BgCount *int64 `json:"bg_count,omitempty"`BucketsBucketsSignificantLongTermsBucket `json:"buckets"`DocCount *int64 `json:"doc_count,omitempty"`MetaMetadata `json:"meta,omitempty"`}SignificantLongTermsAggregate type.
funcNewSignificantLongTermsAggregate¶added inv8.5.0
func NewSignificantLongTermsAggregate() *SignificantLongTermsAggregate
NewSignificantLongTermsAggregate returns a SignificantLongTermsAggregate.
func (*SignificantLongTermsAggregate)UnmarshalJSON¶added inv8.7.0
func (s *SignificantLongTermsAggregate) UnmarshalJSON(data []byte)error
typeSignificantLongTermsBucket¶
type SignificantLongTermsBucket struct {Aggregations map[string]Aggregate `json:"-"`BgCountint64 `json:"bg_count"`DocCountint64 `json:"doc_count"`Keyint64 `json:"key"`KeyAsString *string `json:"key_as_string,omitempty"`ScoreFloat64 `json:"score"`}SignificantLongTermsBucket type.
funcNewSignificantLongTermsBucket¶added inv8.5.0
func NewSignificantLongTermsBucket() *SignificantLongTermsBucket
NewSignificantLongTermsBucket returns a SignificantLongTermsBucket.
func (SignificantLongTermsBucket)MarshalJSON¶
func (sSignificantLongTermsBucket) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
func (*SignificantLongTermsBucket)UnmarshalJSON¶added inv8.7.0
func (s *SignificantLongTermsBucket) UnmarshalJSON(data []byte)error
typeSignificantStringTermsAggregate¶
type SignificantStringTermsAggregate struct {BgCount *int64 `json:"bg_count,omitempty"`BucketsBucketsSignificantStringTermsBucket `json:"buckets"`DocCount *int64 `json:"doc_count,omitempty"`MetaMetadata `json:"meta,omitempty"`}SignificantStringTermsAggregate type.
funcNewSignificantStringTermsAggregate¶added inv8.5.0
func NewSignificantStringTermsAggregate() *SignificantStringTermsAggregate
NewSignificantStringTermsAggregate returns a SignificantStringTermsAggregate.
func (*SignificantStringTermsAggregate)UnmarshalJSON¶added inv8.7.0
func (s *SignificantStringTermsAggregate) UnmarshalJSON(data []byte)error
typeSignificantStringTermsBucket¶
type SignificantStringTermsBucket struct {Aggregations map[string]Aggregate `json:"-"`BgCountint64 `json:"bg_count"`DocCountint64 `json:"doc_count"`Keystring `json:"key"`ScoreFloat64 `json:"score"`}SignificantStringTermsBucket type.
funcNewSignificantStringTermsBucket¶added inv8.5.0
func NewSignificantStringTermsBucket() *SignificantStringTermsBucket
NewSignificantStringTermsBucket returns a SignificantStringTermsBucket.
func (SignificantStringTermsBucket)MarshalJSON¶
func (sSignificantStringTermsBucket) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
func (*SignificantStringTermsBucket)UnmarshalJSON¶added inv8.7.0
func (s *SignificantStringTermsBucket) UnmarshalJSON(data []byte)error
typeSignificantTermsAggregation¶
type SignificantTermsAggregation struct {// BackgroundFilter A background filter that can be used to focus in on significant terms within// a narrower context, instead of the entire index.BackgroundFilter *Query `json:"background_filter,omitempty"`// ChiSquare Use Chi square, as described in "Information Retrieval", Manning et al.,// Chapter 13.5.2, as the significance score.ChiSquare *ChiSquareHeuristic `json:"chi_square,omitempty"`// Exclude Terms to exclude.Exclude []string `json:"exclude,omitempty"`// ExecutionHint Mechanism by which the aggregation should be executed: using field values// directly or using global ordinals.ExecutionHint *termsaggregationexecutionhint.TermsAggregationExecutionHint `json:"execution_hint,omitempty"`// Field The field from which to return significant terms.Field *string `json:"field,omitempty"`// Gnd Use Google normalized distance as described in "The Google Similarity// Distance", Cilibrasi and Vitanyi, 2007, as the significance score.Gnd *GoogleNormalizedDistanceHeuristic `json:"gnd,omitempty"`// Include Terms to include.IncludeTermsInclude `json:"include,omitempty"`// Jlh Use JLH score as the significance score.Jlh *EmptyObject `json:"jlh,omitempty"`// MinDocCount Only return terms that are found in more than `min_doc_count` hits.MinDocCount *int64 `json:"min_doc_count,omitempty"`// MutualInformation Use mutual information as described in "Information Retrieval", Manning et// al., Chapter 13.5.1, as the significance score.MutualInformation *MutualInformationHeuristic `json:"mutual_information,omitempty"`// Percentage A simple calculation of the number of documents in the foreground sample with// a term divided by the number of documents in the background with the term.Percentage *PercentageScoreHeuristic `json:"percentage,omitempty"`// ScriptHeuristic Customized score, implemented via a script.ScriptHeuristic *ScriptedHeuristic `json:"script_heuristic,omitempty"`// ShardMinDocCount Regulates the certainty a shard has if the term should actually be added to// the candidate list or not with respect to the `min_doc_count`.// Terms will only be considered if their local shard frequency within the set// is higher than the `shard_min_doc_count`.ShardMinDocCount *int64 `json:"shard_min_doc_count,omitempty"`// ShardSize Can be used to control the volumes of candidate terms produced by each shard.// By default, `shard_size` will be automatically estimated based on the number// of shards and the `size` parameter.ShardSize *int `json:"shard_size,omitempty"`// Size The number of buckets returned out of the overall terms list.Size *int `json:"size,omitempty"`}SignificantTermsAggregation type.
funcNewSignificantTermsAggregation¶added inv8.5.0
func NewSignificantTermsAggregation() *SignificantTermsAggregation
NewSignificantTermsAggregation returns a SignificantTermsAggregation.
func (*SignificantTermsAggregation)UnmarshalJSON¶added inv8.7.1
func (s *SignificantTermsAggregation) UnmarshalJSON(data []byte)error
typeSignificantTextAggregation¶
type SignificantTextAggregation struct {// BackgroundFilter A background filter that can be used to focus in on significant terms within// a narrower context, instead of the entire index.BackgroundFilter *Query `json:"background_filter,omitempty"`// ChiSquare Use Chi square, as described in "Information Retrieval", Manning et al.,// Chapter 13.5.2, as the significance score.ChiSquare *ChiSquareHeuristic `json:"chi_square,omitempty"`// Exclude Values to exclude.Exclude []string `json:"exclude,omitempty"`// ExecutionHint Determines whether the aggregation will use field values directly or global// ordinals.ExecutionHint *termsaggregationexecutionhint.TermsAggregationExecutionHint `json:"execution_hint,omitempty"`// Field The field from which to return significant text.Field *string `json:"field,omitempty"`// FilterDuplicateText Whether to out duplicate text to deal with noisy data.FilterDuplicateText *bool `json:"filter_duplicate_text,omitempty"`// Gnd Use Google normalized distance as described in "The Google Similarity// Distance", Cilibrasi and Vitanyi, 2007, as the significance score.Gnd *GoogleNormalizedDistanceHeuristic `json:"gnd,omitempty"`// Include Values to include.IncludeTermsInclude `json:"include,omitempty"`// Jlh Use JLH score as the significance score.Jlh *EmptyObject `json:"jlh,omitempty"`// MinDocCount Only return values that are found in more than `min_doc_count` hits.MinDocCount *int64 `json:"min_doc_count,omitempty"`// MutualInformation Use mutual information as described in "Information Retrieval", Manning et// al., Chapter 13.5.1, as the significance score.MutualInformation *MutualInformationHeuristic `json:"mutual_information,omitempty"`// Percentage A simple calculation of the number of documents in the foreground sample with// a term divided by the number of documents in the background with the term.Percentage *PercentageScoreHeuristic `json:"percentage,omitempty"`// ScriptHeuristic Customized score, implemented via a script.ScriptHeuristic *ScriptedHeuristic `json:"script_heuristic,omitempty"`// ShardMinDocCount Regulates the certainty a shard has if the values should actually be added to// the candidate list or not with respect to the min_doc_count.// Values will only be considered if their local shard frequency within the set// is higher than the `shard_min_doc_count`.ShardMinDocCount *int64 `json:"shard_min_doc_count,omitempty"`// ShardSize The number of candidate terms produced by each shard.// By default, `shard_size` will be automatically estimated based on the number// of shards and the `size` parameter.ShardSize *int `json:"shard_size,omitempty"`// Size The number of buckets returned out of the overall terms list.Size *int `json:"size,omitempty"`// SourceFields Overrides the JSON `_source` fields from which text will be analyzed.SourceFields []string `json:"source_fields,omitempty"`}SignificantTextAggregation type.
funcNewSignificantTextAggregation¶added inv8.5.0
func NewSignificantTextAggregation() *SignificantTextAggregation
NewSignificantTextAggregation returns a SignificantTextAggregation.
func (*SignificantTextAggregation)UnmarshalJSON¶added inv8.7.1
func (s *SignificantTextAggregation) UnmarshalJSON(data []byte)error
typeSimpleAnalyzer¶
type SimpleAnalyzer struct {Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}SimpleAnalyzer type.
funcNewSimpleAnalyzer¶added inv8.5.0
func NewSimpleAnalyzer() *SimpleAnalyzer
NewSimpleAnalyzer returns a SimpleAnalyzer.
func (SimpleAnalyzer)MarshalJSON¶added inv8.9.0
func (sSimpleAnalyzer) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*SimpleAnalyzer)UnmarshalJSON¶added inv8.7.1
func (s *SimpleAnalyzer) UnmarshalJSON(data []byte)error
typeSimpleMovingAverageAggregation¶
type SimpleMovingAverageAggregation struct {// BucketsPath Path to the buckets that contain one set of values to correlate.BucketsPathBucketsPath `json:"buckets_path,omitempty"`// Format `DecimalFormat` pattern for the output value.// If specified, the formatted value is returned in the aggregation’s// `value_as_string` property.Format *string `json:"format,omitempty"`// GapPolicy Policy to apply when gaps are found in the data.GapPolicy *gappolicy.GapPolicy `json:"gap_policy,omitempty"`Minimize *bool `json:"minimize,omitempty"`Modelstring `json:"model,omitempty"`Predict *int `json:"predict,omitempty"`SettingsEmptyObject `json:"settings"`Window *int `json:"window,omitempty"`}SimpleMovingAverageAggregation type.
funcNewSimpleMovingAverageAggregation¶added inv8.5.0
func NewSimpleMovingAverageAggregation() *SimpleMovingAverageAggregation
NewSimpleMovingAverageAggregation returns a SimpleMovingAverageAggregation.
func (SimpleMovingAverageAggregation)MarshalJSON¶added inv8.9.0
func (sSimpleMovingAverageAggregation) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*SimpleMovingAverageAggregation)UnmarshalJSON¶added inv8.7.0
func (s *SimpleMovingAverageAggregation) UnmarshalJSON(data []byte)error
typeSimplePatternSplitTokenizer¶added inv8.16.0
type SimplePatternSplitTokenizer struct {Pattern *string `json:"pattern,omitempty"`Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}SimplePatternSplitTokenizer type.
funcNewSimplePatternSplitTokenizer¶added inv8.16.0
func NewSimplePatternSplitTokenizer() *SimplePatternSplitTokenizer
NewSimplePatternSplitTokenizer returns a SimplePatternSplitTokenizer.
func (SimplePatternSplitTokenizer)MarshalJSON¶added inv8.16.0
func (sSimplePatternSplitTokenizer) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*SimplePatternSplitTokenizer)UnmarshalJSON¶added inv8.16.0
func (s *SimplePatternSplitTokenizer) UnmarshalJSON(data []byte)error
typeSimplePatternTokenizer¶added inv8.16.0
type SimplePatternTokenizer struct {Pattern *string `json:"pattern,omitempty"`Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}SimplePatternTokenizer type.
funcNewSimplePatternTokenizer¶added inv8.16.0
func NewSimplePatternTokenizer() *SimplePatternTokenizer
NewSimplePatternTokenizer returns a SimplePatternTokenizer.
func (SimplePatternTokenizer)MarshalJSON¶added inv8.16.0
func (sSimplePatternTokenizer) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*SimplePatternTokenizer)UnmarshalJSON¶added inv8.16.0
func (s *SimplePatternTokenizer) UnmarshalJSON(data []byte)error
typeSimpleQueryStringFlags¶
type SimpleQueryStringFlagsPipeSeparatedFlagsSimpleQueryStringFlag
SimpleQueryStringFlags type alias.
typeSimpleQueryStringQuery¶
type SimpleQueryStringQuery struct {// AnalyzeWildcard If `true`, the query attempts to analyze wildcard terms in the query string.AnalyzeWildcard *bool `json:"analyze_wildcard,omitempty"`// Analyzer Analyzer used to convert text in the query string into tokens.Analyzer *string `json:"analyzer,omitempty"`// AutoGenerateSynonymsPhraseQuery If `true`, the parser creates a match_phrase query for each multi-position// token.AutoGenerateSynonymsPhraseQuery *bool `json:"auto_generate_synonyms_phrase_query,omitempty"`// Boost Floating point number used to decrease or increase the relevance scores of// the query.// Boost values are relative to the default value of 1.0.// A boost value between 0 and 1.0 decreases the relevance score.// A value greater than 1.0 increases the relevance score.Boost *float32 `json:"boost,omitempty"`// DefaultOperator Default boolean logic used to interpret text in the query string if no// operators are specified.DefaultOperator *operator.Operator `json:"default_operator,omitempty"`// Fields Array of fields you wish to search.// Accepts wildcard expressions.// You also can boost relevance scores for matches to particular fields using a// caret (`^`) notation.// Defaults to the `index.query.default_field index` setting, which has a// default value of `*`.Fields []string `json:"fields,omitempty"`// Flags List of enabled operators for the simple query string syntax.FlagsPipeSeparatedFlagsSimpleQueryStringFlag `json:"flags,omitempty"`// FuzzyMaxExpansions Maximum number of terms to which the query expands for fuzzy matching.FuzzyMaxExpansions *int `json:"fuzzy_max_expansions,omitempty"`// FuzzyPrefixLength Number of beginning characters left unchanged for fuzzy matching.FuzzyPrefixLength *int `json:"fuzzy_prefix_length,omitempty"`// FuzzyTranspositions If `true`, edits for fuzzy matching include transpositions of two adjacent// characters (for example, `ab` to `ba`).FuzzyTranspositions *bool `json:"fuzzy_transpositions,omitempty"`// Lenient If `true`, format-based errors, such as providing a text value for a numeric// field, are ignored.Lenient *bool `json:"lenient,omitempty"`// MinimumShouldMatch Minimum number of clauses that must match for a document to be returned.MinimumShouldMatchMinimumShouldMatch `json:"minimum_should_match,omitempty"`// Query Query string in the simple query string syntax you wish to parse and use for// search.Querystring `json:"query"`QueryName_ *string `json:"_name,omitempty"`// QuoteFieldSuffix Suffix appended to quoted text in the query string.QuoteFieldSuffix *string `json:"quote_field_suffix,omitempty"`}SimpleQueryStringQuery type.
funcNewSimpleQueryStringQuery¶added inv8.5.0
func NewSimpleQueryStringQuery() *SimpleQueryStringQuery
NewSimpleQueryStringQuery returns a SimpleQueryStringQuery.
func (*SimpleQueryStringQuery)UnmarshalJSON¶added inv8.7.0
func (s *SimpleQueryStringQuery) UnmarshalJSON(data []byte)error
typeSimpleValueAggregate¶
type SimpleValueAggregate struct {MetaMetadata `json:"meta,omitempty"`// Value The metric value. A missing value generally means that there was no data to// aggregate,// unless specified otherwise.Value *Float64 `json:"value,omitempty"`ValueAsString *string `json:"value_as_string,omitempty"`}SimpleValueAggregate type.
funcNewSimpleValueAggregate¶added inv8.5.0
func NewSimpleValueAggregate() *SimpleValueAggregate
NewSimpleValueAggregate returns a SimpleValueAggregate.
func (*SimpleValueAggregate)UnmarshalJSON¶added inv8.7.1
func (s *SimpleValueAggregate) UnmarshalJSON(data []byte)error
typeSimulateDocumentResult¶added inv8.16.0
type SimulateDocumentResult struct {Doc *DocumentSimulation `json:"doc,omitempty"`Error *ErrorCause `json:"error,omitempty"`ProcessorResults []PipelineProcessorResult `json:"processor_results,omitempty"`}SimulateDocumentResult type.
funcNewSimulateDocumentResult¶added inv8.16.0
func NewSimulateDocumentResult() *SimulateDocumentResult
NewSimulateDocumentResult returns a SimulateDocumentResult.
typeSimulateIngestDocumentResult¶added inv8.18.0
type SimulateIngestDocumentResult struct {Doc *IngestDocumentSimulation `json:"doc,omitempty"`}SimulateIngestDocumentResult type.
funcNewSimulateIngestDocumentResult¶added inv8.18.0
func NewSimulateIngestDocumentResult() *SimulateIngestDocumentResult
NewSimulateIngestDocumentResult returns a SimulateIngestDocumentResult.
typeSimulatedActions¶
type SimulatedActions struct {Actions []string `json:"actions"`All *SimulatedActions `json:"all,omitempty"`UseAllbool `json:"use_all"`}SimulatedActions type.
funcNewSimulatedActions¶added inv8.5.0
func NewSimulatedActions() *SimulatedActions
NewSimulatedActions returns a SimulatedActions.
func (*SimulatedActions)UnmarshalJSON¶added inv8.7.1
func (s *SimulatedActions) UnmarshalJSON(data []byte)error
typeSizeField¶
type SizeField struct {Enabledbool `json:"enabled"`}SizeField type.
func (*SizeField)UnmarshalJSON¶added inv8.7.1
typeSizeHttpHistogram¶added inv8.16.0
type SizeHttpHistogram struct {Countint64 `json:"count"`GeBytes *int64 `json:"ge_bytes,omitempty"`LtBytes *int64 `json:"lt_bytes,omitempty"`}SizeHttpHistogram type.
funcNewSizeHttpHistogram¶added inv8.16.0
func NewSizeHttpHistogram() *SizeHttpHistogram
NewSizeHttpHistogram returns a SizeHttpHistogram.
func (*SizeHttpHistogram)UnmarshalJSON¶added inv8.16.0
func (s *SizeHttpHistogram) UnmarshalJSON(data []byte)error
typeSlackAction¶
type SlackAction struct {Account *string `json:"account,omitempty"`MessageSlackMessage `json:"message"`}SlackAction type.
funcNewSlackAction¶added inv8.5.0
func NewSlackAction() *SlackAction
NewSlackAction returns a SlackAction.
func (*SlackAction)UnmarshalJSON¶added inv8.9.0
func (s *SlackAction) UnmarshalJSON(data []byte)error
typeSlackAttachment¶
type SlackAttachment struct {AuthorIcon *string `json:"author_icon,omitempty"`AuthorLink *string `json:"author_link,omitempty"`AuthorNamestring `json:"author_name"`Color *string `json:"color,omitempty"`Fallback *string `json:"fallback,omitempty"`Fields []SlackAttachmentField `json:"fields,omitempty"`Footer *string `json:"footer,omitempty"`FooterIcon *string `json:"footer_icon,omitempty"`ImageUrl *string `json:"image_url,omitempty"`Pretext *string `json:"pretext,omitempty"`Text *string `json:"text,omitempty"`ThumbUrl *string `json:"thumb_url,omitempty"`Titlestring `json:"title"`TitleLink *string `json:"title_link,omitempty"`Ts *int64 `json:"ts,omitempty"`}SlackAttachment type.
funcNewSlackAttachment¶added inv8.5.0
func NewSlackAttachment() *SlackAttachment
NewSlackAttachment returns a SlackAttachment.
func (*SlackAttachment)UnmarshalJSON¶added inv8.7.1
func (s *SlackAttachment) UnmarshalJSON(data []byte)error
typeSlackAttachmentField¶
type SlackAttachmentField struct {Intbool `json:"short"`Titlestring `json:"title"`Valuestring `json:"value"`}SlackAttachmentField type.
funcNewSlackAttachmentField¶added inv8.5.0
func NewSlackAttachmentField() *SlackAttachmentField
NewSlackAttachmentField returns a SlackAttachmentField.
func (*SlackAttachmentField)UnmarshalJSON¶added inv8.7.1
func (s *SlackAttachmentField) UnmarshalJSON(data []byte)error
typeSlackDynamicAttachment¶
type SlackDynamicAttachment struct {AttachmentTemplateSlackAttachment `json:"attachment_template"`ListPathstring `json:"list_path"`}SlackDynamicAttachment type.
funcNewSlackDynamicAttachment¶added inv8.5.0
func NewSlackDynamicAttachment() *SlackDynamicAttachment
NewSlackDynamicAttachment returns a SlackDynamicAttachment.
func (*SlackDynamicAttachment)UnmarshalJSON¶added inv8.9.0
func (s *SlackDynamicAttachment) UnmarshalJSON(data []byte)error
typeSlackMessage¶
type SlackMessage struct {Attachments []SlackAttachment `json:"attachments"`DynamicAttachments *SlackDynamicAttachment `json:"dynamic_attachments,omitempty"`Fromstring `json:"from"`Icon *string `json:"icon,omitempty"`Textstring `json:"text"`To []string `json:"to"`}SlackMessage type.
funcNewSlackMessage¶added inv8.5.0
func NewSlackMessage() *SlackMessage
NewSlackMessage returns a SlackMessage.
func (*SlackMessage)UnmarshalJSON¶added inv8.9.0
func (s *SlackMessage) UnmarshalJSON(data []byte)error
typeSlackResult¶
type SlackResult struct {Account *string `json:"account,omitempty"`MessageSlackMessage `json:"message"`}SlackResult type.
funcNewSlackResult¶added inv8.5.0
func NewSlackResult() *SlackResult
NewSlackResult returns a SlackResult.
func (*SlackResult)UnmarshalJSON¶added inv8.9.0
func (s *SlackResult) UnmarshalJSON(data []byte)error
typeSlicedScroll¶
type SlicedScroll struct {Field *string `json:"field,omitempty"`Idstring `json:"id"`Maxint `json:"max"`}SlicedScroll type.
funcNewSlicedScroll¶added inv8.5.0
func NewSlicedScroll() *SlicedScroll
NewSlicedScroll returns a SlicedScroll.
func (*SlicedScroll)UnmarshalJSON¶added inv8.7.1
func (s *SlicedScroll) UnmarshalJSON(data []byte)error
typeSlices¶
type Slicesany
Slices holds the union for the following types:
intslicescalculation.SlicesCalculation
typeSlm¶
type Slm struct {Availablebool `json:"available"`Enabledbool `json:"enabled"`PolicyCount *int `json:"policy_count,omitempty"`PolicyStats *Statistics `json:"policy_stats,omitempty"`}Slm type.
func (*Slm)UnmarshalJSON¶added inv8.7.1
typeSlmIndicator¶added inv8.7.1
type SlmIndicator struct {Details *SlmIndicatorDetails `json:"details,omitempty"`Diagnosis []Diagnosis `json:"diagnosis,omitempty"`Impacts []Impact `json:"impacts,omitempty"`Statusindicatorhealthstatus.IndicatorHealthStatus `json:"status"`Symptomstring `json:"symptom"`}SlmIndicator type.
funcNewSlmIndicator¶added inv8.7.1
func NewSlmIndicator() *SlmIndicator
NewSlmIndicator returns a SlmIndicator.
func (*SlmIndicator)UnmarshalJSON¶added inv8.9.0
func (s *SlmIndicator) UnmarshalJSON(data []byte)error
typeSlmIndicatorDetails¶added inv8.7.1
type SlmIndicatorDetails struct {Policiesint64 `json:"policies"`SlmStatuslifecycleoperationmode.LifecycleOperationMode `json:"slm_status"`UnhealthyPolicies *SlmIndicatorUnhealthyPolicies `json:"unhealthy_policies,omitempty"`}SlmIndicatorDetails type.
funcNewSlmIndicatorDetails¶added inv8.7.1
func NewSlmIndicatorDetails() *SlmIndicatorDetails
NewSlmIndicatorDetails returns a SlmIndicatorDetails.
func (*SlmIndicatorDetails)UnmarshalJSON¶added inv8.7.1
func (s *SlmIndicatorDetails) UnmarshalJSON(data []byte)error
typeSlmIndicatorUnhealthyPolicies¶added inv8.7.1
type SlmIndicatorUnhealthyPolicies struct {Countint64 `json:"count"`InvocationsSinceLastSuccess map[string]int64 `json:"invocations_since_last_success,omitempty"`}SlmIndicatorUnhealthyPolicies type.
funcNewSlmIndicatorUnhealthyPolicies¶added inv8.7.1
func NewSlmIndicatorUnhealthyPolicies() *SlmIndicatorUnhealthyPolicies
NewSlmIndicatorUnhealthyPolicies returns a SlmIndicatorUnhealthyPolicies.
func (*SlmIndicatorUnhealthyPolicies)UnmarshalJSON¶added inv8.7.1
func (s *SlmIndicatorUnhealthyPolicies) UnmarshalJSON(data []byte)error
typeSlowlogSettings¶
type SlowlogSettings struct {Level *string `json:"level,omitempty"`Reformat *bool `json:"reformat,omitempty"`Source *int `json:"source,omitempty"`Threshold *SlowlogTresholds `json:"threshold,omitempty"`}SlowlogSettings type.
funcNewSlowlogSettings¶added inv8.5.0
func NewSlowlogSettings() *SlowlogSettings
NewSlowlogSettings returns a SlowlogSettings.
func (*SlowlogSettings)UnmarshalJSON¶added inv8.7.1
func (s *SlowlogSettings) UnmarshalJSON(data []byte)error
typeSlowlogTresholdLevels¶
type SlowlogTresholdLevels struct {DebugDuration `json:"debug,omitempty"`InfoDuration `json:"info,omitempty"`TraceDuration `json:"trace,omitempty"`WarnDuration `json:"warn,omitempty"`}SlowlogTresholdLevels type.
funcNewSlowlogTresholdLevels¶added inv8.5.0
func NewSlowlogTresholdLevels() *SlowlogTresholdLevels
NewSlowlogTresholdLevels returns a SlowlogTresholdLevels.
func (*SlowlogTresholdLevels)UnmarshalJSON¶added inv8.7.1
func (s *SlowlogTresholdLevels) UnmarshalJSON(data []byte)error
typeSlowlogTresholds¶
type SlowlogTresholds struct {Fetch *SlowlogTresholdLevels `json:"fetch,omitempty"`Query *SlowlogTresholdLevels `json:"query,omitempty"`}SlowlogTresholds type.
funcNewSlowlogTresholds¶added inv8.5.0
func NewSlowlogTresholds() *SlowlogTresholds
NewSlowlogTresholds returns a SlowlogTresholds.
typeSmoothingModelContainer¶
type SmoothingModelContainer struct {AdditionalSmoothingModelContainerProperty map[string]json.RawMessage `json:"-"`// Laplace A smoothing model that uses an additive smoothing where a constant (typically// `1.0` or smaller) is added to all counts to balance weights.Laplace *LaplaceSmoothingModel `json:"laplace,omitempty"`// LinearInterpolation A smoothing model that takes the weighted mean of the unigrams, bigrams, and// trigrams based on user supplied weights (lambdas).LinearInterpolation *LinearInterpolationSmoothingModel `json:"linear_interpolation,omitempty"`// StupidBackoff A simple backoff model that backs off to lower order n-gram models if the// higher order count is `0` and discounts the lower order n-gram model by a// constant factor.StupidBackoff *StupidBackoffSmoothingModel `json:"stupid_backoff,omitempty"`}SmoothingModelContainer type.
funcNewSmoothingModelContainer¶added inv8.5.0
func NewSmoothingModelContainer() *SmoothingModelContainer
NewSmoothingModelContainer returns a SmoothingModelContainer.
func (SmoothingModelContainer)MarshalJSON¶added inv8.18.0
func (sSmoothingModelContainer) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
typeSnapshotCurrentCounts¶added inv8.19.0
type SnapshotCurrentCounts struct {// Cleanups Cleanups in progress, not counted in concurrent_operations as they are not// concurrentCleanupsint `json:"cleanups"`// ConcurrentOperations Sum of snapshots and snapshot_deletionsConcurrentOperationsint `json:"concurrent_operations"`// ShardSnapshots Incomplete shard snapshotsShardSnapshotsint `json:"shard_snapshots"`// SnapshotDeletions Snapshots deletions in progressSnapshotDeletionsint `json:"snapshot_deletions"`// Snapshots Snapshots currently in progressSnapshotsint `json:"snapshots"`}SnapshotCurrentCounts type.
funcNewSnapshotCurrentCounts¶added inv8.19.0
func NewSnapshotCurrentCounts() *SnapshotCurrentCounts
NewSnapshotCurrentCounts returns a SnapshotCurrentCounts.
func (*SnapshotCurrentCounts)UnmarshalJSON¶added inv8.19.0
func (s *SnapshotCurrentCounts) UnmarshalJSON(data []byte)error
typeSnapshotIndexStats¶
type SnapshotIndexStats struct {Shards map[string]SnapshotShardsStatus `json:"shards"`ShardsStatsSnapshotShardsStats `json:"shards_stats"`StatsSnapshotStats `json:"stats"`}SnapshotIndexStats type.
funcNewSnapshotIndexStats¶added inv8.5.0
func NewSnapshotIndexStats() *SnapshotIndexStats
NewSnapshotIndexStats returns a SnapshotIndexStats.
typeSnapshotInfo¶
type SnapshotInfo struct {DataStreams []string `json:"data_streams"`DurationDuration `json:"duration,omitempty"`DurationInMillis *int64 `json:"duration_in_millis,omitempty"`EndTimeDateTime `json:"end_time,omitempty"`EndTimeInMillis *int64 `json:"end_time_in_millis,omitempty"`Failures []SnapshotShardFailure `json:"failures,omitempty"`FeatureStates []InfoFeatureState `json:"feature_states,omitempty"`IncludeGlobalState *bool `json:"include_global_state,omitempty"`IndexDetails map[string]IndexDetails `json:"index_details,omitempty"`Indices []string `json:"indices,omitempty"`MetadataMetadata `json:"metadata,omitempty"`Reason *string `json:"reason,omitempty"`Repository *string `json:"repository,omitempty"`Shards *ShardStatistics `json:"shards,omitempty"`Snapshotstring `json:"snapshot"`StartTimeDateTime `json:"start_time,omitempty"`StartTimeInMillis *int64 `json:"start_time_in_millis,omitempty"`State *string `json:"state,omitempty"`Uuidstring `json:"uuid"`Version *string `json:"version,omitempty"`VersionId *int64 `json:"version_id,omitempty"`}SnapshotInfo type.
funcNewSnapshotInfo¶added inv8.5.0
func NewSnapshotInfo() *SnapshotInfo
NewSnapshotInfo returns a SnapshotInfo.
func (*SnapshotInfo)UnmarshalJSON¶added inv8.7.1
func (s *SnapshotInfo) UnmarshalJSON(data []byte)error
typeSnapshotLifecycle¶
type SnapshotLifecycle struct {InProgress *InProgress `json:"in_progress,omitempty"`LastFailure *Invocation `json:"last_failure,omitempty"`LastSuccess *Invocation `json:"last_success,omitempty"`// ModifiedDate The last time the policy was modified.ModifiedDateDateTime `json:"modified_date,omitempty"`ModifiedDateMillisint64 `json:"modified_date_millis"`// NextExecution The next time the policy will run.NextExecutionDateTime `json:"next_execution,omitempty"`NextExecutionMillisint64 `json:"next_execution_millis"`PolicySLMPolicy `json:"policy"`StatsStatistics `json:"stats"`// Version The version of the snapshot policy.// Only the latest version is stored and incremented when the policy is updated.Versionint64 `json:"version"`}SnapshotLifecycle type.
funcNewSnapshotLifecycle¶added inv8.5.0
func NewSnapshotLifecycle() *SnapshotLifecycle
NewSnapshotLifecycle returns a SnapshotLifecycle.
func (*SnapshotLifecycle)UnmarshalJSON¶added inv8.7.1
func (s *SnapshotLifecycle) UnmarshalJSON(data []byte)error
typeSnapshotNodeInfo¶added inv8.18.0
SnapshotNodeInfo type.
funcNewSnapshotNodeInfo¶added inv8.18.0
func NewSnapshotNodeInfo() *SnapshotNodeInfo
NewSnapshotNodeInfo returns a SnapshotNodeInfo.
func (*SnapshotNodeInfo)UnmarshalJSON¶added inv8.18.0
func (s *SnapshotNodeInfo) UnmarshalJSON(data []byte)error
typeSnapshotPolicyStats¶added inv8.18.1
type SnapshotPolicyStats struct {Policystring `json:"policy"`SnapshotDeletionFailuresint64 `json:"snapshot_deletion_failures"`SnapshotsDeletedint64 `json:"snapshots_deleted"`SnapshotsFailedint64 `json:"snapshots_failed"`SnapshotsTakenint64 `json:"snapshots_taken"`}SnapshotPolicyStats type.
funcNewSnapshotPolicyStats¶added inv8.18.1
func NewSnapshotPolicyStats() *SnapshotPolicyStats
NewSnapshotPolicyStats returns a SnapshotPolicyStats.
func (*SnapshotPolicyStats)UnmarshalJSON¶added inv8.18.1
func (s *SnapshotPolicyStats) UnmarshalJSON(data []byte)error
typeSnapshotResponseItem¶
type SnapshotResponseItem struct {Error *ErrorCause `json:"error,omitempty"`Repositorystring `json:"repository"`Snapshots []SnapshotInfo `json:"snapshots,omitempty"`}SnapshotResponseItem type.
funcNewSnapshotResponseItem¶added inv8.5.0
func NewSnapshotResponseItem() *SnapshotResponseItem
NewSnapshotResponseItem returns a SnapshotResponseItem.
func (*SnapshotResponseItem)UnmarshalJSON¶added inv8.7.1
func (s *SnapshotResponseItem) UnmarshalJSON(data []byte)error
typeSnapshotRestore¶
type SnapshotRestore struct {Indices []string `json:"indices"`ShardsShardStatistics `json:"shards"`Snapshotstring `json:"snapshot"`}SnapshotRestore type.
funcNewSnapshotRestore¶added inv8.5.0
func NewSnapshotRestore() *SnapshotRestore
NewSnapshotRestore returns a SnapshotRestore.
func (*SnapshotRestore)UnmarshalJSON¶added inv8.7.1
func (s *SnapshotRestore) UnmarshalJSON(data []byte)error
typeSnapshotShardFailure¶
type SnapshotShardFailure struct {Indexstring `json:"index"`IndexUuidstring `json:"index_uuid"`NodeId *string `json:"node_id,omitempty"`Reasonstring `json:"reason"`ShardIdint `json:"shard_id"`Statusstring `json:"status"`}SnapshotShardFailure type.
funcNewSnapshotShardFailure¶added inv8.5.0
func NewSnapshotShardFailure() *SnapshotShardFailure
NewSnapshotShardFailure returns a SnapshotShardFailure.
func (*SnapshotShardFailure)UnmarshalJSON¶added inv8.7.1
func (s *SnapshotShardFailure) UnmarshalJSON(data []byte)error
typeSnapshotShardsStats¶added inv8.5.0
type SnapshotShardsStats struct {Doneint64 `json:"done"`Failedint64 `json:"failed"`Finalizingint64 `json:"finalizing"`Initializingint64 `json:"initializing"`Startedint64 `json:"started"`Totalint64 `json:"total"`}SnapshotShardsStats type.
funcNewSnapshotShardsStats¶added inv8.5.0
func NewSnapshotShardsStats() *SnapshotShardsStats
NewSnapshotShardsStats returns a SnapshotShardsStats.
func (*SnapshotShardsStats)UnmarshalJSON¶added inv8.7.1
func (s *SnapshotShardsStats) UnmarshalJSON(data []byte)error
typeSnapshotShardsStatus¶
type SnapshotShardsStatus struct {Stageshardsstatsstage.ShardsStatsStage `json:"stage"`StatsShardsStatsSummary `json:"stats"`}SnapshotShardsStatus type.
funcNewSnapshotShardsStatus¶added inv8.5.0
func NewSnapshotShardsStatus() *SnapshotShardsStatus
NewSnapshotShardsStatus returns a SnapshotShardsStatus.
typeSnapshotStats¶
type SnapshotStats struct {IncrementalFileCountSnapshotStats `json:"incremental"`StartTimeInMillisint64 `json:"start_time_in_millis"`TimeDuration `json:"time,omitempty"`TimeInMillisint64 `json:"time_in_millis"`TotalFileCountSnapshotStats `json:"total"`}SnapshotStats type.
funcNewSnapshotStats¶added inv8.5.0
func NewSnapshotStats() *SnapshotStats
NewSnapshotStats returns a SnapshotStats.
func (*SnapshotStats)UnmarshalJSON¶added inv8.7.1
func (s *SnapshotStats) UnmarshalJSON(data []byte)error
typeSnapshotsRecord¶
type SnapshotsRecord struct {// Duration The time it took the snapshot process to complete, in time units.DurationDuration `json:"duration,omitempty"`// EndEpoch The Unix epoch time (seconds since 1970-01-01 00:00:00) at which the snapshot// process ended.EndEpochStringifiedEpochTimeUnitSeconds `json:"end_epoch,omitempty"`// EndTime The time (HH:MM:SS) at which the snapshot process ended.EndTime *string `json:"end_time,omitempty"`// FailedShards The number of failed shards in the snapshot.FailedShards *string `json:"failed_shards,omitempty"`// Id The unique identifier for the snapshot.Id *string `json:"id,omitempty"`// Indices The number of indices in the snapshot.Indices *string `json:"indices,omitempty"`// Reason The reason for any snapshot failures.Reason *string `json:"reason,omitempty"`// Repository The repository name.Repository *string `json:"repository,omitempty"`// StartEpoch The Unix epoch time (seconds since 1970-01-01 00:00:00) at which the snapshot// process started.StartEpochStringifiedEpochTimeUnitSeconds `json:"start_epoch,omitempty"`// StartTime The time (HH:MM:SS) at which the snapshot process started.StartTimeScheduleTimeOfDay `json:"start_time,omitempty"`// Status The state of the snapshot process.// Returned values include:// `FAILED`: The snapshot process failed.// `INCOMPATIBLE`: The snapshot process is incompatible with the current cluster// version.// `IN_PROGRESS`: The snapshot process started but has not completed.// `PARTIAL`: The snapshot process completed with a partial success.// `SUCCESS`: The snapshot process completed with a full success.Status *string `json:"status,omitempty"`// SuccessfulShards The number of successful shards in the snapshot.SuccessfulShards *string `json:"successful_shards,omitempty"`// TotalShards The total number of shards in the snapshot.TotalShards *string `json:"total_shards,omitempty"`}SnapshotsRecord type.
funcNewSnapshotsRecord¶added inv8.5.0
func NewSnapshotsRecord() *SnapshotsRecord
NewSnapshotsRecord returns a SnapshotsRecord.
func (*SnapshotsRecord)UnmarshalJSON¶added inv8.7.0
func (s *SnapshotsRecord) UnmarshalJSON(data []byte)error
typeSnowballAnalyzer¶
type SnowballAnalyzer struct {Languagesnowballlanguage.SnowballLanguage `json:"language"`StopwordsStopWords `json:"stopwords,omitempty"`Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}SnowballAnalyzer type.
funcNewSnowballAnalyzer¶added inv8.5.0
func NewSnowballAnalyzer() *SnowballAnalyzer
NewSnowballAnalyzer returns a SnowballAnalyzer.
func (SnowballAnalyzer)MarshalJSON¶added inv8.9.0
func (sSnowballAnalyzer) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*SnowballAnalyzer)UnmarshalJSON¶added inv8.7.1
func (s *SnowballAnalyzer) UnmarshalJSON(data []byte)error
typeSnowballTokenFilter¶
type SnowballTokenFilter struct {// Language Controls the language used by the stemmer.Language *snowballlanguage.SnowballLanguage `json:"language,omitempty"`Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}SnowballTokenFilter type.
funcNewSnowballTokenFilter¶added inv8.5.0
func NewSnowballTokenFilter() *SnowballTokenFilter
NewSnowballTokenFilter returns a SnowballTokenFilter.
func (SnowballTokenFilter)MarshalJSON¶added inv8.9.0
func (sSnowballTokenFilter) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*SnowballTokenFilter)UnmarshalJSON¶added inv8.7.1
func (s *SnowballTokenFilter) UnmarshalJSON(data []byte)error
typeSoftDeletes¶
type SoftDeletes struct {// Enabled Indicates whether soft deletes are enabled on the index.Enabled *bool `json:"enabled,omitempty"`// RetentionLease The maximum period to retain a shard history retention lease before it is// considered expired.// Shard history retention leases ensure that soft deletes are retained during// merges on the Lucene// index. If a soft delete is merged away before it can be replicated to a// follower the following// process will fail due to incomplete history on the leader.RetentionLease *RetentionLease `json:"retention_lease,omitempty"`}SoftDeletes type.
funcNewSoftDeletes¶added inv8.5.0
func NewSoftDeletes() *SoftDeletes
NewSoftDeletes returns a SoftDeletes.
func (*SoftDeletes)UnmarshalJSON¶added inv8.7.1
func (s *SoftDeletes) UnmarshalJSON(data []byte)error
typeSoraniAnalyzer¶added inv8.16.0
type SoraniAnalyzer struct {StemExclusion []string `json:"stem_exclusion,omitempty"`StopwordsStopWords `json:"stopwords,omitempty"`StopwordsPath *string `json:"stopwords_path,omitempty"`Typestring `json:"type,omitempty"`}SoraniAnalyzer type.
funcNewSoraniAnalyzer¶added inv8.16.0
func NewSoraniAnalyzer() *SoraniAnalyzer
NewSoraniAnalyzer returns a SoraniAnalyzer.
func (SoraniAnalyzer)MarshalJSON¶added inv8.16.0
func (sSoraniAnalyzer) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*SoraniAnalyzer)UnmarshalJSON¶added inv8.16.0
func (s *SoraniAnalyzer) UnmarshalJSON(data []byte)error
typeSoraniNormalizationTokenFilter¶added inv8.18.1
type SoraniNormalizationTokenFilter struct {Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}SoraniNormalizationTokenFilter type.
funcNewSoraniNormalizationTokenFilter¶added inv8.18.1
func NewSoraniNormalizationTokenFilter() *SoraniNormalizationTokenFilter
NewSoraniNormalizationTokenFilter returns a SoraniNormalizationTokenFilter.
func (SoraniNormalizationTokenFilter)MarshalJSON¶added inv8.18.1
func (sSoraniNormalizationTokenFilter) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*SoraniNormalizationTokenFilter)UnmarshalJSON¶added inv8.18.1
func (s *SoraniNormalizationTokenFilter) UnmarshalJSON(data []byte)error
typeSortCombinations¶
type SortCombinationsany
SortCombinations holds the union for the following types:
stringSortOptions
typeSortOptions¶
type SortOptions struct {Doc_ *ScoreSort `json:"_doc,omitempty"`GeoDistance_ *GeoDistanceSort `json:"_geo_distance,omitempty"`Score_ *ScoreSort `json:"_score,omitempty"`Script_ *ScriptSort `json:"_script,omitempty"`SortOptions map[string]FieldSort `json:"-"`}SortOptions type.
funcNewSortOptions¶added inv8.5.0
func NewSortOptions() *SortOptions
NewSortOptions returns a SortOptions.
func (SortOptions)MarshalJSON¶
func (sSortOptions) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
typeSortProcessor¶
type SortProcessor struct {// Description Description of the processor.// Useful for describing the purpose of the processor or its configuration.Description *string `json:"description,omitempty"`// Field The field to be sorted.Fieldstring `json:"field"`// If Conditionally execute the processor.If *string `json:"if,omitempty"`// IgnoreFailure Ignore failures for the processor.IgnoreFailure *bool `json:"ignore_failure,omitempty"`// OnFailure Handle failures for the processor.OnFailure []ProcessorContainer `json:"on_failure,omitempty"`// Order The sort order to use.// Accepts `"asc"` or `"desc"`.Order *sortorder.SortOrder `json:"order,omitempty"`// Tag Identifier for the processor.// Useful for debugging and metrics.Tag *string `json:"tag,omitempty"`// TargetField The field to assign the sorted value to.// By default, the field is updated in-place.TargetField *string `json:"target_field,omitempty"`}SortProcessor type.
funcNewSortProcessor¶added inv8.5.0
func NewSortProcessor() *SortProcessor
NewSortProcessor returns a SortProcessor.
func (*SortProcessor)UnmarshalJSON¶added inv8.7.1
func (s *SortProcessor) UnmarshalJSON(data []byte)error
typeSourceConfig¶
type SourceConfigany
SourceConfig holds the union for the following types:
boolSourceFilter
typeSourceConfigParam¶
type SourceConfigParamany
SourceConfigParam holds the union for the following types:
bool[]string
typeSourceField¶
type SourceField struct {Compress *bool `json:"compress,omitempty"`CompressThreshold *string `json:"compress_threshold,omitempty"`Enabled *bool `json:"enabled,omitempty"`Excludes []string `json:"excludes,omitempty"`Includes []string `json:"includes,omitempty"`Mode *sourcefieldmode.SourceFieldMode `json:"mode,omitempty"`}SourceField type.
funcNewSourceField¶added inv8.5.0
func NewSourceField() *SourceField
NewSourceField returns a SourceField.
func (*SourceField)UnmarshalJSON¶added inv8.7.1
func (s *SourceField) UnmarshalJSON(data []byte)error
typeSourceFilter¶
type SourceFilter struct {// ExcludeVectors If `true`, vector fields are excluded from the returned source.//// This option takes precedence over `includes`: any vector field will// remain excluded even if it matches an `includes` rule.ExcludeVectors *bool `json:"exclude_vectors,omitempty"`// Excludes A list of fields to exclude from the returned source.Excludes []string `json:"excludes,omitempty"`// Includes A list of fields to include in the returned source.Includes []string `json:"includes,omitempty"`}SourceFilter type.
funcNewSourceFilter¶added inv8.5.0
func NewSourceFilter() *SourceFilter
NewSourceFilter returns a SourceFilter.
func (*SourceFilter)UnmarshalJSON¶added inv8.7.1
func (s *SourceFilter) UnmarshalJSON(data []byte)error
typeSourceIndex¶added inv8.18.0
type SourceIndex struct {Indexstring `json:"index"`}SourceIndex type.
funcNewSourceIndex¶added inv8.18.0
func NewSourceIndex() *SourceIndex
NewSourceIndex returns a SourceIndex.
func (*SourceIndex)UnmarshalJSON¶added inv8.18.0
func (s *SourceIndex) UnmarshalJSON(data []byte)error
typeSourceOnlyRepository¶added inv8.13.0
type SourceOnlyRepository struct {SettingsSourceOnlyRepositorySettings `json:"settings"`Typestring `json:"type,omitempty"`Uuid *string `json:"uuid,omitempty"`}SourceOnlyRepository type.
funcNewSourceOnlyRepository¶added inv8.13.0
func NewSourceOnlyRepository() *SourceOnlyRepository
NewSourceOnlyRepository returns a SourceOnlyRepository.
func (SourceOnlyRepository)MarshalJSON¶added inv8.13.0
func (sSourceOnlyRepository) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*SourceOnlyRepository)UnmarshalJSON¶added inv8.13.0
func (s *SourceOnlyRepository) UnmarshalJSON(data []byte)error
typeSourceOnlyRepositorySettings¶added inv8.13.0
type SourceOnlyRepositorySettings struct {ChunkSizeByteSize `json:"chunk_size,omitempty"`Compress *bool `json:"compress,omitempty"`DelegateType *string `json:"delegate_type,omitempty"`MaxNumberOfSnapshots *int `json:"max_number_of_snapshots,omitempty"`MaxRestoreBytesPerSecByteSize `json:"max_restore_bytes_per_sec,omitempty"`MaxSnapshotBytesPerSecByteSize `json:"max_snapshot_bytes_per_sec,omitempty"`ReadOnly *bool `json:"read_only,omitempty"`}SourceOnlyRepositorySettings type.
funcNewSourceOnlyRepositorySettings¶added inv8.13.0
func NewSourceOnlyRepositorySettings() *SourceOnlyRepositorySettings
NewSourceOnlyRepositorySettings returns a SourceOnlyRepositorySettings.
func (*SourceOnlyRepositorySettings)UnmarshalJSON¶added inv8.13.0
func (s *SourceOnlyRepositorySettings) UnmarshalJSON(data []byte)error
typeSpanContainingQuery¶
type SpanContainingQuery struct {// Big Can be any span query.// Matching spans from `big` that contain matches from `little` are returned.BigSpanQuery `json:"big"`// Boost Floating point number used to decrease or increase the relevance scores of// the query.// Boost values are relative to the default value of 1.0.// A boost value between 0 and 1.0 decreases the relevance score.// A value greater than 1.0 increases the relevance score.Boost *float32 `json:"boost,omitempty"`// Little Can be any span query.// Matching spans from `big` that contain matches from `little` are returned.LittleSpanQuery `json:"little"`QueryName_ *string `json:"_name,omitempty"`}SpanContainingQuery type.
funcNewSpanContainingQuery¶added inv8.5.0
func NewSpanContainingQuery() *SpanContainingQuery
NewSpanContainingQuery returns a SpanContainingQuery.
func (*SpanContainingQuery)UnmarshalJSON¶added inv8.7.1
func (s *SpanContainingQuery) UnmarshalJSON(data []byte)error
typeSpanFieldMaskingQuery¶
type SpanFieldMaskingQuery struct {// Boost Floating point number used to decrease or increase the relevance scores of// the query.// Boost values are relative to the default value of 1.0.// A boost value between 0 and 1.0 decreases the relevance score.// A value greater than 1.0 increases the relevance score.Boost *float32 `json:"boost,omitempty"`Fieldstring `json:"field"`QuerySpanQuery `json:"query"`QueryName_ *string `json:"_name,omitempty"`}SpanFieldMaskingQuery type.
funcNewSpanFieldMaskingQuery¶added inv8.5.0
func NewSpanFieldMaskingQuery() *SpanFieldMaskingQuery
NewSpanFieldMaskingQuery returns a SpanFieldMaskingQuery.
func (*SpanFieldMaskingQuery)UnmarshalJSON¶added inv8.7.1
func (s *SpanFieldMaskingQuery) UnmarshalJSON(data []byte)error
typeSpanFirstQuery¶
type SpanFirstQuery struct {// Boost Floating point number used to decrease or increase the relevance scores of// the query.// Boost values are relative to the default value of 1.0.// A boost value between 0 and 1.0 decreases the relevance score.// A value greater than 1.0 increases the relevance score.Boost *float32 `json:"boost,omitempty"`// End Controls the maximum end position permitted in a match.Endint `json:"end"`// Match Can be any other span type query.MatchSpanQuery `json:"match"`QueryName_ *string `json:"_name,omitempty"`}SpanFirstQuery type.
funcNewSpanFirstQuery¶added inv8.5.0
func NewSpanFirstQuery() *SpanFirstQuery
NewSpanFirstQuery returns a SpanFirstQuery.
func (*SpanFirstQuery)UnmarshalJSON¶added inv8.7.1
func (s *SpanFirstQuery) UnmarshalJSON(data []byte)error
typeSpanGapQuery¶
SpanGapQuery type alias.
typeSpanMultiTermQuery¶
type SpanMultiTermQuery struct {// Boost Floating point number used to decrease or increase the relevance scores of// the query.// Boost values are relative to the default value of 1.0.// A boost value between 0 and 1.0 decreases the relevance score.// A value greater than 1.0 increases the relevance score.Boost *float32 `json:"boost,omitempty"`// Match Should be a multi term query (one of `wildcard`, `fuzzy`, `prefix`, `range`,// or `regexp` query).MatchQuery `json:"match"`QueryName_ *string `json:"_name,omitempty"`}SpanMultiTermQuery type.
funcNewSpanMultiTermQuery¶added inv8.5.0
func NewSpanMultiTermQuery() *SpanMultiTermQuery
NewSpanMultiTermQuery returns a SpanMultiTermQuery.
func (*SpanMultiTermQuery)UnmarshalJSON¶added inv8.7.1
func (s *SpanMultiTermQuery) UnmarshalJSON(data []byte)error
typeSpanNearQuery¶
type SpanNearQuery struct {// Boost Floating point number used to decrease or increase the relevance scores of// the query.// Boost values are relative to the default value of 1.0.// A boost value between 0 and 1.0 decreases the relevance score.// A value greater than 1.0 increases the relevance score.Boost *float32 `json:"boost,omitempty"`// Clauses Array of one or more other span type queries.Clauses []SpanQuery `json:"clauses"`// InOrder Controls whether matches are required to be in-order.InOrder *bool `json:"in_order,omitempty"`QueryName_ *string `json:"_name,omitempty"`// Slop Controls the maximum number of intervening unmatched positions permitted.Slop *int `json:"slop,omitempty"`}SpanNearQuery type.
funcNewSpanNearQuery¶added inv8.5.0
func NewSpanNearQuery() *SpanNearQuery
NewSpanNearQuery returns a SpanNearQuery.
func (*SpanNearQuery)UnmarshalJSON¶added inv8.7.1
func (s *SpanNearQuery) UnmarshalJSON(data []byte)error
typeSpanNotQuery¶
type SpanNotQuery struct {// Boost Floating point number used to decrease or increase the relevance scores of// the query.// Boost values are relative to the default value of 1.0.// A boost value between 0 and 1.0 decreases the relevance score.// A value greater than 1.0 increases the relevance score.Boost *float32 `json:"boost,omitempty"`// Dist The number of tokens from within the include span that can’t have overlap// with the exclude span.// Equivalent to setting both `pre` and `post`.Dist *int `json:"dist,omitempty"`// Exclude Span query whose matches must not overlap those returned.ExcludeSpanQuery `json:"exclude"`// Include Span query whose matches are filtered.IncludeSpanQuery `json:"include"`// Post The number of tokens after the include span that can’t have overlap with the// exclude span.Post *int `json:"post,omitempty"`// Pre The number of tokens before the include span that can’t have overlap with the// exclude span.Pre *int `json:"pre,omitempty"`QueryName_ *string `json:"_name,omitempty"`}SpanNotQuery type.
funcNewSpanNotQuery¶added inv8.5.0
func NewSpanNotQuery() *SpanNotQuery
NewSpanNotQuery returns a SpanNotQuery.
func (*SpanNotQuery)UnmarshalJSON¶added inv8.7.1
func (s *SpanNotQuery) UnmarshalJSON(data []byte)error
typeSpanOrQuery¶
type SpanOrQuery struct {// Boost Floating point number used to decrease or increase the relevance scores of// the query.// Boost values are relative to the default value of 1.0.// A boost value between 0 and 1.0 decreases the relevance score.// A value greater than 1.0 increases the relevance score.Boost *float32 `json:"boost,omitempty"`// Clauses Array of one or more other span type queries.Clauses []SpanQuery `json:"clauses"`QueryName_ *string `json:"_name,omitempty"`}SpanOrQuery type.
funcNewSpanOrQuery¶added inv8.5.0
func NewSpanOrQuery() *SpanOrQuery
NewSpanOrQuery returns a SpanOrQuery.
func (*SpanOrQuery)UnmarshalJSON¶added inv8.7.1
func (s *SpanOrQuery) UnmarshalJSON(data []byte)error
typeSpanQuery¶
type SpanQuery struct {AdditionalSpanQueryProperty map[string]json.RawMessage `json:"-"`// SpanContaining Accepts a list of span queries, but only returns those spans which also match// a second span query.SpanContaining *SpanContainingQuery `json:"span_containing,omitempty"`// SpanFieldMasking Allows queries like `span_near` or `span_or` across different fields.SpanFieldMasking *SpanFieldMaskingQuery `json:"span_field_masking,omitempty"`// SpanFirst Accepts another span query whose matches must appear within the first N// positions of the field.SpanFirst *SpanFirstQuery `json:"span_first,omitempty"`SpanGapSpanGapQuery `json:"span_gap,omitempty"`// SpanMulti Wraps a `term`, `range`, `prefix`, `wildcard`, `regexp`, or `fuzzy` query.SpanMulti *SpanMultiTermQuery `json:"span_multi,omitempty"`// SpanNear Accepts multiple span queries whose matches must be within the specified// distance of each other, and possibly in the same order.SpanNear *SpanNearQuery `json:"span_near,omitempty"`// SpanNot Wraps another span query, and excludes any documents which match that query.SpanNot *SpanNotQuery `json:"span_not,omitempty"`// SpanOr Combines multiple span queries and returns documents which match any of the// specified queries.SpanOr *SpanOrQuery `json:"span_or,omitempty"`// SpanTerm The equivalent of the `term` query but for use with other span queries.SpanTerm map[string]SpanTermQuery `json:"span_term,omitempty"`// SpanWithin The result from a single span query is returned as long is its span falls// within the spans returned by a list of other span queries.SpanWithin *SpanWithinQuery `json:"span_within,omitempty"`}SpanQuery type.
func (SpanQuery)MarshalJSON¶added inv8.18.0
MarhsalJSON overrides marshalling for types with additional properties
func (*SpanQuery)UnmarshalJSON¶added inv8.7.1
typeSpanTermQuery¶
type SpanTermQuery struct {// Boost Floating point number used to decrease or increase the relevance scores of// the query.// Boost values are relative to the default value of 1.0.// A boost value between 0 and 1.0 decreases the relevance score.// A value greater than 1.0 increases the relevance score.Boost *float32 `json:"boost,omitempty"`QueryName_ *string `json:"_name,omitempty"`Valuestring `json:"value"`}SpanTermQuery type.
funcNewSpanTermQuery¶added inv8.5.0
func NewSpanTermQuery() *SpanTermQuery
NewSpanTermQuery returns a SpanTermQuery.
func (*SpanTermQuery)UnmarshalJSON¶added inv8.7.1
func (s *SpanTermQuery) UnmarshalJSON(data []byte)error
typeSpanWithinQuery¶
type SpanWithinQuery struct {// Big Can be any span query.// Matching spans from `little` that are enclosed within `big` are returned.BigSpanQuery `json:"big"`// Boost Floating point number used to decrease or increase the relevance scores of// the query.// Boost values are relative to the default value of 1.0.// A boost value between 0 and 1.0 decreases the relevance score.// A value greater than 1.0 increases the relevance score.Boost *float32 `json:"boost,omitempty"`// Little Can be any span query.// Matching spans from `little` that are enclosed within `big` are returned.LittleSpanQuery `json:"little"`QueryName_ *string `json:"_name,omitempty"`}SpanWithinQuery type.
funcNewSpanWithinQuery¶added inv8.5.0
func NewSpanWithinQuery() *SpanWithinQuery
NewSpanWithinQuery returns a SpanWithinQuery.
func (*SpanWithinQuery)UnmarshalJSON¶added inv8.7.1
func (s *SpanWithinQuery) UnmarshalJSON(data []byte)error
typeSpanishAnalyzer¶added inv8.16.0
type SpanishAnalyzer struct {StemExclusion []string `json:"stem_exclusion,omitempty"`StopwordsStopWords `json:"stopwords,omitempty"`StopwordsPath *string `json:"stopwords_path,omitempty"`Typestring `json:"type,omitempty"`}SpanishAnalyzer type.
funcNewSpanishAnalyzer¶added inv8.16.0
func NewSpanishAnalyzer() *SpanishAnalyzer
NewSpanishAnalyzer returns a SpanishAnalyzer.
func (SpanishAnalyzer)MarshalJSON¶added inv8.16.0
func (sSpanishAnalyzer) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*SpanishAnalyzer)UnmarshalJSON¶added inv8.16.0
func (s *SpanishAnalyzer) UnmarshalJSON(data []byte)error
typeSparseEmbeddingResult¶added inv8.12.0
type SparseEmbeddingResult struct {EmbeddingSparseVector `json:"embedding"`}SparseEmbeddingResult type.
funcNewSparseEmbeddingResult¶added inv8.12.0
func NewSparseEmbeddingResult() *SparseEmbeddingResult
NewSparseEmbeddingResult returns a SparseEmbeddingResult.
func (*SparseEmbeddingResult)UnmarshalJSON¶added inv8.12.0
func (s *SparseEmbeddingResult) UnmarshalJSON(data []byte)error
typeSparseVector¶added inv8.12.0
SparseVector type alias.
typeSparseVectorIndexOptions¶added inv8.19.0
type SparseVectorIndexOptions struct {// Prune Whether to perform pruning, omitting the non-significant tokens from the// query to improve query performance.// If prune is true but the pruning_config is not specified, pruning will occur// but default values will be used.// Default: falsePrune *bool `json:"prune,omitempty"`// PruningConfig Optional pruning configuration.// If enabled, this will omit non-significant tokens from the query in order to// improve query performance.// This is only used if prune is set to true.// If prune is set to true but pruning_config is not specified, default values// will be used.PruningConfig *TokenPruningConfig `json:"pruning_config,omitempty"`}SparseVectorIndexOptions type.
funcNewSparseVectorIndexOptions¶added inv8.19.0
func NewSparseVectorIndexOptions() *SparseVectorIndexOptions
NewSparseVectorIndexOptions returns a SparseVectorIndexOptions.
func (*SparseVectorIndexOptions)UnmarshalJSON¶added inv8.19.0
func (s *SparseVectorIndexOptions) UnmarshalJSON(data []byte)error
typeSparseVectorProperty¶added inv8.11.1
type SparseVectorProperty struct {Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`Fields map[string]Property `json:"fields,omitempty"`IgnoreAbove *int `json:"ignore_above,omitempty"`// IndexOptions Additional index options for the sparse vector field that controls the// token pruning behavior of the sparse vector field.IndexOptions *SparseVectorIndexOptions `json:"index_options,omitempty"`// Meta Metadata about the field.Meta map[string]string `json:"meta,omitempty"`Properties map[string]Property `json:"properties,omitempty"`Store *bool `json:"store,omitempty"`SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`Typestring `json:"type,omitempty"`}SparseVectorProperty type.
funcNewSparseVectorProperty¶added inv8.11.1
func NewSparseVectorProperty() *SparseVectorProperty
NewSparseVectorProperty returns a SparseVectorProperty.
func (SparseVectorProperty)MarshalJSON¶added inv8.11.1
func (sSparseVectorProperty) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*SparseVectorProperty)UnmarshalJSON¶added inv8.11.1
func (s *SparseVectorProperty) UnmarshalJSON(data []byte)error
typeSparseVectorQuery¶added inv8.15.0
type SparseVectorQuery struct {AdditionalSparseVectorQueryProperty map[string]json.RawMessage `json:"-"`// Boost Floating point number used to decrease or increase the relevance scores of// the query.// Boost values are relative to the default value of 1.0.// A boost value between 0 and 1.0 decreases the relevance score.// A value greater than 1.0 increases the relevance score.Boost *float32 `json:"boost,omitempty"`// Field The name of the field that contains the token-weight pairs to be searched// against.// This field must be a mapped sparse_vector field.Fieldstring `json:"field"`// InferenceId The inference ID to use to convert the query text into token-weight pairs.// It must be the same inference ID that was used to create the tokens from the// input text.// Only one of inference_id and query_vector is allowed.// If inference_id is specified, query must also be specified.// Only one of inference_id or query_vector may be supplied in a request.InferenceId *string `json:"inference_id,omitempty"`// Prune Whether to perform pruning, omitting the non-significant tokens from the// query to improve query performance.// If prune is true but the pruning_config is not specified, pruning will occur// but default values will be used.// Default: falsePrune *bool `json:"prune,omitempty"`// PruningConfig Optional pruning configuration.// If enabled, this will omit non-significant tokens from the query in order to// improve query performance.// This is only used if prune is set to true.// If prune is set to true but pruning_config is not specified, default values// will be used.PruningConfig *TokenPruningConfig `json:"pruning_config,omitempty"`// Query The query text you want to use for search.// If inference_id is specified, query must also be specified.Query *string `json:"query,omitempty"`QueryName_ *string `json:"_name,omitempty"`// QueryVector Dictionary of precomputed sparse vectors and their associated weights.// Only one of inference_id or query_vector may be supplied in a request.QueryVector map[string]float32 `json:"query_vector,omitempty"`}SparseVectorQuery type.
funcNewSparseVectorQuery¶added inv8.15.0
func NewSparseVectorQuery() *SparseVectorQuery
NewSparseVectorQuery returns a SparseVectorQuery.
func (SparseVectorQuery)MarshalJSON¶added inv8.18.0
func (sSparseVectorQuery) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
func (*SparseVectorQuery)UnmarshalJSON¶added inv8.15.0
func (s *SparseVectorQuery) UnmarshalJSON(data []byte)error
typeSparseVectorStats¶added inv8.19.0
type SparseVectorStats struct {ValueCountint64 `json:"value_count"`}SparseVectorStats type.
funcNewSparseVectorStats¶added inv8.19.0
func NewSparseVectorStats() *SparseVectorStats
NewSparseVectorStats returns a SparseVectorStats.
func (*SparseVectorStats)UnmarshalJSON¶added inv8.19.0
func (s *SparseVectorStats) UnmarshalJSON(data []byte)error
typeSpecifiedDocument¶added inv8.18.1
SpecifiedDocument type.
funcNewSpecifiedDocument¶added inv8.18.1
func NewSpecifiedDocument() *SpecifiedDocument
NewSpecifiedDocument returns a SpecifiedDocument.
func (*SpecifiedDocument)UnmarshalJSON¶added inv8.18.1
func (s *SpecifiedDocument) UnmarshalJSON(data []byte)error
typeSplitProcessor¶
type SplitProcessor struct {// Description Description of the processor.// Useful for describing the purpose of the processor or its configuration.Description *string `json:"description,omitempty"`// Field The field to split.Fieldstring `json:"field"`// If Conditionally execute the processor.If *string `json:"if,omitempty"`// IgnoreFailure Ignore failures for the processor.IgnoreFailure *bool `json:"ignore_failure,omitempty"`// IgnoreMissing If `true` and `field` does not exist, the processor quietly exits without// modifying the document.IgnoreMissing *bool `json:"ignore_missing,omitempty"`// OnFailure Handle failures for the processor.OnFailure []ProcessorContainer `json:"on_failure,omitempty"`// PreserveTrailing Preserves empty trailing fields, if any.PreserveTrailing *bool `json:"preserve_trailing,omitempty"`// Separator A regex which matches the separator, for example, `,` or `\s+`.Separatorstring `json:"separator"`// Tag Identifier for the processor.// Useful for debugging and metrics.Tag *string `json:"tag,omitempty"`// TargetField The field to assign the split value to.// By default, the field is updated in-place.TargetField *string `json:"target_field,omitempty"`}SplitProcessor type.
funcNewSplitProcessor¶added inv8.5.0
func NewSplitProcessor() *SplitProcessor
NewSplitProcessor returns a SplitProcessor.
func (*SplitProcessor)UnmarshalJSON¶added inv8.7.1
func (s *SplitProcessor) UnmarshalJSON(data []byte)error
typeSql¶
type Sql struct {Availablebool `json:"available"`Enabledbool `json:"enabled"`Features map[string]int `json:"features"`Queries map[string]XpackQuery `json:"queries"`}Sql type.
func (*Sql)UnmarshalJSON¶added inv8.7.1
typeSsl¶
type Ssl struct {HttpFeatureToggle `json:"http"`TransportFeatureToggle `json:"transport"`}Ssl type.
typeStagnatingBackingIndices¶added inv8.16.0
type StagnatingBackingIndices struct {FirstOccurrenceTimestampint64 `json:"first_occurrence_timestamp"`IndexNamestring `json:"index_name"`RetryCountint `json:"retry_count"`}StagnatingBackingIndices type.
funcNewStagnatingBackingIndices¶added inv8.16.0
func NewStagnatingBackingIndices() *StagnatingBackingIndices
NewStagnatingBackingIndices returns a StagnatingBackingIndices.
func (*StagnatingBackingIndices)UnmarshalJSON¶added inv8.16.0
func (s *StagnatingBackingIndices) UnmarshalJSON(data []byte)error
typeStandardAnalyzer¶
type StandardAnalyzer struct {MaxTokenLength *int `json:"max_token_length,omitempty"`StopwordsStopWords `json:"stopwords,omitempty"`Typestring `json:"type,omitempty"`}StandardAnalyzer type.
funcNewStandardAnalyzer¶added inv8.5.0
func NewStandardAnalyzer() *StandardAnalyzer
NewStandardAnalyzer returns a StandardAnalyzer.
func (StandardAnalyzer)MarshalJSON¶added inv8.9.0
func (sStandardAnalyzer) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*StandardAnalyzer)UnmarshalJSON¶added inv8.7.1
func (s *StandardAnalyzer) UnmarshalJSON(data []byte)error
typeStandardDeviationBounds¶
type StandardDeviationBounds struct {Lower *Float64 `json:"lower,omitempty"`LowerPopulation *Float64 `json:"lower_population,omitempty"`LowerSampling *Float64 `json:"lower_sampling,omitempty"`Upper *Float64 `json:"upper,omitempty"`UpperPopulation *Float64 `json:"upper_population,omitempty"`UpperSampling *Float64 `json:"upper_sampling,omitempty"`}StandardDeviationBounds type.
funcNewStandardDeviationBounds¶added inv8.5.0
func NewStandardDeviationBounds() *StandardDeviationBounds
NewStandardDeviationBounds returns a StandardDeviationBounds.
func (*StandardDeviationBounds)UnmarshalJSON¶added inv8.7.1
func (s *StandardDeviationBounds) UnmarshalJSON(data []byte)error
typeStandardDeviationBoundsAsString¶
type StandardDeviationBoundsAsString struct {Lowerstring `json:"lower"`LowerPopulationstring `json:"lower_population"`LowerSamplingstring `json:"lower_sampling"`Upperstring `json:"upper"`UpperPopulationstring `json:"upper_population"`UpperSamplingstring `json:"upper_sampling"`}StandardDeviationBoundsAsString type.
funcNewStandardDeviationBoundsAsString¶added inv8.5.0
func NewStandardDeviationBoundsAsString() *StandardDeviationBoundsAsString
NewStandardDeviationBoundsAsString returns a StandardDeviationBoundsAsString.
func (*StandardDeviationBoundsAsString)UnmarshalJSON¶added inv8.9.0
func (s *StandardDeviationBoundsAsString) UnmarshalJSON(data []byte)error
typeStandardRetriever¶added inv8.14.0
type StandardRetriever struct {// Collapse Collapses the top documents by a specified key into a single top document per// key.Collapse *FieldCollapse `json:"collapse,omitempty"`// Filter Query to filter the documents that can match.Filter []Query `json:"filter,omitempty"`// MinScore Minimum _score for matching documents. Documents with a lower _score are not// included in the top documents.MinScore *float32 `json:"min_score,omitempty"`// Name_ Retriever name.Name_ *string `json:"_name,omitempty"`// Query Defines a query to retrieve a set of top documents.Query *Query `json:"query,omitempty"`// SearchAfter Defines a search after object parameter used for pagination.SearchAfter []FieldValue `json:"search_after,omitempty"`// Sort A sort object that that specifies the order of matching documents.Sort []SortCombinations `json:"sort,omitempty"`// TerminateAfter Maximum number of documents to collect for each shard.TerminateAfter *int `json:"terminate_after,omitempty"`}StandardRetriever type.
funcNewStandardRetriever¶added inv8.14.0
func NewStandardRetriever() *StandardRetriever
NewStandardRetriever returns a StandardRetriever.
func (*StandardRetriever)UnmarshalJSON¶added inv8.14.0
func (s *StandardRetriever) UnmarshalJSON(data []byte)error
typeStandardTokenizer¶
type StandardTokenizer struct {MaxTokenLength *int `json:"max_token_length,omitempty"`Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}StandardTokenizer type.
funcNewStandardTokenizer¶added inv8.5.0
func NewStandardTokenizer() *StandardTokenizer
NewStandardTokenizer returns a StandardTokenizer.
func (StandardTokenizer)MarshalJSON¶added inv8.9.0
func (sStandardTokenizer) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*StandardTokenizer)UnmarshalJSON¶added inv8.7.1
func (s *StandardTokenizer) UnmarshalJSON(data []byte)error
typeStatistics¶
type Statistics struct {Policy *string `json:"policy,omitempty"`RetentionDeletionTimeDuration `json:"retention_deletion_time,omitempty"`RetentionDeletionTimeMillis *int64 `json:"retention_deletion_time_millis,omitempty"`RetentionFailed *int64 `json:"retention_failed,omitempty"`RetentionRuns *int64 `json:"retention_runs,omitempty"`RetentionTimedOut *int64 `json:"retention_timed_out,omitempty"`TotalSnapshotDeletionFailures *int64 `json:"total_snapshot_deletion_failures,omitempty"`TotalSnapshotsDeleted *int64 `json:"total_snapshots_deleted,omitempty"`TotalSnapshotsFailed *int64 `json:"total_snapshots_failed,omitempty"`TotalSnapshotsTaken *int64 `json:"total_snapshots_taken,omitempty"`}Statistics type.
func (*Statistics)UnmarshalJSON¶added inv8.7.1
func (s *Statistics) UnmarshalJSON(data []byte)error
typeStats¶
type Stats struct {// AdaptiveSelection Statistics about adaptive replica selection.AdaptiveSelection map[string]AdaptiveSelection `json:"adaptive_selection,omitempty"`// Attributes Contains a list of attributes for the node.Attributes map[string]string `json:"attributes,omitempty"`// Breakers Statistics about the field data circuit breaker.Breakers map[string]Breaker `json:"breakers,omitempty"`// Discovery Contains node discovery statistics for the node.Discovery *Discovery `json:"discovery,omitempty"`// Fs File system information, data path, free disk space, read/write stats.Fs *FileSystem `json:"fs,omitempty"`// Host Network host for the node, based on the network host setting.Host *string `json:"host,omitempty"`// Http HTTP connection information.Http *Http `json:"http,omitempty"`// IndexingPressure Contains indexing pressure statistics for the node.IndexingPressure *NodesIndexingPressure `json:"indexing_pressure,omitempty"`// Indices Indices stats about size, document count, indexing and deletion times, search// times, field cache size, merges and flushes.Indices *IndicesShardStats `json:"indices,omitempty"`// Ingest Statistics about ingest preprocessing.Ingest *NodesIngest `json:"ingest,omitempty"`// Ip IP address and port for the node.Ip []string `json:"ip,omitempty"`// Jvm JVM stats, memory pool information, garbage collection, buffer pools, number// of loaded/unloaded classes.Jvm *Jvm `json:"jvm,omitempty"`// Name Human-readable identifier for the node.// Based on the node name setting.Name *string `json:"name,omitempty"`// Os Operating system stats, load average, mem, swap.Os *OperatingSystem `json:"os,omitempty"`// Process Process statistics, memory consumption, cpu usage, open file descriptors.Process *Process `json:"process,omitempty"`// Roles Roles assigned to the node.Roles []noderole.NodeRole `json:"roles,omitempty"`// Script Contains script statistics for the node.Script *Scripting `json:"script,omitempty"`ScriptCache map[string][]ScriptCache `json:"script_cache,omitempty"`// ThreadPool Statistics about each thread pool, including current size, queue and rejected// tasks.ThreadPool map[string]ThreadCount `json:"thread_pool,omitempty"`Timestamp *int64 `json:"timestamp,omitempty"`// Transport Transport statistics about sent and received bytes in cluster communication.Transport *Transport `json:"transport,omitempty"`// TransportAddress Host and port for the transport layer, used for internal communication// between nodes in a cluster.TransportAddress *string `json:"transport_address,omitempty"`}Stats type.
func (*Stats)UnmarshalJSON¶added inv8.7.1
typeStatsAggregate¶
type StatsAggregate struct {Avg *Float64 `json:"avg,omitempty"`AvgAsString *string `json:"avg_as_string,omitempty"`Countint64 `json:"count"`Max *Float64 `json:"max,omitempty"`MaxAsString *string `json:"max_as_string,omitempty"`MetaMetadata `json:"meta,omitempty"`Min *Float64 `json:"min,omitempty"`MinAsString *string `json:"min_as_string,omitempty"`SumFloat64 `json:"sum"`SumAsString *string `json:"sum_as_string,omitempty"`}StatsAggregate type.
funcNewStatsAggregate¶added inv8.5.0
func NewStatsAggregate() *StatsAggregate
NewStatsAggregate returns a StatsAggregate.
func (*StatsAggregate)UnmarshalJSON¶added inv8.7.1
func (s *StatsAggregate) UnmarshalJSON(data []byte)error
typeStatsAggregation¶
type StatsAggregation struct {// Field The field on which to run the aggregation.Field *string `json:"field,omitempty"`Format *string `json:"format,omitempty"`// Missing The value to apply to documents that do not have a value.// By default, documents without a value are ignored.MissingMissing `json:"missing,omitempty"`Script *Script `json:"script,omitempty"`}StatsAggregation type.
funcNewStatsAggregation¶added inv8.5.0
func NewStatsAggregation() *StatsAggregation
NewStatsAggregation returns a StatsAggregation.
func (*StatsAggregation)UnmarshalJSON¶added inv8.7.1
func (s *StatsAggregation) UnmarshalJSON(data []byte)error
typeStatsBucketAggregate¶
type StatsBucketAggregate struct {Avg *Float64 `json:"avg,omitempty"`AvgAsString *string `json:"avg_as_string,omitempty"`Countint64 `json:"count"`Max *Float64 `json:"max,omitempty"`MaxAsString *string `json:"max_as_string,omitempty"`MetaMetadata `json:"meta,omitempty"`Min *Float64 `json:"min,omitempty"`MinAsString *string `json:"min_as_string,omitempty"`SumFloat64 `json:"sum"`SumAsString *string `json:"sum_as_string,omitempty"`}StatsBucketAggregate type.
funcNewStatsBucketAggregate¶added inv8.5.0
func NewStatsBucketAggregate() *StatsBucketAggregate
NewStatsBucketAggregate returns a StatsBucketAggregate.
func (*StatsBucketAggregate)UnmarshalJSON¶added inv8.7.1
func (s *StatsBucketAggregate) UnmarshalJSON(data []byte)error
typeStatsBucketAggregation¶
type StatsBucketAggregation struct {// BucketsPath Path to the buckets that contain one set of values to correlate.BucketsPathBucketsPath `json:"buckets_path,omitempty"`// Format `DecimalFormat` pattern for the output value.// If specified, the formatted value is returned in the aggregation’s// `value_as_string` property.Format *string `json:"format,omitempty"`// GapPolicy Policy to apply when gaps are found in the data.GapPolicy *gappolicy.GapPolicy `json:"gap_policy,omitempty"`}StatsBucketAggregation type.
funcNewStatsBucketAggregation¶added inv8.5.0
func NewStatsBucketAggregation() *StatsBucketAggregation
NewStatsBucketAggregation returns a StatsBucketAggregation.
func (*StatsBucketAggregation)UnmarshalJSON¶added inv8.7.0
func (s *StatsBucketAggregation) UnmarshalJSON(data []byte)error
typeStatus¶
type Status struct {IncludeGlobalStatebool `json:"include_global_state"`Indices map[string]SnapshotIndexStats `json:"indices"`Repositorystring `json:"repository"`ShardsStatsSnapshotShardsStats `json:"shards_stats"`Snapshotstring `json:"snapshot"`Statestring `json:"state"`StatsSnapshotStats `json:"stats"`Uuidstring `json:"uuid"`}Status type.
func (*Status)UnmarshalJSON¶added inv8.7.1
typeStatusError¶added inv8.18.0
StatusError type.
funcNewStatusError¶added inv8.18.0
func NewStatusError() *StatusError
NewStatusError returns a StatusError.
func (*StatusError)UnmarshalJSON¶added inv8.18.0
func (s *StatusError) UnmarshalJSON(data []byte)error
typeStatusInProgress¶added inv8.18.0
type StatusInProgress struct {Indexstring `json:"index"`ReindexedDocCountint64 `json:"reindexed_doc_count"`TotalDocCountint64 `json:"total_doc_count"`}StatusInProgress type.
funcNewStatusInProgress¶added inv8.18.0
func NewStatusInProgress() *StatusInProgress
NewStatusInProgress returns a StatusInProgress.
func (*StatusInProgress)UnmarshalJSON¶added inv8.18.0
func (s *StatusInProgress) UnmarshalJSON(data []byte)error
typeStemmerOverrideTokenFilter¶
type StemmerOverrideTokenFilter struct {// Rules A list of mapping rules to use.Rules []string `json:"rules,omitempty"`// RulesPath A path (either relative to `config` location, or absolute) to a list of// mappings.RulesPath *string `json:"rules_path,omitempty"`Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}StemmerOverrideTokenFilter type.
funcNewStemmerOverrideTokenFilter¶added inv8.5.0
func NewStemmerOverrideTokenFilter() *StemmerOverrideTokenFilter
NewStemmerOverrideTokenFilter returns a StemmerOverrideTokenFilter.
func (StemmerOverrideTokenFilter)MarshalJSON¶added inv8.9.0
func (sStemmerOverrideTokenFilter) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*StemmerOverrideTokenFilter)UnmarshalJSON¶added inv8.7.1
func (s *StemmerOverrideTokenFilter) UnmarshalJSON(data []byte)error
typeStemmerTokenFilter¶
type StemmerTokenFilter struct {Language *string `json:"language,omitempty"`Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}StemmerTokenFilter type.
funcNewStemmerTokenFilter¶added inv8.5.0
func NewStemmerTokenFilter() *StemmerTokenFilter
NewStemmerTokenFilter returns a StemmerTokenFilter.
func (StemmerTokenFilter)MarshalJSON¶added inv8.9.0
func (sStemmerTokenFilter) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*StemmerTokenFilter)UnmarshalJSON¶added inv8.7.1
func (s *StemmerTokenFilter) UnmarshalJSON(data []byte)error
typeStepKey¶
type StepKey struct {// Action The optional action to which the index will be moved.Action *string `json:"action,omitempty"`// Name The optional step name to which the index will be moved.Name *string `json:"name,omitempty"`Phasestring `json:"phase"`}StepKey type.
func (*StepKey)UnmarshalJSON¶added inv8.9.0
typeStopAnalyzer¶
type StopAnalyzer struct {StopwordsStopWords `json:"stopwords,omitempty"`StopwordsPath *string `json:"stopwords_path,omitempty"`Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}StopAnalyzer type.
funcNewStopAnalyzer¶added inv8.5.0
func NewStopAnalyzer() *StopAnalyzer
NewStopAnalyzer returns a StopAnalyzer.
func (StopAnalyzer)MarshalJSON¶added inv8.9.0
func (sStopAnalyzer) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*StopAnalyzer)UnmarshalJSON¶added inv8.7.1
func (s *StopAnalyzer) UnmarshalJSON(data []byte)error
typeStopTokenFilter¶
type StopTokenFilter struct {// IgnoreCase If `true`, stop word matching is case insensitive. For example, if `true`, a// stop word of the matches and removes `The`, `THE`, or `the`. Defaults to// `false`.IgnoreCase *bool `json:"ignore_case,omitempty"`// RemoveTrailing If `true`, the last token of a stream is removed if it’s a stop word.// Defaults to `true`.RemoveTrailing *bool `json:"remove_trailing,omitempty"`// Stopwords Language value, such as `_arabic_` or `_thai_`. Defaults to `_english_`.StopwordsStopWords `json:"stopwords,omitempty"`// StopwordsPath Path to a file that contains a list of stop words to remove.// This path must be absolute or relative to the `config` location, and the file// must be UTF-8 encoded. Each stop word in the file must be separated by a line// break.StopwordsPath *string `json:"stopwords_path,omitempty"`Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}StopTokenFilter type.
funcNewStopTokenFilter¶added inv8.5.0
func NewStopTokenFilter() *StopTokenFilter
NewStopTokenFilter returns a StopTokenFilter.
func (StopTokenFilter)MarshalJSON¶added inv8.9.0
func (sStopTokenFilter) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*StopTokenFilter)UnmarshalJSON¶added inv8.7.1
func (s *StopTokenFilter) UnmarshalJSON(data []byte)error
typeStopWords¶
type StopWordsany
StopWords holds the union for the following types:
stopwordlanguage.StopWordLanguage[]string
typeStorage¶
type Storage struct {// AllowMmap You can restrict the use of the mmapfs and the related hybridfs store type// via the setting node.store.allow_mmap.// This is a boolean setting indicating whether or not memory-mapping is// allowed. The default is to allow it. This// setting is useful, for example, if you are in an environment where you can// not control the ability to create a lot// of memory maps so you need disable the ability to use memory-mapping.AllowMmap *bool `json:"allow_mmap,omitempty"`// StatsRefreshInterval How often store statistics are refreshedStatsRefreshIntervalDuration `json:"stats_refresh_interval,omitempty"`Typestoragetype.StorageType `json:"type"`}Storage type.
func (*Storage)UnmarshalJSON¶added inv8.7.1
typeStoreStats¶
type StoreStats struct {// Reserved A prediction of how much larger the shard stores will eventually grow due to// ongoing peer recoveries, restoring snapshots, and similar activities.ReservedByteSize `json:"reserved,omitempty"`// ReservedInBytes A prediction, in bytes, of how much larger the shard stores will eventually// grow due to ongoing peer recoveries, restoring snapshots, and similar// activities.ReservedInBytesint64 `json:"reserved_in_bytes"`// Size Total size of all shards assigned to selected nodes.SizeByteSize `json:"size,omitempty"`// SizeInBytes Total size, in bytes, of all shards assigned to selected nodes.SizeInBytesint64 `json:"size_in_bytes"`// TotalDataSetSize Total data set size of all shards assigned to selected nodes.// This includes the size of shards not stored fully on the nodes, such as the// cache for partially mounted indices.TotalDataSetSizeByteSize `json:"total_data_set_size,omitempty"`// TotalDataSetSizeInBytes Total data set size, in bytes, of all shards assigned to selected nodes.// This includes the size of shards not stored fully on the nodes, such as the// cache for partially mounted indices.TotalDataSetSizeInBytes *int64 `json:"total_data_set_size_in_bytes,omitempty"`}StoreStats type.
func (*StoreStats)UnmarshalJSON¶added inv8.7.1
func (s *StoreStats) UnmarshalJSON(data []byte)error
typeStoredScript¶
type StoredScript struct {// Lang The language the script is written in.// For serach templates, use `mustache`.Langscriptlanguage.ScriptLanguage `json:"lang"`Options map[string]string `json:"options,omitempty"`// Source The script source.// For search templates, an object containing the search template.Sourcestring `json:"source"`}StoredScript type.
funcNewStoredScript¶added inv8.5.0
func NewStoredScript() *StoredScript
NewStoredScript returns a StoredScript.
func (*StoredScript)UnmarshalJSON¶added inv8.9.0
func (s *StoredScript) UnmarshalJSON(data []byte)error
typeStringRareTermsAggregate¶
type StringRareTermsAggregate struct {BucketsBucketsStringRareTermsBucket `json:"buckets"`MetaMetadata `json:"meta,omitempty"`}StringRareTermsAggregate type.
funcNewStringRareTermsAggregate¶added inv8.5.0
func NewStringRareTermsAggregate() *StringRareTermsAggregate
NewStringRareTermsAggregate returns a StringRareTermsAggregate.
func (*StringRareTermsAggregate)UnmarshalJSON¶added inv8.7.0
func (s *StringRareTermsAggregate) UnmarshalJSON(data []byte)error
typeStringRareTermsBucket¶
type StringRareTermsBucket struct {Aggregations map[string]Aggregate `json:"-"`DocCountint64 `json:"doc_count"`Keystring `json:"key"`}StringRareTermsBucket type.
funcNewStringRareTermsBucket¶added inv8.5.0
func NewStringRareTermsBucket() *StringRareTermsBucket
NewStringRareTermsBucket returns a StringRareTermsBucket.
func (StringRareTermsBucket)MarshalJSON¶
func (sStringRareTermsBucket) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
func (*StringRareTermsBucket)UnmarshalJSON¶added inv8.7.0
func (s *StringRareTermsBucket) UnmarshalJSON(data []byte)error
typeStringStatsAggregate¶
type StringStatsAggregate struct {AvgLength *Float64 `json:"avg_length,omitempty"`AvgLengthAsString *string `json:"avg_length_as_string,omitempty"`Countint64 `json:"count"`Distribution *map[string]Float64 `json:"distribution,omitempty"`Entropy *Float64 `json:"entropy,omitempty"`MaxLength *int `json:"max_length,omitempty"`MaxLengthAsString *string `json:"max_length_as_string,omitempty"`MetaMetadata `json:"meta,omitempty"`MinLength *int `json:"min_length,omitempty"`MinLengthAsString *string `json:"min_length_as_string,omitempty"`}StringStatsAggregate type.
funcNewStringStatsAggregate¶added inv8.5.0
func NewStringStatsAggregate() *StringStatsAggregate
NewStringStatsAggregate returns a StringStatsAggregate.
func (*StringStatsAggregate)UnmarshalJSON¶added inv8.7.1
func (s *StringStatsAggregate) UnmarshalJSON(data []byte)error
typeStringStatsAggregation¶
type StringStatsAggregation struct {// Field The field on which to run the aggregation.Field *string `json:"field,omitempty"`// Missing The value to apply to documents that do not have a value.// By default, documents without a value are ignored.MissingMissing `json:"missing,omitempty"`Script *Script `json:"script,omitempty"`// ShowDistribution Shows the probability distribution for all characters.ShowDistribution *bool `json:"show_distribution,omitempty"`}StringStatsAggregation type.
funcNewStringStatsAggregation¶added inv8.5.0
func NewStringStatsAggregation() *StringStatsAggregation
NewStringStatsAggregation returns a StringStatsAggregation.
func (*StringStatsAggregation)UnmarshalJSON¶added inv8.7.1
func (s *StringStatsAggregation) UnmarshalJSON(data []byte)error
typeStringTermsAggregate¶
type StringTermsAggregate struct {BucketsBucketsStringTermsBucket `json:"buckets"`DocCountErrorUpperBound *int64 `json:"doc_count_error_upper_bound,omitempty"`MetaMetadata `json:"meta,omitempty"`SumOtherDocCount *int64 `json:"sum_other_doc_count,omitempty"`}StringTermsAggregate type.
funcNewStringTermsAggregate¶added inv8.5.0
func NewStringTermsAggregate() *StringTermsAggregate
NewStringTermsAggregate returns a StringTermsAggregate.
func (*StringTermsAggregate)UnmarshalJSON¶added inv8.7.0
func (s *StringTermsAggregate) UnmarshalJSON(data []byte)error
typeStringTermsBucket¶
type StringTermsBucket struct {Aggregations map[string]Aggregate `json:"-"`DocCountint64 `json:"doc_count"`DocCountErrorUpperBound *int64 `json:"doc_count_error_upper_bound,omitempty"`KeyFieldValue `json:"key"`}StringTermsBucket type.
funcNewStringTermsBucket¶added inv8.5.0
func NewStringTermsBucket() *StringTermsBucket
NewStringTermsBucket returns a StringTermsBucket.
func (StringTermsBucket)MarshalJSON¶
func (sStringTermsBucket) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
func (*StringTermsBucket)UnmarshalJSON¶added inv8.7.0
func (s *StringTermsBucket) UnmarshalJSON(data []byte)error
typeStringifiedEpochTimeUnitMillis¶
type StringifiedEpochTimeUnitMillisany
StringifiedEpochTimeUnitMillis holds the union for the following types:
int64string
typeStringifiedEpochTimeUnitSeconds¶
type StringifiedEpochTimeUnitSecondsany
StringifiedEpochTimeUnitSeconds holds the union for the following types:
int64string
typeStringifiedVersionNumber¶added inv8.5.0
type StringifiedVersionNumberany
StringifiedVersionNumber holds the union for the following types:
int64string
typeStringifiedboolean¶added inv8.7.1
type Stringifiedbooleanany
Stringifiedboolean holds the union for the following types:
boolstring
typeStringifieddouble¶added inv8.16.0
type Stringifieddoubleany
Stringifieddouble holds the union for the following types:
Float64string
typeStringifiedinteger¶added inv8.7.1
type Stringifiedintegerany
Stringifiedinteger holds the union for the following types:
intstring
typeStupidBackoffSmoothingModel¶
type StupidBackoffSmoothingModel struct {// Discount A constant factor that the lower order n-gram model is discounted by.DiscountFloat64 `json:"discount"`}StupidBackoffSmoothingModel type.
funcNewStupidBackoffSmoothingModel¶added inv8.5.0
func NewStupidBackoffSmoothingModel() *StupidBackoffSmoothingModel
NewStupidBackoffSmoothingModel returns a StupidBackoffSmoothingModel.
func (*StupidBackoffSmoothingModel)UnmarshalJSON¶added inv8.7.1
func (s *StupidBackoffSmoothingModel) UnmarshalJSON(data []byte)error
typeSuggest¶
type Suggestany
Suggest holds the union for the following types:
CompletionSuggestPhraseSuggestTermSuggest
typeSuggestContext¶
type SuggestContext struct {Namestring `json:"name"`Path *string `json:"path,omitempty"`Precision *string `json:"precision,omitempty"`Typestring `json:"type"`}SuggestContext type.
funcNewSuggestContext¶added inv8.5.0
func NewSuggestContext() *SuggestContext
NewSuggestContext returns a SuggestContext.
func (*SuggestContext)UnmarshalJSON¶added inv8.7.1
func (s *SuggestContext) UnmarshalJSON(data []byte)error
typeSuggestFuzziness¶
type SuggestFuzziness struct {// Fuzziness The fuzziness factor.FuzzinessFuzziness `json:"fuzziness,omitempty"`// MinLength Minimum length of the input before fuzzy suggestions are returned.MinLength *int `json:"min_length,omitempty"`// PrefixLength Minimum length of the input, which is not checked for fuzzy alternatives.PrefixLength *int `json:"prefix_length,omitempty"`// Transpositions If set to `true`, transpositions are counted as one change instead of two.Transpositions *bool `json:"transpositions,omitempty"`// UnicodeAware If `true`, all measurements (like fuzzy edit distance, transpositions, and// lengths) are measured in Unicode code points instead of in bytes.// This is slightly slower than raw bytes.UnicodeAware *bool `json:"unicode_aware,omitempty"`}SuggestFuzziness type.
funcNewSuggestFuzziness¶added inv8.5.0
func NewSuggestFuzziness() *SuggestFuzziness
NewSuggestFuzziness returns a SuggestFuzziness.
func (*SuggestFuzziness)UnmarshalJSON¶added inv8.7.1
func (s *SuggestFuzziness) UnmarshalJSON(data []byte)error
typeSuggester¶
type Suggester struct {Suggesters map[string]FieldSuggester `json:"-"`// Text Global suggest text, to avoid repetition when the same text is used in// several suggestersText *string `json:"text,omitempty"`}Suggester type.
func (Suggester)MarshalJSON¶
MarhsalJSON overrides marshalling for types with additional properties
func (*Suggester)UnmarshalJSON¶added inv8.9.0
typeSumAggregate¶
type SumAggregate struct {MetaMetadata `json:"meta,omitempty"`// Value The metric value. A missing value generally means that there was no data to// aggregate,// unless specified otherwise.Value *Float64 `json:"value,omitempty"`ValueAsString *string `json:"value_as_string,omitempty"`}SumAggregate type.
funcNewSumAggregate¶added inv8.5.0
func NewSumAggregate() *SumAggregate
NewSumAggregate returns a SumAggregate.
func (*SumAggregate)UnmarshalJSON¶added inv8.7.1
func (s *SumAggregate) UnmarshalJSON(data []byte)error
typeSumAggregation¶
type SumAggregation struct {// Field The field on which to run the aggregation.Field *string `json:"field,omitempty"`Format *string `json:"format,omitempty"`// Missing The value to apply to documents that do not have a value.// By default, documents without a value are ignored.MissingMissing `json:"missing,omitempty"`Script *Script `json:"script,omitempty"`}SumAggregation type.
funcNewSumAggregation¶added inv8.5.0
func NewSumAggregation() *SumAggregation
NewSumAggregation returns a SumAggregation.
func (*SumAggregation)UnmarshalJSON¶added inv8.7.1
func (s *SumAggregation) UnmarshalJSON(data []byte)error
typeSumBucketAggregation¶
type SumBucketAggregation struct {// BucketsPath Path to the buckets that contain one set of values to correlate.BucketsPathBucketsPath `json:"buckets_path,omitempty"`// Format `DecimalFormat` pattern for the output value.// If specified, the formatted value is returned in the aggregation’s// `value_as_string` property.Format *string `json:"format,omitempty"`// GapPolicy Policy to apply when gaps are found in the data.GapPolicy *gappolicy.GapPolicy `json:"gap_policy,omitempty"`}SumBucketAggregation type.
funcNewSumBucketAggregation¶added inv8.5.0
func NewSumBucketAggregation() *SumBucketAggregation
NewSumBucketAggregation returns a SumBucketAggregation.
func (*SumBucketAggregation)UnmarshalJSON¶added inv8.7.0
func (s *SumBucketAggregation) UnmarshalJSON(data []byte)error
typeSummary¶
type Summary struct {Config map[policytype.PolicyType]EnrichPolicy `json:"config"`}Summary type.
typeSummaryInfo¶added inv8.18.0
type SummaryInfo struct {// Read A collection of statistics that summarise the results of the read operations// in the test.ReadReadSummaryInfo `json:"read"`// Write A collection of statistics that summarise the results of the write operations// in the test.WriteWriteSummaryInfo `json:"write"`}SummaryInfo type.
funcNewSummaryInfo¶added inv8.18.0
func NewSummaryInfo() *SummaryInfo
NewSummaryInfo returns a SummaryInfo.
typeSwedishAnalyzer¶added inv8.16.0
type SwedishAnalyzer struct {StemExclusion []string `json:"stem_exclusion,omitempty"`StopwordsStopWords `json:"stopwords,omitempty"`StopwordsPath *string `json:"stopwords_path,omitempty"`Typestring `json:"type,omitempty"`}SwedishAnalyzer type.
funcNewSwedishAnalyzer¶added inv8.16.0
func NewSwedishAnalyzer() *SwedishAnalyzer
NewSwedishAnalyzer returns a SwedishAnalyzer.
func (SwedishAnalyzer)MarshalJSON¶added inv8.16.0
func (sSwedishAnalyzer) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*SwedishAnalyzer)UnmarshalJSON¶added inv8.16.0
func (s *SwedishAnalyzer) UnmarshalJSON(data []byte)error
typeSyncContainer¶
type SyncContainer struct {AdditionalSyncContainerProperty map[string]json.RawMessage `json:"-"`// Time Specifies that the transform uses a time field to synchronize the source and// destination indices.Time *TimeSync `json:"time,omitempty"`}SyncContainer type.
funcNewSyncContainer¶added inv8.5.0
func NewSyncContainer() *SyncContainer
NewSyncContainer returns a SyncContainer.
func (SyncContainer)MarshalJSON¶added inv8.18.0
func (sSyncContainer) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
typeSyncJobConnectorReference¶added inv8.15.0
type SyncJobConnectorReference struct {ConfigurationConnectorConfiguration `json:"configuration"`FilteringFilteringRules `json:"filtering"`Idstring `json:"id"`IndexNamestring `json:"index_name"`Language *string `json:"language,omitempty"`Pipeline *IngestPipelineParams `json:"pipeline,omitempty"`ServiceTypestring `json:"service_type"`SyncCursorjson.RawMessage `json:"sync_cursor,omitempty"`}SyncJobConnectorReference type.
funcNewSyncJobConnectorReference¶added inv8.15.0
func NewSyncJobConnectorReference() *SyncJobConnectorReference
NewSyncJobConnectorReference returns a SyncJobConnectorReference.
func (*SyncJobConnectorReference)UnmarshalJSON¶added inv8.15.0
func (s *SyncJobConnectorReference) UnmarshalJSON(data []byte)error
typeSyncRulesFeature¶added inv8.15.0
type SyncRulesFeature struct {// Advanced Indicates whether advanced sync rules are enabled.Advanced *FeatureEnabled `json:"advanced,omitempty"`// Basic Indicates whether basic sync rules are enabled.Basic *FeatureEnabled `json:"basic,omitempty"`}SyncRulesFeature type.
funcNewSyncRulesFeature¶added inv8.15.0
func NewSyncRulesFeature() *SyncRulesFeature
NewSyncRulesFeature returns a SyncRulesFeature.
typeSynonymGraphTokenFilter¶
type SynonymGraphTokenFilter struct {// Expand Expands definitions for equivalent synonym rules. Defaults to `true`.Expand *bool `json:"expand,omitempty"`// Format Sets the synonym rules format.Format *synonymformat.SynonymFormat `json:"format,omitempty"`// Lenient If `true` ignores errors while parsing the synonym rules. It is important to// note that only those synonym rules which cannot get parsed are ignored.// Defaults to the value of the `updateable` setting.Lenient *bool `json:"lenient,omitempty"`// Synonyms Used to define inline synonyms.Synonyms []string `json:"synonyms,omitempty"`// SynonymsPath Used to provide a synonym file. This path must be absolute or relative to the// `config` location.SynonymsPath *string `json:"synonyms_path,omitempty"`// SynonymsSet Provide a synonym set created via Synonyms Management APIs.SynonymsSet *string `json:"synonyms_set,omitempty"`// Tokenizer Controls the tokenizers that will be used to tokenize the synonym, this// parameter is for backwards compatibility for indices that created before 6.0.Tokenizer *string `json:"tokenizer,omitempty"`Typestring `json:"type,omitempty"`// Updateable If `true` allows reloading search analyzers to pick up changes to synonym// files. Only to be used for search analyzers. Defaults to `false`.Updateable *bool `json:"updateable,omitempty"`Version *string `json:"version,omitempty"`}SynonymGraphTokenFilter type.
funcNewSynonymGraphTokenFilter¶added inv8.5.0
func NewSynonymGraphTokenFilter() *SynonymGraphTokenFilter
NewSynonymGraphTokenFilter returns a SynonymGraphTokenFilter.
func (SynonymGraphTokenFilter)MarshalJSON¶added inv8.9.0
func (sSynonymGraphTokenFilter) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*SynonymGraphTokenFilter)UnmarshalJSON¶added inv8.7.1
func (s *SynonymGraphTokenFilter) UnmarshalJSON(data []byte)error
typeSynonymRule¶added inv8.10.0
type SynonymRule struct {// Id The identifier for the synonym rule.// If you do not specify a synonym rule ID when you create a rule, an identifier// is created automatically by Elasticsearch.Id *string `json:"id,omitempty"`// Synonyms The synonyms that conform the synonym rule in Solr format.Synonymsstring `json:"synonyms"`}SynonymRule type.
funcNewSynonymRule¶added inv8.10.0
func NewSynonymRule() *SynonymRule
NewSynonymRule returns a SynonymRule.
func (*SynonymRule)UnmarshalJSON¶added inv8.10.0
func (s *SynonymRule) UnmarshalJSON(data []byte)error
typeSynonymRuleRead¶added inv8.10.0
type SynonymRuleRead struct {// Id Synonym Rule identifierIdstring `json:"id"`// Synonyms Synonyms, in Solr format, that conform the synonym rule. See//https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-synonym-graph-tokenfilter.html#_solr_synonyms_2Synonymsstring `json:"synonyms"`}SynonymRuleRead type.
funcNewSynonymRuleRead¶added inv8.10.0
func NewSynonymRuleRead() *SynonymRuleRead
NewSynonymRuleRead returns a SynonymRuleRead.
func (*SynonymRuleRead)UnmarshalJSON¶added inv8.10.0
func (s *SynonymRuleRead) UnmarshalJSON(data []byte)error
typeSynonymTokenFilter¶
type SynonymTokenFilter struct {// Expand Expands definitions for equivalent synonym rules. Defaults to `true`.Expand *bool `json:"expand,omitempty"`// Format Sets the synonym rules format.Format *synonymformat.SynonymFormat `json:"format,omitempty"`// Lenient If `true` ignores errors while parsing the synonym rules. It is important to// note that only those synonym rules which cannot get parsed are ignored.// Defaults to the value of the `updateable` setting.Lenient *bool `json:"lenient,omitempty"`// Synonyms Used to define inline synonyms.Synonyms []string `json:"synonyms,omitempty"`// SynonymsPath Used to provide a synonym file. This path must be absolute or relative to the// `config` location.SynonymsPath *string `json:"synonyms_path,omitempty"`// SynonymsSet Provide a synonym set created via Synonyms Management APIs.SynonymsSet *string `json:"synonyms_set,omitempty"`// Tokenizer Controls the tokenizers that will be used to tokenize the synonym, this// parameter is for backwards compatibility for indices that created before 6.0.Tokenizer *string `json:"tokenizer,omitempty"`Typestring `json:"type,omitempty"`// Updateable If `true` allows reloading search analyzers to pick up changes to synonym// files. Only to be used for search analyzers. Defaults to `false`.Updateable *bool `json:"updateable,omitempty"`Version *string `json:"version,omitempty"`}SynonymTokenFilter type.
funcNewSynonymTokenFilter¶added inv8.5.0
func NewSynonymTokenFilter() *SynonymTokenFilter
NewSynonymTokenFilter returns a SynonymTokenFilter.
func (SynonymTokenFilter)MarshalJSON¶added inv8.9.0
func (sSynonymTokenFilter) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*SynonymTokenFilter)UnmarshalJSON¶added inv8.7.1
func (s *SynonymTokenFilter) UnmarshalJSON(data []byte)error
typeSynonymsSetItem¶added inv8.10.0
type SynonymsSetItem struct {// Count Number of synonym rules that the synonym set containsCountint `json:"count"`// SynonymsSet Synonyms set identifierSynonymsSetstring `json:"synonyms_set"`}SynonymsSetItem type.
funcNewSynonymsSetItem¶added inv8.10.0
func NewSynonymsSetItem() *SynonymsSetItem
NewSynonymsSetItem returns a SynonymsSetItem.
func (*SynonymsSetItem)UnmarshalJSON¶added inv8.10.0
func (s *SynonymsSetItem) UnmarshalJSON(data []byte)error
typeSynonymsStats¶added inv8.19.0
SynonymsStats type.
funcNewSynonymsStats¶added inv8.19.0
func NewSynonymsStats() *SynonymsStats
NewSynonymsStats returns a SynonymsStats.
func (*SynonymsStats)UnmarshalJSON¶added inv8.19.0
func (s *SynonymsStats) UnmarshalJSON(data []byte)error
typeTDigest¶
type TDigest struct {// Compression Limits the maximum number of nodes used by the underlying TDigest algorithm// to `20 * compression`, enabling control of memory usage and approximation// error.Compression *int `json:"compression,omitempty"`// ExecutionHint The default implementation of TDigest is optimized for performance, scaling// to millions or even billions of sample values while maintaining acceptable// accuracy levels (close to 1% relative error for millions of samples in some// cases).// To use an implementation optimized for accuracy, set this parameter to// high_accuracy instead.ExecutionHint *tdigestexecutionhint.TDigestExecutionHint `json:"execution_hint,omitempty"`}TDigest type.
func (*TDigest)UnmarshalJSON¶added inv8.7.1
typeTDigestPercentileRanksAggregate¶
type TDigestPercentileRanksAggregate struct {MetaMetadata `json:"meta,omitempty"`ValuesPercentiles `json:"values"`}TDigestPercentileRanksAggregate type.
funcNewTDigestPercentileRanksAggregate¶added inv8.5.0
func NewTDigestPercentileRanksAggregate() *TDigestPercentileRanksAggregate
NewTDigestPercentileRanksAggregate returns a TDigestPercentileRanksAggregate.
func (*TDigestPercentileRanksAggregate)UnmarshalJSON¶added inv8.7.1
func (s *TDigestPercentileRanksAggregate) UnmarshalJSON(data []byte)error
typeTDigestPercentilesAggregate¶
type TDigestPercentilesAggregate struct {MetaMetadata `json:"meta,omitempty"`ValuesPercentiles `json:"values"`}TDigestPercentilesAggregate type.
funcNewTDigestPercentilesAggregate¶added inv8.5.0
func NewTDigestPercentilesAggregate() *TDigestPercentilesAggregate
NewTDigestPercentilesAggregate returns a TDigestPercentilesAggregate.
func (*TDigestPercentilesAggregate)UnmarshalJSON¶added inv8.7.1
func (s *TDigestPercentilesAggregate) UnmarshalJSON(data []byte)error
typeTTestAggregate¶
type TTestAggregate struct {MetaMetadata `json:"meta,omitempty"`Value *Float64 `json:"value,omitempty"`ValueAsString *string `json:"value_as_string,omitempty"`}TTestAggregate type.
funcNewTTestAggregate¶added inv8.5.0
func NewTTestAggregate() *TTestAggregate
NewTTestAggregate returns a TTestAggregate.
func (*TTestAggregate)UnmarshalJSON¶added inv8.7.1
func (s *TTestAggregate) UnmarshalJSON(data []byte)error
typeTTestAggregation¶
type TTestAggregation struct {// A Test population A.A *TestPopulation `json:"a,omitempty"`// B Test population B.B *TestPopulation `json:"b,omitempty"`// Type The type of test.Type *ttesttype.TTestType `json:"type,omitempty"`}TTestAggregation type.
funcNewTTestAggregation¶added inv8.5.0
func NewTTestAggregation() *TTestAggregation
NewTTestAggregation returns a TTestAggregation.
typeTableValuesContainer¶added inv8.16.0
type TableValuesContainer struct {AdditionalTableValuesContainerProperty map[string]json.RawMessage `json:"-"`Float64 [][]Float64 `json:"double,omitempty"`Int [][]int `json:"integer,omitempty"`Int64 [][]int64 `json:"long,omitempty"`Keyword [][]string `json:"keyword,omitempty"`}TableValuesContainer type.
funcNewTableValuesContainer¶added inv8.16.0
func NewTableValuesContainer() *TableValuesContainer
NewTableValuesContainer returns a TableValuesContainer.
func (TableValuesContainer)MarshalJSON¶added inv8.18.0
func (sTableValuesContainer) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
typeTableValuesIntegerValue¶added inv8.16.0
type TableValuesIntegerValue []int
TableValuesIntegerValue type alias.
typeTableValuesKeywordValue¶added inv8.16.0
type TableValuesKeywordValue []string
TableValuesKeywordValue type alias.
typeTableValuesLongDouble¶added inv8.16.0
type TableValuesLongDouble []Float64
TableValuesLongDouble type alias.
typeTableValuesLongValue¶added inv8.16.0
type TableValuesLongValue []int64
TableValuesLongValue type alias.
typeTargetMeanEncodingPreprocessor¶
type TargetMeanEncodingPreprocessor struct {DefaultValueFloat64 `json:"default_value"`FeatureNamestring `json:"feature_name"`Fieldstring `json:"field"`TargetMap map[string]Float64 `json:"target_map"`}TargetMeanEncodingPreprocessor type.
funcNewTargetMeanEncodingPreprocessor¶added inv8.5.0
func NewTargetMeanEncodingPreprocessor() *TargetMeanEncodingPreprocessor
NewTargetMeanEncodingPreprocessor returns a TargetMeanEncodingPreprocessor.
func (*TargetMeanEncodingPreprocessor)UnmarshalJSON¶added inv8.7.1
func (s *TargetMeanEncodingPreprocessor) UnmarshalJSON(data []byte)error
typeTaskFailure¶
type TaskFailure struct {NodeIdstring `json:"node_id"`ReasonErrorCause `json:"reason"`Statusstring `json:"status"`TaskIdint64 `json:"task_id"`}TaskFailure type.
funcNewTaskFailure¶added inv8.5.0
func NewTaskFailure() *TaskFailure
NewTaskFailure returns a TaskFailure.
func (*TaskFailure)UnmarshalJSON¶added inv8.7.1
func (s *TaskFailure) UnmarshalJSON(data []byte)error
typeTaskInfo¶
type TaskInfo struct {Actionstring `json:"action"`Cancellablebool `json:"cancellable"`Cancelled *bool `json:"cancelled,omitempty"`// Description Human readable text that identifies the particular request that the task is// performing.// For example, it might identify the search request being performed by a search// task.// Other kinds of tasks have different descriptions, like `_reindex` which has// the source and the destination, or `_bulk` which just has the number of// requests and the destination indices.// Many requests will have only an empty description because more detailed// information about the request is not easily available or particularly helpful// in identifying the request.Description *string `json:"description,omitempty"`Headers map[string]string `json:"headers"`Idint64 `json:"id"`Nodestring `json:"node"`ParentTaskIdTaskId `json:"parent_task_id,omitempty"`RunningTimeDuration `json:"running_time,omitempty"`RunningTimeInNanosint64 `json:"running_time_in_nanos"`StartTimeInMillisint64 `json:"start_time_in_millis"`// Status The internal status of the task, which varies from task to task.// The format also varies.// While the goal is to keep the status for a particular task consistent from// version to version, this is not always possible because sometimes the// implementation changes.// Fields might be removed from the status for a particular request so any// parsing you do of the status might break in minor releases.Statusjson.RawMessage `json:"status,omitempty"`Typestring `json:"type"`}TaskInfo type.
func (*TaskInfo)UnmarshalJSON¶added inv8.7.1
typeTaskInfos¶
type TaskInfosany
TaskInfos holds the union for the following types:
[]TaskInfomap[string]ParentTaskInfo
typeTasksRecord¶
type TasksRecord struct {// Action The task action.Action *string `json:"action,omitempty"`// Description The task action description.Description *string `json:"description,omitempty"`// Id The identifier of the task with the node.Id *string `json:"id,omitempty"`// Ip The IP address for the node.Ip *string `json:"ip,omitempty"`// Node The node name.Node *string `json:"node,omitempty"`// NodeId The unique node identifier.NodeId *string `json:"node_id,omitempty"`// ParentTaskId The parent task identifier.ParentTaskId *string `json:"parent_task_id,omitempty"`// Port The bound transport port for the node.Port *string `json:"port,omitempty"`// RunningTime The running time.RunningTime *string `json:"running_time,omitempty"`// RunningTimeNs The running time in nanoseconds.RunningTimeNs *string `json:"running_time_ns,omitempty"`// StartTime The start time in milliseconds.StartTime *string `json:"start_time,omitempty"`// TaskId The unique task identifier.TaskId *string `json:"task_id,omitempty"`// Timestamp The start time in `HH:MM:SS` format.Timestamp *string `json:"timestamp,omitempty"`// Type The task type.Type *string `json:"type,omitempty"`// Version The Elasticsearch version.Version *string `json:"version,omitempty"`// XOpaqueId The X-Opaque-ID header.XOpaqueId *string `json:"x_opaque_id,omitempty"`}TasksRecord type.
funcNewTasksRecord¶added inv8.5.0
func NewTasksRecord() *TasksRecord
NewTasksRecord returns a TasksRecord.
func (*TasksRecord)UnmarshalJSON¶added inv8.7.1
func (s *TasksRecord) UnmarshalJSON(data []byte)error
typeTemplate¶
type Template struct {Aliases map[string]Alias `json:"aliases"`MappingsTypeMapping `json:"mappings"`SettingsIndexSettings `json:"settings"`}Template type.
typeTemplateConfig¶added inv8.9.0
type TemplateConfig struct {// Explain If `true`, returns detailed information about score calculation as part of// each hit.Explain *bool `json:"explain,omitempty"`// Id The ID of the search template to use. If no `source` is specified,// this parameter is required.Id *string `json:"id,omitempty"`// Params Key-value pairs used to replace Mustache variables in the template.// The key is the variable name.// The value is the variable value.Params map[string]json.RawMessage `json:"params,omitempty"`// Profile If `true`, the query execution is profiled.Profile *bool `json:"profile,omitempty"`// Source An inline search template. Supports the same parameters as the search API's// request body. It also supports Mustache variables. If no `id` is specified,// this// parameter is required.Source *string `json:"source,omitempty"`}TemplateConfig type.
funcNewTemplateConfig¶added inv8.9.0
func NewTemplateConfig() *TemplateConfig
NewTemplateConfig returns a TemplateConfig.
func (*TemplateConfig)UnmarshalJSON¶added inv8.9.0
func (s *TemplateConfig) UnmarshalJSON(data []byte)error
typeTemplateMapping¶
type TemplateMapping struct {Aliases map[string]Alias `json:"aliases"`IndexPatterns []string `json:"index_patterns"`MappingsTypeMapping `json:"mappings"`Orderint `json:"order"`Settings map[string]json.RawMessage `json:"settings"`Version *int64 `json:"version,omitempty"`}TemplateMapping type.
funcNewTemplateMapping¶added inv8.5.0
func NewTemplateMapping() *TemplateMapping
NewTemplateMapping returns a TemplateMapping.
func (*TemplateMapping)UnmarshalJSON¶added inv8.7.1
func (s *TemplateMapping) UnmarshalJSON(data []byte)error
typeTemplatesRecord¶
type TemplatesRecord struct {// ComposedOf The component templates that comprise the index template.ComposedOf *string `json:"composed_of,omitempty"`// IndexPatterns The template index patterns.IndexPatterns *string `json:"index_patterns,omitempty"`// Name The template name.Name *string `json:"name,omitempty"`// Order The template application order or priority number.Order *string `json:"order,omitempty"`// Version The template version.Version *string `json:"version,omitempty"`}TemplatesRecord type.
funcNewTemplatesRecord¶added inv8.5.0
func NewTemplatesRecord() *TemplatesRecord
NewTemplatesRecord returns a TemplatesRecord.
func (*TemplatesRecord)UnmarshalJSON¶added inv8.7.1
func (s *TemplatesRecord) UnmarshalJSON(data []byte)error
typeTerm¶
type Term struct {DocFreq *int `json:"doc_freq,omitempty"`Score *Float64 `json:"score,omitempty"`TermFreqint `json:"term_freq"`Tokens []TermVectorsToken `json:"tokens,omitempty"`Ttf *int `json:"ttf,omitempty"`}Term type.
func (*Term)UnmarshalJSON¶added inv8.7.1
typeTermQuery¶
type TermQuery struct {// Boost Floating point number used to decrease or increase the relevance scores of// the query.// Boost values are relative to the default value of 1.0.// A boost value between 0 and 1.0 decreases the relevance score.// A value greater than 1.0 increases the relevance score.Boost *float32 `json:"boost,omitempty"`// CaseInsensitive Allows ASCII case insensitive matching of the value with the indexed field// values when set to `true`.// When `false`, the case sensitivity of matching depends on the underlying// field’s mapping.CaseInsensitive *bool `json:"case_insensitive,omitempty"`QueryName_ *string `json:"_name,omitempty"`// Value Term you wish to find in the provided field.ValueFieldValue `json:"value"`}TermQuery type.
func (*TermQuery)UnmarshalJSON¶added inv8.7.1
typeTermRangeQuery¶added inv8.15.0
type TermRangeQuery struct {// Boost Floating point number used to decrease or increase the relevance scores of// the query.// Boost values are relative to the default value of 1.0.// A boost value between 0 and 1.0 decreases the relevance score.// A value greater than 1.0 increases the relevance score.Boost *float32 `json:"boost,omitempty"`From *string `json:"from,omitempty"`// Gt Greater than.Gt *string `json:"gt,omitempty"`// Gte Greater than or equal to.Gte *string `json:"gte,omitempty"`// Lt Less than.Lt *string `json:"lt,omitempty"`// Lte Less than or equal to.Lte *string `json:"lte,omitempty"`QueryName_ *string `json:"_name,omitempty"`// Relation Indicates how the range query matches values for `range` fields.Relation *rangerelation.RangeRelation `json:"relation,omitempty"`To *string `json:"to,omitempty"`}TermRangeQuery type.
funcNewTermRangeQuery¶added inv8.15.0
func NewTermRangeQuery() *TermRangeQuery
NewTermRangeQuery returns a TermRangeQuery.
func (*TermRangeQuery)UnmarshalJSON¶added inv8.15.0
func (s *TermRangeQuery) UnmarshalJSON(data []byte)error
typeTermSuggest¶
type TermSuggest struct {Lengthint `json:"length"`Offsetint `json:"offset"`Options []TermSuggestOption `json:"options"`Textstring `json:"text"`}TermSuggest type.
funcNewTermSuggest¶added inv8.5.0
func NewTermSuggest() *TermSuggest
NewTermSuggest returns a TermSuggest.
func (*TermSuggest)UnmarshalJSON¶added inv8.7.1
func (s *TermSuggest) UnmarshalJSON(data []byte)error
typeTermSuggestOption¶
type TermSuggestOption struct {CollateMatch *bool `json:"collate_match,omitempty"`Freqint64 `json:"freq"`Highlighted *string `json:"highlighted,omitempty"`ScoreFloat64 `json:"score"`Textstring `json:"text"`}TermSuggestOption type.
funcNewTermSuggestOption¶added inv8.5.0
func NewTermSuggestOption() *TermSuggestOption
NewTermSuggestOption returns a TermSuggestOption.
func (*TermSuggestOption)UnmarshalJSON¶added inv8.7.1
func (s *TermSuggestOption) UnmarshalJSON(data []byte)error
typeTermSuggester¶
type TermSuggester struct {// Analyzer The analyzer to analyze the suggest text with.// Defaults to the search analyzer of the suggest field.Analyzer *string `json:"analyzer,omitempty"`// Field The field to fetch the candidate suggestions from.// Needs to be set globally or per suggestion.Fieldstring `json:"field"`LowercaseTerms *bool `json:"lowercase_terms,omitempty"`// MaxEdits The maximum edit distance candidate suggestions can have in order to be// considered as a suggestion.// Can only be `1` or `2`.MaxEdits *int `json:"max_edits,omitempty"`// MaxInspections A factor that is used to multiply with the shard_size in order to inspect// more candidate spelling corrections on the shard level.// Can improve accuracy at the cost of performance.MaxInspections *int `json:"max_inspections,omitempty"`// MaxTermFreq The maximum threshold in number of documents in which a suggest text token// can exist in order to be included.// Can be a relative percentage number (for example `0.4`) or an absolute number// to represent document frequencies.// If a value higher than 1 is specified, then fractional can not be specified.MaxTermFreq *float32 `json:"max_term_freq,omitempty"`// MinDocFreq The minimal threshold in number of documents a suggestion should appear in.// This can improve quality by only suggesting high frequency terms.// Can be specified as an absolute number or as a relative percentage of number// of documents.// If a value higher than 1 is specified, then the number cannot be fractional.MinDocFreq *float32 `json:"min_doc_freq,omitempty"`// MinWordLength The minimum length a suggest text term must have in order to be included.MinWordLength *int `json:"min_word_length,omitempty"`// PrefixLength The number of minimal prefix characters that must match in order be a// candidate for suggestions.// Increasing this number improves spellcheck performance.PrefixLength *int `json:"prefix_length,omitempty"`// ShardSize Sets the maximum number of suggestions to be retrieved from each individual// shard.ShardSize *int `json:"shard_size,omitempty"`// Size The maximum corrections to be returned per suggest text token.Size *int `json:"size,omitempty"`// Sort Defines how suggestions should be sorted per suggest text term.Sort *suggestsort.SuggestSort `json:"sort,omitempty"`// StringDistance The string distance implementation to use for comparing how similar suggested// terms are.StringDistance *stringdistance.StringDistance `json:"string_distance,omitempty"`// SuggestMode Controls what suggestions are included or controls for what suggest text// terms, suggestions should be suggested.SuggestMode *suggestmode.SuggestMode `json:"suggest_mode,omitempty"`// Text The suggest text.// Needs to be set globally or per suggestion.Text *string `json:"text,omitempty"`}TermSuggester type.
funcNewTermSuggester¶added inv8.5.0
func NewTermSuggester() *TermSuggester
NewTermSuggester returns a TermSuggester.
func (*TermSuggester)UnmarshalJSON¶added inv8.7.1
func (s *TermSuggester) UnmarshalJSON(data []byte)error
typeTermVector¶
type TermVector struct {FieldStatistics *FieldStatistics `json:"field_statistics,omitempty"`Terms map[string]Term `json:"terms"`}TermVector type.
typeTermVectorsFilter¶added inv8.5.0
type TermVectorsFilter struct {// MaxDocFreq Ignore words which occur in more than this many docs.// Defaults to unbounded.MaxDocFreq *int `json:"max_doc_freq,omitempty"`// MaxNumTerms The maximum number of terms that must be returned per field.MaxNumTerms *int `json:"max_num_terms,omitempty"`// MaxTermFreq Ignore words with more than this frequency in the source doc.// It defaults to unbounded.MaxTermFreq *int `json:"max_term_freq,omitempty"`// MaxWordLength The maximum word length above which words will be ignored.// Defaults to unbounded.MaxWordLength *int `json:"max_word_length,omitempty"`// MinDocFreq Ignore terms which do not occur in at least this many docs.MinDocFreq *int `json:"min_doc_freq,omitempty"`// MinTermFreq Ignore words with less than this frequency in the source doc.MinTermFreq *int `json:"min_term_freq,omitempty"`// MinWordLength The minimum word length below which words will be ignored.MinWordLength *int `json:"min_word_length,omitempty"`}TermVectorsFilter type.
funcNewTermVectorsFilter¶added inv8.5.0
func NewTermVectorsFilter() *TermVectorsFilter
NewTermVectorsFilter returns a TermVectorsFilter.
func (*TermVectorsFilter)UnmarshalJSON¶added inv8.7.1
func (s *TermVectorsFilter) UnmarshalJSON(data []byte)error
typeTermVectorsResult¶
type TermVectorsResult struct {Error *ErrorCause `json:"error,omitempty"`Found *bool `json:"found,omitempty"`Id_ *string `json:"_id,omitempty"`Index_string `json:"_index"`TermVectors map[string]TermVector `json:"term_vectors,omitempty"`Took *int64 `json:"took,omitempty"`Version_ *int64 `json:"_version,omitempty"`}TermVectorsResult type.
funcNewTermVectorsResult¶added inv8.5.0
func NewTermVectorsResult() *TermVectorsResult
NewTermVectorsResult returns a TermVectorsResult.
func (*TermVectorsResult)UnmarshalJSON¶added inv8.7.1
func (s *TermVectorsResult) UnmarshalJSON(data []byte)error
typeTermVectorsToken¶added inv8.5.0
type TermVectorsToken struct {EndOffset *int `json:"end_offset,omitempty"`Payload *string `json:"payload,omitempty"`Positionint `json:"position"`StartOffset *int `json:"start_offset,omitempty"`}TermVectorsToken type.
funcNewTermVectorsToken¶added inv8.5.0
func NewTermVectorsToken() *TermVectorsToken
NewTermVectorsToken returns a TermVectorsToken.
func (*TermVectorsToken)UnmarshalJSON¶added inv8.7.1
func (s *TermVectorsToken) UnmarshalJSON(data []byte)error
typeTerminateProcessor¶added inv8.16.0
type TerminateProcessor struct {// Description Description of the processor.// Useful for describing the purpose of the processor or its configuration.Description *string `json:"description,omitempty"`// If Conditionally execute the processor.If *string `json:"if,omitempty"`// IgnoreFailure Ignore failures for the processor.IgnoreFailure *bool `json:"ignore_failure,omitempty"`// OnFailure Handle failures for the processor.OnFailure []ProcessorContainer `json:"on_failure,omitempty"`// Tag Identifier for the processor.// Useful for debugging and metrics.Tag *string `json:"tag,omitempty"`}TerminateProcessor type.
funcNewTerminateProcessor¶added inv8.16.0
func NewTerminateProcessor() *TerminateProcessor
NewTerminateProcessor returns a TerminateProcessor.
func (*TerminateProcessor)UnmarshalJSON¶added inv8.16.0
func (s *TerminateProcessor) UnmarshalJSON(data []byte)error
typeTermsAggregation¶
type TermsAggregation struct {// CollectMode Determines how child aggregations should be calculated: breadth-first or// depth-first.CollectMode *termsaggregationcollectmode.TermsAggregationCollectMode `json:"collect_mode,omitempty"`// Exclude Values to exclude.// Accepts regular expressions and partitions.Exclude []string `json:"exclude,omitempty"`// ExecutionHint Determines whether the aggregation will use field values directly or global// ordinals.ExecutionHint *termsaggregationexecutionhint.TermsAggregationExecutionHint `json:"execution_hint,omitempty"`// Field The field from which to return terms.Field *string `json:"field,omitempty"`Format *string `json:"format,omitempty"`// Include Values to include.// Accepts regular expressions and partitions.IncludeTermsInclude `json:"include,omitempty"`// MinDocCount Only return values that are found in more than `min_doc_count` hits.MinDocCount *int `json:"min_doc_count,omitempty"`// Missing The value to apply to documents that do not have a value.// By default, documents without a value are ignored.MissingMissing `json:"missing,omitempty"`MissingBucket *bool `json:"missing_bucket,omitempty"`MissingOrder *missingorder.MissingOrder `json:"missing_order,omitempty"`// Order Specifies the sort order of the buckets.// Defaults to sorting by descending document count.OrderAggregateOrder `json:"order,omitempty"`Script *Script `json:"script,omitempty"`// ShardMinDocCount Regulates the certainty a shard has if the term should actually be added to// the candidate list or not with respect to the `min_doc_count`.// Terms will only be considered if their local shard frequency within the set// is higher than the `shard_min_doc_count`.ShardMinDocCount *int64 `json:"shard_min_doc_count,omitempty"`// ShardSize The number of candidate terms produced by each shard.// By default, `shard_size` will be automatically estimated based on the number// of shards and the `size` parameter.ShardSize *int `json:"shard_size,omitempty"`// ShowTermDocCountError Set to `true` to return the `doc_count_error_upper_bound`, which is an upper// bound to the error on the `doc_count` returned by each shard.ShowTermDocCountError *bool `json:"show_term_doc_count_error,omitempty"`// Size The number of buckets returned out of the overall terms list.Size *int `json:"size,omitempty"`// ValueType Coerced unmapped fields into the specified type.ValueType *string `json:"value_type,omitempty"`}TermsAggregation type.
funcNewTermsAggregation¶added inv8.5.0
func NewTermsAggregation() *TermsAggregation
NewTermsAggregation returns a TermsAggregation.
func (*TermsAggregation)UnmarshalJSON¶added inv8.7.0
func (s *TermsAggregation) UnmarshalJSON(data []byte)error
typeTermsGrouping¶
type TermsGrouping struct {// Fields The set of fields that you wish to collect terms for.// This array can contain fields that are both keyword and numerics.// Order does not matter.Fields []string `json:"fields"`}TermsGrouping type.
funcNewTermsGrouping¶added inv8.5.0
func NewTermsGrouping() *TermsGrouping
NewTermsGrouping returns a TermsGrouping.
func (*TermsGrouping)UnmarshalJSON¶added inv8.7.1
func (s *TermsGrouping) UnmarshalJSON(data []byte)error
typeTermsInclude¶
type TermsIncludeany
TermsInclude holds the union for the following types:
string[]stringTermsPartition
typeTermsLookup¶
type TermsLookup struct {Idstring `json:"id"`Indexstring `json:"index"`Pathstring `json:"path"`Routing *string `json:"routing,omitempty"`}TermsLookup type.
funcNewTermsLookup¶added inv8.5.0
func NewTermsLookup() *TermsLookup
NewTermsLookup returns a TermsLookup.
func (*TermsLookup)UnmarshalJSON¶added inv8.7.1
func (s *TermsLookup) UnmarshalJSON(data []byte)error
typeTermsPartition¶
type TermsPartition struct {// NumPartitions The number of partitions.NumPartitionsint64 `json:"num_partitions"`// Partition The partition number for this request.Partitionint64 `json:"partition"`}TermsPartition type.
funcNewTermsPartition¶added inv8.5.0
func NewTermsPartition() *TermsPartition
NewTermsPartition returns a TermsPartition.
func (*TermsPartition)UnmarshalJSON¶added inv8.7.1
func (s *TermsPartition) UnmarshalJSON(data []byte)error
typeTermsQuery¶
type TermsQuery struct {// Boost Floating point number used to decrease or increase the relevance scores of// the query.// Boost values are relative to the default value of 1.0.// A boost value between 0 and 1.0 decreases the relevance score.// A value greater than 1.0 increases the relevance score.Boost *float32 `json:"boost,omitempty"`QueryName_ *string `json:"_name,omitempty"`TermsQuery map[string]TermsQueryField `json:"-"`}TermsQuery type.
func (TermsQuery)MarshalJSON¶
func (sTermsQuery) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
func (*TermsQuery)UnmarshalJSON¶added inv8.7.1
func (s *TermsQuery) UnmarshalJSON(data []byte)error
typeTermsQueryField¶
type TermsQueryFieldany
TermsQueryField holds the union for the following types:
[]FieldValueTermsLookup
typeTermsSetQuery¶
type TermsSetQuery struct {// Boost Floating point number used to decrease or increase the relevance scores of// the query.// Boost values are relative to the default value of 1.0.// A boost value between 0 and 1.0 decreases the relevance score.// A value greater than 1.0 increases the relevance score.Boost *float32 `json:"boost,omitempty"`// MinimumShouldMatch Specification describing number of matching terms required to return a// document.MinimumShouldMatchMinimumShouldMatch `json:"minimum_should_match,omitempty"`// MinimumShouldMatchField Numeric field containing the number of matching terms required to return a// document.MinimumShouldMatchField *string `json:"minimum_should_match_field,omitempty"`// MinimumShouldMatchScript Custom script containing the number of matching terms required to return a// document.MinimumShouldMatchScript *Script `json:"minimum_should_match_script,omitempty"`QueryName_ *string `json:"_name,omitempty"`// Terms Array of terms you wish to find in the provided field.Terms []string `json:"terms"`}TermsSetQuery type.
funcNewTermsSetQuery¶added inv8.5.0
func NewTermsSetQuery() *TermsSetQuery
NewTermsSetQuery returns a TermsSetQuery.
func (*TermsSetQuery)UnmarshalJSON¶added inv8.7.1
func (s *TermsSetQuery) UnmarshalJSON(data []byte)error
typeTestPopulation¶
type TestPopulation struct {// Field The field to aggregate.Fieldstring `json:"field"`// Filter A filter used to define a set of records to run unpaired t-test on.Filter *Query `json:"filter,omitempty"`Script *Script `json:"script,omitempty"`}TestPopulation type.
funcNewTestPopulation¶added inv8.5.0
func NewTestPopulation() *TestPopulation
NewTestPopulation returns a TestPopulation.
func (*TestPopulation)UnmarshalJSON¶added inv8.7.1
func (s *TestPopulation) UnmarshalJSON(data []byte)error
typeTextClassificationInferenceOptions¶
type TextClassificationInferenceOptions struct {// ClassificationLabels Classification labels to apply other than the stored labels. Must have the// same deminsions as the default configured labelsClassificationLabels []string `json:"classification_labels,omitempty"`// NumTopClasses Specifies the number of top class predictions to return. Defaults to 0.NumTopClasses *int `json:"num_top_classes,omitempty"`// ResultsField The field that is added to incoming documents to contain the inference// prediction. Defaults to predicted_value.ResultsField *string `json:"results_field,omitempty"`// Tokenization The tokenization optionsTokenization *TokenizationConfigContainer `json:"tokenization,omitempty"`Vocabulary *Vocabulary `json:"vocabulary,omitempty"`}TextClassificationInferenceOptions type.
funcNewTextClassificationInferenceOptions¶added inv8.5.0
func NewTextClassificationInferenceOptions() *TextClassificationInferenceOptions
NewTextClassificationInferenceOptions returns a TextClassificationInferenceOptions.
func (*TextClassificationInferenceOptions)UnmarshalJSON¶added inv8.7.1
func (s *TextClassificationInferenceOptions) UnmarshalJSON(data []byte)error
typeTextClassificationInferenceUpdateOptions¶
type TextClassificationInferenceUpdateOptions struct {// ClassificationLabels Classification labels to apply other than the stored labels. Must have the// same deminsions as the default configured labelsClassificationLabels []string `json:"classification_labels,omitempty"`// NumTopClasses Specifies the number of top class predictions to return. Defaults to 0.NumTopClasses *int `json:"num_top_classes,omitempty"`// ResultsField The field that is added to incoming documents to contain the inference// prediction. Defaults to predicted_value.ResultsField *string `json:"results_field,omitempty"`// Tokenization The tokenization options to update when inferringTokenization *NlpTokenizationUpdateOptions `json:"tokenization,omitempty"`}TextClassificationInferenceUpdateOptions type.
funcNewTextClassificationInferenceUpdateOptions¶added inv8.5.0
func NewTextClassificationInferenceUpdateOptions() *TextClassificationInferenceUpdateOptions
NewTextClassificationInferenceUpdateOptions returns a TextClassificationInferenceUpdateOptions.
func (*TextClassificationInferenceUpdateOptions)UnmarshalJSON¶added inv8.7.1
func (s *TextClassificationInferenceUpdateOptions) UnmarshalJSON(data []byte)error
typeTextEmbedding¶added inv8.7.0
TextEmbedding type.
funcNewTextEmbedding¶added inv8.7.0
func NewTextEmbedding() *TextEmbedding
NewTextEmbedding returns a TextEmbedding.
func (*TextEmbedding)UnmarshalJSON¶added inv8.9.0
func (s *TextEmbedding) UnmarshalJSON(data []byte)error
typeTextEmbeddingByteResult¶added inv8.13.0
type TextEmbeddingByteResult struct {Embedding []byte `json:"embedding"`}TextEmbeddingByteResult type.
funcNewTextEmbeddingByteResult¶added inv8.13.0
func NewTextEmbeddingByteResult() *TextEmbeddingByteResult
NewTextEmbeddingByteResult returns a TextEmbeddingByteResult.
func (*TextEmbeddingByteResult)UnmarshalJSON¶added inv8.13.0
func (s *TextEmbeddingByteResult) UnmarshalJSON(data []byte)error
typeTextEmbeddingInferenceOptions¶
type TextEmbeddingInferenceOptions struct {// EmbeddingSize The number of dimensions in the embedding outputEmbeddingSize *int `json:"embedding_size,omitempty"`// ResultsField The field that is added to incoming documents to contain the inference// prediction. Defaults to predicted_value.ResultsField *string `json:"results_field,omitempty"`// Tokenization The tokenization optionsTokenization *TokenizationConfigContainer `json:"tokenization,omitempty"`VocabularyVocabulary `json:"vocabulary"`}TextEmbeddingInferenceOptions type.
funcNewTextEmbeddingInferenceOptions¶added inv8.5.0
func NewTextEmbeddingInferenceOptions() *TextEmbeddingInferenceOptions
NewTextEmbeddingInferenceOptions returns a TextEmbeddingInferenceOptions.
func (*TextEmbeddingInferenceOptions)UnmarshalJSON¶added inv8.8.0
func (s *TextEmbeddingInferenceOptions) UnmarshalJSON(data []byte)error
typeTextEmbeddingInferenceUpdateOptions¶
type TextEmbeddingInferenceUpdateOptions struct {// ResultsField The field that is added to incoming documents to contain the inference// prediction. Defaults to predicted_value.ResultsField *string `json:"results_field,omitempty"`Tokenization *NlpTokenizationUpdateOptions `json:"tokenization,omitempty"`}TextEmbeddingInferenceUpdateOptions type.
funcNewTextEmbeddingInferenceUpdateOptions¶added inv8.5.0
func NewTextEmbeddingInferenceUpdateOptions() *TextEmbeddingInferenceUpdateOptions
NewTextEmbeddingInferenceUpdateOptions returns a TextEmbeddingInferenceUpdateOptions.
func (*TextEmbeddingInferenceUpdateOptions)UnmarshalJSON¶added inv8.9.0
func (s *TextEmbeddingInferenceUpdateOptions) UnmarshalJSON(data []byte)error
typeTextEmbeddingResult¶added inv8.12.0
type TextEmbeddingResult struct {Embedding []float32 `json:"embedding"`}TextEmbeddingResult type.
funcNewTextEmbeddingResult¶added inv8.12.0
func NewTextEmbeddingResult() *TextEmbeddingResult
NewTextEmbeddingResult returns a TextEmbeddingResult.
func (*TextEmbeddingResult)UnmarshalJSON¶added inv8.12.0
func (s *TextEmbeddingResult) UnmarshalJSON(data []byte)error
typeTextExpansionInferenceOptions¶added inv8.8.0
type TextExpansionInferenceOptions struct {// ResultsField The field that is added to incoming documents to contain the inference// prediction. Defaults to predicted_value.ResultsField *string `json:"results_field,omitempty"`// Tokenization The tokenization optionsTokenization *TokenizationConfigContainer `json:"tokenization,omitempty"`VocabularyVocabulary `json:"vocabulary"`}TextExpansionInferenceOptions type.
funcNewTextExpansionInferenceOptions¶added inv8.8.0
func NewTextExpansionInferenceOptions() *TextExpansionInferenceOptions
NewTextExpansionInferenceOptions returns a TextExpansionInferenceOptions.
func (*TextExpansionInferenceOptions)UnmarshalJSON¶added inv8.9.0
func (s *TextExpansionInferenceOptions) UnmarshalJSON(data []byte)error
typeTextExpansionInferenceUpdateOptions¶added inv8.8.0
type TextExpansionInferenceUpdateOptions struct {// ResultsField The field that is added to incoming documents to contain the inference// prediction. Defaults to predicted_value.ResultsField *string `json:"results_field,omitempty"`Tokenization *NlpTokenizationUpdateOptions `json:"tokenization,omitempty"`}TextExpansionInferenceUpdateOptions type.
funcNewTextExpansionInferenceUpdateOptions¶added inv8.8.0
func NewTextExpansionInferenceUpdateOptions() *TextExpansionInferenceUpdateOptions
NewTextExpansionInferenceUpdateOptions returns a TextExpansionInferenceUpdateOptions.
func (*TextExpansionInferenceUpdateOptions)UnmarshalJSON¶added inv8.9.0
func (s *TextExpansionInferenceUpdateOptions) UnmarshalJSON(data []byte)error
typeTextExpansionQuery¶added inv8.8.0
type TextExpansionQuery struct {// Boost Floating point number used to decrease or increase the relevance scores of// the query.// Boost values are relative to the default value of 1.0.// A boost value between 0 and 1.0 decreases the relevance score.// A value greater than 1.0 increases the relevance score.Boost *float32 `json:"boost,omitempty"`// ModelId The text expansion NLP model to useModelIdstring `json:"model_id"`// ModelText The query textModelTextstring `json:"model_text"`// PruningConfig Token pruning configurationsPruningConfig *TokenPruningConfig `json:"pruning_config,omitempty"`QueryName_ *string `json:"_name,omitempty"`}TextExpansionQuery type.
funcNewTextExpansionQuery¶added inv8.8.0
func NewTextExpansionQuery() *TextExpansionQuery
NewTextExpansionQuery returns a TextExpansionQuery.
func (*TextExpansionQuery)UnmarshalJSON¶added inv8.8.0
func (s *TextExpansionQuery) UnmarshalJSON(data []byte)error
typeTextIndexPrefixes¶
TextIndexPrefixes type.
funcNewTextIndexPrefixes¶added inv8.5.0
func NewTextIndexPrefixes() *TextIndexPrefixes
NewTextIndexPrefixes returns a TextIndexPrefixes.
func (*TextIndexPrefixes)UnmarshalJSON¶added inv8.7.1
func (s *TextIndexPrefixes) UnmarshalJSON(data []byte)error
typeTextProperty¶
type TextProperty struct {Analyzer *string `json:"analyzer,omitempty"`Boost *Float64 `json:"boost,omitempty"`CopyTo []string `json:"copy_to,omitempty"`Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`EagerGlobalOrdinals *bool `json:"eager_global_ordinals,omitempty"`Fielddata *bool `json:"fielddata,omitempty"`FielddataFrequencyFilter *FielddataFrequencyFilter `json:"fielddata_frequency_filter,omitempty"`Fields map[string]Property `json:"fields,omitempty"`IgnoreAbove *int `json:"ignore_above,omitempty"`Index *bool `json:"index,omitempty"`IndexOptions *indexoptions.IndexOptions `json:"index_options,omitempty"`IndexPhrases *bool `json:"index_phrases,omitempty"`IndexPrefixes *TextIndexPrefixes `json:"index_prefixes,omitempty"`// Meta Metadata about the field.Meta map[string]string `json:"meta,omitempty"`Norms *bool `json:"norms,omitempty"`PositionIncrementGap *int `json:"position_increment_gap,omitempty"`Properties map[string]Property `json:"properties,omitempty"`SearchAnalyzer *string `json:"search_analyzer,omitempty"`SearchQuoteAnalyzer *string `json:"search_quote_analyzer,omitempty"`Similarity *string `json:"similarity,omitempty"`Store *bool `json:"store,omitempty"`SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`TermVector *termvectoroption.TermVectorOption `json:"term_vector,omitempty"`Typestring `json:"type,omitempty"`}TextProperty type.
funcNewTextProperty¶added inv8.5.0
func NewTextProperty() *TextProperty
NewTextProperty returns a TextProperty.
func (TextProperty)MarshalJSON¶added inv8.9.0
func (sTextProperty) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*TextProperty)UnmarshalJSON¶added inv8.7.0
func (s *TextProperty) UnmarshalJSON(data []byte)error
typeTextSimilarityReranker¶added inv8.16.0
type TextSimilarityReranker struct {// Field The document field to be used for text similarity comparisons. This field// should contain the text that will be evaluated against the inference_textFieldstring `json:"field"`// Filter Query to filter the documents that can match.Filter []Query `json:"filter,omitempty"`// InferenceId Unique identifier of the inference endpoint created using the inference API.InferenceId *string `json:"inference_id,omitempty"`// InferenceText The text snippet used as the basis for similarity comparisonInferenceTextstring `json:"inference_text"`// MinScore Minimum _score for matching documents. Documents with a lower _score are not// included in the top documents.MinScore *float32 `json:"min_score,omitempty"`// Name_ Retriever name.Name_ *string `json:"_name,omitempty"`// RankWindowSize This value determines how many documents we will consider from the nested// retriever.RankWindowSize *int `json:"rank_window_size,omitempty"`// Retriever The nested retriever which will produce the first-level results, that will// later be used for reranking.RetrieverRetrieverContainer `json:"retriever"`}TextSimilarityReranker type.
funcNewTextSimilarityReranker¶added inv8.16.0
func NewTextSimilarityReranker() *TextSimilarityReranker
NewTextSimilarityReranker returns a TextSimilarityReranker.
func (*TextSimilarityReranker)UnmarshalJSON¶added inv8.16.0
func (s *TextSimilarityReranker) UnmarshalJSON(data []byte)error
typeThaiAnalyzer¶added inv8.16.0
type ThaiAnalyzer struct {StopwordsStopWords `json:"stopwords,omitempty"`StopwordsPath *string `json:"stopwords_path,omitempty"`Typestring `json:"type,omitempty"`}ThaiAnalyzer type.
funcNewThaiAnalyzer¶added inv8.16.0
func NewThaiAnalyzer() *ThaiAnalyzer
NewThaiAnalyzer returns a ThaiAnalyzer.
func (ThaiAnalyzer)MarshalJSON¶added inv8.16.0
func (sThaiAnalyzer) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*ThaiAnalyzer)UnmarshalJSON¶added inv8.16.0
func (s *ThaiAnalyzer) UnmarshalJSON(data []byte)error
typeThaiTokenizer¶added inv8.16.0
type ThaiTokenizer struct {Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}ThaiTokenizer type.
funcNewThaiTokenizer¶added inv8.16.0
func NewThaiTokenizer() *ThaiTokenizer
NewThaiTokenizer returns a ThaiTokenizer.
func (ThaiTokenizer)MarshalJSON¶added inv8.16.0
func (sThaiTokenizer) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*ThaiTokenizer)UnmarshalJSON¶added inv8.16.0
func (s *ThaiTokenizer) UnmarshalJSON(data []byte)error
typeThreadCount¶
type ThreadCount struct {// Active Number of active threads in the thread pool.Active *int64 `json:"active,omitempty"`// Completed Number of tasks completed by the thread pool executor.Completed *int64 `json:"completed,omitempty"`// Largest Highest number of active threads in the thread pool.Largest *int64 `json:"largest,omitempty"`// Queue Number of tasks in queue for the thread pool.Queue *int64 `json:"queue,omitempty"`// Rejected Number of tasks rejected by the thread pool executor.Rejected *int64 `json:"rejected,omitempty"`// Threads Number of threads in the thread pool.Threads *int64 `json:"threads,omitempty"`}ThreadCount type.
funcNewThreadCount¶added inv8.5.0
func NewThreadCount() *ThreadCount
NewThreadCount returns a ThreadCount.
func (*ThreadCount)UnmarshalJSON¶added inv8.7.1
func (s *ThreadCount) UnmarshalJSON(data []byte)error
typeThreadPoolRecord¶
type ThreadPoolRecord struct {// Active The number of active threads in the current thread pool.Active *string `json:"active,omitempty"`// Completed The number of completed tasks.Completed *string `json:"completed,omitempty"`// Core The core number of active threads allowed in a scaling thread pool.Core *string `json:"core,omitempty"`// EphemeralNodeId The ephemeral node identifier.EphemeralNodeId *string `json:"ephemeral_node_id,omitempty"`// Host The host name for the current node.Host *string `json:"host,omitempty"`// Ip The IP address for the current node.Ip *string `json:"ip,omitempty"`// KeepAlive The thread keep alive time.KeepAlive *string `json:"keep_alive,omitempty"`// Largest The highest number of active threads in the current thread pool.Largest *string `json:"largest,omitempty"`// Max The maximum number of active threads allowed in a scaling thread pool.Max *string `json:"max,omitempty"`// Name The thread pool name.Name *string `json:"name,omitempty"`// NodeId The persistent node identifier.NodeId *string `json:"node_id,omitempty"`// NodeName The node name.NodeName *string `json:"node_name,omitempty"`// Pid The process identifier.Pid *string `json:"pid,omitempty"`// PoolSize The number of threads in the current thread pool.PoolSize *string `json:"pool_size,omitempty"`// Port The bound transport port for the current node.Port *string `json:"port,omitempty"`// Queue The number of tasks currently in queue.Queue *string `json:"queue,omitempty"`// QueueSize The maximum number of tasks permitted in the queue.QueueSize *string `json:"queue_size,omitempty"`// Rejected The number of rejected tasks.Rejected *string `json:"rejected,omitempty"`// Size The number of active threads allowed in a fixed thread pool.Size *string `json:"size,omitempty"`// Type The thread pool type.// Returned values include `fixed`, `fixed_auto_queue_size`, `direct`, and// `scaling`.Type *string `json:"type,omitempty"`}ThreadPoolRecord type.
funcNewThreadPoolRecord¶added inv8.5.0
func NewThreadPoolRecord() *ThreadPoolRecord
NewThreadPoolRecord returns a ThreadPoolRecord.
func (*ThreadPoolRecord)UnmarshalJSON¶added inv8.7.1
func (s *ThreadPoolRecord) UnmarshalJSON(data []byte)error
typeThrottleState¶
ThrottleState type.
funcNewThrottleState¶added inv8.5.0
func NewThrottleState() *ThrottleState
NewThrottleState returns a ThrottleState.
func (*ThrottleState)UnmarshalJSON¶added inv8.7.1
func (s *ThrottleState) UnmarshalJSON(data []byte)error
typeTimeHttpHistogram¶added inv8.16.0
type TimeHttpHistogram struct {Countint64 `json:"count"`GeMillis *int64 `json:"ge_millis,omitempty"`LtMillis *int64 `json:"lt_millis,omitempty"`}TimeHttpHistogram type.
funcNewTimeHttpHistogram¶added inv8.16.0
func NewTimeHttpHistogram() *TimeHttpHistogram
NewTimeHttpHistogram returns a TimeHttpHistogram.
func (*TimeHttpHistogram)UnmarshalJSON¶added inv8.16.0
func (s *TimeHttpHistogram) UnmarshalJSON(data []byte)error
typeTimeOfMonth¶
TimeOfMonth type.
funcNewTimeOfMonth¶added inv8.5.0
func NewTimeOfMonth() *TimeOfMonth
NewTimeOfMonth returns a TimeOfMonth.
typeTimeOfWeek¶
TimeOfWeek type.
typeTimeOfYear¶
TimeOfYear type.
typeTimeSeriesAggregate¶added inv8.16.0
type TimeSeriesAggregate struct {BucketsBucketsTimeSeriesBucket `json:"buckets"`MetaMetadata `json:"meta,omitempty"`}TimeSeriesAggregate type.
funcNewTimeSeriesAggregate¶added inv8.16.0
func NewTimeSeriesAggregate() *TimeSeriesAggregate
NewTimeSeriesAggregate returns a TimeSeriesAggregate.
func (*TimeSeriesAggregate)UnmarshalJSON¶added inv8.16.0
func (s *TimeSeriesAggregate) UnmarshalJSON(data []byte)error
typeTimeSeriesAggregation¶added inv8.16.0
type TimeSeriesAggregation struct {// Keyed Set to `true` to associate a unique string key with each bucket and returns// the ranges as a hash rather than an array.Keyed *bool `json:"keyed,omitempty"`// Size The maximum number of results to return.Size *int `json:"size,omitempty"`}TimeSeriesAggregation type.
funcNewTimeSeriesAggregation¶added inv8.16.0
func NewTimeSeriesAggregation() *TimeSeriesAggregation
NewTimeSeriesAggregation returns a TimeSeriesAggregation.
func (*TimeSeriesAggregation)UnmarshalJSON¶added inv8.16.0
func (s *TimeSeriesAggregation) UnmarshalJSON(data []byte)error
typeTimeSeriesBucket¶added inv8.16.0
type TimeSeriesBucket struct {Aggregations map[string]Aggregate `json:"-"`DocCountint64 `json:"doc_count"`Key map[string]FieldValue `json:"key"`}TimeSeriesBucket type.
funcNewTimeSeriesBucket¶added inv8.16.0
func NewTimeSeriesBucket() *TimeSeriesBucket
NewTimeSeriesBucket returns a TimeSeriesBucket.
func (TimeSeriesBucket)MarshalJSON¶added inv8.16.0
func (sTimeSeriesBucket) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
func (*TimeSeriesBucket)UnmarshalJSON¶added inv8.16.0
func (s *TimeSeriesBucket) UnmarshalJSON(data []byte)error
typeTimeSync¶
type TimeSync struct {// Delay The time delay between the current time and the latest input data time.DelayDuration `json:"delay,omitempty"`// Field The date field that is used to identify new documents in the source. In// general, it’s a good idea to use a field// that contains the ingest timestamp. If you use a different field, you might// need to set the delay such that it// accounts for data transmission delays.Fieldstring `json:"field"`}TimeSync type.
func (*TimeSync)UnmarshalJSON¶added inv8.7.1
typeTimingStats¶
type TimingStats struct {// ElapsedTime Runtime of the analysis in milliseconds.ElapsedTimeint64 `json:"elapsed_time"`// IterationTime Runtime of the latest iteration of the analysis in milliseconds.IterationTime *int64 `json:"iteration_time,omitempty"`}TimingStats type.
funcNewTimingStats¶added inv8.5.0
func NewTimingStats() *TimingStats
NewTimingStats returns a TimingStats.
func (*TimingStats)UnmarshalJSON¶added inv8.7.1
func (s *TimingStats) UnmarshalJSON(data []byte)error
typeTokenCountProperty¶
type TokenCountProperty struct {Analyzer *string `json:"analyzer,omitempty"`Boost *Float64 `json:"boost,omitempty"`CopyTo []string `json:"copy_to,omitempty"`DocValues *bool `json:"doc_values,omitempty"`Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`EnablePositionIncrements *bool `json:"enable_position_increments,omitempty"`Fields map[string]Property `json:"fields,omitempty"`IgnoreAbove *int `json:"ignore_above,omitempty"`Index *bool `json:"index,omitempty"`// Meta Metadata about the field.Meta map[string]string `json:"meta,omitempty"`NullValue *Float64 `json:"null_value,omitempty"`Properties map[string]Property `json:"properties,omitempty"`Store *bool `json:"store,omitempty"`SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`Typestring `json:"type,omitempty"`}TokenCountProperty type.
funcNewTokenCountProperty¶added inv8.5.0
func NewTokenCountProperty() *TokenCountProperty
NewTokenCountProperty returns a TokenCountProperty.
func (TokenCountProperty)MarshalJSON¶added inv8.9.0
func (sTokenCountProperty) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*TokenCountProperty)UnmarshalJSON¶added inv8.7.0
func (s *TokenCountProperty) UnmarshalJSON(data []byte)error
typeTokenDetail¶
type TokenDetail struct {Namestring `json:"name"`Tokens []ExplainAnalyzeToken `json:"tokens"`}TokenDetail type.
funcNewTokenDetail¶added inv8.5.0
func NewTokenDetail() *TokenDetail
NewTokenDetail returns a TokenDetail.
func (*TokenDetail)UnmarshalJSON¶added inv8.9.0
func (s *TokenDetail) UnmarshalJSON(data []byte)error
typeTokenFilter¶
type TokenFilterany
TokenFilter holds the union for the following types:
stringTokenFilterDefinition
typeTokenFilterDefinition¶
type TokenFilterDefinitionany
TokenFilterDefinition holds the union for the following types:
ApostropheTokenFilterArabicStemTokenFilterArabicNormalizationTokenFilterAsciiFoldingTokenFilterBengaliNormalizationTokenFilterBrazilianStemTokenFilterCjkBigramTokenFilterCjkWidthTokenFilterClassicTokenFilterCommonGramsTokenFilterConditionTokenFilterCzechStemTokenFilterDecimalDigitTokenFilterDelimitedPayloadTokenFilterDutchStemTokenFilterEdgeNGramTokenFilterElisionTokenFilterFingerprintTokenFilterFlattenGraphTokenFilterFrenchStemTokenFilterGermanNormalizationTokenFilterGermanStemTokenFilterHindiNormalizationTokenFilterHunspellTokenFilterHyphenationDecompounderTokenFilterIndicNormalizationTokenFilterKeepTypesTokenFilterKeepWordsTokenFilterKeywordMarkerTokenFilterKeywordRepeatTokenFilterKStemTokenFilterLengthTokenFilterLimitTokenCountTokenFilterLowercaseTokenFilterMinHashTokenFilterMultiplexerTokenFilterNGramTokenFilterNoriPartOfSpeechTokenFilterPatternCaptureTokenFilterPatternReplaceTokenFilterPersianNormalizationTokenFilterPersianStemTokenFilterPorterStemTokenFilterPredicateTokenFilterRemoveDuplicatesTokenFilterReverseTokenFilterRussianStemTokenFilterScandinavianFoldingTokenFilterScandinavianNormalizationTokenFilterSerbianNormalizationTokenFilterShingleTokenFilterSnowballTokenFilterSoraniNormalizationTokenFilterStemmerOverrideTokenFilterStemmerTokenFilterStopTokenFilterSynonymGraphTokenFilterSynonymTokenFilterTrimTokenFilterTruncateTokenFilterUniqueTokenFilterUppercaseTokenFilterWordDelimiterGraphTokenFilterWordDelimiterTokenFilterJaStopTokenFilterKuromojiStemmerTokenFilterKuromojiReadingFormTokenFilterKuromojiPartOfSpeechTokenFilterIcuCollationTokenFilterIcuFoldingTokenFilterIcuNormalizationTokenFilterIcuTransformTokenFilterPhoneticTokenFilterDictionaryDecompounderTokenFilter
typeTokenPruningConfig¶added inv8.13.0
type TokenPruningConfig struct {// OnlyScorePrunedTokens Whether to only score pruned tokens, vs only scoring kept tokens.OnlyScorePrunedTokens *bool `json:"only_score_pruned_tokens,omitempty"`// TokensFreqRatioThreshold Tokens whose frequency is more than this threshold times the average// frequency of all tokens in the specified field are considered outliers and// pruned.TokensFreqRatioThreshold *int `json:"tokens_freq_ratio_threshold,omitempty"`// TokensWeightThreshold Tokens whose weight is less than this threshold are considered nonsignificant// and pruned.TokensWeightThreshold *float32 `json:"tokens_weight_threshold,omitempty"`}TokenPruningConfig type.
funcNewTokenPruningConfig¶added inv8.13.0
func NewTokenPruningConfig() *TokenPruningConfig
NewTokenPruningConfig returns a TokenPruningConfig.
func (*TokenPruningConfig)UnmarshalJSON¶added inv8.13.0
func (s *TokenPruningConfig) UnmarshalJSON(data []byte)error
typeTokenizationConfigContainer¶
type TokenizationConfigContainer struct {AdditionalTokenizationConfigContainerProperty map[string]json.RawMessage `json:"-"`// Bert Indicates BERT tokenization and its optionsBert *NlpBertTokenizationConfig `json:"bert,omitempty"`// BertJa Indicates BERT Japanese tokenization and its optionsBertJa *NlpBertTokenizationConfig `json:"bert_ja,omitempty"`// Mpnet Indicates MPNET tokenization and its optionsMpnet *NlpBertTokenizationConfig `json:"mpnet,omitempty"`// Roberta Indicates RoBERTa tokenization and its optionsRoberta *NlpRobertaTokenizationConfig `json:"roberta,omitempty"`XlmRoberta *XlmRobertaTokenizationConfig `json:"xlm_roberta,omitempty"`}TokenizationConfigContainer type.
funcNewTokenizationConfigContainer¶added inv8.5.0
func NewTokenizationConfigContainer() *TokenizationConfigContainer
NewTokenizationConfigContainer returns a TokenizationConfigContainer.
func (TokenizationConfigContainer)MarshalJSON¶added inv8.18.0
func (sTokenizationConfigContainer) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
typeTokenizer¶
type Tokenizerany
Tokenizer holds the union for the following types:
stringTokenizerDefinition
typeTokenizerDefinition¶
type TokenizerDefinitionany
TokenizerDefinition holds the union for the following types:
CharGroupTokenizerClassicTokenizerEdgeNGramTokenizerKeywordTokenizerLetterTokenizerLowercaseTokenizerNGramTokenizerPathHierarchyTokenizerPatternTokenizerSimplePatternTokenizerSimplePatternSplitTokenizerStandardTokenizerThaiTokenizerUaxEmailUrlTokenizerWhitespaceTokenizerIcuTokenizerKuromojiTokenizerNoriTokenizer
typeToolCall¶added inv8.18.0
type ToolCall struct {// Function The function that the model called.FunctionToolCallFunction `json:"function"`// Id The identifier of the tool call.Idstring `json:"id"`// Type The type of the tool call.Typestring `json:"type"`}ToolCall type.
func (*ToolCall)UnmarshalJSON¶added inv8.18.0
typeToolCallFunction¶added inv8.18.0
type ToolCallFunction struct {// Arguments The arguments to call the function with in JSON format.Argumentsstring `json:"arguments"`// Name The name of the function to call.Namestring `json:"name"`}ToolCallFunction type.
funcNewToolCallFunction¶added inv8.18.0
func NewToolCallFunction() *ToolCallFunction
NewToolCallFunction returns a ToolCallFunction.
func (*ToolCallFunction)UnmarshalJSON¶added inv8.18.0
func (s *ToolCallFunction) UnmarshalJSON(data []byte)error
typeTopClassEntry¶
type TopClassEntry struct {ClassNamestring `json:"class_name"`ClassProbabilityFloat64 `json:"class_probability"`ClassScoreFloat64 `json:"class_score"`}TopClassEntry type.
funcNewTopClassEntry¶added inv8.5.0
func NewTopClassEntry() *TopClassEntry
NewTopClassEntry returns a TopClassEntry.
func (*TopClassEntry)UnmarshalJSON¶added inv8.7.1
func (s *TopClassEntry) UnmarshalJSON(data []byte)error
typeTopHit¶added inv8.9.0
type TopHit struct {Countint64 `json:"count"`Valuejson.RawMessage `json:"value,omitempty"`}TopHit type.
func (*TopHit)UnmarshalJSON¶added inv8.9.0
typeTopHitsAggregate¶
type TopHitsAggregate struct {HitsHitsMetadata `json:"hits"`MetaMetadata `json:"meta,omitempty"`}TopHitsAggregate type.
funcNewTopHitsAggregate¶added inv8.5.0
func NewTopHitsAggregate() *TopHitsAggregate
NewTopHitsAggregate returns a TopHitsAggregate.
func (*TopHitsAggregate)UnmarshalJSON¶added inv8.7.1
func (s *TopHitsAggregate) UnmarshalJSON(data []byte)error
typeTopHitsAggregation¶
type TopHitsAggregation struct {// DocvalueFields Fields for which to return doc values.DocvalueFields []FieldAndFormat `json:"docvalue_fields,omitempty"`// Explain If `true`, returns detailed information about score computation as part of a// hit.Explain *bool `json:"explain,omitempty"`// Field The field on which to run the aggregation.Field *string `json:"field,omitempty"`// Fields Array of wildcard (*) patterns. The request returns values for field names// matching these patterns in the hits.fields property of the response.Fields []FieldAndFormat `json:"fields,omitempty"`// From Starting document offset.From *int `json:"from,omitempty"`// Highlight Specifies the highlighter to use for retrieving highlighted snippets from one// or more fields in the search results.Highlight *Highlight `json:"highlight,omitempty"`// Missing The value to apply to documents that do not have a value.// By default, documents without a value are ignored.MissingMissing `json:"missing,omitempty"`Script *Script `json:"script,omitempty"`// ScriptFields Returns the result of one or more script evaluations for each hit.ScriptFields map[string]ScriptField `json:"script_fields,omitempty"`// SeqNoPrimaryTerm If `true`, returns sequence number and primary term of the last modification// of each hit.SeqNoPrimaryTerm *bool `json:"seq_no_primary_term,omitempty"`// Size The maximum number of top matching hits to return per bucket.Size *int `json:"size,omitempty"`// Sort Sort order of the top matching hits.// By default, the hits are sorted by the score of the main query.Sort []SortCombinations `json:"sort,omitempty"`// Source_ Selects the fields of the source that are returned.Source_SourceConfig `json:"_source,omitempty"`// StoredFields Returns values for the specified stored fields (fields that use the `store`// mapping option).StoredFields []string `json:"stored_fields,omitempty"`// TrackScores If `true`, calculates and returns document scores, even if the scores are not// used for sorting.TrackScores *bool `json:"track_scores,omitempty"`// Version If `true`, returns document version as part of a hit.Version *bool `json:"version,omitempty"`}TopHitsAggregation type.
funcNewTopHitsAggregation¶added inv8.5.0
func NewTopHitsAggregation() *TopHitsAggregation
NewTopHitsAggregation returns a TopHitsAggregation.
func (*TopHitsAggregation)UnmarshalJSON¶added inv8.7.1
func (s *TopHitsAggregation) UnmarshalJSON(data []byte)error
typeTopLeftBottomRightGeoBounds¶
type TopLeftBottomRightGeoBounds struct {BottomRightGeoLocation `json:"bottom_right"`TopLeftGeoLocation `json:"top_left"`}TopLeftBottomRightGeoBounds type.
funcNewTopLeftBottomRightGeoBounds¶added inv8.5.0
func NewTopLeftBottomRightGeoBounds() *TopLeftBottomRightGeoBounds
NewTopLeftBottomRightGeoBounds returns a TopLeftBottomRightGeoBounds.
func (*TopLeftBottomRightGeoBounds)UnmarshalJSON¶added inv8.7.1
func (s *TopLeftBottomRightGeoBounds) UnmarshalJSON(data []byte)error
typeTopMetrics¶
type TopMetrics struct {Metrics map[string]FieldValue `json:"metrics"`Sort []FieldValue `json:"sort"`}TopMetrics type.
typeTopMetricsAggregate¶
type TopMetricsAggregate struct {MetaMetadata `json:"meta,omitempty"`Top []TopMetrics `json:"top"`}TopMetricsAggregate type.
funcNewTopMetricsAggregate¶added inv8.5.0
func NewTopMetricsAggregate() *TopMetricsAggregate
NewTopMetricsAggregate returns a TopMetricsAggregate.
func (*TopMetricsAggregate)UnmarshalJSON¶added inv8.7.1
func (s *TopMetricsAggregate) UnmarshalJSON(data []byte)error
typeTopMetricsAggregation¶
type TopMetricsAggregation struct {// Field The field on which to run the aggregation.Field *string `json:"field,omitempty"`// Metrics The fields of the top document to return.Metrics []TopMetricsValue `json:"metrics,omitempty"`// Missing The value to apply to documents that do not have a value.// By default, documents without a value are ignored.MissingMissing `json:"missing,omitempty"`Script *Script `json:"script,omitempty"`// Size The number of top documents from which to return metrics.Size *int `json:"size,omitempty"`// Sort The sort order of the documents.Sort []SortCombinations `json:"sort,omitempty"`}TopMetricsAggregation type.
funcNewTopMetricsAggregation¶added inv8.5.0
func NewTopMetricsAggregation() *TopMetricsAggregation
NewTopMetricsAggregation returns a TopMetricsAggregation.
func (*TopMetricsAggregation)UnmarshalJSON¶added inv8.7.1
func (s *TopMetricsAggregation) UnmarshalJSON(data []byte)error
typeTopMetricsValue¶
type TopMetricsValue struct {// Field A field to return as a metric.Fieldstring `json:"field"`}TopMetricsValue type.
funcNewTopMetricsValue¶added inv8.5.0
func NewTopMetricsValue() *TopMetricsValue
NewTopMetricsValue returns a TopMetricsValue.
func (*TopMetricsValue)UnmarshalJSON¶added inv8.7.1
func (s *TopMetricsValue) UnmarshalJSON(data []byte)error
typeTopRightBottomLeftGeoBounds¶
type TopRightBottomLeftGeoBounds struct {BottomLeftGeoLocation `json:"bottom_left"`TopRightGeoLocation `json:"top_right"`}TopRightBottomLeftGeoBounds type.
funcNewTopRightBottomLeftGeoBounds¶added inv8.5.0
func NewTopRightBottomLeftGeoBounds() *TopRightBottomLeftGeoBounds
NewTopRightBottomLeftGeoBounds returns a TopRightBottomLeftGeoBounds.
func (*TopRightBottomLeftGeoBounds)UnmarshalJSON¶added inv8.7.1
func (s *TopRightBottomLeftGeoBounds) UnmarshalJSON(data []byte)error
typeTotalFeatureImportance¶
type TotalFeatureImportance struct {// Classes If the trained model is a classification model, feature importance statistics// are gathered per target class value.Classes []TotalFeatureImportanceClass `json:"classes"`// FeatureName The feature for which this importance was calculated.FeatureNamestring `json:"feature_name"`// Importance A collection of feature importance statistics related to the training data// set for this particular feature.Importance []TotalFeatureImportanceStatistics `json:"importance"`}TotalFeatureImportance type.
funcNewTotalFeatureImportance¶added inv8.5.0
func NewTotalFeatureImportance() *TotalFeatureImportance
NewTotalFeatureImportance returns a TotalFeatureImportance.
func (*TotalFeatureImportance)UnmarshalJSON¶added inv8.7.1
func (s *TotalFeatureImportance) UnmarshalJSON(data []byte)error
typeTotalFeatureImportanceClass¶
type TotalFeatureImportanceClass struct {// ClassName The target class value. Could be a string, boolean, or number.ClassNamestring `json:"class_name"`// Importance A collection of feature importance statistics related to the training data// set for this particular feature.Importance []TotalFeatureImportanceStatistics `json:"importance"`}TotalFeatureImportanceClass type.
funcNewTotalFeatureImportanceClass¶added inv8.5.0
func NewTotalFeatureImportanceClass() *TotalFeatureImportanceClass
NewTotalFeatureImportanceClass returns a TotalFeatureImportanceClass.
func (*TotalFeatureImportanceClass)UnmarshalJSON¶added inv8.7.1
func (s *TotalFeatureImportanceClass) UnmarshalJSON(data []byte)error
typeTotalFeatureImportanceStatistics¶
type TotalFeatureImportanceStatistics struct {// Max The maximum importance value across all the training data for this feature.Maxint `json:"max"`// MeanMagnitude The average magnitude of this feature across all the training data. This// value is the average of the absolute values of the importance for this// feature.MeanMagnitudeFloat64 `json:"mean_magnitude"`// Min The minimum importance value across all the training data for this feature.Minint `json:"min"`}TotalFeatureImportanceStatistics type.
funcNewTotalFeatureImportanceStatistics¶added inv8.5.0
func NewTotalFeatureImportanceStatistics() *TotalFeatureImportanceStatistics
NewTotalFeatureImportanceStatistics returns a TotalFeatureImportanceStatistics.
func (*TotalFeatureImportanceStatistics)UnmarshalJSON¶added inv8.7.1
func (s *TotalFeatureImportanceStatistics) UnmarshalJSON(data []byte)error
typeTotalHits¶
type TotalHits struct {Relationtotalhitsrelation.TotalHitsRelation `json:"relation"`Valueint64 `json:"value"`}TotalHits type.
func (*TotalHits)UnmarshalJSON¶added inv8.7.0
UnmarshalJSON implements Unmarshaler interface, it handles the shortcut for total hits.
typeTotalUserProfiles¶
TotalUserProfiles type.
funcNewTotalUserProfiles¶added inv8.5.0
func NewTotalUserProfiles() *TotalUserProfiles
NewTotalUserProfiles returns a TotalUserProfiles.
func (*TotalUserProfiles)UnmarshalJSON¶added inv8.7.1
func (s *TotalUserProfiles) UnmarshalJSON(data []byte)error
typeTrainedModel¶
type TrainedModel struct {// Ensemble The definition for an ensemble modelEnsemble *Ensemble `json:"ensemble,omitempty"`// Tree The definition for a binary decision tree.Tree *TrainedModelTree `json:"tree,omitempty"`// TreeNode The definition of a node in a tree.// There are two major types of nodes: leaf nodes and not-leaf nodes.// - Leaf nodes only need node_index and leaf_value defined.// - All other nodes need split_feature, left_child, right_child, threshold,// decision_type, and default_left defined.TreeNode *TrainedModelTreeNode `json:"tree_node,omitempty"`}TrainedModel type.
funcNewTrainedModel¶added inv8.5.0
func NewTrainedModel() *TrainedModel
NewTrainedModel returns a TrainedModel.
typeTrainedModelAssignment¶
type TrainedModelAssignment struct {AdaptiveAllocations *AdaptiveAllocationsSettings `json:"adaptive_allocations,omitempty"`// AssignmentState The overall assignment state.AssignmentStatedeploymentassignmentstate.DeploymentAssignmentState `json:"assignment_state"`MaxAssignedAllocations *int `json:"max_assigned_allocations,omitempty"`Reason *string `json:"reason,omitempty"`// RoutingTable The allocation state for each node.RoutingTable map[string]TrainedModelAssignmentRoutingTable `json:"routing_table"`// StartTime The timestamp when the deployment started.StartTimeDateTime `json:"start_time"`TaskParametersTrainedModelAssignmentTaskParameters `json:"task_parameters"`}TrainedModelAssignment type.
funcNewTrainedModelAssignment¶added inv8.5.0
func NewTrainedModelAssignment() *TrainedModelAssignment
NewTrainedModelAssignment returns a TrainedModelAssignment.
func (*TrainedModelAssignment)UnmarshalJSON¶added inv8.7.1
func (s *TrainedModelAssignment) UnmarshalJSON(data []byte)error
typeTrainedModelAssignmentRoutingStateAndReason¶added inv8.18.0
type TrainedModelAssignmentRoutingStateAndReason struct {// Reason The reason for the current state. It is usually populated only when the// `routing_state` is `failed`.Reason *string `json:"reason,omitempty"`// RoutingState The current routing state.RoutingStateroutingstate.RoutingState `json:"routing_state"`}TrainedModelAssignmentRoutingStateAndReason type.
funcNewTrainedModelAssignmentRoutingStateAndReason¶added inv8.18.0
func NewTrainedModelAssignmentRoutingStateAndReason() *TrainedModelAssignmentRoutingStateAndReason
NewTrainedModelAssignmentRoutingStateAndReason returns a TrainedModelAssignmentRoutingStateAndReason.
func (*TrainedModelAssignmentRoutingStateAndReason)UnmarshalJSON¶added inv8.18.0
func (s *TrainedModelAssignmentRoutingStateAndReason) UnmarshalJSON(data []byte)error
typeTrainedModelAssignmentRoutingTable¶
type TrainedModelAssignmentRoutingTable struct {// CurrentAllocations Current number of allocations.CurrentAllocationsint `json:"current_allocations"`// Reason The reason for the current state. It is usually populated only when the// `routing_state` is `failed`.Reason *string `json:"reason,omitempty"`// RoutingState The current routing state.RoutingStateroutingstate.RoutingState `json:"routing_state"`// TargetAllocations Target number of allocations.TargetAllocationsint `json:"target_allocations"`}TrainedModelAssignmentRoutingTable type.
funcNewTrainedModelAssignmentRoutingTable¶added inv8.5.0
func NewTrainedModelAssignmentRoutingTable() *TrainedModelAssignmentRoutingTable
NewTrainedModelAssignmentRoutingTable returns a TrainedModelAssignmentRoutingTable.
func (*TrainedModelAssignmentRoutingTable)UnmarshalJSON¶added inv8.7.1
func (s *TrainedModelAssignmentRoutingTable) UnmarshalJSON(data []byte)error
typeTrainedModelAssignmentTaskParameters¶
type TrainedModelAssignmentTaskParameters struct {// CacheSize The size of the trained model cache.CacheSizeByteSize `json:"cache_size,omitempty"`// DeploymentId The unique identifier for the trained model deployment.DeploymentIdstring `json:"deployment_id"`// ModelBytes The size of the trained model in bytes.ModelBytesByteSize `json:"model_bytes"`// ModelId The unique identifier for the trained model.ModelIdstring `json:"model_id"`// NumberOfAllocations The total number of allocations this model is assigned across ML nodes.NumberOfAllocationsint `json:"number_of_allocations"`PerAllocationMemoryBytesByteSize `json:"per_allocation_memory_bytes"`PerDeploymentMemoryBytesByteSize `json:"per_deployment_memory_bytes"`Prioritytrainingpriority.TrainingPriority `json:"priority"`// QueueCapacity Number of inference requests are allowed in the queue at a time.QueueCapacityint `json:"queue_capacity"`// ThreadsPerAllocation Number of threads per allocation.ThreadsPerAllocationint `json:"threads_per_allocation"`}TrainedModelAssignmentTaskParameters type.
funcNewTrainedModelAssignmentTaskParameters¶added inv8.5.0
func NewTrainedModelAssignmentTaskParameters() *TrainedModelAssignmentTaskParameters
NewTrainedModelAssignmentTaskParameters returns a TrainedModelAssignmentTaskParameters.
func (*TrainedModelAssignmentTaskParameters)UnmarshalJSON¶added inv8.7.1
func (s *TrainedModelAssignmentTaskParameters) UnmarshalJSON(data []byte)error
typeTrainedModelConfig¶
type TrainedModelConfig struct {CompressedDefinition *string `json:"compressed_definition,omitempty"`// CreateTime The time when the trained model was created.CreateTimeDateTime `json:"create_time,omitempty"`// CreatedBy Information on the creator of the trained model.CreatedBy *string `json:"created_by,omitempty"`// DefaultFieldMap Any field map described in the inference configuration takes precedence.DefaultFieldMap map[string]string `json:"default_field_map,omitempty"`// Description The free-text description of the trained model.Description *string `json:"description,omitempty"`// EstimatedHeapMemoryUsageBytes The estimated heap usage in bytes to keep the trained model in memory.EstimatedHeapMemoryUsageBytes *int `json:"estimated_heap_memory_usage_bytes,omitempty"`// EstimatedOperations The estimated number of operations to use the trained model.EstimatedOperations *int `json:"estimated_operations,omitempty"`// FullyDefined True if the full model definition is present.FullyDefined *bool `json:"fully_defined,omitempty"`// InferenceConfig The default configuration for inference. This can be either a regression,// classification, or one of the many NLP focused configurations. It must match// the underlying definition.trained_model's target_type. For pre-packaged// models such as ELSER the config is not required.InferenceConfig *InferenceConfigCreateContainer `json:"inference_config,omitempty"`// Input The input field names for the model definition.InputTrainedModelConfigInput `json:"input"`// LicenseLevel The license level of the trained model.LicenseLevel *string `json:"license_level,omitempty"`Location *TrainedModelLocation `json:"location,omitempty"`// Metadata An object containing metadata about the trained model. For example, models// created by data frame analytics contain analysis_config and input objects.Metadata *TrainedModelConfigMetadata `json:"metadata,omitempty"`// ModelId Identifier for the trained model.ModelIdstring `json:"model_id"`ModelPackage *ModelPackageConfig `json:"model_package,omitempty"`ModelSizeBytesByteSize `json:"model_size_bytes,omitempty"`// ModelType The model typeModelType *trainedmodeltype.TrainedModelType `json:"model_type,omitempty"`PlatformArchitecture *string `json:"platform_architecture,omitempty"`PrefixStrings *TrainedModelPrefixStrings `json:"prefix_strings,omitempty"`// Tags A comma delimited string of tags. A trained model can have many tags, or// none.Tags []string `json:"tags"`// Version The Elasticsearch version number in which the trained model was created.Version *string `json:"version,omitempty"`}TrainedModelConfig type.
funcNewTrainedModelConfig¶added inv8.5.0
func NewTrainedModelConfig() *TrainedModelConfig
NewTrainedModelConfig returns a TrainedModelConfig.
func (*TrainedModelConfig)UnmarshalJSON¶added inv8.7.1
func (s *TrainedModelConfig) UnmarshalJSON(data []byte)error
typeTrainedModelConfigInput¶
type TrainedModelConfigInput struct {// FieldNames An array of input field names for the model.FieldNames []string `json:"field_names"`}TrainedModelConfigInput type.
funcNewTrainedModelConfigInput¶added inv8.5.0
func NewTrainedModelConfigInput() *TrainedModelConfigInput
NewTrainedModelConfigInput returns a TrainedModelConfigInput.
typeTrainedModelConfigMetadata¶
type TrainedModelConfigMetadata struct {// FeatureImportanceBaseline An object that contains the baseline for feature importance values. For// regression analysis, it is a single value. For classification analysis, there// is a value for each class.FeatureImportanceBaseline map[string]string `json:"feature_importance_baseline,omitempty"`// Hyperparameters List of the available hyperparameters optimized during the// fine_parameter_tuning phase as well as specified by the user.Hyperparameters []Hyperparameter `json:"hyperparameters,omitempty"`ModelAliases []string `json:"model_aliases,omitempty"`// TotalFeatureImportance An array of the total feature importance for each feature used from the// training data set. This array of objects is returned if data frame analytics// trained the model and the request includes total_feature_importance in the// include request parameter.TotalFeatureImportance []TotalFeatureImportance `json:"total_feature_importance,omitempty"`}TrainedModelConfigMetadata type.
funcNewTrainedModelConfigMetadata¶added inv8.5.0
func NewTrainedModelConfigMetadata() *TrainedModelConfigMetadata
NewTrainedModelConfigMetadata returns a TrainedModelConfigMetadata.
typeTrainedModelDeploymentAllocationStatus¶
type TrainedModelDeploymentAllocationStatus struct {// AllocationCount The current number of nodes where the model is allocated.AllocationCountint `json:"allocation_count"`// State The detailed allocation state related to the nodes.Statedeploymentallocationstate.DeploymentAllocationState `json:"state"`// TargetAllocationCount The desired number of nodes for model allocation.TargetAllocationCountint `json:"target_allocation_count"`}TrainedModelDeploymentAllocationStatus type.
funcNewTrainedModelDeploymentAllocationStatus¶added inv8.5.0
func NewTrainedModelDeploymentAllocationStatus() *TrainedModelDeploymentAllocationStatus
NewTrainedModelDeploymentAllocationStatus returns a TrainedModelDeploymentAllocationStatus.
func (*TrainedModelDeploymentAllocationStatus)UnmarshalJSON¶added inv8.7.1
func (s *TrainedModelDeploymentAllocationStatus) UnmarshalJSON(data []byte)error
typeTrainedModelDeploymentNodesStats¶
type TrainedModelDeploymentNodesStats struct {// AverageInferenceTimeMs The average time for each inference call to complete on this node.AverageInferenceTimeMsFloat64 `json:"average_inference_time_ms,omitempty"`// AverageInferenceTimeMsExcludingCacheHits The average time for each inference call to complete on this node, excluding// cacheAverageInferenceTimeMsExcludingCacheHitsFloat64 `json:"average_inference_time_ms_excluding_cache_hits,omitempty"`AverageInferenceTimeMsLastMinuteFloat64 `json:"average_inference_time_ms_last_minute,omitempty"`// ErrorCount The number of errors when evaluating the trained model.ErrorCount *int `json:"error_count,omitempty"`InferenceCacheHitCount *int64 `json:"inference_cache_hit_count,omitempty"`InferenceCacheHitCountLastMinute *int64 `json:"inference_cache_hit_count_last_minute,omitempty"`// InferenceCount The total number of inference calls made against this node for this model.InferenceCount *int64 `json:"inference_count,omitempty"`// LastAccess The epoch time stamp of the last inference call for the model on this node.LastAccess *int64 `json:"last_access,omitempty"`// Node Information pertaining to the node.NodeDiscoveryNode `json:"node,omitempty"`// NumberOfAllocations The number of allocations assigned to this node.NumberOfAllocations *int `json:"number_of_allocations,omitempty"`// NumberOfPendingRequests The number of inference requests queued to be processed.NumberOfPendingRequests *int `json:"number_of_pending_requests,omitempty"`PeakThroughputPerMinuteint64 `json:"peak_throughput_per_minute"`// RejectedExecutionCount The number of inference requests that were not processed because the queue// was full.RejectedExecutionCount *int `json:"rejected_execution_count,omitempty"`// RoutingState The current routing state and reason for the current routing state for this// allocation.RoutingStateTrainedModelAssignmentRoutingStateAndReason `json:"routing_state"`// StartTime The epoch timestamp when the allocation started.StartTime *int64 `json:"start_time,omitempty"`// ThreadsPerAllocation The number of threads used by each allocation during inference.ThreadsPerAllocation *int `json:"threads_per_allocation,omitempty"`ThroughputLastMinuteint `json:"throughput_last_minute"`// TimeoutCount The number of inference requests that timed out before being processed.TimeoutCount *int `json:"timeout_count,omitempty"`}TrainedModelDeploymentNodesStats type.
funcNewTrainedModelDeploymentNodesStats¶added inv8.5.0
func NewTrainedModelDeploymentNodesStats() *TrainedModelDeploymentNodesStats
NewTrainedModelDeploymentNodesStats returns a TrainedModelDeploymentNodesStats.
func (*TrainedModelDeploymentNodesStats)UnmarshalJSON¶added inv8.7.1
func (s *TrainedModelDeploymentNodesStats) UnmarshalJSON(data []byte)error
typeTrainedModelDeploymentStats¶
type TrainedModelDeploymentStats struct {AdaptiveAllocations *AdaptiveAllocationsSettings `json:"adaptive_allocations,omitempty"`// AllocationStatus The detailed allocation status for the deployment.AllocationStatus *TrainedModelDeploymentAllocationStatus `json:"allocation_status,omitempty"`CacheSizeByteSize `json:"cache_size,omitempty"`// DeploymentId The unique identifier for the trained model deployment.DeploymentIdstring `json:"deployment_id"`// ErrorCount The sum of `error_count` for all nodes in the deployment.ErrorCount *int `json:"error_count,omitempty"`// InferenceCount The sum of `inference_count` for all nodes in the deployment.InferenceCount *int `json:"inference_count,omitempty"`// ModelId The unique identifier for the trained model.ModelIdstring `json:"model_id"`// Nodes The deployment stats for each node that currently has the model allocated.// In serverless, stats are reported for a single unnamed virtual node.Nodes []TrainedModelDeploymentNodesStats `json:"nodes"`// NumberOfAllocations The number of allocations requested.NumberOfAllocations *int `json:"number_of_allocations,omitempty"`PeakThroughputPerMinuteint64 `json:"peak_throughput_per_minute"`Prioritytrainingpriority.TrainingPriority `json:"priority"`// QueueCapacity The number of inference requests that can be queued before new requests are// rejected.QueueCapacity *int `json:"queue_capacity,omitempty"`// Reason The reason for the current deployment state. Usually only populated when// the model is not deployed to a node.Reason *string `json:"reason,omitempty"`// RejectedExecutionCount The sum of `rejected_execution_count` for all nodes in the deployment.// Individual nodes reject an inference request if the inference queue is full.// The queue size is controlled by the `queue_capacity` setting in the start// trained model deployment API.RejectedExecutionCount *int `json:"rejected_execution_count,omitempty"`// StartTime The epoch timestamp when the deployment started.StartTimeint64 `json:"start_time"`// State The overall state of the deployment.State *deploymentassignmentstate.DeploymentAssignmentState `json:"state,omitempty"`// ThreadsPerAllocation The number of threads used be each allocation during inference.ThreadsPerAllocation *int `json:"threads_per_allocation,omitempty"`// TimeoutCount The sum of `timeout_count` for all nodes in the deployment.TimeoutCount *int `json:"timeout_count,omitempty"`}TrainedModelDeploymentStats type.
funcNewTrainedModelDeploymentStats¶added inv8.5.0
func NewTrainedModelDeploymentStats() *TrainedModelDeploymentStats
NewTrainedModelDeploymentStats returns a TrainedModelDeploymentStats.
func (*TrainedModelDeploymentStats)UnmarshalJSON¶added inv8.7.1
func (s *TrainedModelDeploymentStats) UnmarshalJSON(data []byte)error
typeTrainedModelEntities¶
type TrainedModelEntities struct {ClassNamestring `json:"class_name"`ClassProbabilityFloat64 `json:"class_probability"`EndPosint `json:"end_pos"`Entitystring `json:"entity"`StartPosint `json:"start_pos"`}TrainedModelEntities type.
funcNewTrainedModelEntities¶added inv8.5.0
func NewTrainedModelEntities() *TrainedModelEntities
NewTrainedModelEntities returns a TrainedModelEntities.
func (*TrainedModelEntities)UnmarshalJSON¶added inv8.7.1
func (s *TrainedModelEntities) UnmarshalJSON(data []byte)error
typeTrainedModelInferenceClassImportance¶
type TrainedModelInferenceClassImportance struct {ClassNamestring `json:"class_name"`ImportanceFloat64 `json:"importance"`}TrainedModelInferenceClassImportance type.
funcNewTrainedModelInferenceClassImportance¶added inv8.5.0
func NewTrainedModelInferenceClassImportance() *TrainedModelInferenceClassImportance
NewTrainedModelInferenceClassImportance returns a TrainedModelInferenceClassImportance.
func (*TrainedModelInferenceClassImportance)UnmarshalJSON¶added inv8.7.1
func (s *TrainedModelInferenceClassImportance) UnmarshalJSON(data []byte)error
typeTrainedModelInferenceFeatureImportance¶
type TrainedModelInferenceFeatureImportance struct {Classes []TrainedModelInferenceClassImportance `json:"classes,omitempty"`FeatureNamestring `json:"feature_name"`Importance *Float64 `json:"importance,omitempty"`}TrainedModelInferenceFeatureImportance type.
funcNewTrainedModelInferenceFeatureImportance¶added inv8.5.0
func NewTrainedModelInferenceFeatureImportance() *TrainedModelInferenceFeatureImportance
NewTrainedModelInferenceFeatureImportance returns a TrainedModelInferenceFeatureImportance.
func (*TrainedModelInferenceFeatureImportance)UnmarshalJSON¶added inv8.7.1
func (s *TrainedModelInferenceFeatureImportance) UnmarshalJSON(data []byte)error
typeTrainedModelInferenceStats¶
type TrainedModelInferenceStats struct {// CacheMissCount The number of times the model was loaded for inference and was not retrieved// from the cache.// If this number is close to the `inference_count`, the cache is not being// appropriately used.// This can be solved by increasing the cache size or its time-to-live (TTL).// Refer to general machine learning settings for the appropriate settings.CacheMissCountint `json:"cache_miss_count"`// FailureCount The number of failures when using the model for inference.FailureCountint `json:"failure_count"`// InferenceCount The total number of times the model has been called for inference.// This is across all inference contexts, including all pipelines.InferenceCountint `json:"inference_count"`// MissingAllFieldsCount The number of inference calls where all the training features for the model// were missing.MissingAllFieldsCountint `json:"missing_all_fields_count"`// Timestamp The time when the statistics were last updated.Timestampint64 `json:"timestamp"`}TrainedModelInferenceStats type.
funcNewTrainedModelInferenceStats¶added inv8.5.0
func NewTrainedModelInferenceStats() *TrainedModelInferenceStats
NewTrainedModelInferenceStats returns a TrainedModelInferenceStats.
func (*TrainedModelInferenceStats)UnmarshalJSON¶added inv8.7.1
func (s *TrainedModelInferenceStats) UnmarshalJSON(data []byte)error
typeTrainedModelLocation¶
type TrainedModelLocation struct {IndexTrainedModelLocationIndex `json:"index"`}TrainedModelLocation type.
funcNewTrainedModelLocation¶added inv8.5.0
func NewTrainedModelLocation() *TrainedModelLocation
NewTrainedModelLocation returns a TrainedModelLocation.
typeTrainedModelLocationIndex¶
type TrainedModelLocationIndex struct {Namestring `json:"name"`}TrainedModelLocationIndex type.
funcNewTrainedModelLocationIndex¶added inv8.5.0
func NewTrainedModelLocationIndex() *TrainedModelLocationIndex
NewTrainedModelLocationIndex returns a TrainedModelLocationIndex.
func (*TrainedModelLocationIndex)UnmarshalJSON¶added inv8.7.1
func (s *TrainedModelLocationIndex) UnmarshalJSON(data []byte)error
typeTrainedModelPrefixStrings¶added inv8.13.0
type TrainedModelPrefixStrings struct {// Ingest String prepended to input at ingestIngest *string `json:"ingest,omitempty"`// Search String prepended to input at searchSearch *string `json:"search,omitempty"`}TrainedModelPrefixStrings type.
funcNewTrainedModelPrefixStrings¶added inv8.13.0
func NewTrainedModelPrefixStrings() *TrainedModelPrefixStrings
NewTrainedModelPrefixStrings returns a TrainedModelPrefixStrings.
func (*TrainedModelPrefixStrings)UnmarshalJSON¶added inv8.13.0
func (s *TrainedModelPrefixStrings) UnmarshalJSON(data []byte)error
typeTrainedModelSizeStats¶
type TrainedModelSizeStats struct {// ModelSizeBytes The size of the model in bytes.ModelSizeBytesByteSize `json:"model_size_bytes"`// RequiredNativeMemoryBytes The amount of memory required to load the model in bytes.RequiredNativeMemoryBytesByteSize `json:"required_native_memory_bytes"`}TrainedModelSizeStats type.
funcNewTrainedModelSizeStats¶added inv8.5.0
func NewTrainedModelSizeStats() *TrainedModelSizeStats
NewTrainedModelSizeStats returns a TrainedModelSizeStats.
func (*TrainedModelSizeStats)UnmarshalJSON¶added inv8.7.1
func (s *TrainedModelSizeStats) UnmarshalJSON(data []byte)error
typeTrainedModelStats¶
type TrainedModelStats struct {// DeploymentStats A collection of deployment stats, which is present when the models are// deployed.DeploymentStats *TrainedModelDeploymentStats `json:"deployment_stats,omitempty"`// InferenceStats A collection of inference stats fields.InferenceStats *TrainedModelInferenceStats `json:"inference_stats,omitempty"`// Ingest A collection of ingest stats for the model across all nodes.// The values are summations of the individual node statistics.// The format matches the ingest section in the nodes stats API.Ingest map[string]json.RawMessage `json:"ingest,omitempty"`// ModelId The unique identifier of the trained model.ModelIdstring `json:"model_id"`// ModelSizeStats A collection of model size stats.ModelSizeStatsTrainedModelSizeStats `json:"model_size_stats"`// PipelineCount The number of ingest pipelines that currently refer to the model.PipelineCountint `json:"pipeline_count"`}TrainedModelStats type.
funcNewTrainedModelStats¶added inv8.5.0
func NewTrainedModelStats() *TrainedModelStats
NewTrainedModelStats returns a TrainedModelStats.
func (*TrainedModelStats)UnmarshalJSON¶added inv8.7.1
func (s *TrainedModelStats) UnmarshalJSON(data []byte)error
typeTrainedModelTree¶
type TrainedModelTree struct {ClassificationLabels []string `json:"classification_labels,omitempty"`FeatureNames []string `json:"feature_names"`TargetType *string `json:"target_type,omitempty"`TreeStructure []TrainedModelTreeNode `json:"tree_structure"`}TrainedModelTree type.
funcNewTrainedModelTree¶added inv8.5.0
func NewTrainedModelTree() *TrainedModelTree
NewTrainedModelTree returns a TrainedModelTree.
func (*TrainedModelTree)UnmarshalJSON¶added inv8.9.0
func (s *TrainedModelTree) UnmarshalJSON(data []byte)error
typeTrainedModelTreeNode¶
type TrainedModelTreeNode struct {DecisionType *string `json:"decision_type,omitempty"`DefaultLeft *bool `json:"default_left,omitempty"`LeafValue *Float64 `json:"leaf_value,omitempty"`LeftChild *int `json:"left_child,omitempty"`NodeIndexint `json:"node_index"`RightChild *int `json:"right_child,omitempty"`SplitFeature *int `json:"split_feature,omitempty"`SplitGain *int `json:"split_gain,omitempty"`Threshold *Float64 `json:"threshold,omitempty"`}TrainedModelTreeNode type.
funcNewTrainedModelTreeNode¶added inv8.5.0
func NewTrainedModelTreeNode() *TrainedModelTreeNode
NewTrainedModelTreeNode returns a TrainedModelTreeNode.
func (*TrainedModelTreeNode)UnmarshalJSON¶added inv8.7.1
func (s *TrainedModelTreeNode) UnmarshalJSON(data []byte)error
typeTrainedModelsRecord¶
type TrainedModelsRecord struct {// CreateTime The time the model was created.CreateTimeDateTime `json:"create_time,omitempty"`// CreatedBy Information about the creator of the model.CreatedBy *string `json:"created_by,omitempty"`// DataFrameAnalysis The analysis used by the data frame to build the model.DataFrameAnalysis *string `json:"data_frame.analysis,omitempty"`// DataFrameCreateTime The time the data frame analytics job was created.DataFrameCreateTime *string `json:"data_frame.create_time,omitempty"`// DataFrameId The identifier for the data frame analytics job that created the model.// Only displayed if the job is still available.DataFrameId *string `json:"data_frame.id,omitempty"`// DataFrameSourceIndex The source index used to train in the data frame analysis.DataFrameSourceIndex *string `json:"data_frame.source_index,omitempty"`// Description A description of the model.Description *string `json:"description,omitempty"`// HeapSize The estimated heap size to keep the model in memory.HeapSizeByteSize `json:"heap_size,omitempty"`// Id The model identifier.Id *string `json:"id,omitempty"`// IngestCount The total number of documents that are processed by the model.IngestCount *string `json:"ingest.count,omitempty"`// IngestCurrent The total number of documents that are currently being handled by the model.IngestCurrent *string `json:"ingest.current,omitempty"`// IngestFailed The total number of failed ingest attempts with the model.IngestFailed *string `json:"ingest.failed,omitempty"`// IngestPipelines The number of pipelines that are referencing the model.IngestPipelines *string `json:"ingest.pipelines,omitempty"`// IngestTime The total time spent processing documents with thie model.IngestTime *string `json:"ingest.time,omitempty"`// License The license level of the model.License *string `json:"license,omitempty"`// Operations The estimated number of operations to use the model.// This number helps to measure the computational complexity of the model.Operations *string `json:"operations,omitempty"`Type *string `json:"type,omitempty"`// Version The version of Elasticsearch when the model was created.Version *string `json:"version,omitempty"`}TrainedModelsRecord type.
funcNewTrainedModelsRecord¶added inv8.5.0
func NewTrainedModelsRecord() *TrainedModelsRecord
NewTrainedModelsRecord returns a TrainedModelsRecord.
func (*TrainedModelsRecord)UnmarshalJSON¶added inv8.7.1
func (s *TrainedModelsRecord) UnmarshalJSON(data []byte)error
typeTransformAuthorization¶
type TransformAuthorization struct {// ApiKey If an API key was used for the most recent update to the transform, its name// and identifier are listed in the response.ApiKey *ApiKeyAuthorization `json:"api_key,omitempty"`// Roles If a user ID was used for the most recent update to the transform, its roles// at the time of the update are listed in the response.Roles []string `json:"roles,omitempty"`// ServiceAccount If a service account was used for the most recent update to the transform,// the account name is listed in the response.ServiceAccount *string `json:"service_account,omitempty"`}TransformAuthorization type.
funcNewTransformAuthorization¶added inv8.5.0
func NewTransformAuthorization() *TransformAuthorization
NewTransformAuthorization returns a TransformAuthorization.
func (*TransformAuthorization)UnmarshalJSON¶added inv8.9.0
func (s *TransformAuthorization) UnmarshalJSON(data []byte)error
typeTransformContainer¶
type TransformContainer struct {AdditionalTransformContainerProperty map[string]json.RawMessage `json:"-"`Chain []TransformContainer `json:"chain,omitempty"`Script *ScriptTransform `json:"script,omitempty"`Search *SearchTransform `json:"search,omitempty"`}TransformContainer type.
funcNewTransformContainer¶added inv8.5.0
func NewTransformContainer() *TransformContainer
NewTransformContainer returns a TransformContainer.
func (TransformContainer)MarshalJSON¶added inv8.18.0
func (sTransformContainer) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
typeTransformDestination¶added inv8.5.0
type TransformDestination struct {// Index The destination index for the transform. The mappings of the destination// index are deduced based on the source// fields when possible. If alternate mappings are required, use the create// index API prior to starting the// transform.Index *string `json:"index,omitempty"`// Pipeline The unique identifier for an ingest pipeline.Pipeline *string `json:"pipeline,omitempty"`}TransformDestination type.
funcNewTransformDestination¶added inv8.5.0
func NewTransformDestination() *TransformDestination
NewTransformDestination returns a TransformDestination.
func (*TransformDestination)UnmarshalJSON¶added inv8.7.1
func (s *TransformDestination) UnmarshalJSON(data []byte)error
typeTransformHealthIssue¶added inv8.18.0
type TransformHealthIssue struct {// Count Number of times this issue has occurred since it startedCountint `json:"count"`// Details Details about the issueDetails *string `json:"details,omitempty"`FirstOccurenceStringDateTime `json:"first_occurence_string,omitempty"`// FirstOccurrence The timestamp this issue occurred for for the first timeFirstOccurrence *int64 `json:"first_occurrence,omitempty"`// Issue A description of the issueIssuestring `json:"issue"`// Type The type of the issueTypestring `json:"type"`}TransformHealthIssue type.
funcNewTransformHealthIssue¶added inv8.18.0
func NewTransformHealthIssue() *TransformHealthIssue
NewTransformHealthIssue returns a TransformHealthIssue.
func (*TransformHealthIssue)UnmarshalJSON¶added inv8.18.0
func (s *TransformHealthIssue) UnmarshalJSON(data []byte)error
typeTransformIndexerStats¶
type TransformIndexerStats struct {DeleteTimeInMs *int64 `json:"delete_time_in_ms,omitempty"`DocumentsDeleted *int64 `json:"documents_deleted,omitempty"`DocumentsIndexedint64 `json:"documents_indexed"`DocumentsProcessedint64 `json:"documents_processed"`ExponentialAvgCheckpointDurationMsFloat64 `json:"exponential_avg_checkpoint_duration_ms"`ExponentialAvgDocumentsIndexedFloat64 `json:"exponential_avg_documents_indexed"`ExponentialAvgDocumentsProcessedFloat64 `json:"exponential_avg_documents_processed"`IndexFailuresint64 `json:"index_failures"`IndexTimeInMsint64 `json:"index_time_in_ms"`IndexTotalint64 `json:"index_total"`PagesProcessedint64 `json:"pages_processed"`ProcessingTimeInMsint64 `json:"processing_time_in_ms"`ProcessingTotalint64 `json:"processing_total"`SearchFailuresint64 `json:"search_failures"`SearchTimeInMsint64 `json:"search_time_in_ms"`SearchTotalint64 `json:"search_total"`TriggerCountint64 `json:"trigger_count"`}TransformIndexerStats type.
funcNewTransformIndexerStats¶added inv8.5.0
func NewTransformIndexerStats() *TransformIndexerStats
NewTransformIndexerStats returns a TransformIndexerStats.
func (*TransformIndexerStats)UnmarshalJSON¶added inv8.7.1
func (s *TransformIndexerStats) UnmarshalJSON(data []byte)error
typeTransformProgress¶
type TransformProgress struct {DocsIndexedint64 `json:"docs_indexed"`DocsProcessedint64 `json:"docs_processed"`DocsRemaining *int64 `json:"docs_remaining,omitempty"`PercentComplete *Float64 `json:"percent_complete,omitempty"`TotalDocs *int64 `json:"total_docs,omitempty"`}TransformProgress type.
funcNewTransformProgress¶added inv8.5.0
func NewTransformProgress() *TransformProgress
NewTransformProgress returns a TransformProgress.
func (*TransformProgress)UnmarshalJSON¶added inv8.7.1
func (s *TransformProgress) UnmarshalJSON(data []byte)error
typeTransformSource¶added inv8.5.0
type TransformSource struct {// Index The source indices for the transform. It can be a single index, an index// pattern (for example, `"my-index-*""`), an// array of indices (for example, `["my-index-000001", "my-index-000002"]`), or// an array of index patterns (for// example, `["my-index-*", "my-other-index-*"]`. For remote indices use the// syntax `"remote_name:index_name"`. If// any indices are in remote clusters then the master node and at least one// transform node must have the `remote_cluster_client` node role.Index []string `json:"index"`// Query A query clause that retrieves a subset of data from the source index.Query *Query `json:"query,omitempty"`// RuntimeMappings Definitions of search-time runtime fields that can be used by the transform.// For search runtime fields all data// nodes, including remote nodes, must be 7.12 or later.RuntimeMappingsRuntimeFields `json:"runtime_mappings,omitempty"`}TransformSource type.
funcNewTransformSource¶added inv8.5.0
func NewTransformSource() *TransformSource
NewTransformSource returns a TransformSource.
func (*TransformSource)UnmarshalJSON¶added inv8.7.1
func (s *TransformSource) UnmarshalJSON(data []byte)error
typeTransformStats¶
type TransformStats struct {CheckpointingCheckpointing `json:"checkpointing"`Health *TransformStatsHealth `json:"health,omitempty"`Idstring `json:"id"`Node *NodeAttributes `json:"node,omitempty"`Reason *string `json:"reason,omitempty"`Statestring `json:"state"`StatsTransformIndexerStats `json:"stats"`}TransformStats type.
funcNewTransformStats¶added inv8.5.0
func NewTransformStats() *TransformStats
NewTransformStats returns a TransformStats.
func (*TransformStats)UnmarshalJSON¶added inv8.7.1
func (s *TransformStats) UnmarshalJSON(data []byte)error
typeTransformStatsHealth¶added inv8.7.0
type TransformStatsHealth struct {// Issues If a non-healthy status is returned, contains a list of issues of the// transform.Issues []TransformHealthIssue `json:"issues,omitempty"`Statushealthstatus.HealthStatus `json:"status"`}TransformStatsHealth type.
funcNewTransformStatsHealth¶added inv8.7.0
func NewTransformStatsHealth() *TransformStatsHealth
NewTransformStatsHealth returns a TransformStatsHealth.
typeTransformSummary¶
type TransformSummary struct {// Authorization The security privileges that the transform uses to run its queries. If// Elastic Stack security features were disabled at the time of the most recent// update to the transform, this property is omitted.Authorization *TransformAuthorization `json:"authorization,omitempty"`// CreateTime The time the transform was created.CreateTime *int64 `json:"create_time,omitempty"`CreateTimeStringDateTime `json:"create_time_string,omitempty"`// Description Free text description of the transform.Description *string `json:"description,omitempty"`// Dest The destination for the transform.DestReindexDestination `json:"dest"`FrequencyDuration `json:"frequency,omitempty"`Idstring `json:"id"`Latest *Latest `json:"latest,omitempty"`Meta_Metadata `json:"_meta,omitempty"`// Pivot The pivot method transforms the data by aggregating and grouping it.Pivot *Pivot `json:"pivot,omitempty"`RetentionPolicy *RetentionPolicyContainer `json:"retention_policy,omitempty"`// Settings Defines optional transform settings.Settings *Settings `json:"settings,omitempty"`// Source The source of the data for the transform.SourceTransformSource `json:"source"`// Sync Defines the properties transforms require to run continuously.Sync *SyncContainer `json:"sync,omitempty"`// Version The version of Elasticsearch that existed on the node when the transform was// created.Version *string `json:"version,omitempty"`}TransformSummary type.
funcNewTransformSummary¶added inv8.5.0
func NewTransformSummary() *TransformSummary
NewTransformSummary returns a TransformSummary.
func (*TransformSummary)UnmarshalJSON¶added inv8.7.1
func (s *TransformSummary) UnmarshalJSON(data []byte)error
typeTransformsRecord¶
type TransformsRecord struct {// ChangesLastDetectionTime The timestamp when changes were last detected in the source indices.ChangesLastDetectionTime *string `json:"changes_last_detection_time,omitempty"`// Checkpoint The sequence number for the checkpoint.Checkpoint *string `json:"checkpoint,omitempty"`// CheckpointDurationTimeExpAvg The exponential moving average of the duration of the checkpoint, in// milliseconds.CheckpointDurationTimeExpAvg *string `json:"checkpoint_duration_time_exp_avg,omitempty"`// CheckpointProgress The progress of the next checkpoint that is currently in progress.CheckpointProgress *string `json:"checkpoint_progress,omitempty"`// CreateTime The time the transform was created.CreateTime *string `json:"create_time,omitempty"`// DeleteTime The total time spent deleting documents, in milliseconds.DeleteTime *string `json:"delete_time,omitempty"`// Description The description of the transform.Description *string `json:"description,omitempty"`// DestIndex The destination index for the transform.DestIndex *string `json:"dest_index,omitempty"`// DocsPerSecond The number of input documents per second.DocsPerSecond *string `json:"docs_per_second,omitempty"`// DocumentsDeleted The number of documents deleted from the destination index due to the// retention policy for the transform.DocumentsDeleted *string `json:"documents_deleted,omitempty"`// DocumentsIndexed The number of documents that have been indexed into the destination index for// the transform.DocumentsIndexed *string `json:"documents_indexed,omitempty"`// DocumentsProcessed The number of documents that have been processed from the source index of the// transform.DocumentsProcessed *string `json:"documents_processed,omitempty"`// Frequency The interval between checks for changes in the source indices when the// transform is running continuously.Frequency *string `json:"frequency,omitempty"`// Id The transform identifier.Id *string `json:"id,omitempty"`// IndexFailure The total number of indexing failures.IndexFailure *string `json:"index_failure,omitempty"`// IndexTime The total time spent indexing documents, in milliseconds.IndexTime *string `json:"index_time,omitempty"`// IndexTotal The total number of index operations done by the transform.IndexTotal *string `json:"index_total,omitempty"`// IndexedDocumentsExpAvg The exponential moving average of the number of new documents that have been// indexed.IndexedDocumentsExpAvg *string `json:"indexed_documents_exp_avg,omitempty"`// LastSearchTime The timestamp of the last search in the source indices.// This field is shown only if the transform is running.LastSearchTime *string `json:"last_search_time,omitempty"`// MaxPageSearchSize The initial page size that is used for the composite aggregation for each// checkpoint.MaxPageSearchSize *string `json:"max_page_search_size,omitempty"`// PagesProcessed The number of search or bulk index operations processed.// Documents are processed in batches instead of individually.PagesProcessed *string `json:"pages_processed,omitempty"`// Pipeline The unique identifier for the ingest pipeline.Pipeline *string `json:"pipeline,omitempty"`// ProcessedDocumentsExpAvg The exponential moving average of the number of documents that have been// processed.ProcessedDocumentsExpAvg *string `json:"processed_documents_exp_avg,omitempty"`// ProcessingTime The total time spent processing results, in milliseconds.ProcessingTime *string `json:"processing_time,omitempty"`// Reason If a transform has a `failed` state, these details describe the reason for// failure.Reason *string `json:"reason,omitempty"`// SearchFailure The total number of search failures.SearchFailure *string `json:"search_failure,omitempty"`// SearchTime The total amount of search time, in milliseconds.SearchTime *string `json:"search_time,omitempty"`// SearchTotal The total number of search operations on the source index for the transform.SearchTotal *string `json:"search_total,omitempty"`// SourceIndex The source indices for the transform.SourceIndex *string `json:"source_index,omitempty"`// State The status of the transform.// Returned values include:// `aborting`: The transform is aborting.// `failed: The transform failed. For more information about the failure, check// the `reason` field.// `indexing`: The transform is actively processing data and creating new// documents.// `started`: The transform is running but not actively indexing data.// `stopped`: The transform is stopped.// `stopping`: The transform is stopping.State *string `json:"state,omitempty"`// TransformType The type of transform: `batch` or `continuous`.TransformType *string `json:"transform_type,omitempty"`// TriggerCount The number of times the transform has been triggered by the scheduler.// For example, the scheduler triggers the transform indexer to check for// updates or ingest new data at an interval specified in the `frequency`// property.TriggerCount *string `json:"trigger_count,omitempty"`// Version The version of Elasticsearch that existed on the node when the transform was// created.Version *string `json:"version,omitempty"`}TransformsRecord type.
funcNewTransformsRecord¶added inv8.5.0
func NewTransformsRecord() *TransformsRecord
NewTransformsRecord returns a TransformsRecord.
func (*TransformsRecord)UnmarshalJSON¶added inv8.7.1
func (s *TransformsRecord) UnmarshalJSON(data []byte)error
typeTranslog¶
type Translog struct {// Durability Whether or not to `fsync` and commit the translog after every index, delete,// update, or bulk request.Durability *translogdurability.TranslogDurability `json:"durability,omitempty"`// FlushThresholdSize The translog stores all operations that are not yet safely persisted in// Lucene (i.e., are not// part of a Lucene commit point). Although these operations are available for// reads, they will need// to be replayed if the shard was stopped and had to be recovered. This setting// controls the// maximum total size of these operations, to prevent recoveries from taking too// long. Once the// maximum size has been reached a flush will happen, generating a new Lucene// commit point.FlushThresholdSizeByteSize `json:"flush_threshold_size,omitempty"`Retention *TranslogRetention `json:"retention,omitempty"`// SyncInterval How often the translog is fsynced to disk and committed, regardless of write// operations.// Values less than 100ms are not allowed.SyncIntervalDuration `json:"sync_interval,omitempty"`}Translog type.
func (*Translog)UnmarshalJSON¶added inv8.7.1
typeTranslogRetention¶
type TranslogRetention struct {// Age This controls the maximum duration for which translog files are kept by each// shard. Keeping more// translog files increases the chance of performing an operation based sync// when recovering replicas. If// the translog files are not sufficient, replica recovery will fall back to a// file based sync. This setting// is ignored, and should not be set, if soft deletes are enabled. Soft deletes// are enabled by default in// indices created in Elasticsearch versions 7.0.0 and later.AgeDuration `json:"age,omitempty"`// Size This controls the total size of translog files to keep for each shard.// Keeping more translog files increases// the chance of performing an operation based sync when recovering a replica.// If the translog files are not// sufficient, replica recovery will fall back to a file based sync. This// setting is ignored, and should not be// set, if soft deletes are enabled. Soft deletes are enabled by default in// indices created in Elasticsearch// versions 7.0.0 and later.SizeByteSize `json:"size,omitempty"`}TranslogRetention type.
funcNewTranslogRetention¶added inv8.5.0
func NewTranslogRetention() *TranslogRetention
NewTranslogRetention returns a TranslogRetention.
func (*TranslogRetention)UnmarshalJSON¶added inv8.7.1
func (s *TranslogRetention) UnmarshalJSON(data []byte)error
typeTranslogStats¶
type TranslogStats struct {EarliestLastModifiedAgeint64 `json:"earliest_last_modified_age"`Operationsint64 `json:"operations"`Size *string `json:"size,omitempty"`SizeInBytesint64 `json:"size_in_bytes"`UncommittedOperationsint `json:"uncommitted_operations"`UncommittedSize *string `json:"uncommitted_size,omitempty"`UncommittedSizeInBytesint64 `json:"uncommitted_size_in_bytes"`}TranslogStats type.
funcNewTranslogStats¶added inv8.5.0
func NewTranslogStats() *TranslogStats
NewTranslogStats returns a TranslogStats.
func (*TranslogStats)UnmarshalJSON¶added inv8.7.1
func (s *TranslogStats) UnmarshalJSON(data []byte)error
typeTranslogStatus¶
type TranslogStatus struct {PercentPercentage `json:"percent"`Recoveredint64 `json:"recovered"`Totalint64 `json:"total"`TotalOnStartint64 `json:"total_on_start"`TotalTimeDuration `json:"total_time,omitempty"`TotalTimeInMillisint64 `json:"total_time_in_millis"`}TranslogStatus type.
funcNewTranslogStatus¶added inv8.5.0
func NewTranslogStatus() *TranslogStatus
NewTranslogStatus returns a TranslogStatus.
func (*TranslogStatus)UnmarshalJSON¶added inv8.7.1
func (s *TranslogStatus) UnmarshalJSON(data []byte)error
typeTransport¶
type Transport struct {// InboundHandlingTimeHistogram The distribution of the time spent handling each inbound message on a// transport thread, represented as a histogram.InboundHandlingTimeHistogram []TransportHistogram `json:"inbound_handling_time_histogram,omitempty"`// OutboundHandlingTimeHistogram The distribution of the time spent sending each outbound transport message on// a transport thread, represented as a histogram.OutboundHandlingTimeHistogram []TransportHistogram `json:"outbound_handling_time_histogram,omitempty"`// RxCount Total number of RX (receive) packets received by the node during internal// cluster communication.RxCount *int64 `json:"rx_count,omitempty"`// RxSize Size of RX packets received by the node during internal cluster// communication.RxSize *string `json:"rx_size,omitempty"`// RxSizeInBytes Size, in bytes, of RX packets received by the node during internal cluster// communication.RxSizeInBytes *int64 `json:"rx_size_in_bytes,omitempty"`// ServerOpen Current number of inbound TCP connections used for internal communication// between nodes.ServerOpen *int `json:"server_open,omitempty"`// TotalOutboundConnections The cumulative number of outbound transport connections that this node has// opened since it started.// Each transport connection may comprise multiple TCP connections but is only// counted once in this statistic.// Transport connections are typically long-lived so this statistic should// remain constant in a stable cluster.TotalOutboundConnections *int64 `json:"total_outbound_connections,omitempty"`// TxCount Total number of TX (transmit) packets sent by the node during internal// cluster communication.TxCount *int64 `json:"tx_count,omitempty"`// TxSize Size of TX packets sent by the node during internal cluster communication.TxSize *string `json:"tx_size,omitempty"`// TxSizeInBytes Size, in bytes, of TX packets sent by the node during internal cluster// communication.TxSizeInBytes *int64 `json:"tx_size_in_bytes,omitempty"`}Transport type.
func (*Transport)UnmarshalJSON¶added inv8.7.1
typeTransportHistogram¶
type TransportHistogram struct {// Count The number of times a transport thread took a period of time within the// bounds of this bucket to handle an inbound message.Count *int64 `json:"count,omitempty"`// GeMillis The inclusive lower bound of the bucket in milliseconds. May be omitted on// the first bucket if this bucket has no lower bound.GeMillis *int64 `json:"ge_millis,omitempty"`// LtMillis The exclusive upper bound of the bucket in milliseconds.// May be omitted on the last bucket if this bucket has no upper bound.LtMillis *int64 `json:"lt_millis,omitempty"`}TransportHistogram type.
funcNewTransportHistogram¶added inv8.5.0
func NewTransportHistogram() *TransportHistogram
NewTransportHistogram returns a TransportHistogram.
func (*TransportHistogram)UnmarshalJSON¶added inv8.7.1
func (s *TransportHistogram) UnmarshalJSON(data []byte)error
typeTriggerContainer¶
type TriggerContainer struct {AdditionalTriggerContainerProperty map[string]json.RawMessage `json:"-"`Schedule *ScheduleContainer `json:"schedule,omitempty"`}TriggerContainer type.
funcNewTriggerContainer¶added inv8.5.0
func NewTriggerContainer() *TriggerContainer
NewTriggerContainer returns a TriggerContainer.
func (TriggerContainer)MarshalJSON¶added inv8.18.0
func (sTriggerContainer) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
typeTriggerEventContainer¶
type TriggerEventContainer struct {AdditionalTriggerEventContainerProperty map[string]json.RawMessage `json:"-"`Schedule *ScheduleTriggerEvent `json:"schedule,omitempty"`}TriggerEventContainer type.
funcNewTriggerEventContainer¶added inv8.5.0
func NewTriggerEventContainer() *TriggerEventContainer
NewTriggerEventContainer returns a TriggerEventContainer.
func (TriggerEventContainer)MarshalJSON¶added inv8.18.0
func (sTriggerEventContainer) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
typeTriggerEventResult¶
type TriggerEventResult struct {ManualTriggerEventContainer `json:"manual"`TriggeredTimeDateTime `json:"triggered_time"`Typestring `json:"type"`}TriggerEventResult type.
funcNewTriggerEventResult¶added inv8.5.0
func NewTriggerEventResult() *TriggerEventResult
NewTriggerEventResult returns a TriggerEventResult.
func (*TriggerEventResult)UnmarshalJSON¶added inv8.7.1
func (s *TriggerEventResult) UnmarshalJSON(data []byte)error
typeTrimProcessor¶
type TrimProcessor struct {// Description Description of the processor.// Useful for describing the purpose of the processor or its configuration.Description *string `json:"description,omitempty"`// Field The string-valued field to trim whitespace from.Fieldstring `json:"field"`// If Conditionally execute the processor.If *string `json:"if,omitempty"`// IgnoreFailure Ignore failures for the processor.IgnoreFailure *bool `json:"ignore_failure,omitempty"`// IgnoreMissing If `true` and `field` does not exist, the processor quietly exits without// modifying the document.IgnoreMissing *bool `json:"ignore_missing,omitempty"`// OnFailure Handle failures for the processor.OnFailure []ProcessorContainer `json:"on_failure,omitempty"`// Tag Identifier for the processor.// Useful for debugging and metrics.Tag *string `json:"tag,omitempty"`// TargetField The field to assign the trimmed value to.// By default, the field is updated in-place.TargetField *string `json:"target_field,omitempty"`}TrimProcessor type.
funcNewTrimProcessor¶added inv8.5.0
func NewTrimProcessor() *TrimProcessor
NewTrimProcessor returns a TrimProcessor.
func (*TrimProcessor)UnmarshalJSON¶added inv8.7.1
func (s *TrimProcessor) UnmarshalJSON(data []byte)error
typeTrimTokenFilter¶
type TrimTokenFilter struct {Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}TrimTokenFilter type.
funcNewTrimTokenFilter¶added inv8.5.0
func NewTrimTokenFilter() *TrimTokenFilter
NewTrimTokenFilter returns a TrimTokenFilter.
func (TrimTokenFilter)MarshalJSON¶added inv8.9.0
func (sTrimTokenFilter) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*TrimTokenFilter)UnmarshalJSON¶added inv8.7.1
func (s *TrimTokenFilter) UnmarshalJSON(data []byte)error
typeTruncateTokenFilter¶
type TruncateTokenFilter struct {// Length Character limit for each token. Tokens exceeding this limit are truncated.// Defaults to `10`.Length *int `json:"length,omitempty"`Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}TruncateTokenFilter type.
funcNewTruncateTokenFilter¶added inv8.5.0
func NewTruncateTokenFilter() *TruncateTokenFilter
NewTruncateTokenFilter returns a TruncateTokenFilter.
func (TruncateTokenFilter)MarshalJSON¶added inv8.9.0
func (sTruncateTokenFilter) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*TruncateTokenFilter)UnmarshalJSON¶added inv8.7.1
func (s *TruncateTokenFilter) UnmarshalJSON(data []byte)error
typeTurkishAnalyzer¶added inv8.16.0
type TurkishAnalyzer struct {StemExclusion []string `json:"stem_exclusion,omitempty"`StopwordsStopWords `json:"stopwords,omitempty"`StopwordsPath *string `json:"stopwords_path,omitempty"`Typestring `json:"type,omitempty"`}TurkishAnalyzer type.
funcNewTurkishAnalyzer¶added inv8.16.0
func NewTurkishAnalyzer() *TurkishAnalyzer
NewTurkishAnalyzer returns a TurkishAnalyzer.
func (TurkishAnalyzer)MarshalJSON¶added inv8.16.0
func (sTurkishAnalyzer) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*TurkishAnalyzer)UnmarshalJSON¶added inv8.16.0
func (s *TurkishAnalyzer) UnmarshalJSON(data []byte)error
typeTypeFieldMappings¶
type TypeFieldMappings struct {Mappings map[string]FieldMapping `json:"mappings"`}TypeFieldMappings type.
funcNewTypeFieldMappings¶added inv8.5.0
func NewTypeFieldMappings() *TypeFieldMappings
NewTypeFieldMappings returns a TypeFieldMappings.
typeTypeMapping¶
type TypeMapping struct {AllField *AllField `json:"all_field,omitempty"`DataStreamTimestamp_ *DataStreamTimestamp `json:"_data_stream_timestamp,omitempty"`DateDetection *bool `json:"date_detection,omitempty"`Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`DynamicDateFormats []string `json:"dynamic_date_formats,omitempty"`DynamicTemplates []map[string]DynamicTemplate `json:"dynamic_templates,omitempty"`Enabled *bool `json:"enabled,omitempty"`FieldNames_ *FieldNamesField `json:"_field_names,omitempty"`IndexField *IndexField `json:"index_field,omitempty"`Meta_Metadata `json:"_meta,omitempty"`NumericDetection *bool `json:"numeric_detection,omitempty"`Properties map[string]Property `json:"properties,omitempty"`Routing_ *RoutingField `json:"_routing,omitempty"`Runtime map[string]RuntimeField `json:"runtime,omitempty"`Size_ *SizeField `json:"_size,omitempty"`Source_ *SourceField `json:"_source,omitempty"`Subobjects *subobjects.Subobjects `json:"subobjects,omitempty"`}TypeMapping type.
funcNewTypeMapping¶added inv8.5.0
func NewTypeMapping() *TypeMapping
NewTypeMapping returns a TypeMapping.
func (*TypeMapping)UnmarshalJSON¶added inv8.7.0
func (s *TypeMapping) UnmarshalJSON(data []byte)error
typeTypeQuery¶
type TypeQuery struct {// Boost Floating point number used to decrease or increase the relevance scores of// the query.// Boost values are relative to the default value of 1.0.// A boost value between 0 and 1.0 decreases the relevance score.// A value greater than 1.0 increases the relevance score.Boost *float32 `json:"boost,omitempty"`QueryName_ *string `json:"_name,omitempty"`Valuestring `json:"value"`}TypeQuery type.
func (*TypeQuery)UnmarshalJSON¶added inv8.7.1
typeUaxEmailUrlTokenizer¶
type UaxEmailUrlTokenizer struct {MaxTokenLength *int `json:"max_token_length,omitempty"`Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}UaxEmailUrlTokenizer type.
funcNewUaxEmailUrlTokenizer¶added inv8.5.0
func NewUaxEmailUrlTokenizer() *UaxEmailUrlTokenizer
NewUaxEmailUrlTokenizer returns a UaxEmailUrlTokenizer.
func (UaxEmailUrlTokenizer)MarshalJSON¶added inv8.9.0
func (sUaxEmailUrlTokenizer) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*UaxEmailUrlTokenizer)UnmarshalJSON¶added inv8.7.1
func (s *UaxEmailUrlTokenizer) UnmarshalJSON(data []byte)error
typeUnassignedInformation¶
type UnassignedInformation struct {AllocationStatus *string `json:"allocation_status,omitempty"`AtDateTime `json:"at"`Delayed *bool `json:"delayed,omitempty"`Details *string `json:"details,omitempty"`FailedAllocationAttempts *int `json:"failed_allocation_attempts,omitempty"`LastAllocationStatus *string `json:"last_allocation_status,omitempty"`Reasonunassignedinformationreason.UnassignedInformationReason `json:"reason"`}UnassignedInformation type.
funcNewUnassignedInformation¶added inv8.5.0
func NewUnassignedInformation() *UnassignedInformation
NewUnassignedInformation returns a UnassignedInformation.
func (*UnassignedInformation)UnmarshalJSON¶added inv8.7.1
func (s *UnassignedInformation) UnmarshalJSON(data []byte)error
typeUniqueTokenFilter¶
type UniqueTokenFilter struct {// OnlyOnSamePosition If `true`, only remove duplicate tokens in the same position. Defaults to// `false`.OnlyOnSamePosition *bool `json:"only_on_same_position,omitempty"`Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}UniqueTokenFilter type.
funcNewUniqueTokenFilter¶added inv8.5.0
func NewUniqueTokenFilter() *UniqueTokenFilter
NewUniqueTokenFilter returns a UniqueTokenFilter.
func (UniqueTokenFilter)MarshalJSON¶added inv8.9.0
func (sUniqueTokenFilter) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*UniqueTokenFilter)UnmarshalJSON¶added inv8.7.1
func (s *UniqueTokenFilter) UnmarshalJSON(data []byte)error
typeUnmappedRareTermsAggregate¶
type UnmappedRareTermsAggregate struct {BucketsBucketsVoid `json:"buckets"`MetaMetadata `json:"meta,omitempty"`}UnmappedRareTermsAggregate type.
funcNewUnmappedRareTermsAggregate¶added inv8.5.0
func NewUnmappedRareTermsAggregate() *UnmappedRareTermsAggregate
NewUnmappedRareTermsAggregate returns a UnmappedRareTermsAggregate.
func (*UnmappedRareTermsAggregate)UnmarshalJSON¶added inv8.7.0
func (s *UnmappedRareTermsAggregate) UnmarshalJSON(data []byte)error
typeUnmappedSamplerAggregate¶
type UnmappedSamplerAggregate struct {Aggregations map[string]Aggregate `json:"-"`DocCountint64 `json:"doc_count"`MetaMetadata `json:"meta,omitempty"`}UnmappedSamplerAggregate type.
funcNewUnmappedSamplerAggregate¶added inv8.5.0
func NewUnmappedSamplerAggregate() *UnmappedSamplerAggregate
NewUnmappedSamplerAggregate returns a UnmappedSamplerAggregate.
func (UnmappedSamplerAggregate)MarshalJSON¶
func (sUnmappedSamplerAggregate) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
func (*UnmappedSamplerAggregate)UnmarshalJSON¶added inv8.7.0
func (s *UnmappedSamplerAggregate) UnmarshalJSON(data []byte)error
typeUnmappedSignificantTermsAggregate¶
type UnmappedSignificantTermsAggregate struct {BgCount *int64 `json:"bg_count,omitempty"`BucketsBucketsVoid `json:"buckets"`DocCount *int64 `json:"doc_count,omitempty"`MetaMetadata `json:"meta,omitempty"`}UnmappedSignificantTermsAggregate type.
funcNewUnmappedSignificantTermsAggregate¶added inv8.5.0
func NewUnmappedSignificantTermsAggregate() *UnmappedSignificantTermsAggregate
NewUnmappedSignificantTermsAggregate returns a UnmappedSignificantTermsAggregate.
func (*UnmappedSignificantTermsAggregate)UnmarshalJSON¶added inv8.7.0
func (s *UnmappedSignificantTermsAggregate) UnmarshalJSON(data []byte)error
typeUnmappedTermsAggregate¶
type UnmappedTermsAggregate struct {BucketsBucketsVoid `json:"buckets"`DocCountErrorUpperBound *int64 `json:"doc_count_error_upper_bound,omitempty"`MetaMetadata `json:"meta,omitempty"`SumOtherDocCount *int64 `json:"sum_other_doc_count,omitempty"`}UnmappedTermsAggregate type.
funcNewUnmappedTermsAggregate¶added inv8.5.0
func NewUnmappedTermsAggregate() *UnmappedTermsAggregate
NewUnmappedTermsAggregate returns a UnmappedTermsAggregate.
func (*UnmappedTermsAggregate)UnmarshalJSON¶added inv8.7.0
func (s *UnmappedTermsAggregate) UnmarshalJSON(data []byte)error
typeUnratedDocument¶
UnratedDocument type.
funcNewUnratedDocument¶added inv8.5.0
func NewUnratedDocument() *UnratedDocument
NewUnratedDocument returns a UnratedDocument.
func (*UnratedDocument)UnmarshalJSON¶added inv8.7.1
func (s *UnratedDocument) UnmarshalJSON(data []byte)error
typeUnsignedLongNumberProperty¶
type UnsignedLongNumberProperty struct {Boost *Float64 `json:"boost,omitempty"`Coerce *bool `json:"coerce,omitempty"`CopyTo []string `json:"copy_to,omitempty"`DocValues *bool `json:"doc_values,omitempty"`Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`Fields map[string]Property `json:"fields,omitempty"`IgnoreAbove *int `json:"ignore_above,omitempty"`IgnoreMalformed *bool `json:"ignore_malformed,omitempty"`Index *bool `json:"index,omitempty"`// Meta Metadata about the field.Meta map[string]string `json:"meta,omitempty"`NullValue *uint64 `json:"null_value,omitempty"`OnScriptError *onscripterror.OnScriptError `json:"on_script_error,omitempty"`Properties map[string]Property `json:"properties,omitempty"`Script *Script `json:"script,omitempty"`Store *bool `json:"store,omitempty"`SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`// TimeSeriesDimension For internal use by Elastic only. Marks the field as a time series dimension.// Defaults to false.TimeSeriesDimension *bool `json:"time_series_dimension,omitempty"`// TimeSeriesMetric For internal use by Elastic only. Marks the field as a time series dimension.// Defaults to false.TimeSeriesMetric *timeseriesmetrictype.TimeSeriesMetricType `json:"time_series_metric,omitempty"`Typestring `json:"type,omitempty"`}UnsignedLongNumberProperty type.
funcNewUnsignedLongNumberProperty¶added inv8.5.0
func NewUnsignedLongNumberProperty() *UnsignedLongNumberProperty
NewUnsignedLongNumberProperty returns a UnsignedLongNumberProperty.
func (UnsignedLongNumberProperty)MarshalJSON¶added inv8.9.0
func (sUnsignedLongNumberProperty) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*UnsignedLongNumberProperty)UnmarshalJSON¶added inv8.7.0
func (s *UnsignedLongNumberProperty) UnmarshalJSON(data []byte)error
typeUntypedDecayFunction¶added inv8.15.0
type UntypedDecayFunction struct {DecayFunctionBase map[string]DecayPlacement `json:"-"`// MultiValueMode Determines how the distance is calculated when a field used for computing the// decay contains multiple values.MultiValueMode *multivaluemode.MultiValueMode `json:"multi_value_mode,omitempty"`}UntypedDecayFunction type.
funcNewUntypedDecayFunction¶added inv8.15.0
func NewUntypedDecayFunction() *UntypedDecayFunction
NewUntypedDecayFunction returns a UntypedDecayFunction.
func (UntypedDecayFunction)MarshalJSON¶added inv8.15.0
func (sUntypedDecayFunction) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
typeUntypedDistanceFeatureQuery¶added inv8.15.0
type UntypedDistanceFeatureQuery struct {// Boost Floating point number used to decrease or increase the relevance scores of// the query.// Boost values are relative to the default value of 1.0.// A boost value between 0 and 1.0 decreases the relevance score.// A value greater than 1.0 increases the relevance score.Boost *float32 `json:"boost,omitempty"`// Field Name of the field used to calculate distances. This field must meet the// following criteria:// be a `date`, `date_nanos` or `geo_point` field;// have an `index` mapping parameter value of `true`, which is the default;// have an `doc_values` mapping parameter value of `true`, which is the default.Fieldstring `json:"field"`// Origin Date or point of origin used to calculate distances.// If the `field` value is a `date` or `date_nanos` field, the `origin` value// must be a date.// Date Math, such as `now-1h`, is supported.// If the field value is a `geo_point` field, the `origin` value must be a// geopoint.Originjson.RawMessage `json:"origin,omitempty"`// Pivot Distance from the `origin` at which relevance scores receive half of the// `boost` value.// If the `field` value is a `date` or `date_nanos` field, the `pivot` value// must be a time unit, such as `1h` or `10d`. If the `field` value is a// `geo_point` field, the `pivot` value must be a distance unit, such as `1km`// or `12m`.Pivotjson.RawMessage `json:"pivot,omitempty"`QueryName_ *string `json:"_name,omitempty"`}UntypedDistanceFeatureQuery type.
funcNewUntypedDistanceFeatureQuery¶added inv8.15.0
func NewUntypedDistanceFeatureQuery() *UntypedDistanceFeatureQuery
NewUntypedDistanceFeatureQuery returns a UntypedDistanceFeatureQuery.
func (*UntypedDistanceFeatureQuery)UnmarshalJSON¶added inv8.15.0
func (s *UntypedDistanceFeatureQuery) UnmarshalJSON(data []byte)error
typeUntypedRangeQuery¶added inv8.15.0
type UntypedRangeQuery struct {// Boost Floating point number used to decrease or increase the relevance scores of// the query.// Boost values are relative to the default value of 1.0.// A boost value between 0 and 1.0 decreases the relevance score.// A value greater than 1.0 increases the relevance score.Boost *float32 `json:"boost,omitempty"`// Format Date format used to convert `date` values in the query.Format *string `json:"format,omitempty"`From *json.RawMessage `json:"from,omitempty"`// Gt Greater than.Gtjson.RawMessage `json:"gt,omitempty"`// Gte Greater than or equal to.Gtejson.RawMessage `json:"gte,omitempty"`// Lt Less than.Ltjson.RawMessage `json:"lt,omitempty"`// Lte Less than or equal to.Ltejson.RawMessage `json:"lte,omitempty"`QueryName_ *string `json:"_name,omitempty"`// Relation Indicates how the range query matches values for `range` fields.Relation *rangerelation.RangeRelation `json:"relation,omitempty"`// TimeZone Coordinated Universal Time (UTC) offset or IANA time zone used to convert// `date` values in the query to UTC.TimeZone *string `json:"time_zone,omitempty"`To *json.RawMessage `json:"to,omitempty"`}UntypedRangeQuery type.
funcNewUntypedRangeQuery¶added inv8.15.0
func NewUntypedRangeQuery() *UntypedRangeQuery
NewUntypedRangeQuery returns a UntypedRangeQuery.
func (*UntypedRangeQuery)UnmarshalJSON¶added inv8.15.0
func (s *UntypedRangeQuery) UnmarshalJSON(data []byte)error
typeUpdateAction¶added inv8.9.0
type UpdateAction struct {// DetectNoop If true, the `result` in the response is set to 'noop' when no changes to the// document occur.DetectNoop *bool `json:"detect_noop,omitempty"`// Doc A partial update to an existing document.Docjson.RawMessage `json:"doc,omitempty"`// DocAsUpsert Set to `true` to use the contents of `doc` as the value of `upsert`.DocAsUpsert *bool `json:"doc_as_upsert,omitempty"`// Script The script to run to update the document.Script *Script `json:"script,omitempty"`// ScriptedUpsert Set to `true` to run the script whether or not the document exists.ScriptedUpsert *bool `json:"scripted_upsert,omitempty"`// Source_ If `false`, source retrieval is turned off.// You can also specify a comma-separated list of the fields you want to// retrieve.Source_SourceConfig `json:"_source,omitempty"`// Upsert If the document does not already exist, the contents of `upsert` are inserted// as a new document.// If the document exists, the `script` is run.Upsertjson.RawMessage `json:"upsert,omitempty"`}UpdateAction type.
funcNewUpdateAction¶added inv8.9.0
func NewUpdateAction() *UpdateAction
NewUpdateAction returns a UpdateAction.
func (*UpdateAction)UnmarshalJSON¶added inv8.9.0
func (s *UpdateAction) UnmarshalJSON(data []byte)error
typeUpdateByQueryRethrottleNode¶
type UpdateByQueryRethrottleNode struct {Attributes map[string]string `json:"attributes"`Hoststring `json:"host"`Ipstring `json:"ip"`Namestring `json:"name"`Roles []noderole.NodeRole `json:"roles,omitempty"`Tasks map[string]TaskInfo `json:"tasks"`TransportAddressstring `json:"transport_address"`}UpdateByQueryRethrottleNode type.
funcNewUpdateByQueryRethrottleNode¶added inv8.5.0
func NewUpdateByQueryRethrottleNode() *UpdateByQueryRethrottleNode
NewUpdateByQueryRethrottleNode returns a UpdateByQueryRethrottleNode.
func (*UpdateByQueryRethrottleNode)UnmarshalJSON¶added inv8.7.1
func (s *UpdateByQueryRethrottleNode) UnmarshalJSON(data []byte)error
typeUpdateOperation¶added inv8.9.0
type UpdateOperation struct {// Id_ The document ID.Id_ *string `json:"_id,omitempty"`IfPrimaryTerm *int64 `json:"if_primary_term,omitempty"`IfSeqNo *int64 `json:"if_seq_no,omitempty"`// Index_ The name of the index or index alias to perform the action on.Index_ *string `json:"_index,omitempty"`// RequireAlias If `true`, the request's actions must target an index alias.RequireAlias *bool `json:"require_alias,omitempty"`// RetryOnConflict The number of times an update should be retried in the case of a version// conflict.RetryOnConflict *int `json:"retry_on_conflict,omitempty"`// Routing A custom value used to route operations to a specific shard.Routing *string `json:"routing,omitempty"`Version *int64 `json:"version,omitempty"`VersionType *versiontype.VersionType `json:"version_type,omitempty"`}UpdateOperation type.
funcNewUpdateOperation¶added inv8.9.0
func NewUpdateOperation() *UpdateOperation
NewUpdateOperation returns a UpdateOperation.
func (*UpdateOperation)UnmarshalJSON¶added inv8.9.0
func (s *UpdateOperation) UnmarshalJSON(data []byte)error
typeUppercaseProcessor¶
type UppercaseProcessor struct {// Description Description of the processor.// Useful for describing the purpose of the processor or its configuration.Description *string `json:"description,omitempty"`// Field The field to make uppercase.Fieldstring `json:"field"`// If Conditionally execute the processor.If *string `json:"if,omitempty"`// IgnoreFailure Ignore failures for the processor.IgnoreFailure *bool `json:"ignore_failure,omitempty"`// IgnoreMissing If `true` and `field` does not exist or is `null`, the processor quietly// exits without modifying the document.IgnoreMissing *bool `json:"ignore_missing,omitempty"`// OnFailure Handle failures for the processor.OnFailure []ProcessorContainer `json:"on_failure,omitempty"`// Tag Identifier for the processor.// Useful for debugging and metrics.Tag *string `json:"tag,omitempty"`// TargetField The field to assign the converted value to.// By default, the field is updated in-place.TargetField *string `json:"target_field,omitempty"`}UppercaseProcessor type.
funcNewUppercaseProcessor¶added inv8.5.0
func NewUppercaseProcessor() *UppercaseProcessor
NewUppercaseProcessor returns a UppercaseProcessor.
func (*UppercaseProcessor)UnmarshalJSON¶added inv8.7.1
func (s *UppercaseProcessor) UnmarshalJSON(data []byte)error
typeUppercaseTokenFilter¶
type UppercaseTokenFilter struct {Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}UppercaseTokenFilter type.
funcNewUppercaseTokenFilter¶added inv8.5.0
func NewUppercaseTokenFilter() *UppercaseTokenFilter
NewUppercaseTokenFilter returns a UppercaseTokenFilter.
func (UppercaseTokenFilter)MarshalJSON¶added inv8.9.0
func (sUppercaseTokenFilter) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*UppercaseTokenFilter)UnmarshalJSON¶added inv8.7.1
func (s *UppercaseTokenFilter) UnmarshalJSON(data []byte)error
typeUriPartsProcessor¶added inv8.16.0
type UriPartsProcessor struct {// Description Description of the processor.// Useful for describing the purpose of the processor or its configuration.Description *string `json:"description,omitempty"`// Field Field containing the URI string.Fieldstring `json:"field"`// If Conditionally execute the processor.If *string `json:"if,omitempty"`// IgnoreFailure Ignore failures for the processor.IgnoreFailure *bool `json:"ignore_failure,omitempty"`// IgnoreMissing If `true` and `field` does not exist, the processor quietly exits without// modifying the document.IgnoreMissing *bool `json:"ignore_missing,omitempty"`// KeepOriginal If `true`, the processor copies the unparsed URI to// `<target_field>.original`.KeepOriginal *bool `json:"keep_original,omitempty"`// OnFailure Handle failures for the processor.OnFailure []ProcessorContainer `json:"on_failure,omitempty"`// RemoveIfSuccessful If `true`, the processor removes the `field` after parsing the URI string.// If parsing fails, the processor does not remove the `field`.RemoveIfSuccessful *bool `json:"remove_if_successful,omitempty"`// Tag Identifier for the processor.// Useful for debugging and metrics.Tag *string `json:"tag,omitempty"`// TargetField Output field for the URI object.TargetField *string `json:"target_field,omitempty"`}UriPartsProcessor type.
funcNewUriPartsProcessor¶added inv8.16.0
func NewUriPartsProcessor() *UriPartsProcessor
NewUriPartsProcessor returns a UriPartsProcessor.
func (*UriPartsProcessor)UnmarshalJSON¶added inv8.16.0
func (s *UriPartsProcessor) UnmarshalJSON(data []byte)error
typeUrlDecodeProcessor¶
type UrlDecodeProcessor struct {// Description Description of the processor.// Useful for describing the purpose of the processor or its configuration.Description *string `json:"description,omitempty"`// Field The field to decode.Fieldstring `json:"field"`// If Conditionally execute the processor.If *string `json:"if,omitempty"`// IgnoreFailure Ignore failures for the processor.IgnoreFailure *bool `json:"ignore_failure,omitempty"`// IgnoreMissing If `true` and `field` does not exist or is `null`, the processor quietly// exits without modifying the document.IgnoreMissing *bool `json:"ignore_missing,omitempty"`// OnFailure Handle failures for the processor.OnFailure []ProcessorContainer `json:"on_failure,omitempty"`// Tag Identifier for the processor.// Useful for debugging and metrics.Tag *string `json:"tag,omitempty"`// TargetField The field to assign the converted value to.// By default, the field is updated in-place.TargetField *string `json:"target_field,omitempty"`}UrlDecodeProcessor type.
funcNewUrlDecodeProcessor¶added inv8.5.0
func NewUrlDecodeProcessor() *UrlDecodeProcessor
NewUrlDecodeProcessor returns a UrlDecodeProcessor.
func (*UrlDecodeProcessor)UnmarshalJSON¶added inv8.7.1
func (s *UrlDecodeProcessor) UnmarshalJSON(data []byte)error
typeUsagePhase¶added inv8.18.0
UsagePhase type.
funcNewUsagePhase¶added inv8.18.0
func NewUsagePhase() *UsagePhase
NewUsagePhase returns a UsagePhase.
func (*UsagePhase)UnmarshalJSON¶added inv8.18.0
func (s *UsagePhase) UnmarshalJSON(data []byte)error
typeUsagePhases¶added inv8.18.0
type UsagePhases struct {Cold *UsagePhase `json:"cold,omitempty"`Delete *UsagePhase `json:"delete,omitempty"`Frozen *UsagePhase `json:"frozen,omitempty"`Hot *UsagePhase `json:"hot,omitempty"`Warm *UsagePhase `json:"warm,omitempty"`}UsagePhases type.
funcNewUsagePhases¶added inv8.18.0
func NewUsagePhases() *UsagePhases
NewUsagePhases returns a UsagePhases.
typeUsageStatsIndex¶
type UsageStatsIndex struct {Shards []UsageStatsShards `json:"shards"`}UsageStatsIndex type.
funcNewUsageStatsIndex¶added inv8.5.0
func NewUsageStatsIndex() *UsageStatsIndex
NewUsageStatsIndex returns a UsageStatsIndex.
typeUsageStatsShards¶
type UsageStatsShards struct {RoutingShardRouting `json:"routing"`StatsIndicesShardsStats `json:"stats"`TrackingIdstring `json:"tracking_id"`TrackingStartedAtMillisint64 `json:"tracking_started_at_millis"`}UsageStatsShards type.
funcNewUsageStatsShards¶added inv8.5.0
func NewUsageStatsShards() *UsageStatsShards
NewUsageStatsShards returns a UsageStatsShards.
func (*UsageStatsShards)UnmarshalJSON¶added inv8.7.1
func (s *UsageStatsShards) UnmarshalJSON(data []byte)error
typeUser¶
type User struct {Email *string `json:"email,omitempty"`Enabledbool `json:"enabled"`FullName *string `json:"full_name,omitempty"`MetadataMetadata `json:"metadata"`ProfileUid *string `json:"profile_uid,omitempty"`Roles []string `json:"roles"`Usernamestring `json:"username"`}User type.
func (*User)UnmarshalJSON¶added inv8.7.1
typeUserAgentProcessor¶
type UserAgentProcessor struct {// Description Description of the processor.// Useful for describing the purpose of the processor or its configuration.Description *string `json:"description,omitempty"`// ExtractDeviceType Extracts device type from the user agent string on a best-effort basis.ExtractDeviceType *bool `json:"extract_device_type,omitempty"`// Field The field containing the user agent string.Fieldstring `json:"field"`// If Conditionally execute the processor.If *string `json:"if,omitempty"`// IgnoreFailure Ignore failures for the processor.IgnoreFailure *bool `json:"ignore_failure,omitempty"`// IgnoreMissing If `true` and `field` does not exist, the processor quietly exits without// modifying the document.IgnoreMissing *bool `json:"ignore_missing,omitempty"`// OnFailure Handle failures for the processor.OnFailure []ProcessorContainer `json:"on_failure,omitempty"`// Properties Controls what properties are added to `target_field`.Properties []useragentproperty.UserAgentProperty `json:"properties,omitempty"`// RegexFile The name of the file in the `config/ingest-user-agent` directory containing// the regular expressions for parsing the user agent string. Both the directory// and the file have to be created before starting Elasticsearch. If not// specified, ingest-user-agent will use the `regexes.yaml` from uap-core it// ships with.RegexFile *string `json:"regex_file,omitempty"`// Tag Identifier for the processor.// Useful for debugging and metrics.Tag *string `json:"tag,omitempty"`// TargetField The field that will be filled with the user agent details.TargetField *string `json:"target_field,omitempty"`}UserAgentProcessor type.
funcNewUserAgentProcessor¶added inv8.5.0
func NewUserAgentProcessor() *UserAgentProcessor
NewUserAgentProcessor returns a UserAgentProcessor.
func (*UserAgentProcessor)UnmarshalJSON¶added inv8.7.1
func (s *UserAgentProcessor) UnmarshalJSON(data []byte)error
typeUserIndicesPrivileges¶added inv8.5.0
type UserIndicesPrivileges struct {// AllowRestrictedIndices Set to `true` if using wildcard or regular expressions for patterns that// cover restricted indices. Implicitly, restricted indices have limited// privileges that can cause pattern tests to fail. If restricted indices are// explicitly included in the `names` list, Elasticsearch checks privileges// against these indices regardless of the value set for// `allow_restricted_indices`.AllowRestrictedIndicesbool `json:"allow_restricted_indices"`// FieldSecurity The document fields that the owners of the role have read access to.FieldSecurity []FieldSecurity `json:"field_security,omitempty"`// Names A list of indices (or index name patterns) to which the permissions in this// entry apply.Names []string `json:"names"`// Privileges The index level privileges that owners of the role have on the specified// indices.Privileges []indexprivilege.IndexPrivilege `json:"privileges"`// Query Search queries that define the documents the user has access to. A document// within the specified indices must match these queries for it to be accessible// by the owners of the role.Query []IndicesPrivilegesQuery `json:"query,omitempty"`}UserIndicesPrivileges type.
funcNewUserIndicesPrivileges¶added inv8.5.0
func NewUserIndicesPrivileges() *UserIndicesPrivileges
NewUserIndicesPrivileges returns a UserIndicesPrivileges.
func (*UserIndicesPrivileges)UnmarshalJSON¶added inv8.7.1
func (s *UserIndicesPrivileges) UnmarshalJSON(data []byte)error
typeUserProfile¶
type UserProfile struct {Data map[string]json.RawMessage `json:"data"`Enabled *bool `json:"enabled,omitempty"`Labels map[string]json.RawMessage `json:"labels"`Uidstring `json:"uid"`UserUserProfileUser `json:"user"`}UserProfile type.
funcNewUserProfile¶added inv8.5.0
func NewUserProfile() *UserProfile
NewUserProfile returns a UserProfile.
func (*UserProfile)UnmarshalJSON¶added inv8.7.1
func (s *UserProfile) UnmarshalJSON(data []byte)error
typeUserProfileHitMetadata¶
type UserProfileHitMetadata struct {PrimaryTerm_int64 `json:"_primary_term"`SeqNo_int64 `json:"_seq_no"`}UserProfileHitMetadata type.
funcNewUserProfileHitMetadata¶added inv8.5.0
func NewUserProfileHitMetadata() *UserProfileHitMetadata
NewUserProfileHitMetadata returns a UserProfileHitMetadata.
func (*UserProfileHitMetadata)UnmarshalJSON¶added inv8.7.1
func (s *UserProfileHitMetadata) UnmarshalJSON(data []byte)error
typeUserProfileUser¶
type UserProfileUser struct {Email *string `json:"email,omitempty"`FullName *string `json:"full_name,omitempty"`RealmDomain *string `json:"realm_domain,omitempty"`RealmNamestring `json:"realm_name"`Roles []string `json:"roles"`Usernamestring `json:"username"`}UserProfileUser type.
funcNewUserProfileUser¶added inv8.5.0
func NewUserProfileUser() *UserProfileUser
NewUserProfileUser returns a UserProfileUser.
func (*UserProfileUser)UnmarshalJSON¶added inv8.7.1
func (s *UserProfileUser) UnmarshalJSON(data []byte)error
typeUserProfileWithMetadata¶
type UserProfileWithMetadata struct {Data map[string]json.RawMessage `json:"data"`Doc_UserProfileHitMetadata `json:"_doc"`Enabled *bool `json:"enabled,omitempty"`Labels map[string]json.RawMessage `json:"labels"`LastSynchronizedint64 `json:"last_synchronized"`Uidstring `json:"uid"`UserUserProfileUser `json:"user"`}UserProfileWithMetadata type.
funcNewUserProfileWithMetadata¶added inv8.5.0
func NewUserProfileWithMetadata() *UserProfileWithMetadata
NewUserProfileWithMetadata returns a UserProfileWithMetadata.
func (*UserProfileWithMetadata)UnmarshalJSON¶added inv8.7.1
func (s *UserProfileWithMetadata) UnmarshalJSON(data []byte)error
typeUserQueryContainer¶added inv8.15.0
type UserQueryContainer struct {AdditionalUserQueryContainerProperty map[string]json.RawMessage `json:"-"`// Bool matches users matching boolean combinations of other queries.Bool *BoolQuery `json:"bool,omitempty"`// Exists Returns users that contain an indexed value for a field.Exists *ExistsQuery `json:"exists,omitempty"`// Ids Returns users based on their IDs.// This query uses the user document IDs stored in the `_id` field.Ids *IdsQuery `json:"ids,omitempty"`// Match Returns users that match a provided text, number, date or boolean value.// The provided text is analyzed before matching.Match map[string]MatchQuery `json:"match,omitempty"`// MatchAll Matches all users, giving them all a `_score` of 1.0.MatchAll *MatchAllQuery `json:"match_all,omitempty"`// Prefix Returns users that contain a specific prefix in a provided field.Prefix map[string]PrefixQuery `json:"prefix,omitempty"`// Range Returns users that contain terms within a provided range.Range map[string]RangeQuery `json:"range,omitempty"`// SimpleQueryString Returns users based on a provided query string, using a parser with a limited// but fault-tolerant syntax.SimpleQueryString *SimpleQueryStringQuery `json:"simple_query_string,omitempty"`// Term Returns users that contain an exact term in a provided field.// To return a document, the query term must exactly match the queried field's// value, including whitespace and capitalization.Term map[string]TermQuery `json:"term,omitempty"`// Terms Returns users that contain one or more exact terms in a provided field.// To return a document, one or more terms must exactly match a field value,// including whitespace and capitalization.Terms *TermsQuery `json:"terms,omitempty"`// Wildcard Returns users that contain terms matching a wildcard pattern.Wildcard map[string]WildcardQuery `json:"wildcard,omitempty"`}UserQueryContainer type.
funcNewUserQueryContainer¶added inv8.15.0
func NewUserQueryContainer() *UserQueryContainer
NewUserQueryContainer returns a UserQueryContainer.
func (UserQueryContainer)MarshalJSON¶added inv8.18.0
func (sUserQueryContainer) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
func (*UserQueryContainer)UnmarshalJSON¶added inv8.15.0
func (s *UserQueryContainer) UnmarshalJSON(data []byte)error
typeValidation¶added inv8.15.0
type Validationany
Validation holds the union for the following types:
LessThanValidationGreaterThanValidationListTypeValidationIncludedInValidationRegexValidation
typeValidationLoss¶
type ValidationLoss struct {// FoldValues Validation loss values for every added decision tree during the forest// growing procedure.FoldValues []string `json:"fold_values"`// LossType The type of the loss metric. For example, binomial_logistic.LossTypestring `json:"loss_type"`}ValidationLoss type.
funcNewValidationLoss¶added inv8.5.0
func NewValidationLoss() *ValidationLoss
NewValidationLoss returns a ValidationLoss.
func (*ValidationLoss)UnmarshalJSON¶added inv8.9.0
func (s *ValidationLoss) UnmarshalJSON(data []byte)error
typeValueCountAggregate¶
type ValueCountAggregate struct {MetaMetadata `json:"meta,omitempty"`// Value The metric value. A missing value generally means that there was no data to// aggregate,// unless specified otherwise.Value *Float64 `json:"value,omitempty"`ValueAsString *string `json:"value_as_string,omitempty"`}ValueCountAggregate type.
funcNewValueCountAggregate¶added inv8.5.0
func NewValueCountAggregate() *ValueCountAggregate
NewValueCountAggregate returns a ValueCountAggregate.
func (*ValueCountAggregate)UnmarshalJSON¶added inv8.7.1
func (s *ValueCountAggregate) UnmarshalJSON(data []byte)error
typeValueCountAggregation¶
type ValueCountAggregation struct {// Field The field on which to run the aggregation.Field *string `json:"field,omitempty"`Format *string `json:"format,omitempty"`// Missing The value to apply to documents that do not have a value.// By default, documents without a value are ignored.MissingMissing `json:"missing,omitempty"`Script *Script `json:"script,omitempty"`}ValueCountAggregation type.
funcNewValueCountAggregation¶added inv8.5.0
func NewValueCountAggregation() *ValueCountAggregation
NewValueCountAggregation returns a ValueCountAggregation.
func (*ValueCountAggregation)UnmarshalJSON¶added inv8.7.1
func (s *ValueCountAggregation) UnmarshalJSON(data []byte)error
typeVariableWidthHistogramAggregate¶
type VariableWidthHistogramAggregate struct {BucketsBucketsVariableWidthHistogramBucket `json:"buckets"`MetaMetadata `json:"meta,omitempty"`}VariableWidthHistogramAggregate type.
funcNewVariableWidthHistogramAggregate¶added inv8.5.0
func NewVariableWidthHistogramAggregate() *VariableWidthHistogramAggregate
NewVariableWidthHistogramAggregate returns a VariableWidthHistogramAggregate.
func (*VariableWidthHistogramAggregate)UnmarshalJSON¶added inv8.7.0
func (s *VariableWidthHistogramAggregate) UnmarshalJSON(data []byte)error
typeVariableWidthHistogramAggregation¶
type VariableWidthHistogramAggregation struct {// Buckets The target number of buckets.Buckets *int `json:"buckets,omitempty"`// Field The name of the field.Field *string `json:"field,omitempty"`// InitialBuffer Specifies the number of individual documents that will be stored in memory on// a shard before the initial bucketing algorithm is run.// Defaults to `min(10 * shard_size, 50000)`.InitialBuffer *int `json:"initial_buffer,omitempty"`Script *Script `json:"script,omitempty"`// ShardSize The number of buckets that the coordinating node will request from each// shard.// Defaults to `buckets * 50`.ShardSize *int `json:"shard_size,omitempty"`}VariableWidthHistogramAggregation type.
funcNewVariableWidthHistogramAggregation¶added inv8.5.0
func NewVariableWidthHistogramAggregation() *VariableWidthHistogramAggregation
NewVariableWidthHistogramAggregation returns a VariableWidthHistogramAggregation.
func (*VariableWidthHistogramAggregation)UnmarshalJSON¶added inv8.7.1
func (s *VariableWidthHistogramAggregation) UnmarshalJSON(data []byte)error
typeVariableWidthHistogramBucket¶
type VariableWidthHistogramBucket struct {Aggregations map[string]Aggregate `json:"-"`DocCountint64 `json:"doc_count"`KeyFloat64 `json:"key"`KeyAsString *string `json:"key_as_string,omitempty"`MaxFloat64 `json:"max"`MaxAsString *string `json:"max_as_string,omitempty"`MinFloat64 `json:"min"`MinAsString *string `json:"min_as_string,omitempty"`}VariableWidthHistogramBucket type.
funcNewVariableWidthHistogramBucket¶added inv8.5.0
func NewVariableWidthHistogramBucket() *VariableWidthHistogramBucket
NewVariableWidthHistogramBucket returns a VariableWidthHistogramBucket.
func (VariableWidthHistogramBucket)MarshalJSON¶
func (sVariableWidthHistogramBucket) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
func (*VariableWidthHistogramBucket)UnmarshalJSON¶added inv8.7.0
func (s *VariableWidthHistogramBucket) UnmarshalJSON(data []byte)error
typeVector¶
type Vector struct {Availablebool `json:"available"`DenseVectorDimsAvgCountint `json:"dense_vector_dims_avg_count"`DenseVectorFieldsCountint `json:"dense_vector_fields_count"`Enabledbool `json:"enabled"`SparseVectorFieldsCount *int `json:"sparse_vector_fields_count,omitempty"`}Vector type.
func (*Vector)UnmarshalJSON¶added inv8.7.1
typeVerifyIndex¶
type VerifyIndex struct {CheckIndexTimeDuration `json:"check_index_time,omitempty"`CheckIndexTimeInMillisint64 `json:"check_index_time_in_millis"`TotalTimeDuration `json:"total_time,omitempty"`TotalTimeInMillisint64 `json:"total_time_in_millis"`}VerifyIndex type.
funcNewVerifyIndex¶added inv8.5.0
func NewVerifyIndex() *VerifyIndex
NewVerifyIndex returns a VerifyIndex.
func (*VerifyIndex)UnmarshalJSON¶added inv8.7.1
func (s *VerifyIndex) UnmarshalJSON(data []byte)error
typeVersionProperty¶
type VersionProperty struct {CopyTo []string `json:"copy_to,omitempty"`DocValues *bool `json:"doc_values,omitempty"`Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`Fields map[string]Property `json:"fields,omitempty"`IgnoreAbove *int `json:"ignore_above,omitempty"`// Meta Metadata about the field.Meta map[string]string `json:"meta,omitempty"`Properties map[string]Property `json:"properties,omitempty"`Store *bool `json:"store,omitempty"`SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`Typestring `json:"type,omitempty"`}VersionProperty type.
funcNewVersionProperty¶added inv8.5.0
func NewVersionProperty() *VersionProperty
NewVersionProperty returns a VersionProperty.
func (VersionProperty)MarshalJSON¶added inv8.9.0
func (sVersionProperty) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*VersionProperty)UnmarshalJSON¶added inv8.7.0
func (s *VersionProperty) UnmarshalJSON(data []byte)error
typeVertex¶
type Vertex struct {Depthint64 `json:"depth"`Fieldstring `json:"field"`Termstring `json:"term"`WeightFloat64 `json:"weight"`}Vertex type.
func (*Vertex)UnmarshalJSON¶added inv8.7.1
typeVertexDefinition¶
type VertexDefinition struct {// Exclude Prevents the specified terms from being included in the results.Exclude []string `json:"exclude,omitempty"`// Field Identifies a field in the documents of interest.Fieldstring `json:"field"`// Include Identifies the terms of interest that form the starting points from which you// want to spider out.Include []VertexInclude `json:"include,omitempty"`// MinDocCount Specifies how many documents must contain a pair of terms before it is// considered to be a useful connection.// This setting acts as a certainty threshold.MinDocCount *int64 `json:"min_doc_count,omitempty"`// ShardMinDocCount Controls how many documents on a particular shard have to contain a pair of// terms before the connection is returned for global consideration.ShardMinDocCount *int64 `json:"shard_min_doc_count,omitempty"`// Size Specifies the maximum number of vertex terms returned for each field.Size *int `json:"size,omitempty"`}VertexDefinition type.
funcNewVertexDefinition¶added inv8.5.0
func NewVertexDefinition() *VertexDefinition
NewVertexDefinition returns a VertexDefinition.
func (*VertexDefinition)UnmarshalJSON¶added inv8.7.1
func (s *VertexDefinition) UnmarshalJSON(data []byte)error
typeVertexInclude¶
VertexInclude type.
funcNewVertexInclude¶added inv8.5.0
func NewVertexInclude() *VertexInclude
NewVertexInclude returns a VertexInclude.
func (*VertexInclude)UnmarshalJSON¶added inv8.7.1
func (s *VertexInclude) UnmarshalJSON(data []byte)error
typeVocabulary¶added inv8.7.0
type Vocabulary struct {Indexstring `json:"index"`}Vocabulary type.
func (*Vocabulary)UnmarshalJSON¶added inv8.7.1
func (s *Vocabulary) UnmarshalJSON(data []byte)error
typeVoyageAIServiceSettings¶added inv8.18.0
type VoyageAIServiceSettings struct {// Dimensions The number of dimensions for resulting output embeddings.// This setting maps to `output_dimension` in the VoyageAI documentation.// Only for the `text_embedding` task type.Dimensions *int `json:"dimensions,omitempty"`// EmbeddingType The data type for the embeddings to be returned.// This setting maps to `output_dtype` in the VoyageAI documentation.// Permitted values: float, int8, bit.// `int8` is a synonym of `byte` in the VoyageAI documentation.// `bit` is a synonym of `binary` in the VoyageAI documentation.// Only for the `text_embedding` task type.EmbeddingType *float32 `json:"embedding_type,omitempty"`// ModelId The name of the model to use for the inference task.// Refer to the VoyageAI documentation for the list of available text embedding// and rerank models.ModelIdstring `json:"model_id"`// RateLimit This setting helps to minimize the number of rate limit errors returned from// VoyageAI.// The `voyageai` service sets a default number of requests allowed per minute// depending on the task type.// For both `text_embedding` and `rerank`, it is set to `2000`.RateLimit *RateLimitSetting `json:"rate_limit,omitempty"`}VoyageAIServiceSettings type.
funcNewVoyageAIServiceSettings¶added inv8.18.0
func NewVoyageAIServiceSettings() *VoyageAIServiceSettings
NewVoyageAIServiceSettings returns a VoyageAIServiceSettings.
func (*VoyageAIServiceSettings)UnmarshalJSON¶added inv8.18.0
func (s *VoyageAIServiceSettings) UnmarshalJSON(data []byte)error
typeVoyageAITaskSettings¶added inv8.18.0
type VoyageAITaskSettings struct {// InputType Type of the input text.// Permitted values: `ingest` (maps to `document` in the VoyageAI// documentation), `search` (maps to `query` in the VoyageAI documentation).// Only for the `text_embedding` task type.InputType *string `json:"input_type,omitempty"`// ReturnDocuments Whether to return the source documents in the response.// Only for the `rerank` task type.ReturnDocuments *bool `json:"return_documents,omitempty"`// TopK The number of most relevant documents to return.// If not specified, the reranking results of all documents will be returned.// Only for the `rerank` task type.TopK *int `json:"top_k,omitempty"`// Truncation Whether to truncate the input texts to fit within the context length.Truncation *bool `json:"truncation,omitempty"`}VoyageAITaskSettings type.
funcNewVoyageAITaskSettings¶added inv8.18.0
func NewVoyageAITaskSettings() *VoyageAITaskSettings
NewVoyageAITaskSettings returns a VoyageAITaskSettings.
func (*VoyageAITaskSettings)UnmarshalJSON¶added inv8.18.0
func (s *VoyageAITaskSettings) UnmarshalJSON(data []byte)error
typeWaitForActiveShards¶
type WaitForActiveShardsany
WaitForActiveShards holds the union for the following types:
intwaitforactiveshardoptions.WaitForActiveShardOptions
typeWaitForNodes¶added inv8.18.0
type WaitForNodesany
WaitForNodes holds the union for the following types:
stringint
typeWaitForSnapshotAction¶added inv8.15.0
type WaitForSnapshotAction struct {Policystring `json:"policy"`}WaitForSnapshotAction type.
funcNewWaitForSnapshotAction¶added inv8.15.0
func NewWaitForSnapshotAction() *WaitForSnapshotAction
NewWaitForSnapshotAction returns a WaitForSnapshotAction.
func (*WaitForSnapshotAction)UnmarshalJSON¶added inv8.15.0
func (s *WaitForSnapshotAction) UnmarshalJSON(data []byte)error
typeWarmerStats¶
type WarmerStats struct {Currentint64 `json:"current"`Totalint64 `json:"total"`TotalTimeDuration `json:"total_time,omitempty"`TotalTimeInMillisint64 `json:"total_time_in_millis"`}WarmerStats type.
funcNewWarmerStats¶added inv8.5.0
func NewWarmerStats() *WarmerStats
NewWarmerStats returns a WarmerStats.
func (*WarmerStats)UnmarshalJSON¶added inv8.7.1
func (s *WarmerStats) UnmarshalJSON(data []byte)error
typeWatch¶
type Watch struct {Actions map[string]WatcherAction `json:"actions"`ConditionWatcherCondition `json:"condition"`InputWatcherInput `json:"input"`MetadataMetadata `json:"metadata,omitempty"`Status *WatchStatus `json:"status,omitempty"`ThrottlePeriodDuration `json:"throttle_period,omitempty"`ThrottlePeriodInMillis *int64 `json:"throttle_period_in_millis,omitempty"`Transform *TransformContainer `json:"transform,omitempty"`TriggerTriggerContainer `json:"trigger"`}Watch type.
func (*Watch)UnmarshalJSON¶added inv8.7.1
typeWatchRecord¶
type WatchRecord struct {ConditionWatcherCondition `json:"condition"`InputWatcherInput `json:"input"`Messages []string `json:"messages"`MetadataMetadata `json:"metadata,omitempty"`Nodestring `json:"node"`ResultExecutionResult `json:"result"`Stateexecutionstatus.ExecutionStatus `json:"state"`Status *WatchStatus `json:"status,omitempty"`TriggerEventTriggerEventResult `json:"trigger_event"`Userstring `json:"user"`WatchIdstring `json:"watch_id"`}WatchRecord type.
funcNewWatchRecord¶added inv8.5.0
func NewWatchRecord() *WatchRecord
NewWatchRecord returns a WatchRecord.
func (*WatchRecord)UnmarshalJSON¶added inv8.7.1
func (s *WatchRecord) UnmarshalJSON(data []byte)error
typeWatchRecordQueuedStats¶
type WatchRecordQueuedStats struct {// ExecutionTime The time the watch was run.// This is just before the input is being run.ExecutionTimeDateTime `json:"execution_time"`}WatchRecordQueuedStats type.
funcNewWatchRecordQueuedStats¶added inv8.5.0
func NewWatchRecordQueuedStats() *WatchRecordQueuedStats
NewWatchRecordQueuedStats returns a WatchRecordQueuedStats.
func (*WatchRecordQueuedStats)UnmarshalJSON¶added inv8.7.1
func (s *WatchRecordQueuedStats) UnmarshalJSON(data []byte)error
typeWatchRecordStats¶
type WatchRecordStats struct {ExecutedActions []string `json:"executed_actions,omitempty"`// ExecutionPhase The current watch execution phase.ExecutionPhaseexecutionphase.ExecutionPhase `json:"execution_phase"`// ExecutionTime The time the watch was run.// This is just before the input is being run.ExecutionTimeDateTime `json:"execution_time"`// TriggeredTime The time the watch was triggered by the trigger engine.TriggeredTimeDateTime `json:"triggered_time"`WatchIdstring `json:"watch_id"`// WatchRecordId The watch record identifier.WatchRecordIdstring `json:"watch_record_id"`}WatchRecordStats type.
funcNewWatchRecordStats¶added inv8.5.0
func NewWatchRecordStats() *WatchRecordStats
NewWatchRecordStats returns a WatchRecordStats.
func (*WatchRecordStats)UnmarshalJSON¶added inv8.7.1
func (s *WatchRecordStats) UnmarshalJSON(data []byte)error
typeWatchStatus¶
type WatchStatus struct {ActionsWatcherStatusActions `json:"actions"`ExecutionState *string `json:"execution_state,omitempty"`LastCheckedDateTime `json:"last_checked,omitempty"`LastMetConditionDateTime `json:"last_met_condition,omitempty"`StateActivationState `json:"state"`Versionint64 `json:"version"`}WatchStatus type.
funcNewWatchStatus¶added inv8.5.0
func NewWatchStatus() *WatchStatus
NewWatchStatus returns a WatchStatus.
func (*WatchStatus)UnmarshalJSON¶added inv8.7.1
func (s *WatchStatus) UnmarshalJSON(data []byte)error
typeWatcher¶
type Watcher struct {Availablebool `json:"available"`CountCounter `json:"count"`Enabledbool `json:"enabled"`ExecutionWatcherActions `json:"execution"`WatchWatcherWatch `json:"watch"`}Watcher type.
func (*Watcher)UnmarshalJSON¶added inv8.7.1
typeWatcherAction¶added inv8.5.0
type WatcherAction struct {ActionType *actiontype.ActionType `json:"action_type,omitempty"`Condition *WatcherCondition `json:"condition,omitempty"`Email *EmailAction `json:"email,omitempty"`Foreach *string `json:"foreach,omitempty"`Index *IndexAction `json:"index,omitempty"`Logging *LoggingAction `json:"logging,omitempty"`MaxIterations *int `json:"max_iterations,omitempty"`Name *string `json:"name,omitempty"`Pagerduty *PagerDutyAction `json:"pagerduty,omitempty"`Slack *SlackAction `json:"slack,omitempty"`ThrottlePeriodDuration `json:"throttle_period,omitempty"`ThrottlePeriodInMillis *int64 `json:"throttle_period_in_millis,omitempty"`Transform *TransformContainer `json:"transform,omitempty"`Webhook *WebhookAction `json:"webhook,omitempty"`}WatcherAction type.
funcNewWatcherAction¶added inv8.5.0
func NewWatcherAction() *WatcherAction
NewWatcherAction returns a WatcherAction.
func (*WatcherAction)UnmarshalJSON¶added inv8.7.1
func (s *WatcherAction) UnmarshalJSON(data []byte)error
typeWatcherActionTotals¶
type WatcherActionTotals struct {TotalDuration `json:"total"`TotalTimeInMsint64 `json:"total_time_in_ms"`}WatcherActionTotals type.
funcNewWatcherActionTotals¶added inv8.5.0
func NewWatcherActionTotals() *WatcherActionTotals
NewWatcherActionTotals returns a WatcherActionTotals.
func (*WatcherActionTotals)UnmarshalJSON¶added inv8.7.1
func (s *WatcherActionTotals) UnmarshalJSON(data []byte)error
typeWatcherActions¶
type WatcherActions struct {Actions map[string]WatcherActionTotals `json:"actions"`}WatcherActions type.
funcNewWatcherActions¶added inv8.5.0
func NewWatcherActions() *WatcherActions
NewWatcherActions returns a WatcherActions.
typeWatcherCondition¶added inv8.5.0
type WatcherCondition struct {AdditionalWatcherConditionProperty map[string]json.RawMessage `json:"-"`Always *AlwaysCondition `json:"always,omitempty"`ArrayCompare map[string]ArrayCompareCondition `json:"array_compare,omitempty"`Compare map[string]map[conditionop.ConditionOp]FieldValue `json:"compare,omitempty"`Never *NeverCondition `json:"never,omitempty"`Script *ScriptCondition `json:"script,omitempty"`}WatcherCondition type.
funcNewWatcherCondition¶added inv8.5.0
func NewWatcherCondition() *WatcherCondition
NewWatcherCondition returns a WatcherCondition.
func (WatcherCondition)MarshalJSON¶added inv8.18.0
func (sWatcherCondition) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
typeWatcherInput¶added inv8.5.0
type WatcherInput struct {AdditionalWatcherInputProperty map[string]json.RawMessage `json:"-"`Chain *ChainInput `json:"chain,omitempty"`Http *HttpInput `json:"http,omitempty"`Search *SearchInput `json:"search,omitempty"`Simple map[string]json.RawMessage `json:"simple,omitempty"`}WatcherInput type.
funcNewWatcherInput¶added inv8.5.0
func NewWatcherInput() *WatcherInput
NewWatcherInput returns a WatcherInput.
func (WatcherInput)MarshalJSON¶added inv8.18.0
func (sWatcherInput) MarshalJSON() ([]byte,error)
MarhsalJSON overrides marshalling for types with additional properties
typeWatcherNodeStats¶
type WatcherNodeStats struct {// CurrentWatches The current executing watches metric gives insight into the watches that are// currently being executed by Watcher.// Additional information is shared per watch that is currently executing.// This information includes the `watch_id`, the time its execution started and// its current execution phase.// To include this metric, the `metric` option should be set to// `current_watches` or `_all`.// In addition you can also specify the `emit_stacktraces=true` parameter, which// adds stack traces for each watch that is being run.// These stack traces can give you more insight into an execution of a watch.CurrentWatches []WatchRecordStats `json:"current_watches,omitempty"`ExecutionThreadPoolExecutionThreadPool `json:"execution_thread_pool"`NodeIdstring `json:"node_id"`// QueuedWatches Watcher moderates the execution of watches such that their execution won't// put too much pressure on the node and its resources.// If too many watches trigger concurrently and there isn't enough capacity to// run them all, some of the watches are queued, waiting for the current running// watches to finish.s// The queued watches metric gives insight on these queued watches.//// To include this metric, the `metric` option should include `queued_watches`// or `_all`.QueuedWatches []WatchRecordQueuedStats `json:"queued_watches,omitempty"`// WatchCount The number of watches currently registered.WatchCountint64 `json:"watch_count"`// WatcherState The current state of Watcher.WatcherStatewatcherstate.WatcherState `json:"watcher_state"`}WatcherNodeStats type.
funcNewWatcherNodeStats¶added inv8.5.0
func NewWatcherNodeStats() *WatcherNodeStats
NewWatcherNodeStats returns a WatcherNodeStats.
func (*WatcherNodeStats)UnmarshalJSON¶added inv8.7.1
func (s *WatcherNodeStats) UnmarshalJSON(data []byte)error
typeWatcherStatusActions¶added inv8.5.0
type WatcherStatusActions map[string]ActionStatus
WatcherStatusActions type alias.
typeWatcherWatch¶
type WatcherWatch struct {Action map[string]Counter `json:"action,omitempty"`Condition map[string]Counter `json:"condition,omitempty"`Input map[string]Counter `json:"input"`TriggerWatcherWatchTrigger `json:"trigger"`}WatcherWatch type.
funcNewWatcherWatch¶added inv8.5.0
func NewWatcherWatch() *WatcherWatch
NewWatcherWatch returns a WatcherWatch.
typeWatcherWatchTrigger¶
type WatcherWatchTrigger struct {All_Counter `json:"_all"`Schedule *WatcherWatchTriggerSchedule `json:"schedule,omitempty"`}WatcherWatchTrigger type.
funcNewWatcherWatchTrigger¶added inv8.5.0
func NewWatcherWatchTrigger() *WatcherWatchTrigger
NewWatcherWatchTrigger returns a WatcherWatchTrigger.
typeWatcherWatchTriggerSchedule¶
type WatcherWatchTriggerSchedule struct {Activeint64 `json:"active"`All_Counter `json:"_all"`CronCounter `json:"cron"`Totalint64 `json:"total"`}WatcherWatchTriggerSchedule type.
funcNewWatcherWatchTriggerSchedule¶added inv8.5.0
func NewWatcherWatchTriggerSchedule() *WatcherWatchTriggerSchedule
NewWatcherWatchTriggerSchedule returns a WatcherWatchTriggerSchedule.
func (*WatcherWatchTriggerSchedule)UnmarshalJSON¶added inv8.7.1
func (s *WatcherWatchTriggerSchedule) UnmarshalJSON(data []byte)error
typeWatsonxServiceSettings¶added inv8.18.0
type WatsonxServiceSettings struct {// ApiKey A valid API key of your Watsonx account.// You can find your Watsonx API keys or you can create a new one on the API// keys page.//// IMPORTANT: You need to provide the API key only once, during the inference// model creation.// The get inference endpoint API does not retrieve your API key.// After creating the inference model, you cannot change the associated API key.// If you want to use a different API key, delete the inference model and// recreate it with the same name and the updated API key.ApiKeystring `json:"api_key"`// ApiVersion A version parameter that takes a version date in the format of `YYYY-MM-DD`.// For the active version data parameters, refer to the Wastonx documentation.ApiVersionstring `json:"api_version"`// ModelId The name of the model to use for the inference task.// Refer to the IBM Embedding Models section in the Watsonx documentation for// the list of available text embedding models.ModelIdstring `json:"model_id"`// ProjectId The identifier of the IBM Cloud project to use for the inference task.ProjectIdstring `json:"project_id"`// RateLimit This setting helps to minimize the number of rate limit errors returned from// Watsonx.// By default, the `watsonxai` service sets the number of requests allowed per// minute to 120.RateLimit *RateLimitSetting `json:"rate_limit,omitempty"`// Url The URL of the inference endpoint that you created on Watsonx.Urlstring `json:"url"`}WatsonxServiceSettings type.
funcNewWatsonxServiceSettings¶added inv8.18.0
func NewWatsonxServiceSettings() *WatsonxServiceSettings
NewWatsonxServiceSettings returns a WatsonxServiceSettings.
func (*WatsonxServiceSettings)UnmarshalJSON¶added inv8.18.0
func (s *WatsonxServiceSettings) UnmarshalJSON(data []byte)error
typeWebhookAction¶
type WebhookAction struct {Auth *HttpInputAuthentication `json:"auth,omitempty"`Body *string `json:"body,omitempty"`ConnectionTimeoutDuration `json:"connection_timeout,omitempty"`Headers map[string]string `json:"headers,omitempty"`Host *string `json:"host,omitempty"`Method *httpinputmethod.HttpInputMethod `json:"method,omitempty"`Params map[string]string `json:"params,omitempty"`Path *string `json:"path,omitempty"`Port *uint `json:"port,omitempty"`Proxy *HttpInputProxy `json:"proxy,omitempty"`ReadTimeoutDuration `json:"read_timeout,omitempty"`Scheme *connectionscheme.ConnectionScheme `json:"scheme,omitempty"`Url *string `json:"url,omitempty"`}WebhookAction type.
funcNewWebhookAction¶added inv8.5.0
func NewWebhookAction() *WebhookAction
NewWebhookAction returns a WebhookAction.
func (*WebhookAction)UnmarshalJSON¶added inv8.7.1
func (s *WebhookAction) UnmarshalJSON(data []byte)error
typeWebhookResult¶
type WebhookResult struct {RequestHttpInputRequestResult `json:"request"`Response *HttpInputResponseResult `json:"response,omitempty"`}WebhookResult type.
funcNewWebhookResult¶added inv8.5.0
func NewWebhookResult() *WebhookResult
NewWebhookResult returns a WebhookResult.
typeWeightedAverageAggregation¶
type WeightedAverageAggregation struct {// Format A numeric response formatter.Format *string `json:"format,omitempty"`// Value Configuration for the field that provides the values.Value *WeightedAverageValue `json:"value,omitempty"`ValueType *valuetype.ValueType `json:"value_type,omitempty"`// Weight Configuration for the field or script that provides the weights.Weight *WeightedAverageValue `json:"weight,omitempty"`}WeightedAverageAggregation type.
funcNewWeightedAverageAggregation¶added inv8.5.0
func NewWeightedAverageAggregation() *WeightedAverageAggregation
NewWeightedAverageAggregation returns a WeightedAverageAggregation.
func (*WeightedAverageAggregation)UnmarshalJSON¶added inv8.7.1
func (s *WeightedAverageAggregation) UnmarshalJSON(data []byte)error
typeWeightedAverageValue¶
type WeightedAverageValue struct {// Field The field from which to extract the values or weights.Field *string `json:"field,omitempty"`// Missing A value or weight to use if the field is missing.Missing *Float64 `json:"missing,omitempty"`Script *Script `json:"script,omitempty"`}WeightedAverageValue type.
funcNewWeightedAverageValue¶added inv8.5.0
func NewWeightedAverageValue() *WeightedAverageValue
NewWeightedAverageValue returns a WeightedAverageValue.
func (*WeightedAverageValue)UnmarshalJSON¶added inv8.7.1
func (s *WeightedAverageValue) UnmarshalJSON(data []byte)error
typeWeightedAvgAggregate¶
type WeightedAvgAggregate struct {MetaMetadata `json:"meta,omitempty"`// Value The metric value. A missing value generally means that there was no data to// aggregate,// unless specified otherwise.Value *Float64 `json:"value,omitempty"`ValueAsString *string `json:"value_as_string,omitempty"`}WeightedAvgAggregate type.
funcNewWeightedAvgAggregate¶added inv8.5.0
func NewWeightedAvgAggregate() *WeightedAvgAggregate
NewWeightedAvgAggregate returns a WeightedAvgAggregate.
func (*WeightedAvgAggregate)UnmarshalJSON¶added inv8.7.1
func (s *WeightedAvgAggregate) UnmarshalJSON(data []byte)error
typeWeightedTokensQuery¶added inv8.13.0
type WeightedTokensQuery struct {// Boost Floating point number used to decrease or increase the relevance scores of// the query.// Boost values are relative to the default value of 1.0.// A boost value between 0 and 1.0 decreases the relevance score.// A value greater than 1.0 increases the relevance score.Boost *float32 `json:"boost,omitempty"`// PruningConfig Token pruning configurationsPruningConfig *TokenPruningConfig `json:"pruning_config,omitempty"`QueryName_ *string `json:"_name,omitempty"`// Tokens The tokens representing this queryTokens map[string]float32 `json:"tokens"`}WeightedTokensQuery type.
funcNewWeightedTokensQuery¶added inv8.13.0
func NewWeightedTokensQuery() *WeightedTokensQuery
NewWeightedTokensQuery returns a WeightedTokensQuery.
func (*WeightedTokensQuery)UnmarshalJSON¶added inv8.13.0
func (s *WeightedTokensQuery) UnmarshalJSON(data []byte)error
typeWeights¶
type Weights struct {WeightsFloat64 `json:"weights"`}Weights type.
func (*Weights)UnmarshalJSON¶added inv8.7.1
typeWhitespaceAnalyzer¶
type WhitespaceAnalyzer struct {Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}WhitespaceAnalyzer type.
funcNewWhitespaceAnalyzer¶added inv8.5.0
func NewWhitespaceAnalyzer() *WhitespaceAnalyzer
NewWhitespaceAnalyzer returns a WhitespaceAnalyzer.
func (WhitespaceAnalyzer)MarshalJSON¶added inv8.9.0
func (sWhitespaceAnalyzer) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*WhitespaceAnalyzer)UnmarshalJSON¶added inv8.7.1
func (s *WhitespaceAnalyzer) UnmarshalJSON(data []byte)error
typeWhitespaceTokenizer¶
type WhitespaceTokenizer struct {MaxTokenLength *int `json:"max_token_length,omitempty"`Typestring `json:"type,omitempty"`Version *string `json:"version,omitempty"`}WhitespaceTokenizer type.
funcNewWhitespaceTokenizer¶added inv8.5.0
func NewWhitespaceTokenizer() *WhitespaceTokenizer
NewWhitespaceTokenizer returns a WhitespaceTokenizer.
func (WhitespaceTokenizer)MarshalJSON¶added inv8.9.0
func (sWhitespaceTokenizer) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*WhitespaceTokenizer)UnmarshalJSON¶added inv8.7.1
func (s *WhitespaceTokenizer) UnmarshalJSON(data []byte)error
typeWildcardProperty¶
type WildcardProperty struct {CopyTo []string `json:"copy_to,omitempty"`DocValues *bool `json:"doc_values,omitempty"`Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`Fields map[string]Property `json:"fields,omitempty"`IgnoreAbove *int `json:"ignore_above,omitempty"`// Meta Metadata about the field.Meta map[string]string `json:"meta,omitempty"`NullValue *string `json:"null_value,omitempty"`Properties map[string]Property `json:"properties,omitempty"`Store *bool `json:"store,omitempty"`SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`Typestring `json:"type,omitempty"`}WildcardProperty type.
funcNewWildcardProperty¶added inv8.5.0
func NewWildcardProperty() *WildcardProperty
NewWildcardProperty returns a WildcardProperty.
func (WildcardProperty)MarshalJSON¶added inv8.9.0
func (sWildcardProperty) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*WildcardProperty)UnmarshalJSON¶added inv8.7.0
func (s *WildcardProperty) UnmarshalJSON(data []byte)error
typeWildcardQuery¶
type WildcardQuery struct {// Boost Floating point number used to decrease or increase the relevance scores of// the query.// Boost values are relative to the default value of 1.0.// A boost value between 0 and 1.0 decreases the relevance score.// A value greater than 1.0 increases the relevance score.Boost *float32 `json:"boost,omitempty"`// CaseInsensitive Allows case insensitive matching of the pattern with the indexed field values// when set to true. Default is false which means the case sensitivity of// matching depends on the underlying field’s mapping.CaseInsensitive *bool `json:"case_insensitive,omitempty"`QueryName_ *string `json:"_name,omitempty"`// Rewrite Method used to rewrite the query.Rewrite *string `json:"rewrite,omitempty"`// Value Wildcard pattern for terms you wish to find in the provided field. Required,// when wildcard is not set.Value *string `json:"value,omitempty"`// Wildcard Wildcard pattern for terms you wish to find in the provided field. Required,// when value is not set.Wildcard *string `json:"wildcard,omitempty"`}WildcardQuery type.
funcNewWildcardQuery¶added inv8.5.0
func NewWildcardQuery() *WildcardQuery
NewWildcardQuery returns a WildcardQuery.
func (*WildcardQuery)UnmarshalJSON¶added inv8.7.1
func (s *WildcardQuery) UnmarshalJSON(data []byte)error
typeWktGeoBounds¶
type WktGeoBounds struct {Wktstring `json:"wkt"`}WktGeoBounds type.
funcNewWktGeoBounds¶added inv8.5.0
func NewWktGeoBounds() *WktGeoBounds
NewWktGeoBounds returns a WktGeoBounds.
func (*WktGeoBounds)UnmarshalJSON¶added inv8.9.0
func (s *WktGeoBounds) UnmarshalJSON(data []byte)error
typeWordDelimiterGraphTokenFilter¶
type WordDelimiterGraphTokenFilter struct {// AdjustOffsets If `true`, the filter adjusts the offsets of split or catenated tokens to// better reflect their actual position in the token stream. Defaults to `true`.AdjustOffsets *bool `json:"adjust_offsets,omitempty"`// CatenateAll If `true`, the filter produces catenated tokens for chains of alphanumeric// characters separated by non-alphabetic delimiters. Defaults to `false`.CatenateAll *bool `json:"catenate_all,omitempty"`// CatenateNumbers If `true`, the filter produces catenated tokens for chains of numeric// characters separated by non-alphabetic delimiters. Defaults to `false`.CatenateNumbers *bool `json:"catenate_numbers,omitempty"`// CatenateWords If `true`, the filter produces catenated tokens for chains of alphabetical// characters separated by non-alphabetic delimiters. Defaults to `false`.CatenateWords *bool `json:"catenate_words,omitempty"`// GenerateNumberParts If `true`, the filter includes tokens consisting of only numeric characters// in the output. If `false`, the filter excludes these tokens from the output.// Defaults to `true`.GenerateNumberParts *bool `json:"generate_number_parts,omitempty"`// GenerateWordParts If `true`, the filter includes tokens consisting of only alphabetical// characters in the output. If `false`, the filter excludes these tokens from// the output. Defaults to `true`.GenerateWordParts *bool `json:"generate_word_parts,omitempty"`// IgnoreKeywords If `true`, the filter skips tokens with a keyword attribute of true. Defaults// to `false`.IgnoreKeywords *bool `json:"ignore_keywords,omitempty"`// PreserveOriginal If `true`, the filter includes the original version of any split tokens in// the output. This original version includes non-alphanumeric delimiters.// Defaults to `false`.PreserveOriginalStringifiedboolean `json:"preserve_original,omitempty"`// ProtectedWords Array of tokens the filter won’t split.ProtectedWords []string `json:"protected_words,omitempty"`// ProtectedWordsPath Path to a file that contains a list of tokens the filter won’t split.// This path must be absolute or relative to the `config` location, and the file// must be UTF-8 encoded. Each token in the file must be separated by a line// break.ProtectedWordsPath *string `json:"protected_words_path,omitempty"`// SplitOnCaseChange If `true`, the filter splits tokens at letter case transitions. For example:// camelCase -> [ camel, Case ]. Defaults to `true`.SplitOnCaseChange *bool `json:"split_on_case_change,omitempty"`// SplitOnNumerics If `true`, the filter splits tokens at letter-number transitions. For// example: j2se -> [ j, 2, se ]. Defaults to `true`.SplitOnNumerics *bool `json:"split_on_numerics,omitempty"`// StemEnglishPossessive If `true`, the filter removes the English possessive (`'s`) from the end of// each token. For example: O'Neil's -> [ O, Neil ]. Defaults to `true`.StemEnglishPossessive *bool `json:"stem_english_possessive,omitempty"`Typestring `json:"type,omitempty"`// TypeTable Array of custom type mappings for characters. This allows you to map// non-alphanumeric characters as numeric or alphanumeric to avoid splitting on// those characters.TypeTable []string `json:"type_table,omitempty"`// TypeTablePath Path to a file that contains custom type mappings for characters. This allows// you to map non-alphanumeric characters as numeric or alphanumeric to avoid// splitting on those characters.TypeTablePath *string `json:"type_table_path,omitempty"`Version *string `json:"version,omitempty"`}WordDelimiterGraphTokenFilter type.
funcNewWordDelimiterGraphTokenFilter¶added inv8.5.0
func NewWordDelimiterGraphTokenFilter() *WordDelimiterGraphTokenFilter
NewWordDelimiterGraphTokenFilter returns a WordDelimiterGraphTokenFilter.
func (WordDelimiterGraphTokenFilter)MarshalJSON¶added inv8.9.0
func (sWordDelimiterGraphTokenFilter) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*WordDelimiterGraphTokenFilter)UnmarshalJSON¶added inv8.7.1
func (s *WordDelimiterGraphTokenFilter) UnmarshalJSON(data []byte)error
typeWordDelimiterTokenFilter¶
type WordDelimiterTokenFilter struct {// CatenateAll If `true`, the filter produces catenated tokens for chains of alphanumeric// characters separated by non-alphabetic delimiters. Defaults to `false`.CatenateAll *bool `json:"catenate_all,omitempty"`// CatenateNumbers If `true`, the filter produces catenated tokens for chains of numeric// characters separated by non-alphabetic delimiters. Defaults to `false`.CatenateNumbers *bool `json:"catenate_numbers,omitempty"`// CatenateWords If `true`, the filter produces catenated tokens for chains of alphabetical// characters separated by non-alphabetic delimiters. Defaults to `false`.CatenateWords *bool `json:"catenate_words,omitempty"`// GenerateNumberParts If `true`, the filter includes tokens consisting of only numeric characters// in the output. If `false`, the filter excludes these tokens from the output.// Defaults to `true`.GenerateNumberParts *bool `json:"generate_number_parts,omitempty"`// GenerateWordParts If `true`, the filter includes tokens consisting of only alphabetical// characters in the output. If `false`, the filter excludes these tokens from// the output. Defaults to `true`.GenerateWordParts *bool `json:"generate_word_parts,omitempty"`// PreserveOriginal If `true`, the filter includes the original version of any split tokens in// the output. This original version includes non-alphanumeric delimiters.// Defaults to `false`.PreserveOriginalStringifiedboolean `json:"preserve_original,omitempty"`// ProtectedWords Array of tokens the filter won’t split.ProtectedWords []string `json:"protected_words,omitempty"`// ProtectedWordsPath Path to a file that contains a list of tokens the filter won’t split.// This path must be absolute or relative to the `config` location, and the file// must be UTF-8 encoded. Each token in the file must be separated by a line// break.ProtectedWordsPath *string `json:"protected_words_path,omitempty"`// SplitOnCaseChange If `true`, the filter splits tokens at letter case transitions. For example:// camelCase -> [ camel, Case ]. Defaults to `true`.SplitOnCaseChange *bool `json:"split_on_case_change,omitempty"`// SplitOnNumerics If `true`, the filter splits tokens at letter-number transitions. For// example: j2se -> [ j, 2, se ]. Defaults to `true`.SplitOnNumerics *bool `json:"split_on_numerics,omitempty"`// StemEnglishPossessive If `true`, the filter removes the English possessive (`'s`) from the end of// each token. For example: O'Neil's -> [ O, Neil ]. Defaults to `true`.StemEnglishPossessive *bool `json:"stem_english_possessive,omitempty"`Typestring `json:"type,omitempty"`// TypeTable Array of custom type mappings for characters. This allows you to map// non-alphanumeric characters as numeric or alphanumeric to avoid splitting on// those characters.TypeTable []string `json:"type_table,omitempty"`// TypeTablePath Path to a file that contains custom type mappings for characters. This allows// you to map non-alphanumeric characters as numeric or alphanumeric to avoid// splitting on those characters.TypeTablePath *string `json:"type_table_path,omitempty"`Version *string `json:"version,omitempty"`}WordDelimiterTokenFilter type.
funcNewWordDelimiterTokenFilter¶added inv8.5.0
func NewWordDelimiterTokenFilter() *WordDelimiterTokenFilter
NewWordDelimiterTokenFilter returns a WordDelimiterTokenFilter.
func (WordDelimiterTokenFilter)MarshalJSON¶added inv8.9.0
func (sWordDelimiterTokenFilter) MarshalJSON() ([]byte,error)
MarshalJSON override marshalling to include literal value
func (*WordDelimiterTokenFilter)UnmarshalJSON¶added inv8.7.1
func (s *WordDelimiterTokenFilter) UnmarshalJSON(data []byte)error
typeWrapperQuery¶
type WrapperQuery struct {// Boost Floating point number used to decrease or increase the relevance scores of// the query.// Boost values are relative to the default value of 1.0.// A boost value between 0 and 1.0 decreases the relevance score.// A value greater than 1.0 increases the relevance score.Boost *float32 `json:"boost,omitempty"`// Query A base64 encoded query.// The binary data format can be any of JSON, YAML, CBOR or SMILE encodingsQuerystring `json:"query"`QueryName_ *string `json:"_name,omitempty"`}WrapperQuery type.
funcNewWrapperQuery¶added inv8.5.0
func NewWrapperQuery() *WrapperQuery
NewWrapperQuery returns a WrapperQuery.
func (*WrapperQuery)UnmarshalJSON¶added inv8.7.1
func (s *WrapperQuery) UnmarshalJSON(data []byte)error
typeWriteResponseBase¶
type WriteResponseBase struct {ForcedRefresh *bool `json:"forced_refresh,omitempty"`// Id_ The unique identifier for the added document.Id_string `json:"_id"`// Index_ The name of the index the document was added to.Index_string `json:"_index"`// PrimaryTerm_ The primary term assigned to the document for the indexing operation.PrimaryTerm_ *int64 `json:"_primary_term,omitempty"`// Result The result of the indexing operation: `created` or `updated`.Resultresult.Result `json:"result"`// SeqNo_ The sequence number assigned to the document for the indexing operation.// Sequence numbers are used to ensure an older version of a document doesn't// overwrite a newer version.SeqNo_ *int64 `json:"_seq_no,omitempty"`// Shards_ Information about the replication process of the operation.Shards_ShardStatistics `json:"_shards"`// Version_ The document version, which is incremented each time the document is updated.Version_int64 `json:"_version"`}WriteResponseBase type.
funcNewWriteResponseBase¶added inv8.19.0
func NewWriteResponseBase() *WriteResponseBase
NewWriteResponseBase returns a WriteResponseBase.
func (*WriteResponseBase)UnmarshalJSON¶added inv8.19.0
func (s *WriteResponseBase) UnmarshalJSON(data []byte)error
typeWriteSummaryInfo¶added inv8.18.0
type WriteSummaryInfo struct {// Count The number of write operations performed in the test.Countint `json:"count"`// TotalElapsed The total elapsed time spent on writing blobs in the test.TotalElapsedDuration `json:"total_elapsed"`// TotalElapsedNanos The total elapsed time spent on writing blobs in the test, in nanoseconds.TotalElapsedNanosint64 `json:"total_elapsed_nanos"`// TotalSize The total size of all the blobs written in the test.TotalSizeByteSize `json:"total_size"`// TotalSizeBytes The total size of all the blobs written in the test, in bytes.TotalSizeBytesint64 `json:"total_size_bytes"`// TotalThrottled The total time spent waiting due to the `max_snapshot_bytes_per_sec`// throttle.TotalThrottledDuration `json:"total_throttled"`// TotalThrottledNanos The total time spent waiting due to the `max_snapshot_bytes_per_sec`// throttle, in nanoseconds.TotalThrottledNanosint64 `json:"total_throttled_nanos"`}WriteSummaryInfo type.
funcNewWriteSummaryInfo¶added inv8.18.0
func NewWriteSummaryInfo() *WriteSummaryInfo
NewWriteSummaryInfo returns a WriteSummaryInfo.
func (*WriteSummaryInfo)UnmarshalJSON¶added inv8.18.0
func (s *WriteSummaryInfo) UnmarshalJSON(data []byte)error
typeXlmRobertaTokenizationConfig¶added inv8.18.0
type XlmRobertaTokenizationConfig struct {// DoLowerCase Should the tokenizer lower case the textDoLowerCase *bool `json:"do_lower_case,omitempty"`// MaxSequenceLength Maximum input sequence length for the modelMaxSequenceLength *int `json:"max_sequence_length,omitempty"`// Span Tokenization spanning options. Special value of -1 indicates no spanning// takes placeSpan *int `json:"span,omitempty"`// Truncate Should tokenization input be automatically truncated before sending to the// model for inferenceTruncate *tokenizationtruncate.TokenizationTruncate `json:"truncate,omitempty"`// WithSpecialTokens Is tokenization completed with special tokensWithSpecialTokens *bool `json:"with_special_tokens,omitempty"`}XlmRobertaTokenizationConfig type.
funcNewXlmRobertaTokenizationConfig¶added inv8.18.0
func NewXlmRobertaTokenizationConfig() *XlmRobertaTokenizationConfig
NewXlmRobertaTokenizationConfig returns a XlmRobertaTokenizationConfig.
func (*XlmRobertaTokenizationConfig)UnmarshalJSON¶added inv8.18.0
func (s *XlmRobertaTokenizationConfig) UnmarshalJSON(data []byte)error
typeXpackDatafeed¶added inv8.5.0
type XpackDatafeed struct {Countint64 `json:"count"`}XpackDatafeed type.
funcNewXpackDatafeed¶added inv8.5.0
func NewXpackDatafeed() *XpackDatafeed
NewXpackDatafeed returns a XpackDatafeed.
func (*XpackDatafeed)UnmarshalJSON¶added inv8.7.1
func (s *XpackDatafeed) UnmarshalJSON(data []byte)error
typeXpackFeature¶added inv8.5.0
type XpackFeature struct {Availablebool `json:"available"`Description *string `json:"description,omitempty"`Enabledbool `json:"enabled"`NativeCodeInfo *NativeCodeInformation `json:"native_code_info,omitempty"`}XpackFeature type.
funcNewXpackFeature¶added inv8.5.0
func NewXpackFeature() *XpackFeature
NewXpackFeature returns a XpackFeature.
func (*XpackFeature)UnmarshalJSON¶added inv8.7.1
func (s *XpackFeature) UnmarshalJSON(data []byte)error
typeXpackFeatures¶added inv8.7.0
type XpackFeatures struct {AggregateMetricXpackFeature `json:"aggregate_metric"`AnalyticsXpackFeature `json:"analytics"`ArchiveXpackFeature `json:"archive"`CcrXpackFeature `json:"ccr"`DataStreamsXpackFeature `json:"data_streams"`DataTiersXpackFeature `json:"data_tiers"`EnrichXpackFeature `json:"enrich"`EnterpriseSearchXpackFeature `json:"enterprise_search"`EqlXpackFeature `json:"eql"`EsqlXpackFeature `json:"esql"`FrozenIndicesXpackFeature `json:"frozen_indices"`GraphXpackFeature `json:"graph"`IlmXpackFeature `json:"ilm"`LogsdbXpackFeature `json:"logsdb"`LogstashXpackFeature `json:"logstash"`MlXpackFeature `json:"ml"`MonitoringXpackFeature `json:"monitoring"`RollupXpackFeature `json:"rollup"`RuntimeFields *XpackFeature `json:"runtime_fields,omitempty"`SearchableSnapshotsXpackFeature `json:"searchable_snapshots"`SecurityXpackFeature `json:"security"`SlmXpackFeature `json:"slm"`SpatialXpackFeature `json:"spatial"`SqlXpackFeature `json:"sql"`TransformXpackFeature `json:"transform"`UniversalProfilingXpackFeature `json:"universal_profiling"`VotingOnlyXpackFeature `json:"voting_only"`WatcherXpackFeature `json:"watcher"`}XpackFeatures type.
funcNewXpackFeatures¶added inv8.7.0
func NewXpackFeatures() *XpackFeatures
NewXpackFeatures returns a XpackFeatures.
typeXpackQuery¶added inv8.5.0
type XpackQuery struct {Count *int `json:"count,omitempty"`Failed *int `json:"failed,omitempty"`Paging *int `json:"paging,omitempty"`Total *int `json:"total,omitempty"`}XpackQuery type.
func (*XpackQuery)UnmarshalJSON¶added inv8.7.1
func (s *XpackQuery) UnmarshalJSON(data []byte)error
typeXpackRealm¶added inv8.5.0
type XpackRealm struct {Availablebool `json:"available"`Cache []RealmCache `json:"cache,omitempty"`Enabledbool `json:"enabled"`HasAuthorizationRealms []bool `json:"has_authorization_realms,omitempty"`HasDefaultUsernamePattern []bool `json:"has_default_username_pattern,omitempty"`HasTruststore []bool `json:"has_truststore,omitempty"`IsAuthenticationDelegated []bool `json:"is_authentication_delegated,omitempty"`Name []string `json:"name,omitempty"`Order []int64 `json:"order,omitempty"`Size []int64 `json:"size,omitempty"`}XpackRealm type.
func (*XpackRealm)UnmarshalJSON¶added inv8.7.1
func (s *XpackRealm) UnmarshalJSON(data []byte)error
typeXpackRoleMapping¶added inv8.5.0
XpackRoleMapping type.
funcNewXpackRoleMapping¶added inv8.5.0
func NewXpackRoleMapping() *XpackRoleMapping
NewXpackRoleMapping returns a XpackRoleMapping.
func (*XpackRoleMapping)UnmarshalJSON¶added inv8.7.1
func (s *XpackRoleMapping) UnmarshalJSON(data []byte)error
typeXpackRuntimeFieldTypes¶added inv8.5.0
type XpackRuntimeFieldTypes struct {Availablebool `json:"available"`Enabledbool `json:"enabled"`FieldTypes []RuntimeFieldsType `json:"field_types"`}XpackRuntimeFieldTypes type.
funcNewXpackRuntimeFieldTypes¶added inv8.5.0
func NewXpackRuntimeFieldTypes() *XpackRuntimeFieldTypes
NewXpackRuntimeFieldTypes returns a XpackRuntimeFieldTypes.
func (*XpackRuntimeFieldTypes)UnmarshalJSON¶added inv8.7.1
func (s *XpackRuntimeFieldTypes) UnmarshalJSON(data []byte)error
typeZeroShotClassificationInferenceOptions¶
type ZeroShotClassificationInferenceOptions struct {// ClassificationLabels The zero shot classification labels indicating entailment, neutral, and// contradiction// Must contain exactly and only entailment, neutral, and contradictionClassificationLabels []string `json:"classification_labels"`// HypothesisTemplate Hypothesis template used when tokenizing labels for predictionHypothesisTemplate *string `json:"hypothesis_template,omitempty"`// Labels The labels to predict.Labels []string `json:"labels,omitempty"`// MultiLabel Indicates if more than one true label exists.MultiLabel *bool `json:"multi_label,omitempty"`// ResultsField The field that is added to incoming documents to contain the inference// prediction. Defaults to predicted_value.ResultsField *string `json:"results_field,omitempty"`// Tokenization The tokenization options to update when inferringTokenization *TokenizationConfigContainer `json:"tokenization,omitempty"`}ZeroShotClassificationInferenceOptions type.
funcNewZeroShotClassificationInferenceOptions¶added inv8.5.0
func NewZeroShotClassificationInferenceOptions() *ZeroShotClassificationInferenceOptions
NewZeroShotClassificationInferenceOptions returns a ZeroShotClassificationInferenceOptions.
func (*ZeroShotClassificationInferenceOptions)UnmarshalJSON¶added inv8.7.1
func (s *ZeroShotClassificationInferenceOptions) UnmarshalJSON(data []byte)error
typeZeroShotClassificationInferenceUpdateOptions¶
type ZeroShotClassificationInferenceUpdateOptions struct {// Labels The labels to predict.Labels []string `json:"labels"`// MultiLabel Update the configured multi label option. Indicates if more than one true// label exists. Defaults to the configured value.MultiLabel *bool `json:"multi_label,omitempty"`// ResultsField The field that is added to incoming documents to contain the inference// prediction. Defaults to predicted_value.ResultsField *string `json:"results_field,omitempty"`// Tokenization The tokenization options to update when inferringTokenization *NlpTokenizationUpdateOptions `json:"tokenization,omitempty"`}ZeroShotClassificationInferenceUpdateOptions type.
funcNewZeroShotClassificationInferenceUpdateOptions¶added inv8.5.0
func NewZeroShotClassificationInferenceUpdateOptions() *ZeroShotClassificationInferenceUpdateOptions
NewZeroShotClassificationInferenceUpdateOptions returns a ZeroShotClassificationInferenceUpdateOptions.
func (*ZeroShotClassificationInferenceUpdateOptions)UnmarshalJSON¶added inv8.7.1
func (s *ZeroShotClassificationInferenceUpdateOptions) UnmarshalJSON(data []byte)error
Source Files¶
- access.go
- acknowledgement.go
- acknowledgestate.go
- actionstatus.go
- activationstate.go
- activationstatus.go
- adaptiveallocations.go
- adaptiveallocationssettings.go
- adaptiveselection.go
- addaction.go
- adjacencymatrixaggregate.go
- adjacencymatrixaggregation.go
- adjacencymatrixbucket.go
- aggregate.go
- aggregatemetricdoubleproperty.go
- aggregateorder.go
- aggregateoutput.go
- aggregationbreakdown.go
- aggregationprofile.go
- aggregationprofiledebug.go
- aggregationprofiledelegatedebugfilter.go
- aggregationrange.go
- aggregations.go
- alias.go
- aliasdefinition.go
- aliasesrecord.go
- alibabacloudservicesettings.go
- alibabacloudtasksettings.go
- allfield.go
- allocateaction.go
- allocationdecision.go
- allocationrecord.go
- allocationstore.go
- alwayscondition.go
- amazonbedrockservicesettings.go
- amazonbedrocktasksettings.go
- amazonsagemakerservicesettings.go
- amazonsagemakertasksettings.go
- analysisconfig.go
- analysisconfigread.go
- analysislimits.go
- analysismemorylimit.go
- analytics.go
- analyticscollection.go
- analyticsstatistics.go
- analyzedetail.go
- analyzer.go
- analyzerdetail.go
- analyzetoken.go
- anomaly.go
- anomalycause.go
- anomalydetectors.go
- anomalyexplanation.go
- anthropicservicesettings.go
- anthropictasksettings.go
- apikey.go
- apikeyaggregate.go
- apikeyaggregationcontainer.go
- apikeyauthorization.go
- apikeyfiltersaggregation.go
- apikeyquerycontainer.go
- apostrophetokenfilter.go
- appendprocessor.go
- applicationglobaluserprivileges.go
- applicationprivileges.go
- applicationprivilegescheck.go
- applicationsprivileges.go
- arabicanalyzer.go
- arabicnormalizationtokenfilter.go
- arabicstemtokenfilter.go
- archive.go
- armeniananalyzer.go
- arraycomparecondition.go
- arraycompareopparams.go
- arraypercentilesitem.go
- asciifoldingtokenfilter.go
- asyncsearch.go
- attachmentprocessor.go
- audit.go
- authenticateapikey.go
- authenticateduser.go
- authenticatetoken.go
- authentication.go
- authenticationprovider.go
- authenticationrealm.go
- autodatehistogramaggregate.go
- autodatehistogramaggregation.go
- autofollowedcluster.go
- autofollowpattern.go
- autofollowpatternsummary.go
- autofollowstats.go
- autoscalingcapacity.go
- autoscalingdecider.go
- autoscalingdeciders.go
- autoscalingnode.go
- autoscalingpolicy.go
- autoscalingresources.go
- averageaggregation.go
- averagebucketaggregation.go
- avgaggregate.go
- azureaistudioservicesettings.go
- azureaistudiotasksettings.go
- azureopenaiservicesettings.go
- azureopenaitasksettings.go
- azurerepository.go
- azurerepositorysettings.go
- base.go
- basqueanalyzer.go
- bengalianalyzer.go
- bengalinormalizationtokenfilter.go
- binaryproperty.go
- blobdetails.go
- booleanproperty.go
- boolquery.go
- boostingquery.go
- boxplotaggregate.go
- boxplotaggregation.go
- braziliananalyzer.go
- brazilianstemtokenfilter.go
- breaker.go
- bucketcorrelationaggregation.go
- bucketcorrelationfunction.go
- bucketcorrelationfunctioncountcorrelation.go
- bucketcorrelationfunctioncountcorrelationindicator.go
- bucketinfluencer.go
- bucketksaggregation.go
- bucketmetricvalueaggregate.go
- bucketsadjacencymatrixbucket.go
- bucketsapikeyquerycontainer.go
- bucketscompositebucket.go
- bucketscriptaggregation.go
- bucketsdatehistogrambucket.go
- bucketsdoubletermsbucket.go
- bucketselectoraggregation.go
- bucketsfiltersbucket.go
- bucketsfrequentitemsetsbucket.go
- bucketsgeohashgridbucket.go
- bucketsgeohexgridbucket.go
- bucketsgeotilegridbucket.go
- bucketshistogrambucket.go
- bucketsipprefixbucket.go
- bucketsiprangebucket.go
- bucketslongraretermsbucket.go
- bucketslongtermsbucket.go
- bucketsmultitermsbucket.go
- bucketsortaggregation.go
- bucketspath.go
- bucketsquery.go
- bucketsrangebucket.go
- bucketssignificantlongtermsbucket.go
- bucketssignificantstringtermsbucket.go
- bucketsstringraretermsbucket.go
- bucketsstringtermsbucket.go
- bucketstimeseriesbucket.go
- bucketsummary.go
- bucketsvariablewidthhistogrambucket.go
- bucketsvoid.go
- buildinformation.go
- bulgariananalyzer.go
- bulkerror.go
- bulkindexbyscrollfailure.go
- bulkstats.go
- bytenumberproperty.go
- bytesize.go
- bytesprocessor.go
- cachequeries.go
- cachestats.go
- calendar.go
- calendarevent.go
- cardinalityaggregate.go
- cardinalityaggregation.go
- catalananalyzer.go
- catanonalydetectorcolumns.go
- catcomponenttemplate.go
- catdatafeedcolumns.go
- catdfacolumns.go
- categorizationanalyzer.go
- categorizationanalyzerdefinition.go
- categorizetextaggregation.go
- categorizetextanalyzer.go
- category.go
- catnodecolumns.go
- catrecoverycolumns.go
- catsegmentscolumns.go
- catshardcolumns.go
- catsnapshotscolumns.go
- catthreadpoolcolumns.go
- cattrainedmodelscolumns.go
- cattransformcolumns.go
- ccr.go
- ccrshardstats.go
- ccsstats.go
- ccsusageclusterstats.go
- ccsusagestats.go
- ccsusagetimevalue.go
- certificateinformation.go
- cgroup.go
- cgroupcpu.go
- cgroupcpustat.go
- cgroupmemory.go
- chaininput.go
- charfilter.go
- charfilterdefinition.go
- charfilterdetail.go
- charfiltertypes.go
- chargrouptokenizer.go
- checkpointing.go
- checkpointstats.go
- childrenaggregate.go
- childrenaggregation.go
- chineseanalyzer.go
- chisquareheuristic.go
- chunkingconfig.go
- chunkingsettings.go
- circleprocessor.go
- cjkanalyzer.go
- cjkbigramtokenfilter.go
- cjkwidthtokenfilter.go
- classictokenfilter.go
- classictokenizer.go
- classificationinferenceoptions.go
- cleanuprepositoryresults.go
- client.go
- closeindexresult.go
- closeshardresult.go
- clusterappliedstats.go
- clustercomponenttemplate.go
- clusterdetails.go
- clusterfilesystem.go
- clusterindexingpressure.go
- clusterindices.go
- clusterindicesshards.go
- clusterindicesshardsindex.go
- clusterinfo.go
- clusterinfotargets.go
- clusteringest.go
- clusterjvm.go
- clusterjvmmemory.go
- clusterjvmversion.go
- clusternetworktypes.go
- clusternode.go
- clusternodecount.go
- clusternodes.go
- clusteroperatingsystem.go
- clusteroperatingsystemarchitecture.go
- clusteroperatingsystemname.go
- clusteroperatingsystemprettyname.go
- clusterprocess.go
- clusterprocesscpu.go
- clusterprocessopenfiledescriptors.go
- clusterprocessor.go
- clusterremoteinfo.go
- clusterremoteproxyinfo.go
- clusterremotesniffinfo.go
- clusterruntimefieldtypes.go
- clustershardmetrics.go
- clustersnapshotstats.go
- clusterstatequeue.go
- clusterstateupdate.go
- clusterstatistics.go
- cohereservicesettings.go
- coheretasksettings.go
- collector.go
- column.go
- combinedfieldsquery.go
- command.go
- commandallocateprimaryaction.go
- commandallocatereplicaaction.go
- commandcancelaction.go
- commandmoveaction.go
- commongramstokenfilter.go
- commontermsquery.go
- communityidprocessor.go
- compactnodeinfo.go
- completioncontext.go
- completionproperty.go
- completionresult.go
- completionstats.go
- completionsuggest.go
- completionsuggester.go
- completionsuggestoption.go
- completiontool.go
- completiontoolchoice.go
- completiontoolchoicefunction.go
- completiontoolfunction.go
- completiontooltype.go
- componenttemplatenode.go
- componenttemplatesummary.go
- compositeaggregate.go
- compositeaggregatekey.go
- compositeaggregation.go
- compositeaggregationsource.go
- compositebucket.go
- compositedatehistogramaggregation.go
- compositegeotilegridaggregation.go
- compositehistogramaggregation.go
- compositesubfield.go
- compositetermsaggregation.go
- conditiontokenfilter.go
- configuration.go
- confusionmatrixitem.go
- confusionmatrixprediction.go
- confusionmatrixthreshold.go
- connection.go
- connector.go
- connectorconfigproperties.go
- connectorconfiguration.go
- connectorcustomscheduling.go
- connectorfeatures.go
- connectorscheduling.go
- connectorsyncjob.go
- constantkeywordproperty.go
- constantscorequery.go
- contentobject.go
- context.go
- contextmethod.go
- contextmethodparam.go
- convertprocessor.go
- coordinatorstats.go
- coordsgeobounds.go
- coreknnquery.go
- countedkeywordproperty.go
- counter.go
- countrecord.go
- cpu.go
- cpuacct.go
- createdstatus.go
- createfrom.go
- createoperation.go
- csvprocessor.go
- cumulativecardinalityaggregate.go
- cumulativecardinalityaggregation.go
- cumulativesumaggregation.go
- currentnode.go
- customanalyzer.go
- customcategorizetextanalyzer.go
- customnormalizer.go
- customrequestparams.go
- customresponseparams.go
- customscheduling.go
- customschedulingconfigurationoverrides.go
- customservicesettings.go
- customtasksettings.go
- czechanalyzer.go
- czechstemtokenfilter.go
- dailyschedule.go
- danglingindex.go
- danishanalyzer.go
- databaseconfiguration.go
- databaseconfigurationfull.go
- datacounts.go
- datadescription.go
- dataemailattachment.go
- datafeedauthorization.go
- datafeedconfig.go
- datafeedrunningstate.go
- datafeeds.go
- datafeedsrecord.go
- datafeedstats.go
- datafeedtimingstats.go
- dataframeanalysisanalyzedfields.go
- dataframeanalysisclassification.go
- dataframeanalysiscontainer.go
- dataframeanalysisfeatureprocessor.go
- dataframeanalysisfeatureprocessorfrequencyencoding.go
- dataframeanalysisfeatureprocessormultiencoding.go
- dataframeanalysisfeatureprocessorngramencoding.go
- dataframeanalysisfeatureprocessoronehotencoding.go
- dataframeanalysisfeatureprocessortargetmeanencoding.go
- dataframeanalysisoutlierdetection.go
- dataframeanalysisregression.go
- dataframeanalytics.go
- dataframeanalyticsauthorization.go
- dataframeanalyticsdestination.go
- dataframeanalyticsfieldselection.go
- dataframeanalyticsmemoryestimation.go
- dataframeanalyticsrecord.go
- dataframeanalyticssource.go
- dataframeanalyticsstatscontainer.go
- dataframeanalyticsstatsdatacounts.go
- dataframeanalyticsstatshyperparameters.go
- dataframeanalyticsstatsmemoryusage.go
- dataframeanalyticsstatsoutlierdetection.go
- dataframeanalyticsstatsprogress.go
- dataframeanalyticssummary.go
- dataframeclassificationsummary.go
- dataframeclassificationsummaryaccuracy.go
- dataframeclassificationsummarymulticlassconfusionmatrix.go
- dataframeclassificationsummaryprecision.go
- dataframeclassificationsummaryrecall.go
- dataframeevaluationclass.go
- dataframeevaluationclassification.go
- dataframeevaluationclassificationmetrics.go
- dataframeevaluationclassificationmetricsaucroc.go
- dataframeevaluationcontainer.go
- dataframeevaluationoutlierdetection.go
- dataframeevaluationoutlierdetectionmetrics.go
- dataframeevaluationregression.go
- dataframeevaluationregressionmetrics.go
- dataframeevaluationregressionmetricshuber.go
- dataframeevaluationregressionmetricsmsle.go
- dataframeevaluationsummaryaucroc.go
- dataframeevaluationsummaryaucroccurveitem.go
- dataframeevaluationvalue.go
- dataframeoutlierdetectionsummary.go
- dataframepreviewconfig.go
- dataframeregressionsummary.go
- datapathstats.go
- datastream.go
- datastreamindex.go
- datastreamlifecycle.go
- datastreamlifecycledetails.go
- datastreamlifecycledownsampling.go
- datastreamlifecycleexplain.go
- datastreamlifecycleindicator.go
- datastreamlifecyclerolloverconditions.go
- datastreamlifecyclewithrollover.go
- datastreamnames.go
- datastreams.go
- datastreamsstatsitem.go
- datastreamstats.go
- datastreamtimestamp.go
- datastreamtimestampfield.go
- datastreamvisibility.go
- datastreamwithlifecycle.go
- datatierphasestatistics.go
- datatiers.go
- datedecayfunction.go
- datedistancefeaturequery.go
- datehistogramaggregate.go
- datehistogramaggregation.go
- datehistogrambucket.go
- datehistogramgrouping.go
- dateindexnameprocessor.go
- datenanosproperty.go
- dateprocessor.go
- dateproperty.go
- daterangeaggregate.go
- daterangeaggregation.go
- daterangeexpression.go
- daterangeproperty.go
- daterangequery.go
- datetime.go
- decayfunction.go
- decayplacement.go
- decayplacementdatemathduration.go
- decayplacementdoubledouble.go
- decayplacementgeolocationdistance.go
- decimaldigittokenfilter.go
- deepseekservicesettings.go
- defaults.go
- definition.go
- delayeddatacheckconfig.go
- deleteaction.go
- deleteoperation.go
- delimitedpayloadtokenfilter.go
- densevectorindexoptions.go
- densevectoroffheapstats.go
- densevectorproperty.go
- densevectorstats.go
- dependency.go
- deprecation.go
- deprecationindexing.go
- derivativeaggregate.go
- derivativeaggregation.go
- detailsinfo.go
- detectionrule.go
- detector.go
- detectorread.go
- detectorupdate.go
- dfsknnprofile.go
- dfsprofile.go
- dfsstatisticsbreakdown.go
- dfsstatisticsprofile.go
- diagnosis.go
- diagnosisaffectedresources.go
- dictionarydecompoundertokenfilter.go
- directgenerator.go
- discovery.go
- discoverynode.go
- discoverynodecompact.go
- discoverynodecontent.go
- diskindicator.go
- diskindicatordetails.go
- diskusage.go
- dismaxquery.go
- dissectprocessor.go
- distancefeaturequery.go
- diversifiedsampleraggregation.go
- docstats.go
- document.go
- documentrating.go
- documentsimulation.go
- dotexpanderprocessor.go
- doublenumberproperty.go
- doublerangeproperty.go
- doubletermsaggregate.go
- doubletermsbucket.go
- downsampleaction.go
- downsampleconfig.go
- downsamplinground.go
- dropprocessor.go
- duration.go
- durationvalueunitfloatmillis.go
- durationvalueunitmillis.go
- durationvalueunitnanos.go
- durationvalueunitseconds.go
- dutchanalyzer.go
- dutchstemtokenfilter.go
- dynamicproperty.go
- dynamictemplate.go
- edgengramtokenfilter.go
- edgengramtokenizer.go
- elasticsearcherror.go
- elasticsearchservicesettings.go
- elasticsearchtasksettings.go
- elasticsearchversioninfo.go
- elasticsearchversionmininfo.go
- elisiontokenfilter.go
- elserservicesettings.go
- email.go
- emailaction.go
- emailattachmentcontainer.go
- emailbody.go
- emailresult.go
- emptyobject.go
- englishanalyzer.go
- enrichpolicy.go
- enrichprocessor.go
- ensemble.go
- epochtimeunitmillis.go
- epochtimeunitseconds.go
- eql.go
- eqlfeatures.go
- eqlfeaturesjoin.go
- eqlfeatureskeys.go
- eqlfeaturespipes.go
- eqlfeaturessequences.go
- eqlhits.go
- errorcause.go
- errorresponsebase.go
- esqlclusterdetails.go
- esqlclusterinfo.go
- esqlcolumninfo.go
- esqlshardfailure.go
- esqlshardinfo.go
- estoniananalyzer.go
- eventdatastream.go
- ewmamodelsettings.go
- ewmamovingaverageaggregation.go
- executeenrichpolicystatus.go
- executingpolicy.go
- executionresult.go
- executionresultaction.go
- executionresultcondition.go
- executionresultinput.go
- executionstate.go
- executionthreadpool.go
- existsquery.go
- expandwildcards.go
- explainanalyzetoken.go
- explanation.go
- explanationdetail.go
- explorecontrols.go
- exponentialaveragecalculationcontext.go
- extendedboundsdouble.go
- extendedboundsfielddatemath.go
- extendedmemorystats.go
- extendedstatsaggregate.go
- extendedstatsaggregation.go
- extendedstatsbucketaggregate.go
- extendedstatsbucketaggregation.go
- failprocessor.go
- failurestore.go
- feature.go
- featureenabled.go
- featureextractor.go
- features.go
- featuretoggle.go
- fetchprofile.go
- fetchprofilebreakdown.go
- fetchprofiledebug.go
- fieldaliasproperty.go
- fieldandformat.go
- fieldcapability.go
- fieldcollapse.go
- fielddatafrequencyfilter.go
- fielddatarecord.go
- fielddatastats.go
- fielddatemath.go
- fieldlookup.go
- fieldmapping.go
- fieldmemoryusage.go
- fieldmetric.go
- fieldnamesfield.go
- fieldrule.go
- fields.go
- fieldsecurity.go
- fieldsizeusage.go
- fieldsort.go
- fieldstat.go
- fieldstatistics.go
- fieldsuggester.go
- fieldsummary.go
- fieldtypes.go
- fieldtypesmappings.go
- fieldvalue.go
- fieldvaluefactorscorefunction.go
- filecountsnapshotstats.go
- filedetails.go
- filesystem.go
- filesystemtotal.go
- fillmaskinferenceoptions.go
- fillmaskinferenceupdateoptions.go
- filteraggregate.go
- filteringadvancedsnippet.go
- filteringconfig.go
- filteringrule.go
- filteringrules.go
- filteringrulesvalidation.go
- filteringvalidation.go
- filterref.go
- filtersaggregate.go
- filtersaggregation.go
- filtersbucket.go
- fingerprintanalyzer.go
- fingerprintprocessor.go
- fingerprinttokenfilter.go
- finnishanalyzer.go
- flattened.go
- flattenedproperty.go
- flattengraphtokenfilter.go
- float64.go
- floatnumberproperty.go
- floatrangeproperty.go
- flushstats.go
- followerindex.go
- followerindexparameters.go
- followindexstats.go
- followstats.go
- forcemergeaction.go
- foreachprocessor.go
- foundstatus.go
- frenchanalyzer.go
- frenchstemtokenfilter.go
- frequencyencodingpreprocessor.go
- frequentitemsetsaggregate.go
- frequentitemsetsaggregation.go
- frequentitemsetsbucket.go
- frequentitemsetsfield.go
- frozenindices.go
- functionscore.go
- functionscorequery.go
- fuzziness.go
- fuzzyquery.go
- galiciananalyzer.go
- garbagecollector.go
- garbagecollectortotal.go
- gcsrepository.go
- gcsrepositorysettings.go
- geoboundingboxquery.go
- geobounds.go
- geoboundsaggregate.go
- geoboundsaggregation.go
- geocentroidaggregate.go
- geocentroidaggregation.go
- geodecayfunction.go
- geodistanceaggregate.go
- geodistanceaggregation.go
- geodistancefeaturequery.go
- geodistancequery.go
- geodistancesort.go
- geogridprocessor.go
- geogridquery.go
- geohashgridaggregate.go
- geohashgridaggregation.go
- geohashgridbucket.go
- geohashlocation.go
- geohashprecision.go
- geohexgridaggregate.go
- geohexgridaggregation.go
- geohexgridbucket.go
- geoipdatabaseconfigurationmetadata.go
- geoipdownloadstatistics.go
- geoipnodedatabasename.go
- geoipnodedatabases.go
- geoipprocessor.go
- geoline.go
- geolineaggregate.go
- geolineaggregation.go
- geolinepoint.go
- geolinesort.go
- geolocation.go
- geopointproperty.go
- geopolygonpoints.go
- geopolygonquery.go
- georesults.go
- geoshapefieldquery.go
- geoshapeproperty.go
- geoshapequery.go
- geotilegridaggregate.go
- geotilegridaggregation.go
- geotilegridbucket.go
- germananalyzer.go
- germannormalizationtokenfilter.go
- germanstemtokenfilter.go
- getmigrationfeature.go
- getresult.go
- getscriptcontext.go
- getstats.go
- getuserprofileerrors.go
- globalaggregate.go
- globalaggregation.go
- globalordinalfieldstats.go
- globalordinalsstats.go
- globalprivilege.go
- googleaistudioservicesettings.go
- googlenormalizeddistanceheuristic.go
- googlevertexaiservicesettings.go
- googlevertexaitasksettings.go
- grantapikey.go
- greaterthanvalidation.go
- greekanalyzer.go
- grokprocessor.go
- groupings.go
- gsubprocessor.go
- halffloatnumberproperty.go
- haschildquery.go
- hasparentquery.go
- hasprivilegesuserprofileerrors.go
- hdrmethod.go
- hdrpercentileranksaggregate.go
- hdrpercentilesaggregate.go
- healthrecord.go
- healthstatistics.go
- highlight.go
- highlightfield.go
- hindianalyzer.go
- hindinormalizationtokenfilter.go
- hint.go
- histogramaggregate.go
- histogramaggregation.go
- histogrambucket.go
- histogramgrouping.go
- histogramproperty.go
- hit.go
- hitsevent.go
- hitsmetadata.go
- hitssequence.go
- holtlinearmodelsettings.go
- holtmovingaverageaggregation.go
- holtwintersmodelsettings.go
- holtwintersmovingaverageaggregation.go
- hop.go
- hourandminute.go
- hourlyschedule.go
- htmlstripcharfilter.go
- htmlstripprocessor.go
- http.go
- httpemailattachment.go
- httpheaders.go
- httpinput.go
- httpinputauthentication.go
- httpinputbasicauthentication.go
- httpinputproxy.go
- httpinputrequestdefinition.go
- httpinputrequestresult.go
- httpinputresponseresult.go
- httproute.go
- httprouterequests.go
- httprouteresponses.go
- huggingfaceservicesettings.go
- huggingfacetasksettings.go
- hungariananalyzer.go
- hunspelltokenfilter.go
- hyperparameter.go
- hyperparameters.go
- hyphenationdecompoundertokenfilter.go
- icuanalyzer.go
- icucollationproperty.go
- icucollationtokenfilter.go
- icufoldingtokenfilter.go
- icunormalizationcharfilter.go
- icunormalizationtokenfilter.go
- icutokenizer.go
- icutransformtokenfilter.go
- ids.go
- idsquery.go
- ilm.go
- ilmactions.go
- ilmindicator.go
- ilmindicatordetails.go
- ilmpolicy.go
- ilmpolicystatistics.go
- impact.go
- includedinvalidation.go
- indexaction.go
- indexaliases.go
- indexanddatastreamaction.go
- indexcapabilities.go
- indexdetails.go
- indexfield.go
- indexhealthstats.go
- indexingslowlogsettings.go
- indexingslowlogtresholds.go
- indexingstats.go
- indexmappingrecord.go
- indexoperation.go
- indexprivilegescheck.go
- indexresult.go
- indexresultsummary.go
- indexrouting.go
- indexroutingallocation.go
- indexroutingallocationdisk.go
- indexroutingallocationinclude.go
- indexroutingallocationinitialrecovery.go
- indexroutingrebalance.go
- indexsegment.go
- indexsegmentsort.go
- indexsettingblocks.go
- indexsettings.go
- indexsettingsanalysis.go
- indexsettingslifecycle.go
- indexsettingslifecyclestep.go
- indexsettingstimeseries.go
- indexstate.go
- indexstats.go
- indextemplate.go
- indextemplatedatastreamconfiguration.go
- indextemplateitem.go
- indextemplatemapping.go
- indextemplatesummary.go
- indexversioning.go
- indicatornode.go
- indicators.go
- indices.go
- indicesaction.go
- indicesblockstatus.go
- indicesindexingpressure.go
- indicesindexingpressurememory.go
- indicesmodifyaction.go
- indicesoptions.go
- indicesprivileges.go
- indicesprivilegesquery.go
- indicesrecord.go
- indicesshardsstats.go
- indicesshardstats.go
- indicesshardstores.go
- indicesstats.go
- indicesvalidationexplanation.go
- indicesversions.go
- indicnormalizationtokenfilter.go
- indonesiananalyzer.go
- inferenceaggregate.go
- inferenceaggregation.go
- inferencechunkingsettings.go
- inferenceclassimportance.go
- inferenceconfig.go
- inferenceconfigclassification.go
- inferenceconfigcontainer.go
- inferenceconfigcreatecontainer.go
- inferenceconfigregression.go
- inferenceconfigupdatecontainer.go
- inferenceendpoint.go
- inferenceendpointinfo.go
- inferencefeatureimportance.go
- inferenceprocessor.go
- inferenceresponseresult.go
- inferencetopclassentry.go
- influence.go
- influencer.go
- infofeaturestate.go
- ingest.go
- ingestdocumentsimulation.go
- ingestpipeline.go
- ingestpipelineparams.go
- ingeststats.go
- ingesttotal.go
- inlineget.go
- inlinegetdictuserdefined.go
- innerhits.go
- innerhitsresult.go
- innerretriever.go
- inprogress.go
- input.go
- inputconfig.go
- integernumberproperty.go
- integerrangeproperty.go
- intervals.go
- intervalsallof.go
- intervalsanyof.go
- intervalsfilter.go
- intervalsfuzzy.go
- intervalsmatch.go
- intervalsprefix.go
- intervalsquery.go
- intervalsrange.go
- intervalsregexp.go
- intervalswildcard.go
- invertedindex.go
- invocation.go
- invocations.go
- iostatdevice.go
- iostats.go
- ipfilter.go
- ipinfo.go
- iplocationdatabaseconfigurationmetadata.go
- iplocationprocessor.go
- ipprefixaggregate.go
- ipprefixaggregation.go
- ipprefixbucket.go
- ipproperty.go
- iprangeaggregate.go
- iprangeaggregation.go
- iprangeaggregationrange.go
- iprangebucket.go
- iprangeproperty.go
- irishanalyzer.go
- italiananalyzer.go
- jastoptokenfilter.go
- jinaaiservicesettings.go
- jinaaitasksettings.go
- job.go
- jobblocked.go
- jobconfig.go
- jobforecaststatistics.go
- jobsrecord.go
- jobstatistics.go
- jobstats.go
- jobtimingstats.go
- jobusage.go
- joinprocessor.go
- joinproperty.go
- jsonprocessor.go
- jvm.go
- jvmclasses.go
- jvmmemorystats.go
- jvmstats.go
- jvmthreads.go
- keeptypestokenfilter.go
- keepwordstokenfilter.go
- keyedpercentiles.go
- keyedprocessor.go
- keyvalueprocessor.go
- keywordanalyzer.go
- keywordmarkertokenfilter.go
- keywordproperty.go
- keywordrepeattokenfilter.go
- keywordtokenizer.go
- kibanatoken.go
- knncollectorresult.go
- knnquery.go
- knnqueryprofilebreakdown.go
- knnqueryprofileresult.go
- knnretriever.go
- knnsearch.go
- kstemtokenfilter.go
- kuromojianalyzer.go
- kuromojiiterationmarkcharfilter.go
- kuromojipartofspeechtokenfilter.go
- kuromojireadingformtokenfilter.go
- kuromojistemmertokenfilter.go
- kuromojitokenizer.go
- languagecontext.go
- laplacesmoothingmodel.go
- latest.go
- latlongeolocation.go
- latviananalyzer.go
- learningtorank.go
- learningtorankconfig.go
- lengthtokenfilter.go
- lessthanvalidation.go
- lettertokenizer.go
- license.go
- licenseinformation.go
- lifecycle.go
- lifecycleexplain.go
- lifecycleexplainmanaged.go
- lifecycleexplainphaseexecution.go
- lifecycleexplainunmanaged.go
- like.go
- likedocument.go
- limits.go
- limittokencounttokenfilter.go
- linearinterpolationsmoothingmodel.go
- linearmovingaverageaggregation.go
- linearretriever.go
- listtypevalidation.go
- lithuaniananalyzer.go
- local.go
- loggingaction.go
- loggingresult.go
- logstashpipeline.go
- longnumberproperty.go
- longrangeproperty.go
- longraretermsaggregate.go
- longraretermsbucket.go
- longtermsaggregate.go
- longtermsbucket.go
- lowercasenormalizer.go
- lowercaseprocessor.go
- lowercasetokenfilter.go
- lowercasetokenizer.go
- machinelearning.go
- manageuserprivileges.go
- mapboxvectortiles.go
- mappingcharfilter.go
- mappinglimitsettings.go
- mappinglimitsettingsdepth.go
- mappinglimitsettingsdimensionfields.go
- mappinglimitsettingsfieldnamelength.go
- mappinglimitsettingsnestedfields.go
- mappinglimitsettingsnestedobjects.go
- mappinglimitsettingssourcefields.go
- mappinglimitsettingstotalfields.go
- mappingstats.go
- masterisstableindicator.go
- masterisstableindicatorclusterformationnode.go
- masterisstableindicatordetails.go
- masterisstableindicatorexceptionfetchinghistory.go
- masterrecord.go
- matchallquery.go
- matchboolprefixquery.go
- matchedfield.go
- matchedtext.go
- matchnonequery.go
- matchonlytextproperty.go
- matchphraseprefixquery.go
- matchphrasequery.go
- matchquery.go
- matrixstatsaggregate.go
- matrixstatsaggregation.go
- matrixstatsfields.go
- maxaggregate.go
- maxaggregation.go
- maxbucketaggregation.go
- maxmind.go
- medianabsolutedeviationaggregate.go
- medianabsolutedeviationaggregation.go
- memmlstats.go
- memory.go
- memorystats.go
- memstats.go
- merge.go
- mergescheduler.go
- mergesstats.go
- message.go
- messagecontent.go
- metadata.go
- metrics.go
- mgetoperation.go
- mgetresponseitem.go
- migrateaction.go
- migratereindex.go
- migrationfeatureindexinfo.go
- minaggregate.go
- minaggregation.go
- minbucketaggregation.go
- minhashtokenfilter.go
- minimallicenseinformation.go
- minimumshouldmatch.go
- missing.go
- missingaggregate.go
- missingaggregation.go
- mistralservicesettings.go
- mlcounter.go
- mldatafeed.go
- mldataframeanalyticsjobs.go
- mldataframeanalyticsjobsanalysis.go
- mldataframeanalyticsjobscount.go
- mldataframeanalyticsjobsmemory.go
- mlfilter.go
- mlinference.go
- mlinferencedeployments.go
- mlinferencedeploymentstimems.go
- mlinferenceingestprocessor.go
- mlinferenceingestprocessorcount.go
- mlinferencetrainedmodels.go
- mlinferencetrainedmodelscount.go
- mljobforecasts.go
- modelpackageconfig.go
- modelplotconfig.go
- modelsizestats.go
- modelsnapshot.go
- modelsnapshotupgrade.go
- monitoring.go
- morelikethisquery.go
- mountedsnapshot.go
- movingaverageaggregation.go
- movingfunctionaggregation.go
- movingpercentilesaggregation.go
- msearchrequestitem.go
- msearchresponseitem.go
- mtermvectorsoperation.go
- multigeterror.go
- multimatchquery.go
- multiplexertokenfilter.go
- multisearchbody.go
- multisearchheader.go
- multisearchitem.go
- multitermlookup.go
- multitermsaggregate.go
- multitermsaggregation.go
- multitermsbucket.go
- murmur3hashproperty.go
- mutualinformationheuristic.go
- names.go
- nativecode.go
- nativecodeinformation.go
- nerinferenceoptions.go
- nerinferenceupdateoptions.go
- nestedaggregate.go
- nestedaggregation.go
- nestedidentity.go
- nestedproperty.go
- nestedquery.go
- nestedsortvalue.go
- networkdirectionprocessor.go
- nevercondition.go
- ngramtokenfilter.go
- ngramtokenizer.go
- nlpberttokenizationconfig.go
- nlprobertatokenizationconfig.go
- nlptokenizationupdateoptions.go
- node.go
- nodeallocationexplanation.go
- nodeattributes.go
- nodeattributesrecord.go
- nodebufferpool.go
- nodediskusage.go
- nodeids.go
- nodeinfo.go
- nodeinfoaction.go
- nodeinfoaggregation.go
- nodeinfobootstrap.go
- nodeinfoclient.go
- nodeinfodiscover.go
- nodeinfohttp.go
- nodeinfoingest.go
- nodeinfoingestdownloader.go
- nodeinfoingestinfo.go
- nodeinfoingestprocessor.go
- nodeinfojvmmemory.go
- nodeinfomemory.go
- nodeinfooscpu.go
- nodeinfopath.go
- nodeinforepositories.go
- nodeinforepositoriesurl.go
- nodeinfoscript.go
- nodeinfosearch.go
- nodeinfosearchremote.go
- nodeinfosettings.go
- nodeinfosettingscluster.go
- nodeinfosettingsclusterelection.go
- nodeinfosettingshttp.go
- nodeinfosettingshttptype.go
- nodeinfosettingsingest.go
- nodeinfosettingsnetwork.go
- nodeinfosettingsnode.go
- nodeinfosettingstransport.go
- nodeinfosettingstransportfeatures.go
- nodeinfosettingstransporttype.go
- nodeinfotransport.go
- nodeinfoxpack.go
- nodeinfoxpacklicense.go
- nodeinfoxpacklicensetype.go
- nodeinfoxpackml.go
- nodeinfoxpacksecurity.go
- nodeinfoxpacksecurityauthc.go
- nodeinfoxpacksecurityauthcrealms.go
- nodeinfoxpacksecurityauthcrealmsstatus.go
- nodeinfoxpacksecurityauthctoken.go
- nodeinfoxpacksecurityssl.go
- nodejvminfo.go
- nodeoperatingsysteminfo.go
- nodepackagingtype.go
- nodeprocessinfo.go
- nodereloadresult.go
- nodescontext.go
- nodescredentials.go
- nodescredentialsfiletoken.go
- nodeshard.go
- nodeshutdownstatus.go
- nodesindexingpressure.go
- nodesindexingpressurememory.go
- nodesingest.go
- nodesrecord.go
- nodestatistics.go
- nodetasks.go
- nodethreadpoolinfo.go
- nodeusage.go
- norianalyzer.go
- noripartofspeechtokenfilter.go
- noritokenizer.go
- normalizeaggregation.go
- normalizer.go
- norwegiananalyzer.go
- notfoundaliases.go
- nullvalue.go
- numberrangequery.go
- numericdecayfunction.go
- numericfielddata.go
- objectproperty.go
- onehotencodingpreprocessor.go
- openaiservicesettings.go
- openaitasksettings.go
- operatingsystem.go
- operatingsystemmemoryinfo.go
- operationcontainer.go
- outlierdetectionparameters.go
- overallbucket.go
- overallbucketjob.go
- overlapping.go
- page.go
- pagerdutyaction.go
- pagerdutycontext.go
- pagerdutyevent.go
- pagerdutyeventproxy.go
- pagerdutyresult.go
- painlesscontextsetup.go
- parentaggregate.go
- parentaggregation.go
- parentidquery.go
- parenttaskinfo.go
- passthroughinferenceoptions.go
- passthroughinferenceupdateoptions.go
- passthroughobjectproperty.go
- pathhierarchytokenizer.go
- patternanalyzer.go
- patterncapturetokenfilter.go
- patternreplacecharfilter.go
- patternreplacetokenfilter.go
- patterntokenizer.go
- pendingtask.go
- pendingtasksrecord.go
- percentage.go
- percentagescoreheuristic.go
- percentileranksaggregation.go
- percentiles.go
- percentilesaggregation.go
- percentilesbucketaggregate.go
- percentilesbucketaggregation.go
- percolatequery.go
- percolatorproperty.go
- perpartitioncategorization.go
- perrepositorystats.go
- persiananalyzer.go
- persiannormalizationtokenfilter.go
- persianstemtokenfilter.go
- persistenttaskstatus.go
- phase.go
- phases.go
- phonetictokenfilter.go
- phrasesuggest.go
- phrasesuggestcollate.go
- phrasesuggestcollatequery.go
- phrasesuggester.go
- phrasesuggesthighlight.go
- phrasesuggestoption.go
- pinneddoc.go
- pinnedquery.go
- pinnedretriever.go
- pipelineconfig.go
- pipelinemetadata.go
- pipelineprocessor.go
- pipelineprocessorresult.go
- pipelinesettings.go
- pipeseparatedflagssimplequerystringflag.go
- pivot.go
- pivotgroupbycontainer.go
- pluginsrecord.go
- pluginsstatus.go
- pluginstats.go
- pointintimereference.go
- pointproperty.go
- pool.go
- porterstemtokenfilter.go
- portugueseanalyzer.go
- postmigrationfeature.go
- predicatetokenfilter.go
- predictedvalue.go
- prefixquery.go
- preprocessor.go
- pressurememory.go
- privileges.go
- privilegesactions.go
- privilegescheck.go
- process.go
- processor.go
- processorcontainer.go
- profile.go
- property.go
- publishedclusterstates.go
- queries.go
- query.go
- querybreakdown.go
- querycachestats.go
- queryfeatureextractor.go
- queryprofile.go
- queryrole.go
- queryrule.go
- queryruleactions.go
- queryrulecriteria.go
- queryrulesetlistitem.go
- queryrulesetmatchedrule.go
- querystringquery.go
- queryuser.go
- queryvectorbuilder.go
- querywatch.go
- questionansweringinferenceoptions.go
- questionansweringinferenceupdateoptions.go
- randomsampleraggregation.go
- randomscorefunction.go
- rangeaggregate.go
- rangeaggregation.go
- rangebucket.go
- rangequery.go
- rankcontainer.go
- rankeddocument.go
- rankevalhit.go
- rankevalhititem.go
- rankevalmetric.go
- rankevalmetricdetail.go
- rankevalmetricdiscountedcumulativegain.go
- rankevalmetricexpectedreciprocalrank.go
- rankevalmetricmeanreciprocalrank.go
- rankevalmetricprecision.go
- rankevalmetricrecall.go
- rankevalquery.go
- rankevalrequestitem.go
- rankfeaturefunctionlinear.go
- rankfeaturefunctionlogarithm.go
- rankfeaturefunctionsaturation.go
- rankfeaturefunctionsigmoid.go
- rankfeatureproperty.go
- rankfeaturequery.go
- rankfeaturesproperty.go
- rankvectorproperty.go
- raretermsaggregation.go
- rateaggregate.go
- rateaggregation.go
- ratelimitsetting.go
- readblobdetails.go
- readexception.go
- readonlyurlrepository.go
- readonlyurlrepositorysettings.go
- readsummaryinfo.go
- realmcache.go
- realminfo.go
- recording.go
- recoverybytes.go
- recoveryfiles.go
- recoveryindexstatus.go
- recoveryorigin.go
- recoveryrecord.go
- recoverystartstatus.go
- recoverystats.go
- recoverystatus.go
- redact.go
- redactprocessor.go
- refreshstats.go
- regexoptions.go
- regexpquery.go
- regexvalidation.go
- registereddomainprocessor.go
- regressioninferenceoptions.go
- reindexdestination.go
- reindexnode.go
- reindexsource.go
- reindexstatus.go
- reindextask.go
- reloaddetails.go
- reloadresult.go
- relocationfailureinfo.go
- remoteclusterinfo.go
- remoteclusterprivileges.go
- remoteindicesprivileges.go
- remotesource.go
- remoteuserindicesprivileges.go
- removeaction.go
- removeclusterserver.go
- removeduplicatestokenfilter.go
- removeindexaction.go
- removeprocessor.go
- renameprocessor.go
- replicationaccess.go
- reportingemailattachment.go
- repositoriesrecord.go
- repository.go
- repositoryintegrityindicator.go
- repositoryintegrityindicatordetails.go
- repositorylocation.go
- repositorymeteringinformation.go
- repositorystatscurrentcounts.go
- repositorystatsshards.go
- requestcachestats.go
- requestchatcompletion.go
- requestcounts.go
- requestitem.go
- reroutedecision.go
- rerouteexplanation.go
- rerouteparameters.go
- rerouteprocessor.go
- rescore.go
- rescorequery.go
- rescorerretriever.go
- rescorevector.go
- reservedsize.go
- resolveclusterinfo.go
- resolveindexaliasitem.go
- resolveindexdatastreamsitem.go
- resolveindexitem.go
- resourceprivileges.go
- responseitem.go
- restriction.go
- retention.go
- retentionlease.go
- retentionpolicy.go
- retentionpolicycontainer.go
- retries.go
- retrievercontainer.go
- reversenestedaggregate.go
- reversenestedaggregation.go
- reversetokenfilter.go
- role.go
- roledescriptor.go
- roledescriptorread.go
- roledescriptorwrapper.go
- rolemappingrule.go
- rolequerycontainer.go
- roletemplate.go
- roletemplateinlinequery.go
- roletemplatequery.go
- roletemplatescript.go
- rolloveraction.go
- rolloverconditions.go
- rollupcapabilities.go
- rollupcapabilitysummary.go
- rollupfieldsummary.go
- rollupjob.go
- rollupjobconfiguration.go
- rollupjobstats.go
- rollupjobstatus.go
- rollupjobsummary.go
- rollupjobsummaryfield.go
- romaniananalyzer.go
- routingfield.go
- rrfrank.go
- rrfretriever.go
- rulecondition.go
- rulequery.go
- ruleretriever.go
- runningstatesearchinterval.go
- runtimefield.go
- runtimefieldfetchfields.go
- runtimefields.go
- runtimefieldstype.go
- russiananalyzer.go
- russianstemtokenfilter.go
- s3repository.go
- s3repositorysettings.go
- samplediversity.go
- sampleraggregate.go
- sampleraggregation.go
- scalarvalue.go
- scaledfloatnumberproperty.go
- scandinavianfoldingtokenfilter.go
- scandinaviannormalizationtokenfilter.go
- schedulecontainer.go
- scheduletimeofday.go
- scheduletriggerevent.go
- schedulingconfiguration.go
- scoresort.go
- script.go
- scriptcache.go
- scriptcondition.go
- scriptedheuristic.go
- scriptedmetricaggregate.go
- scriptedmetricaggregation.go
- scriptfield.go
- scripting.go
- scriptprocessor.go
- scriptquery.go
- scriptscorefunction.go
- scriptscorequery.go
- scriptsort.go
- scripttransform.go
- scrollids.go
- searchablesnapshotaction.go
- searchablesnapshots.go
- searchaccess.go
- searchapplication.go
- searchapplicationparameters.go
- searchapplicationtemplate.go
- searchasyoutypeproperty.go
- searchidle.go
- searchinput.go
- searchinputrequestbody.go
- searchinputrequestdefinition.go
- searchprofile.go
- searchshardsnodeattributes.go
- searchstats.go
- searchtemplaterequestbody.go
- searchtransform.go
- searchusagestats.go
- security.go
- securityrolemapping.go
- securityroles.go
- securityrolesdls.go
- securityrolesdlsbitsetcache.go
- securityrolesfile.go
- securityrolesnative.go
- securitysettings.go
- segment.go
- segmentsrecord.go
- segmentsstats.go
- selectoption.go
- semanticquery.go
- semantictextindexoptions.go
- semantictextproperty.go
- serbiananalyzer.go
- serbiannormalizationtokenfilter.go
- serialdifferencingaggregation.go
- serializedclusterstate.go
- serializedclusterstatedetail.go
- servicetoken.go
- setpriorityaction.go
- setprocessor.go
- setsecurityuserprocessor.go
- settings.go
- settingsanalyze.go
- settingshighlight.go
- settingsquerystring.go
- settingssearch.go
- settingssimilarity.go
- settingssimilaritybm25.go
- settingssimilarityboolean.go
- settingssimilaritydfi.go
- settingssimilaritydfr.go
- settingssimilarityib.go
- settingssimilaritylmd.go
- settingssimilaritylmj.go
- settingssimilarityscripted.go
- shapefieldquery.go
- shapeproperty.go
- shapequery.go
- shardcommit.go
- shardfailure.go
- shardfilesizeinfo.go
- shardhealthstats.go
- shardlease.go
- shardmigrationstatus.go
- shardpath.go
- shardprofile.go
- shardquerycache.go
- shardrecovery.go
- shardretentionleases.go
- shardrouting.go
- shardsavailabilityindicator.go
- shardsavailabilityindicatordetails.go
- shardscapacityindicator.go
- shardscapacityindicatordetails.go
- shardscapacityindicatortierdetail.go
- shardsegmentrouting.go
- shardsequencenumber.go
- shardsrecord.go
- shardssegment.go
- shardsstatssummary.go
- shardsstatssummaryitem.go
- shardstatistics.go
- shardstore.go
- shardstoreexception.go
- shardstoreindex.go
- shardstorenode.go
- shardstorewrapper.go
- shardstotalstats.go
- shared.go
- sharedfilesystemrepository.go
- sharedfilesystemrepositorysettings.go
- shingletokenfilter.go
- shortnumberproperty.go
- shrinkaction.go
- significantlongtermsaggregate.go
- significantlongtermsbucket.go
- significantstringtermsaggregate.go
- significantstringtermsbucket.go
- significanttermsaggregation.go
- significanttextaggregation.go
- simpleanalyzer.go
- simplemovingaverageaggregation.go
- simplepatternsplittokenizer.go
- simplepatterntokenizer.go
- simplequerystringflags.go
- simplequerystringquery.go
- simplevalueaggregate.go
- simulatedactions.go
- simulatedocumentresult.go
- simulateingestdocumentresult.go
- sizefield.go
- sizehttphistogram.go
- slackaction.go
- slackattachment.go
- slackattachmentfield.go
- slackdynamicattachment.go
- slackmessage.go
- slackresult.go
- slicedscroll.go
- slices.go
- slm.go
- slmindicator.go
- slmindicatordetails.go
- slmindicatorunhealthypolicies.go
- slmpolicy.go
- slowlogsettings.go
- slowlogtresholdlevels.go
- slowlogtresholds.go
- smoothingmodelcontainer.go
- snapshotcurrentcounts.go
- snapshotindexstats.go
- snapshotinfo.go
- snapshotlifecycle.go
- snapshotnodeinfo.go
- snapshotpolicystats.go
- snapshotresponseitem.go
- snapshotrestore.go
- snapshotshardfailure.go
- snapshotshardsstats.go
- snapshotshardsstatus.go
- snapshotsrecord.go
- snapshotstats.go
- snowballanalyzer.go
- snowballtokenfilter.go
- softdeletes.go
- soranianalyzer.go
- soraninormalizationtokenfilter.go
- sort.go
- sortcombinations.go
- sortoptions.go
- sortprocessor.go
- sourceconfig.go
- sourceconfigparam.go
- sourcefield.go
- sourcefilter.go
- sourceindex.go
- sourceonlyrepository.go
- sourceonlyrepositorysettings.go
- spancontainingquery.go
- spanfieldmaskingquery.go
- spanfirstquery.go
- spangapquery.go
- spanishanalyzer.go
- spanmultitermquery.go
- spannearquery.go
- spannotquery.go
- spanorquery.go
- spanquery.go
- spantermquery.go
- spanwithinquery.go
- sparseembeddingresult.go
- sparsevector.go
- sparsevectorindexoptions.go
- sparsevectorproperty.go
- sparsevectorquery.go
- sparsevectorstats.go
- specifieddocument.go
- splitprocessor.go
- sql.go
- ssl.go
- stagnatingbackingindices.go
- standardanalyzer.go
- standarddeviationbounds.go
- standarddeviationboundsasstring.go
- standardretriever.go
- standardtokenizer.go
- statistics.go
- stats.go
- statsaggregate.go
- statsaggregation.go
- statsbucketaggregate.go
- statsbucketaggregation.go
- status.go
- statuserror.go
- statusinprogress.go
- stemmeroverridetokenfilter.go
- stemmertokenfilter.go
- stepkey.go
- stopanalyzer.go
- stoptokenfilter.go
- stopwords.go
- storage.go
- storedscript.go
- storestats.go
- streamresult.go
- stringifiedboolean.go
- stringifieddouble.go
- stringifiedepochtimeunitmillis.go
- stringifiedepochtimeunitseconds.go
- stringifiedinteger.go
- stringifiedversionnumber.go
- stringraretermsaggregate.go
- stringraretermsbucket.go
- stringstatsaggregate.go
- stringstatsaggregation.go
- stringtermsaggregate.go
- stringtermsbucket.go
- stupidbackoffsmoothingmodel.go
- suggest.go
- suggestcontext.go
- suggester.go
- suggestfuzziness.go
- sumaggregate.go
- sumaggregation.go
- sumbucketaggregation.go
- summary.go
- summaryinfo.go
- swedishanalyzer.go
- synccontainer.go
- syncjobconnectorreference.go
- syncrulesfeature.go
- synonymgraphtokenfilter.go
- synonymrule.go
- synonymruleread.go
- synonymssetitem.go
- synonymsstats.go
- synonymtokenfilter.go
- tablevaluescontainer.go
- tablevaluesintegervalue.go
- tablevalueskeywordvalue.go
- tablevalueslongdouble.go
- tablevalueslongvalue.go
- targetmeanencodingpreprocessor.go
- taskfailure.go
- taskid.go
- taskinfo.go
- taskinfos.go
- tasksrecord.go
- tdigest.go
- tdigestpercentileranksaggregate.go
- tdigestpercentilesaggregate.go
- template.go
- templateconfig.go
- templatemapping.go
- templatesrecord.go
- term.go
- terminateprocessor.go
- termquery.go
- termrangequery.go
- termsaggregation.go
- termsexclude.go
- termsgrouping.go
- termsinclude.go
- termslookup.go
- termspartition.go
- termsquery.go
- termsqueryfield.go
- termssetquery.go
- termsuggest.go
- termsuggester.go
- termsuggestoption.go
- termvector.go
- termvectorsfilter.go
- termvectorsresult.go
- termvectorstoken.go
- testpopulation.go
- textclassificationinferenceoptions.go
- textclassificationinferenceupdateoptions.go
- textembedding.go
- textembeddingbyteresult.go
- textembeddinginferenceoptions.go
- textembeddinginferenceupdateoptions.go
- textembeddingresult.go
- textexpansioninferenceoptions.go
- textexpansioninferenceupdateoptions.go
- textexpansionquery.go
- textindexprefixes.go
- textproperty.go
- textsimilarityreranker.go
- texttoanalyze.go
- thaianalyzer.go
- thaitokenizer.go
- threadcount.go
- threadpoolrecord.go
- throttlestate.go
- timehttphistogram.go
- timeofmonth.go
- timeofweek.go
- timeofyear.go
- timeseriesaggregate.go
- timeseriesaggregation.go
- timeseriesbucket.go
- timesync.go
- timingstats.go
- tokencountproperty.go
- tokendetail.go
- tokenfilter.go
- tokenfilterdefinition.go
- tokenizationconfigcontainer.go
- tokenizer.go
- tokenizerdefinition.go
- tokenpruningconfig.go
- toolcall.go
- toolcallfunction.go
- topclassentry.go
- tophit.go
- tophitsaggregate.go
- tophitsaggregation.go
- topleftbottomrightgeobounds.go
- topmetrics.go
- topmetricsaggregate.go
- topmetricsaggregation.go
- topmetricsvalue.go
- toprightbottomleftgeobounds.go
- totalfeatureimportance.go
- totalfeatureimportanceclass.go
- totalfeatureimportancestatistics.go
- totalhits.go
- totaluserprofiles.go
- trackhits.go
- trainedmodel.go
- trainedmodelassignment.go
- trainedmodelassignmentroutingstateandreason.go
- trainedmodelassignmentroutingtable.go
- trainedmodelassignmenttaskparameters.go
- trainedmodelconfig.go
- trainedmodelconfiginput.go
- trainedmodelconfigmetadata.go
- trainedmodeldeploymentallocationstatus.go
- trainedmodeldeploymentnodesstats.go
- trainedmodeldeploymentstats.go
- trainedmodelentities.go
- trainedmodelinferenceclassimportance.go
- trainedmodelinferencefeatureimportance.go
- trainedmodelinferencestats.go
- trainedmodellocation.go
- trainedmodellocationindex.go
- trainedmodelprefixstrings.go
- trainedmodelsizestats.go
- trainedmodelsrecord.go
- trainedmodelstats.go
- trainedmodeltree.go
- trainedmodeltreenode.go
- transformauthorization.go
- transformcontainer.go
- transformdestination.go
- transformhealthissue.go
- transformindexerstats.go
- transformprogress.go
- transformsource.go
- transformsrecord.go
- transformstats.go
- transformstatshealth.go
- transformsummary.go
- translog.go
- translogretention.go
- translogstats.go
- translogstatus.go
- transport.go
- transporthistogram.go
- triggercontainer.go
- triggereventcontainer.go
- triggereventresult.go
- trimprocessor.go
- trimtokenfilter.go
- truncatetokenfilter.go
- ttestaggregate.go
- ttestaggregation.go
- turkishanalyzer.go
- typefieldmappings.go
- typemapping.go
- typequery.go
- uaxemailurltokenizer.go
- unassignedinformation.go
- uniquetokenfilter.go
- unmappedraretermsaggregate.go
- unmappedsampleraggregate.go
- unmappedsignificanttermsaggregate.go
- unmappedtermsaggregate.go
- unrateddocument.go
- unsignedlongnumberproperty.go
- untypeddecayfunction.go
- untypeddistancefeaturequery.go
- untypedrangequery.go
- updateaction.go
- updatebyqueryrethrottlenode.go
- updateoperation.go
- uppercaseprocessor.go
- uppercasetokenfilter.go
- uripartsprocessor.go
- urldecodeprocessor.go
- usagephase.go
- usagephases.go
- usagestatsindex.go
- usagestatsshards.go
- user.go
- useragentprocessor.go
- userindicesprivileges.go
- userprofile.go
- userprofilehitmetadata.go
- userprofileuser.go
- userprofilewithmetadata.go
- userquerycontainer.go
- userrealm.go
- validation.go
- validationloss.go
- valuecountaggregate.go
- valuecountaggregation.go
- variablewidthhistogramaggregate.go
- variablewidthhistogramaggregation.go
- variablewidthhistogrambucket.go
- vector.go
- verifyindex.go
- versionproperty.go
- vertex.go
- vertexdefinition.go
- vertexinclude.go
- vocabulary.go
- void.go
- voyageaiservicesettings.go
- voyageaitasksettings.go
- waitforactiveshards.go
- waitfornodes.go
- waitforsnapshotaction.go
- warmerstats.go
- watch.go
- watcher.go
- watcheraction.go
- watcheractions.go
- watcheractiontotals.go
- watchercondition.go
- watcherinput.go
- watchernodestats.go
- watcherstatusactions.go
- watcherwatch.go
- watcherwatchtrigger.go
- watcherwatchtriggerschedule.go
- watchrecord.go
- watchrecordqueuedstats.go
- watchrecordstats.go
- watchstatus.go
- watsonxservicesettings.go
- web.go
- webhookaction.go
- webhookresult.go
- weightedaverageaggregation.go
- weightedaveragevalue.go
- weightedavgaggregate.go
- weightedtokensquery.go
- weights.go
- whitespaceanalyzer.go
- whitespacetokenizer.go
- wildcardproperty.go
- wildcardquery.go
- wktgeobounds.go
- worddelimitergraphtokenfilter.go
- worddelimitertokenfilter.go
- wrapperquery.go
- writeresponsebase.go
- writesummaryinfo.go
- xlmrobertatokenizationconfig.go
- xpackdatafeed.go
- xpackfeature.go
- xpackfeatures.go
- xpackquery.go
- xpackrealm.go
- xpackrolemapping.go
- xpackruntimefieldtypes.go
- zeroshotclassificationinferenceoptions.go
- zeroshotclassificationinferenceupdateoptions.go
Directories¶
| Path | Synopsis |
|---|---|
enums | |
accesstokengranttype Package accesstokengranttype | Package accesstokengranttype |
acknowledgementoptions Package acknowledgementoptions | Package acknowledgementoptions |
actionexecutionmode Package actionexecutionmode | Package actionexecutionmode |
actionstatusoptions Package actionstatusoptions | Package actionstatusoptions |
actiontype Package actiontype | Package actiontype |
alibabacloudservicetype Package alibabacloudservicetype | Package alibabacloudservicetype |
alibabacloudtasktype Package alibabacloudtasktype | Package alibabacloudtasktype |
allocationexplaindecision Package allocationexplaindecision | Package allocationexplaindecision |
amazonbedrockservicetype Package amazonbedrockservicetype | Package amazonbedrockservicetype |
amazonbedrocktasktype Package amazonbedrocktasktype | Package amazonbedrocktasktype |
amazonsagemakerapi Package amazonsagemakerapi | Package amazonsagemakerapi |
amazonsagemakerservicetype Package amazonsagemakerservicetype | Package amazonsagemakerservicetype |
anthropicservicetype Package anthropicservicetype | Package anthropicservicetype |
anthropictasktype Package anthropictasktype | Package anthropictasktype |
apikeygranttype Package apikeygranttype | Package apikeygranttype |
apikeytype Package apikeytype | Package apikeytype |
appliesto Package appliesto | Package appliesto |
azureaistudioservicetype Package azureaistudioservicetype | Package azureaistudioservicetype |
azureaistudiotasktype Package azureaistudiotasktype | Package azureaistudiotasktype |
azureopenaiservicetype Package azureopenaiservicetype | Package azureopenaiservicetype |
azureopenaitasktype Package azureopenaitasktype | Package azureopenaitasktype |
boundaryscanner Package boundaryscanner | Package boundaryscanner |
bytes Package bytes | Package bytes |
calendarinterval Package calendarinterval | Package calendarinterval |
cardinalityexecutionmode Package cardinalityexecutionmode | Package cardinalityexecutionmode |
catanomalydetectorcolumn Package catanomalydetectorcolumn | Package catanomalydetectorcolumn |
catdatafeedcolumn Package catdatafeedcolumn | Package catdatafeedcolumn |
catdfacolumn Package catdfacolumn | Package catdfacolumn |
categorizationstatus Package categorizationstatus | Package categorizationstatus |
catnodecolumn Package catnodecolumn | Package catnodecolumn |
catrecoverycolumn Package catrecoverycolumn | Package catrecoverycolumn |
catsegmentscolumn Package catsegmentscolumn | Package catsegmentscolumn |
catshardcolumn Package catshardcolumn | Package catshardcolumn |
catsnapshotscolumn Package catsnapshotscolumn | Package catsnapshotscolumn |
catthreadpoolcolumn Package catthreadpoolcolumn | Package catthreadpoolcolumn |
cattrainedmodelscolumn Package cattrainedmodelscolumn | Package cattrainedmodelscolumn |
cattransformcolumn Package cattransformcolumn | Package cattransformcolumn |
childscoremode Package childscoremode | Package childscoremode |
chunkingmode Package chunkingmode | Package chunkingmode |
cjkbigramignoredscript Package cjkbigramignoredscript | Package cjkbigramignoredscript |
clusterinfotarget Package clusterinfotarget | Package clusterinfotarget |
clusterprivilege Package clusterprivilege | Package clusterprivilege |
clustersearchstatus Package clustersearchstatus | Package clustersearchstatus |
cohereembeddingtype Package cohereembeddingtype | Package cohereembeddingtype |
cohereinputtype Package cohereinputtype | Package cohereinputtype |
cohereservicetype Package cohereservicetype | Package cohereservicetype |
coheresimilaritytype Package coheresimilaritytype | Package coheresimilaritytype |
coheretasktype Package coheretasktype | Package coheretasktype |
coheretruncatetype Package coheretruncatetype | Package coheretruncatetype |
combinedfieldsoperator Package combinedfieldsoperator | Package combinedfieldsoperator |
combinedfieldszeroterms Package combinedfieldszeroterms | Package combinedfieldszeroterms |
conditionop Package conditionop | Package conditionop |
conditionoperator Package conditionoperator | Package conditionoperator |
conditiontype Package conditiontype | Package conditiontype |
conflicts Package conflicts | Package conflicts |
connectionscheme Package connectionscheme | Package connectionscheme |
connectorfieldtype Package connectorfieldtype | Package connectorfieldtype |
connectorstatus Package connectorstatus | Package connectorstatus |
converttype Package converttype | Package converttype |
customservicetype Package customservicetype | Package customservicetype |
customtasktype Package customtasktype | Package customtasktype |
dataattachmentformat Package dataattachmentformat | Package dataattachmentformat |
datafeedstate Package datafeedstate | Package datafeedstate |
dataframestate Package dataframestate | Package dataframestate |
day Package day | Package day |
decision Package decision | Package decision |
deepseekservicetype Package deepseekservicetype | Package deepseekservicetype |
delimitedpayloadencoding Package delimitedpayloadencoding | Package delimitedpayloadencoding |
densevectorelementtype Package densevectorelementtype | Package densevectorelementtype |
densevectorindexoptionstype Package densevectorindexoptionstype | Package densevectorindexoptionstype |
densevectorsimilarity Package densevectorsimilarity | Package densevectorsimilarity |
deploymentallocationstate Package deploymentallocationstate | Package deploymentallocationstate |
deploymentassignmentstate Package deploymentassignmentstate | Package deploymentassignmentstate |
deprecationlevel Package deprecationlevel | Package deprecationlevel |
dfiindependencemeasure Package dfiindependencemeasure | Package dfiindependencemeasure |
dfraftereffect Package dfraftereffect | Package dfraftereffect |
dfrbasicmodel Package dfrbasicmodel | Package dfrbasicmodel |
displaytype Package displaytype | Package displaytype |
distanceunit Package distanceunit | Package distanceunit |
dynamicmapping Package dynamicmapping | Package dynamicmapping |
ecscompatibilitytype Package ecscompatibilitytype | Package ecscompatibilitytype |
edgengramside Package edgengramside | Package edgengramside |
elasticsearchservicetype Package elasticsearchservicetype | Package elasticsearchservicetype |
elasticsearchtasktype Package elasticsearchtasktype | Package elasticsearchtasktype |
elserservicetype Package elserservicetype | Package elserservicetype |
elsertasktype Package elsertasktype | Package elsertasktype |
emailpriority Package emailpriority | Package emailpriority |
enrichpolicyphase Package enrichpolicyphase | Package enrichpolicyphase |
esqlclusterstatus Package esqlclusterstatus | Package esqlclusterstatus |
esqlformat Package esqlformat | Package esqlformat |
eventtype Package eventtype | Package eventtype |
excludefrequent Package excludefrequent | Package excludefrequent |
executionphase Package executionphase | Package executionphase |
executionstatus Package executionstatus | Package executionstatus |
expandwildcard Package expandwildcard | Package expandwildcard |
failurestorestatus Package failurestorestatus | Package failurestorestatus |
feature Package feature | Package feature |
fieldsortnumerictype Package fieldsortnumerictype | Package fieldsortnumerictype |
fieldtype Package fieldtype | Package fieldtype |
fieldvaluefactormodifier Package fieldvaluefactormodifier | Package fieldvaluefactormodifier |
filteringpolicy Package filteringpolicy | Package filteringpolicy |
filteringrulerule Package filteringrulerule | Package filteringrulerule |
filteringvalidationstate Package filteringvalidationstate | Package filteringvalidationstate |
filtertype Package filtertype | Package filtertype |
fingerprintdigest Package fingerprintdigest | Package fingerprintdigest |
followerindexstatus Package followerindexstatus | Package followerindexstatus |
formattype Package formattype | Package formattype |
functionboostmode Package functionboostmode | Package functionboostmode |
functionscoremode Package functionscoremode | Package functionscoremode |
gappolicy Package gappolicy | Package gappolicy |
geodistancetype Package geodistancetype | Package geodistancetype |
geoexecution Package geoexecution | Package geoexecution |
geogridtargetformat Package geogridtargetformat | Package geogridtargetformat |
geogridtiletype Package geogridtiletype | Package geogridtiletype |
geoorientation Package geoorientation | Package geoorientation |
geopointmetrictype Package geopointmetrictype | Package geopointmetrictype |
geoshaperelation Package geoshaperelation | Package geoshaperelation |
geostrategy Package geostrategy | Package geostrategy |
geovalidationmethod Package geovalidationmethod | Package geovalidationmethod |
googleaiservicetype Package googleaiservicetype | Package googleaiservicetype |
googleaistudiotasktype Package googleaistudiotasktype | Package googleaistudiotasktype |
googlevertexaiservicetype Package googlevertexaiservicetype | Package googlevertexaiservicetype |
googlevertexaitasktype Package googlevertexaitasktype | Package googlevertexaitasktype |
granttype Package granttype | Package granttype |
gridaggregationtype Package gridaggregationtype | Package gridaggregationtype |
gridtype Package gridtype | Package gridtype |
groupby Package groupby | Package groupby |
healthstatus Package healthstatus | Package healthstatus |
highlighterencoder Package highlighterencoder | Package highlighterencoder |
highlighterfragmenter Package highlighterfragmenter | Package highlighterfragmenter |
highlighterorder Package highlighterorder | Package highlighterorder |
highlightertagsschema Package highlightertagsschema | Package highlightertagsschema |
highlightertype Package highlightertype | Package highlightertype |
holtwinterstype Package holtwinterstype | Package holtwinterstype |
httpinputmethod Package httpinputmethod | Package httpinputmethod |
huggingfaceservicetype Package huggingfaceservicetype | Package huggingfaceservicetype |
huggingfacetasktype Package huggingfacetasktype | Package huggingfacetasktype |
ibdistribution Package ibdistribution | Package ibdistribution |
iblambda Package iblambda | Package iblambda |
icucollationalternate Package icucollationalternate | Package icucollationalternate |
icucollationcasefirst Package icucollationcasefirst | Package icucollationcasefirst |
icucollationdecomposition Package icucollationdecomposition | Package icucollationdecomposition |
icucollationstrength Package icucollationstrength | Package icucollationstrength |
icunormalizationmode Package icunormalizationmode | Package icunormalizationmode |
icunormalizationtype Package icunormalizationtype | Package icunormalizationtype |
icutransformdirection Package icutransformdirection | Package icutransformdirection |
impactarea Package impactarea | Package impactarea |
include Package include | Package include |
indexcheckonstartup Package indexcheckonstartup | Package indexcheckonstartup |
indexingjobstate Package indexingjobstate | Package indexingjobstate |
indexmetadatastate Package indexmetadatastate | Package indexmetadatastate |
indexoptions Package indexoptions | Package indexoptions |
indexprivilege Package indexprivilege | Package indexprivilege |
indexroutingallocationoptions Package indexroutingallocationoptions | Package indexroutingallocationoptions |
indexroutingrebalanceoptions Package indexroutingrebalanceoptions | Package indexroutingrebalanceoptions |
indicatorhealthstatus Package indicatorhealthstatus | Package indicatorhealthstatus |
indicesblockoptions Package indicesblockoptions | Package indicesblockoptions |
inputtype Package inputtype | Package inputtype |
jinaaiservicetype Package jinaaiservicetype | Package jinaaiservicetype |
jinaaisimilaritytype Package jinaaisimilaritytype | Package jinaaisimilaritytype |
jinaaitasktype Package jinaaitasktype | Package jinaaitasktype |
jinaaitextembeddingtask Package jinaaitextembeddingtask | Package jinaaitextembeddingtask |
jobblockedreason Package jobblockedreason | Package jobblockedreason |
jobstate Package jobstate | Package jobstate |
jsonprocessorconflictstrategy Package jsonprocessorconflictstrategy | Package jsonprocessorconflictstrategy |
keeptypesmode Package keeptypesmode | Package keeptypesmode |
kuromojitokenizationmode Package kuromojitokenizationmode | Package kuromojitokenizationmode |
level Package level | Package level |
licensestatus Package licensestatus | Package licensestatus |
licensetype Package licensetype | Package licensetype |
lifecycleoperationmode Package lifecycleoperationmode | Package lifecycleoperationmode |
lowercasetokenfilterlanguages Package lowercasetokenfilterlanguages | Package lowercasetokenfilterlanguages |
managedby Package managedby | Package managedby |
matchtype Package matchtype | Package matchtype |
memorystatus Package memorystatus | Package memorystatus |
metric Package metric | Package metric |
migrationstatus Package migrationstatus | Package migrationstatus |
minimuminterval Package minimuminterval | Package minimuminterval |
missingorder Package missingorder | Package missingorder |
mistralservicetype Package mistralservicetype | Package mistralservicetype |
mistraltasktype Package mistraltasktype | Package mistraltasktype |
modeenum Package modeenum | Package modeenum |
month Package month | Package month |
multivaluemode Package multivaluemode | Package multivaluemode |
noderole Package noderole | Package noderole |
noridecompoundmode Package noridecompoundmode | Package noridecompoundmode |
normalization Package normalization | Package normalization |
normalizemethod Package normalizemethod | Package normalizemethod |
numericfielddataformat Package numericfielddataformat | Package numericfielddataformat |
onscripterror Package onscripterror | Package onscripterror |
openaiservicetype Package openaiservicetype | Package openaiservicetype |
openaitasktype Package openaitasktype | Package openaitasktype |
operationtype Package operationtype | Package operationtype |
operator Package operator | Package operator |
optype Package optype | Package optype |
pagerdutycontexttype Package pagerdutycontexttype | Package pagerdutycontexttype |
pagerdutyeventtype Package pagerdutyeventtype | Package pagerdutyeventtype |
painlesscontext Package painlesscontext | Package painlesscontext |
phoneticencoder Package phoneticencoder | Package phoneticencoder |
phoneticlanguage Package phoneticlanguage | Package phoneticlanguage |
phoneticnametype Package phoneticnametype | Package phoneticnametype |
phoneticruletype Package phoneticruletype | Package phoneticruletype |
pipelinesimulationstatusoptions Package pipelinesimulationstatusoptions | Package pipelinesimulationstatusoptions |
policytype Package policytype | Package policytype |
quantifier Package quantifier | Package quantifier |
queryrulecriteriatype Package queryrulecriteriatype | Package queryrulecriteriatype |
queryruletype Package queryruletype | Package queryruletype |
rangerelation Package rangerelation | Package rangerelation |
rankvectorelementtype Package rankvectorelementtype | Package rankvectorelementtype |
ratemode Package ratemode | Package ratemode |
refresh Package refresh | Package refresh |
remoteclusterprivilege Package remoteclusterprivilege | Package remoteclusterprivilege |
responsecontenttype Package responsecontenttype | Package responsecontenttype |
restrictionworkflow Package restrictionworkflow | Package restrictionworkflow |
result Package result | Package result |
resultposition Package resultposition | Package resultposition |
routingstate Package routingstate | Package routingstate |
ruleaction Package ruleaction | Package ruleaction |
runtimefieldtype Package runtimefieldtype | Package runtimefieldtype |
sampleraggregationexecutionhint Package sampleraggregationexecutionhint | Package sampleraggregationexecutionhint |
scoremode Package scoremode | Package scoremode |
scorenormalizer Package scorenormalizer | Package scorenormalizer |
scriptlanguage Package scriptlanguage | Package scriptlanguage |
scriptsorttype Package scriptsorttype | Package scriptsorttype |
searchtype Package searchtype | Package searchtype |
segmentsortmissing Package segmentsortmissing | Package segmentsortmissing |
segmentsortmode Package segmentsortmode | Package segmentsortmode |
segmentsortorder Package segmentsortorder | Package segmentsortorder |
shapetype Package shapetype | Package shapetype |
shardroutingstate Package shardroutingstate | Package shardroutingstate |
shardsstatsstage Package shardsstatsstage | Package shardsstatsstage |
shardstate Package shardstate | Package shardstate |
shardstoreallocation Package shardstoreallocation | Package shardstoreallocation |
shardstorestatus Package shardstorestatus | Package shardstorestatus |
shutdownstatus Package shutdownstatus | Package shutdownstatus |
shutdowntype Package shutdowntype | Package shutdowntype |
simplequerystringflag Package simplequerystringflag | Package simplequerystringflag |
slicescalculation Package slicescalculation | Package slicescalculation |
snapshotsort Package snapshotsort | Package snapshotsort |
snapshotupgradestate Package snapshotupgradestate | Package snapshotupgradestate |
snowballlanguage Package snowballlanguage | Package snowballlanguage |
sortmode Package sortmode | Package sortmode |
sortorder Package sortorder | Package sortorder |
sourcefieldmode Package sourcefieldmode | Package sourcefieldmode |
sourcemode Package sourcemode | Package sourcemode |
sqlformat Package sqlformat | Package sqlformat |
statslevel Package statslevel | Package statslevel |
stopwordlanguage Package stopwordlanguage | Package stopwordlanguage |
storagetype Package storagetype | Package storagetype |
stringdistance Package stringdistance | Package stringdistance |
subobjects Package subobjects | Package subobjects |
suggestmode Package suggestmode | Package suggestmode |
suggestsort Package suggestsort | Package suggestsort |
syncjobtriggermethod Package syncjobtriggermethod | Package syncjobtriggermethod |
syncjobtype Package syncjobtype | Package syncjobtype |
syncstatus Package syncstatus | Package syncstatus |
synonymformat Package synonymformat | Package synonymformat |
syntheticsourcekeepenum Package syntheticsourcekeepenum | Package syntheticsourcekeepenum |
tasktype Package tasktype | Package tasktype |
tasktypealibabacloudai Package tasktypealibabacloudai | Package tasktypealibabacloudai |
tasktypeamazonbedrock Package tasktypeamazonbedrock | Package tasktypeamazonbedrock |
tasktypeamazonsagemaker Package tasktypeamazonsagemaker | Package tasktypeamazonsagemaker |
tasktypeanthropic Package tasktypeanthropic | Package tasktypeanthropic |
tasktypeazureaistudio Package tasktypeazureaistudio | Package tasktypeazureaistudio |
tasktypeazureopenai Package tasktypeazureopenai | Package tasktypeazureopenai |
tasktypecohere Package tasktypecohere | Package tasktypecohere |
tasktypecustom Package tasktypecustom | Package tasktypecustom |
tasktypedeepseek Package tasktypedeepseek | Package tasktypedeepseek |
tasktypeelasticsearch Package tasktypeelasticsearch | Package tasktypeelasticsearch |
tasktypeelser Package tasktypeelser | Package tasktypeelser |
tasktypegoogleaistudio Package tasktypegoogleaistudio | Package tasktypegoogleaistudio |
tasktypegooglevertexai Package tasktypegooglevertexai | Package tasktypegooglevertexai |
tasktypehuggingface Package tasktypehuggingface | Package tasktypehuggingface |
tasktypejinaai Package tasktypejinaai | Package tasktypejinaai |
tasktypemistral Package tasktypemistral | Package tasktypemistral |
tasktypeopenai Package tasktypeopenai | Package tasktypeopenai |
tasktypevoyageai Package tasktypevoyageai | Package tasktypevoyageai |
tasktypewatsonx Package tasktypewatsonx | Package tasktypewatsonx |
tdigestexecutionhint Package tdigestexecutionhint | Package tdigestexecutionhint |
templateformat Package templateformat | Package templateformat |
termsaggregationcollectmode Package termsaggregationcollectmode | Package termsaggregationcollectmode |
termsaggregationexecutionhint Package termsaggregationexecutionhint | Package termsaggregationexecutionhint |
termvectoroption Package termvectoroption | Package termvectoroption |
textquerytype Package textquerytype | Package textquerytype |
threadtype Package threadtype | Package threadtype |
timeseriesmetrictype Package timeseriesmetrictype | Package timeseriesmetrictype |
timeunit Package timeunit | Package timeunit |
tokenchar Package tokenchar | Package tokenchar |
tokenizationtruncate Package tokenizationtruncate | Package tokenizationtruncate |
totalhitsrelation Package totalhitsrelation | Package totalhitsrelation |
trainedmodeltype Package trainedmodeltype | Package trainedmodeltype |
trainingpriority Package trainingpriority | Package trainingpriority |
translogdurability Package translogdurability | Package translogdurability |
ttesttype Package ttesttype | Package ttesttype |
type_ Package type_ | Package type_ |
unassignedinformationreason Package unassignedinformationreason | Package unassignedinformationreason |
useragentproperty Package useragentproperty | Package useragentproperty |
valuetype Package valuetype | Package valuetype |
versiontype Package versiontype | Package versiontype |
voyageaiservicetype Package voyageaiservicetype | Package voyageaiservicetype |
voyageaitasktype Package voyageaitasktype | Package voyageaitasktype |
waitforactiveshardoptions Package waitforactiveshardoptions | Package waitforactiveshardoptions |
waitforevents Package waitforevents | Package waitforevents |
watchermetric Package watchermetric | Package watchermetric |
watcherstate Package watcherstate | Package watcherstate |
watsonxservicetype Package watsonxservicetype | Package watsonxservicetype |
watsonxtasktype Package watsonxtasktype | Package watsonxtasktype |
xpackcategory Package xpackcategory | Package xpackcategory |
zerotermsquery Package zerotermsquery | Package zerotermsquery |