increase news shard number
This commit is contained in:
parent
8083c83df1
commit
b7fa52a2ab
|
|
@ -7,7 +7,7 @@ from json import dumps
|
||||||
|
|
||||||
|
|
||||||
NewsIndex = Index(settings.ELASTICSEARCH_INDEX_NAMES.get(__name__, 'news'))
|
NewsIndex = Index(settings.ELASTICSEARCH_INDEX_NAMES.get(__name__, 'news'))
|
||||||
NewsIndex.settings(number_of_shards=1, number_of_replicas=1)
|
NewsIndex.settings(number_of_shards=10, number_of_replicas=1)
|
||||||
|
|
||||||
|
|
||||||
@NewsIndex.doc_type
|
@NewsIndex.doc_type
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user