Browse Source

The exception is inserted in a code block (#90325)

* The exception is inserted in a code block

* Update docs/reference/mapping/types/text.asciidoc

Co-authored-by: Abdon Pijpelink <abdon.pijpelink@elastic.co>
Madhusudhan Konda 2 years ago
parent
commit
af65e71114
1 changed files with 4 additions and 4 deletions
  1. 4 4
      docs/reference/mapping/types/text.asciidoc

+ 4 - 4
docs/reference/mapping/types/text.asciidoc

@@ -266,11 +266,11 @@ Will become:
 
 
 `text` fields are searchable by default, but by default are not available for
 `text` fields are searchable by default, but by default are not available for
 aggregations, sorting, or scripting. If you try to sort, aggregate, or access
 aggregations, sorting, or scripting. If you try to sort, aggregate, or access
-values from a script on a `text` field, you will see this exception:
+values from a `text` field using a script, you'll see an exception indicating
+that field data is disabled by default on text fields. To load field data in
+memory, set `fielddata=true` on your field.
 
 
-Fielddata is disabled on text fields by default. Set `fielddata=true` on
-`your_field_name` in order to load fielddata in memory by uninverting the
-inverted index. Note that this can however use significant memory.
+NOTE: Loading field data in memory can consume significant memory.
 
 
 Field data is the only way to access the analyzed tokens from a full text field
 Field data is the only way to access the analyzed tokens from a full text field
 in aggregations, sorting, or scripting. For example, a full text field like `New York`
 in aggregations, sorting, or scripting. For example, a full text field like `New York`