Increase product shards number
This commit is contained in:
parent
76f570caa9
commit
f4e762bb80
|
|
@ -5,7 +5,7 @@ from search_indexes.utils import OBJECT_FIELD_PROPERTIES
|
||||||
from product import models
|
from product import models
|
||||||
|
|
||||||
ProductIndex = Index(settings.ELASTICSEARCH_INDEX_NAMES.get(__name__, 'product'))
|
ProductIndex = Index(settings.ELASTICSEARCH_INDEX_NAMES.get(__name__, 'product'))
|
||||||
ProductIndex.settings(number_of_shards=1, number_of_replicas=1, mapping={'total_fields':{'limit': 3000}})
|
ProductIndex.settings(number_of_shards=5, number_of_replicas=1, mapping={'total_fields':{'limit': 3000}})
|
||||||
|
|
||||||
|
|
||||||
@ProductIndex.doc_type
|
@ProductIndex.doc_type
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user