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