@elastic/elasticsearch 9.5.0 → 9.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5757,9 +5757,15 @@ export type InlineGet<TDocument = unknown> = InlineGetKeys<TDocument> & {
5757
5757
  [property: string]: any;
5758
5758
  };
5759
5759
  export interface InnerRetriever {
5760
+ /** The nested retriever configuration. */
5760
5761
  retriever: RetrieverContainer;
5761
- weight: float;
5762
- normalizer: ScoreNormalizer;
5762
+ /** Weight multiplier for this retriever's contribution to the linear combination.
5763
+ * Must be non-negative. */
5764
+ weight?: float;
5765
+ /** Score normalizer to apply to this retriever's results before weighting.
5766
+ * Falls back to the top-level `normalizer` on the linear retriever if unset,
5767
+ * then to `none` (identity) if neither is set. */
5768
+ normalizer?: ScoreNormalizer;
5763
5769
  }
5764
5770
  export type Ip = string;
5765
5771
  export type KnnEmbeddingInput = string | InferenceStringGroup;
@@ -5793,7 +5799,7 @@ export interface KnnRetriever extends RetrieverBase {
5793
5799
  /** Number of nearest neighbors to return as top hits. */
5794
5800
  k: integer;
5795
5801
  /** Number of nearest neighbor candidates to consider per shard. */
5796
- num_candidates: integer;
5802
+ num_candidates?: integer;
5797
5803
  /** The percentage of vectors to explore per shard while doing knn search with bbq_disk */
5798
5804
  visit_percentage?: float;
5799
5805
  /** The minimum similarity required for a document to be considered a match. */
@@ -9478,9 +9484,32 @@ export interface MappingDenseVectorIndexOptions {
9478
9484
  * search. `-1` (default) defers to format defaults: `300` for `bbq_hnsw`, `150` for `hnsw`, `int8_hnsw`, and
9479
9485
  * `int4_hnsw`. `0` always builds the graph. A positive value overrides the format default.
9480
9486
  *
9481
- * Only applicable to `hnsw`, `int8_hnsw`, `int4_hnsw`, and `bbq_hnsw` index types.
9487
+ * Only applicable to `hnsw`, `int8_hnsw`, `int4_hnsw`, `bbq_hnsw`, and `bbq_disk` index types.
9482
9488
  * @remarks This property is not supported on Elastic Cloud Serverless. */
9483
9489
  flat_index_threshold?: integer;
9490
+ /** Only applicable to `bbq_disk`. The number of vectors per cluster. Must be between 64 and 65536.
9491
+ * @remarks This property is not supported on Elastic Cloud Serverless. */
9492
+ cluster_size?: integer;
9493
+ /** Only applicable to `bbq_disk`. The percentage of clusters to visit during search. Must be between 0 and 100.
9494
+ * A value of 0 defaults to using `num_candidates` for calculating the visit percentage.
9495
+ * @remarks This property is not supported on Elastic Cloud Serverless. */
9496
+ default_visit_percentage?: float;
9497
+ /** Only applicable to `bbq_disk`. The number of bits per dimension for quantization encoding.
9498
+ * Valid values are `1`, `2`, `4`, or `7`. When no `rescore_vector` is explicitly set,
9499
+ * the default oversampling is automatically adjusted based on the bits value.
9500
+ * This setting can be changed without reindexing.
9501
+ * @remarks This property is not supported on Elastic Cloud Serverless. */
9502
+ bits?: integer;
9503
+ /** Only applicable to `bbq_disk`. When `true`, transforms indexed vectors using a random orthogonal
9504
+ * projection before quantization, which can improve accuracy when vector components are not normally
9505
+ * distributed. Cannot be changed after the field is created.
9506
+ * @remarks This property is not supported on Elastic Cloud Serverless. */
9507
+ precondition?: boolean;
9508
+ /** Only applicable to `bbq_disk`. When `true`, Elasticsearch automatically selects the optimal
9509
+ * quantization encoding, oversampling factor, and preconditioning for each merged segment based
9510
+ * on estimated recall characteristics. Cannot be changed after the field is created.
9511
+ * @remarks This property is not supported on Elastic Cloud Serverless. */
9512
+ auto_calibrate?: boolean;
9484
9513
  }
9485
9514
  export interface MappingDenseVectorIndexOptionsRescoreVector {
9486
9515
  /** The oversampling factor to use when searching for the nearest neighbor. This is only applicable to the quantized formats: `bbq_*`, `int4_*`, and `int8_*`.
@@ -9871,7 +9900,9 @@ export interface MappingSemanticTextProperty {
9871
9900
  meta?: Record<string, string>;
9872
9901
  /** Inference endpoint that will be used to generate embeddings for the field.
9873
9902
  * This parameter cannot be updated. Use the Create inference API to create the endpoint.
9874
- * If `search_inference_id` is specified, the inference endpoint will only be used at index time. */
9903
+ * If `search_inference_id` is specified, the inference endpoint will only be used at index time.
9904
+ * If the `inference_id` is not specified, it will default to `.jina-embeddings-v5-text-small` if the cluster is authorized to use the Elastic Inference Service,
9905
+ * otherwise it will default to `.elser-2-elasticsearch`. The `.elser-2-elasticsearch` inference endpoint relies on a local ML node to run the ELSER model. */
9875
9906
  inference_id?: Id;
9876
9907
  /** Inference endpoint that will be used to generate embeddings at query time.
9877
9908
  * You can update this parameter by using the Update mapping API. Use the Create inference API to create the endpoint.
@@ -9908,7 +9939,7 @@ export interface MappingSourceField {
9908
9939
  includes?: string[];
9909
9940
  mode?: MappingSourceFieldMode;
9910
9941
  }
9911
- export type MappingSourceFieldMode = 'disabled' | 'stored' | 'synthetic';
9942
+ export type MappingSourceFieldMode = 'disabled' | 'stored' | 'columnar_stored' | 'synthetic';
9912
9943
  export interface MappingSparseVectorIndexOptions {
9913
9944
  /** Whether to perform pruning, omitting the non-significant tokens from the query to improve query performance.
9914
9945
  * If prune is true but the pruning_config is not specified, pruning will occur but default values will be used.
@@ -47066,9 +47097,24 @@ export interface TransformDestination {
47066
47097
  * fields when possible. If alternate mappings are required, use the create index API prior to starting the
47067
47098
  * transform. */
47068
47099
  index?: IndexName;
47100
+ /** The aliases that the destination index for the transform should have.
47101
+ * Aliases are manipulated using the stored credentials of the transform, which means the secondary credentials
47102
+ * supplied at creation time (if both primary and secondary credentials are specified).
47103
+ *
47104
+ * The destination index is added to the aliases regardless of whether the destination index was created by the
47105
+ * transform or pre-created by the user. */
47106
+ aliases?: TransformDestinationAlias[];
47069
47107
  /** The unique identifier for an ingest pipeline. */
47070
47108
  pipeline?: string;
47071
47109
  }
47110
+ export interface TransformDestinationAlias {
47111
+ /** The name of the alias. */
47112
+ alias: IndexAlias;
47113
+ /** Whether the destination index should be the only index in this alias.
47114
+ * If `true`, all the other indices will be removed from this alias before adding the destination index to this
47115
+ * alias. This does not delete the removed indices; it only removes them from the alias. */
47116
+ move_on_creation?: boolean;
47117
+ }
47072
47118
  export interface TransformLatest {
47073
47119
  /** Specifies the date field that is used to identify the latest documents. */
47074
47120
  sort: Field;
@@ -47292,7 +47338,7 @@ export interface TransformGetTransformTransformSummary {
47292
47338
  /** Free text description of the transform. */
47293
47339
  description?: string;
47294
47340
  /** The destination for the transform. */
47295
- dest: ReindexDestination;
47341
+ dest: TransformDestination;
47296
47342
  frequency?: Duration;
47297
47343
  id: Id;
47298
47344
  latest?: TransformLatest;
@@ -47797,7 +47843,7 @@ export interface TransformUpdateTransformResponse {
47797
47843
  authorization?: MlTransformAuthorization;
47798
47844
  create_time: long;
47799
47845
  description: string;
47800
- dest: ReindexDestination;
47846
+ dest: TransformDestination;
47801
47847
  frequency?: Duration;
47802
47848
  id: Id;
47803
47849
  latest?: TransformLatest;