indexedit
The index option controls how field values are indexed and, thus, how they
are searchable. It accepts three values:
|
|
Do not add this field value to the index. With this setting, the field will not be queryable. |
|
|
Add the field value to the index unchanged, as a single term. This is the
default for all fields that support this option except for
|
|
|
This option applies only to |
For example, you can create a not_analyzed string field with the following:
PUT /my_index
{
"mappings": {
"my_type": {
"properties": {
"status_code": {
"type": "string",
"index": "not_analyzed"
}
}
}
}
}