mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-25 01:19:02 +00:00
[DOCS] unified index settings info and added warmers section in create index docs
This commit is contained in:
parent
f38296da61
commit
95bf091dd6
@ -3,7 +3,13 @@
|
||||
|
||||
The create index API allows to instantiate an index. Elasticsearch
|
||||
provides support for multiple indices, including executing operations
|
||||
across several indices. Each index created can have specific settings
|
||||
across several indices.
|
||||
|
||||
[float]
|
||||
[[create-index-settings]]
|
||||
=== Index Settings
|
||||
|
||||
Each index created can have specific settings
|
||||
associated with it.
|
||||
|
||||
[source,js]
|
||||
@ -47,7 +53,12 @@ $ curl -XPUT 'http://localhost:9200/twitter/' -d '{
|
||||
--------------------------------------------------
|
||||
|
||||
_Note you do not have to explicitly specify `index` section inside
|
||||
`settings` section._
|
||||
`settings` section.
|
||||
|
||||
For more information regarding all the different index level settings
|
||||
that can be set when creating an index, please check the
|
||||
<<index-modules,index modules>> section.
|
||||
|
||||
|
||||
[float]
|
||||
[[mappings]]
|
||||
@ -73,9 +84,22 @@ curl -XPOST localhost:9200/test -d '{
|
||||
--------------------------------------------------
|
||||
|
||||
[float]
|
||||
[[create-index-settings]]
|
||||
=== Index Settings
|
||||
[[warmers]]
|
||||
=== Warmers
|
||||
|
||||
For more information regarding all the different index level settings
|
||||
that can be set when creating an index, please check the
|
||||
<<index-modules,index modules>> section.
|
||||
The create index API allows also to provide a set of <<indices-warmers,warmers>>:
|
||||
|
||||
[source,js]
|
||||
--------------------------------------------------
|
||||
curl -XPUT localhost:9200/test -d '{
|
||||
"warmers" : {
|
||||
"warmer_1" : {
|
||||
"source" : {
|
||||
"query" : {
|
||||
...
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}'
|
||||
--------------------------------------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user