Skip to content

Commit

Permalink
Update wildcard-query.asciidoc
Browse files Browse the repository at this point in the history
  • Loading branch information
thekofimensah authored Jan 16, 2025
1 parent eeef805 commit 2ce38eb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/reference/query-dsl/wildcard-query.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -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 <<analysis-ngram-tokenizer, n-gram tokenizer>>, 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 <<query-dsl-allow-expensive-queries, `search.allow_expensive_queries`>>
is set to false.

0 comments on commit 2ce38eb

Please sign in to comment.