From b608e027c65ca773b25d9ecfff7c9e23614b1fee Mon Sep 17 00:00:00 2001 From: Liam Thompson Date: Thu, 12 Mar 2026 12:08:00 +0100 Subject: [PATCH 1/2] Removed unnecessary applies_to blocks from deprecated query ^ --- .../query-dsl/query-dsl-text-expansion-query.md | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/docs/reference/query-languages/query-dsl/query-dsl-text-expansion-query.md b/docs/reference/query-languages/query-dsl/query-dsl-text-expansion-query.md index b62660716de96..a2e7010f64685 100644 --- a/docs/reference/query-languages/query-dsl/query-dsl-text-expansion-query.md +++ b/docs/reference/query-languages/query-dsl/query-dsl-text-expansion-query.md @@ -56,7 +56,7 @@ GET _search `model_text` : (Required, string) The query text you want to use for search. -`pruning_config` {applies_to}`stack: preview` {applies_to}`serverless: preview` +`pruning_config` : (Optional, object) Optional pruning configuration. If enabled, this will omit non-significant tokens from the query in order to improve query performance. Default: Disabled. Parameters for `` are: @@ -194,10 +194,7 @@ GET my-index/_search ## Example ELSER query with pruning configuration and rescore [text-expansion-query-with-pruning-config-and-rescore-example] -```{applies_to} -stack: preview -serverless: preview -``` + The following is an extension to the previous example that adds a pruning configuration to the `text_expansion` query. The pruning configuration identifies non-significant tokens to prune from the query in order to improve query performance. From 79715737730b9629eb997770773a87fe4f803028 Mon Sep 17 00:00:00 2001 From: Liam Thompson Date: Thu, 12 Mar 2026 15:38:34 +0100 Subject: [PATCH 2/2] fix heading --- docs/reference/query-languages/querydsl.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/reference/query-languages/querydsl.md b/docs/reference/query-languages/querydsl.md index b98b20740732f..d47d457ded8ee 100644 --- a/docs/reference/query-languages/querydsl.md +++ b/docs/reference/query-languages/querydsl.md @@ -3,7 +3,7 @@ mapped_pages: - https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl.html --- -# QueryDSL [query-dsl] +# Query DSL [query-dsl] :::{note} Refer to the [Query DSL overview](docs-content://explore-analyze/query-filter/languages/querydsl.md) in the **Explore and analyze** section for overview and conceptual information about Query DSL.