From 2ce38eb81b4634caf44cc30d75d903b2ef4d96ea Mon Sep 17 00:00:00 2001 From: Kofi B Date: Wed, 15 Jan 2025 18:38:47 -0800 Subject: [PATCH 1/2] Update wildcard-query.asciidoc --- docs/reference/query-dsl/wildcard-query.asciidoc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/reference/query-dsl/wildcard-query.asciidoc b/docs/reference/query-dsl/wildcard-query.asciidoc index 947b8d12f2a78..95d2fb41ef1e2 100644 --- a/docs/reference/query-dsl/wildcard-query.asciidoc +++ b/docs/reference/query-dsl/wildcard-query.asciidoc @@ -81,6 +81,9 @@ the iterations needed to find matching terms and slow search performance. [[wildcard-query-notes]] ==== Notes + +Wildcard queries can be resource-intensive, particularly when using leading wildcards (*). To improve performance, minimize their use and consider alternatives like <>, which allow for more efficient searching, though they can increase index size. For better accuracy and performance, combine wildcard queries with other query types (e.g., match or bool) to narrow results first. + ===== Allow expensive queries Wildcard queries will not be executed if <> is set to false. From 8fb034e7d0feddb711f42cf8c42ff45f4fac8807 Mon Sep 17 00:00:00 2001 From: Kofi B Date: Mon, 20 Jan 2025 15:33:20 -0800 Subject: [PATCH 2/2] Update docs/reference/query-dsl/wildcard-query.asciidoc Co-authored-by: Liam Thompson <32779855+leemthompo@users.noreply.github.com> --- docs/reference/query-dsl/wildcard-query.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/reference/query-dsl/wildcard-query.asciidoc b/docs/reference/query-dsl/wildcard-query.asciidoc index 95d2fb41ef1e2..c2b4213a66866 100644 --- a/docs/reference/query-dsl/wildcard-query.asciidoc +++ b/docs/reference/query-dsl/wildcard-query.asciidoc @@ -82,7 +82,7 @@ the iterations needed to find matching terms and slow search performance. [[wildcard-query-notes]] ==== Notes -Wildcard queries can be resource-intensive, particularly when using leading wildcards (*). To improve performance, minimize their use and consider alternatives like <>, which allow for more efficient searching, though they can increase index size. For better accuracy and performance, combine wildcard queries with other query types (e.g., match or bool) to narrow results first. +Wildcard queries using `*` can be resource-intensive, particularly with leading wildcards. To improve performance, minimize their use and consider alternatives like the <>. While this allows for more efficient searching, it may increase index size. For better performance and accuracy, combine wildcard queries with other query types like <> or <> to first narrow down results. ===== Allow expensive queries Wildcard queries will not be executed if <>