Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
347 changes: 331 additions & 16 deletions output/openapi/elasticsearch-openapi.json

Large diffs are not rendered by default.

36 changes: 30 additions & 6 deletions output/openapi/elasticsearch-serverless-openapi.json

Large diffs are not rendered by default.

1,033 changes: 929 additions & 104 deletions output/schema/schema.json

Large diffs are not rendered by default.

36 changes: 25 additions & 11 deletions output/typescript/types.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

42 changes: 42 additions & 0 deletions specification/_types/mapping/SparseVectorIndexOptions.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

import { TokenPruningConfig } from '@_types/TokenPruningConfig'

export class SparseVectorIndexOptions {
/**
* 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: false
* @availability stack since=8.19.0
* @availability serverless
* @variant container_property
*/
prune?: boolean
/**
* 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.
* @availability stack since=8.19.0
* @availability serverless
* @variant container_property
*/
pruning_config?: TokenPruningConfig
}
8 changes: 8 additions & 0 deletions specification/_types/mapping/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ import { NumericFielddata } from '@indices/_types/NumericFielddata'
import { Dictionary } from '@spec_utils/Dictionary'
import { ChunkingSettings } from './ChunkingSettings'
import { Property, PropertyBase } from './Property'
import { SparseVectorIndexOptions } from './SparseVectorIndexOptions'
import { TermVectorOption } from './TermVectorOption'
import { TimeSeriesMetricType } from './TimeSeriesMetricType'

Expand Down Expand Up @@ -225,6 +226,13 @@ export class RankVectorProperty extends PropertyBase {
export class SparseVectorProperty extends PropertyBase {
store?: boolean
type: 'sparse_vector'
/**
* Additional index options for the sparse vector field that controls the
* token pruning behavior of the sparse vector field.
* @availability stack since=8.19.0
* @availability serverless
*/
index_options?: SparseVectorIndexOptions
}

export class SemanticTextProperty {
Expand Down
2 changes: 1 addition & 1 deletion specification/_types/query_dsl/SparseVectorQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
import { Field, Id } from '@_types/common'
import { float } from '@_types/Numeric'
import { Dictionary } from '@spec_utils/Dictionary'
import { TokenPruningConfig } from '../TokenPruningConfig'
import { QueryBase } from './abstractions'
import { TokenPruningConfig } from './TokenPruningConfig'

/**
* @variants container
Expand Down
2 changes: 1 addition & 1 deletion specification/_types/query_dsl/TextExpansionQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
* under the License.
*/

import { TokenPruningConfig } from '../TokenPruningConfig'
import { QueryBase } from './abstractions'
import { TokenPruningConfig } from './TokenPruningConfig'

/**
* @ext_doc_id query-dsl-text-expansion-query
Expand Down
2 changes: 1 addition & 1 deletion specification/_types/query_dsl/WeightedTokensQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@

import { float } from '@_types/Numeric'
import { Dictionary } from '@spec_utils/Dictionary'
import { TokenPruningConfig } from '../TokenPruningConfig'
import { QueryBase } from './abstractions'
import { TokenPruningConfig } from './TokenPruningConfig'

/**
* @ext_doc_id query-dsl-weighted-tokens-query
Expand Down