forked from elastic/elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Meta fields were locked down to not allow exotic options to the underlying field types in elastic#8143. This change fixes the docs to no longer refer to the old settings. closes elastic#10879
- Loading branch information
Showing
8 changed files
with
13 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
[[mapping-field-names-field]] | ||
=== `_field_names` | ||
added[1.3.0] | ||
|
||
The `_field_names` field indexes the field names of a document, which can later | ||
be used to search for documents based on the fields that they contain typically | ||
using the `exists` and `missing` filters. | ||
|
||
`_field_names` is indexed by default for indices that have been created after | ||
Elasticsearch 1.3.0. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,10 @@ | ||
[[mapping-type-field]] | ||
=== `_type` | ||
|
||
Each document indexed is associated with an id and a type. The type, | ||
when indexing, is automatically indexed into a `_type` field. By | ||
default, the `_type` field is indexed (but *not* analyzed) and not | ||
stored. This means that the `_type` field can be queried. | ||
Each document indexed is associated with an id and a type. The `_type` | ||
field allows accessing only the type of a document. | ||
|
||
The `_type` field can be stored as well, for example: | ||
|
||
[source,js] | ||
-------------------------------------------------- | ||
{ | ||
"tweet" : { | ||
"_type" : {"store" : true} | ||
} | ||
} | ||
-------------------------------------------------- | ||
|
||
The `_type` field can also not be indexed, and all the APIs will still | ||
work except for specific queries (term queries / filters) or aggregations | ||
done on the `_type` field. | ||
|
||
[source,js] | ||
-------------------------------------------------- | ||
{ | ||
"tweet" : { | ||
"_type" : {"index" : "no"} | ||
} | ||
} | ||
-------------------------------------------------- | ||
Note, even though the `_type` is not indexed, all the APIs still work | ||
(since they work with the `_uid` field), as well as fetching by type | ||
using `term`, `terms` or `prefix` queries/filters (including the | ||
specific `type` filter). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters