|
@@ -52,7 +52,7 @@ more characters. An example mapping can be:
|
|
|
"properties" : {
|
|
|
"message" : {
|
|
|
"type" : "string",
|
|
|
- "store" : "yes",
|
|
|
+ "store" : true,
|
|
|
"index" : "analyzed",
|
|
|
"null_value" : "na"
|
|
|
}
|
|
@@ -76,8 +76,8 @@ The following table lists all the attributes that can be used with the
|
|
|
|`index_name` |The name of the field that will be stored in the index.
|
|
|
Defaults to the property/field name.
|
|
|
|
|
|
-|`store` |Set to `yes` to store actual field in the index, `no` to not
|
|
|
-store it. Defaults to `no` (note, the JSON document itself is stored,
|
|
|
+|`store` |Set to `true` to store actual field in the index, `false` to not
|
|
|
+store it. Defaults to `false` (note, the JSON document itself is stored,
|
|
|
and it can be retrieved from it).
|
|
|
|
|
|
|`index` |Set to `analyzed` for the field to be indexed and searchable
|
|
@@ -105,7 +105,7 @@ fields.
|
|
|
options, possible values are `docs` (only doc numbers are indexed),
|
|
|
`freqs` (doc numbers and term frequencies), and `positions` (doc
|
|
|
numbers, term frequencies and positions). Defaults to `positions` for
|
|
|
-`analyzed` fields, and to `docs` for `not_analyzed` fields. It
|
|
|
+`analyzed` fields, and to `docs` for `not_analyzed` fields. It
|
|
|
is also possible to set it to `offsets` (doc numbers, term
|
|
|
frequencies, positions and offsets).
|
|
|
|
|
@@ -186,14 +186,14 @@ numbered type:
|
|
|
|`index_name` |The name of the field that will be stored in the index.
|
|
|
Defaults to the property/field name.
|
|
|
|
|
|
-|`store` |Set to `yes` to store actual field in the index, `no` to not
|
|
|
-store it. Defaults to `no` (note, the JSON document itself is stored,
|
|
|
+|`store` |Set to `true` to store actual field in the index, `false` to not
|
|
|
+store it. Defaults to `false` (note, the JSON document itself is stored,
|
|
|
and it can be retrieved from it).
|
|
|
|
|
|
|`index` |Set to `no` if the value should not be indexed. Setting to
|
|
|
`no` disables `include_in_all`. If set to `no` the field can be stored
|
|
|
in `_source`, have `include_in_all` enabled, or `store` should be set to
|
|
|
-`yes` for this to be useful.
|
|
|
+`true` for this to be useful.
|
|
|
|
|
|
|`precision_step` |The precision step (number of terms generated for
|
|
|
each number value). Defaults to `4`.
|
|
@@ -251,14 +251,14 @@ Defaults to the property/field name.
|
|
|
|`format` |The <<mapping-date-format,date
|
|
|
format>>. Defaults to `dateOptionalTime`.
|
|
|
|
|
|
-|`store` |Set to `yes` to store actual field in the index, `no` to not
|
|
|
-store it. Defaults to `no` (note, the JSON document itself is stored,
|
|
|
+|`store` |Set to `true` to store actual field in the index, `false` to not
|
|
|
+store it. Defaults to `false` (note, the JSON document itself is stored,
|
|
|
and it can be retrieved from it).
|
|
|
|
|
|
|`index` |Set to `no` if the value should not be indexed. Setting to
|
|
|
`no` disables `include_in_all`. If set to `no` the field can be stored
|
|
|
in `_source`, have `include_in_all` enabled, or `store` should be set to
|
|
|
-`yes` for this to be useful.
|
|
|
+`true` for this to be useful.
|
|
|
|
|
|
|`precision_step` |The precision step (number of terms generated for
|
|
|
each number value). Defaults to `4`.
|
|
@@ -310,14 +310,14 @@ boolean type:
|
|
|
|`index_name` |The name of the field that will be stored in the index.
|
|
|
Defaults to the property/field name.
|
|
|
|
|
|
-|`store` |Set to `yes` to store actual field in the index, `no` to not
|
|
|
-store it. Defaults to `no` (note, the JSON document itself is stored,
|
|
|
+|`store` |Set to `true` to store actual field in the index, `false` to not
|
|
|
+store it. Defaults to `false` (note, the JSON document itself is stored,
|
|
|
and it can be retrieved from it).
|
|
|
|
|
|
|`index` |Set to `no` if the value should not be indexed. Setting to
|
|
|
`no` disables `include_in_all`. If set to `no` the field can be stored
|
|
|
in `_source`, have `include_in_all` enabled, or `store` should be set to
|
|
|
-`yes` for this to be useful.
|
|
|
+`true` for this to be useful.
|
|
|
|
|
|
|`boost` |The boost value. Defaults to `1.0`.
|
|
|
|
|
@@ -405,36 +405,36 @@ to reload the fielddata using the new filters.
|
|
|
Posting formats define how fields are written into the index and how
|
|
|
fields are represented into memory. Posting formats can be defined per
|
|
|
field via the `postings_format` option. Postings format are configurable.
|
|
|
-Elasticsearch has several builtin formats:
|
|
|
+Elasticsearch has several builtin formats:
|
|
|
|
|
|
-`direct`::
|
|
|
+`direct`::
|
|
|
A postings format that uses disk-based storage but loads
|
|
|
its terms and postings directly into memory. Note this postings format
|
|
|
is very memory intensive and has certain limitation that don't allow
|
|
|
segments to grow beyond 2.1GB see \{@link DirectPostingsFormat} for
|
|
|
- details.
|
|
|
+ details.
|
|
|
|
|
|
-`memory`::
|
|
|
+`memory`::
|
|
|
A postings format that stores its entire terms, postings,
|
|
|
positions and payloads in a finite state transducer. This format should
|
|
|
only be used for primary keys or with fields where each term is
|
|
|
- contained in a very low number of documents.
|
|
|
+ contained in a very low number of documents.
|
|
|
|
|
|
-`pulsing`::
|
|
|
+`pulsing`::
|
|
|
A postings format in-lines the posting lists for very low
|
|
|
frequent terms in the term dictionary. This is useful to improve lookup
|
|
|
- performance for low-frequent terms.
|
|
|
+ performance for low-frequent terms.
|
|
|
|
|
|
-`bloom_default`::
|
|
|
+`bloom_default`::
|
|
|
A postings format that uses a bloom filter to
|
|
|
improve term lookup performance. This is useful for primarily keys or
|
|
|
- fields that are used as a delete key.
|
|
|
+ fields that are used as a delete key.
|
|
|
|
|
|
-`bloom_pulsing`::
|
|
|
+`bloom_pulsing`::
|
|
|
A postings format that combines the advantages of
|
|
|
- *bloom* and *pulsing* to further improve lookup performance.
|
|
|
+ *bloom* and *pulsing* to further improve lookup performance.
|
|
|
|
|
|
-`default`::
|
|
|
+`default`::
|
|
|
The default Elasticsearch postings format offering best
|
|
|
general purpose performance. This format is used if no postings format
|
|
|
is specified in the field mapping.
|
|
@@ -536,13 +536,13 @@ property, as this example shows:
|
|
|
}
|
|
|
--------------------------------------------------
|
|
|
|
|
|
-The following Similarities are configured out-of-box:
|
|
|
+The following Similarities are configured out-of-box:
|
|
|
|
|
|
-`default`::
|
|
|
+`default`::
|
|
|
The Default TF/IDF algorithm used by Elasticsearch and
|
|
|
- Lucene in previous versions.
|
|
|
+ Lucene in previous versions.
|
|
|
|
|
|
-`BM25`::
|
|
|
+`BM25`::
|
|
|
The BM25 algorithm.
|
|
|
http://en.wikipedia.org/wiki/Okapi_BM25[See Okapi_BM25] for more
|
|
|
details.
|