Skip to content

Commit

Permalink
create index without type specification
Browse files Browse the repository at this point in the history
  • Loading branch information
cherkavi authored Jan 31, 2022
1 parent 842c482 commit 5fcd1c9
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions elastic.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,18 @@ EOF
# delete index
curl -s --user "$SEARCH_USER:$SEARCH_PASSWORD" -X GET $ELASTIC_HOST/$ELASTIC_INDEX > file_with_index.json
```
or it is better without types specification:
```json
{
"settings": {
"index": {
"number_of_shards": "5",
"auto_expand_replicas": "false",
"number_of_replicas": "2"
}
}
}
```


### [search request query request](https://www.elastic.co/guide/en/elasticsearch/reference/current/docs.html)
Expand Down

0 comments on commit 5fcd1c9

Please sign in to comment.