Skip to content

Commit 29cdcbd

Browse files
Add warning about case insensitive term queries in 2.x (opensearch-project#9170)
* Add warning about case insensitive term queries in 2.x Signed-off-by: Daniel Widdis <[email protected]> * Be more vague on performance impact Signed-off-by: Daniel Widdis <[email protected]> * Update _query-dsl/term/term.md Signed-off-by: kolchfa-aws <[email protected]> --------- Signed-off-by: Daniel Widdis <[email protected]> Signed-off-by: kolchfa-aws <[email protected]> Co-authored-by: kolchfa-aws <[email protected]>
1 parent c55e765 commit 29cdcbd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

_query-dsl/term/term.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ GET shakespeare/_search
4242
```
4343
{% include copy-curl.html %}
4444

45+
In OpenSearch 2.x and earlier, complexity can increase exponentially with the number of characters, leading to high heap memory usage and reduced performance. To avoid this, do not use case-insensitive searches. Instead, apply a [lowercase token filter]({{site.url}}{{site.baseurl}}/analyzers/token-filters/lowercase/) in the indexed field's analyzer and use lowercase query terms.
46+
{: .warning}
47+
4548
The response contains the matching documents despite any differences in case:
4649

4750
```json

0 commit comments

Comments
 (0)