Skip to content

Commit bb8b2c4

Browse files
[DOCS] Update wildcard query documentation (#120251)
Co-authored-by: Liam Thompson <[email protected]>
1 parent 2ec3066 commit bb8b2c4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/reference/query-dsl/wildcard-query.asciidoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ the iterations needed to find matching terms and slow search performance.
8181

8282
[[wildcard-query-notes]]
8383
==== Notes
84+
85+
Wildcard queries using `*` can be resource-intensive, particularly with leading wildcards. To improve performance, minimize their use and consider alternatives like the <<analysis-ngram-tokenizer,n-gram tokenizer>>. 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 <<query-dsl-match-query,`match`>> or <<query-dsl-bool-query,`bool`>> to first narrow down results.
86+
8487
===== Allow expensive queries
8588
Wildcard queries will not be executed if <<query-dsl-allow-expensive-queries, `search.allow_expensive_queries`>>
8689
is set to false.

0 commit comments

Comments
 (0)