Skip to content
Merged
Changes from 1 commit
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
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.
Loading