Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Close content gap for ignore_above mapping parameter #8551

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
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
36 changes: 36 additions & 0 deletions _field-types/mapping-parameters/ignore-above.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
layout: default
title: ignore_above
parent: Mapping parameters
grand_parent: Mapping and field types
nav_order: 60
has_children: false
has_toc: false
---

# Ignore_above

The `ignore_above` parameter is a powerful tool in OpenSearch for managing the indexing of long string values. When applied to a field, it sets a character limit for indexing. This feature is particularly useful for optimizing index size and preventing potential issues with extremely long terms.

String values exceeding the `ignore_above` limit will not be indexed or stored. For arrays of strings, `ignore_above` is applied to each element individually. All original values remain in the `_source` field, if enabled.

---

## Example: Ignoring character

The following example request creates an index with a message field that sets `ignore_above` to 20 characters:

```json
PUT my-index
{
"mappings": {
"properties": {
"message": {
"type": "keyword",
"ignore_above": 20
}
}
}
}
```
{% include copy-curl.html %}
Loading