Revert "Features: 1) Add chunk_size attribute to _BaseDoc class; 2) Enable additional Elasticsearch configurations (timeout, max_retries, retry_on_timeout); 3) Set ELASTICSEARCH_DSL_PARALLEL to True;"
This reverts commit 1dae1a6be5.
This commit is contained in:
parent
65a34bb90b
commit
1e2351afd5
2 changed files with 1 additions and 6 deletions
|
|
@ -6,8 +6,6 @@ from core.models import Brand, Category, Product
|
|||
|
||||
|
||||
class _BaseDoc(ActiveOnlyMixin, Document):
|
||||
chunk_size = 300
|
||||
|
||||
name = fields.TextField(
|
||||
attr="name",
|
||||
analyzer="standard",
|
||||
|
|
|
|||
|
|
@ -6,12 +6,9 @@ ELASTICSEARCH_DSL = {
|
|||
"basic_auth": ("elastic", getenv("ELASTIC_PASSWORD")), # noqa: F405
|
||||
"verify_certs": False,
|
||||
"ssl_show_warn": False,
|
||||
"timeout": 30,
|
||||
"max_retries": 3,
|
||||
"retry_on_timeout": True,
|
||||
},
|
||||
}
|
||||
|
||||
ELASTICSEARCH_DSL_AUTOSYNC = True
|
||||
ELASTICSEARCH_DSL_PARALLEL = True
|
||||
ELASTICSEARCH_DSL_PARALLEL = False
|
||||
ELASTICSEARCH_DSL_SIGNAL_PROCESSOR = "evibes.signal_processors.SelectiveSignalProcessor"
|
||||
|
|
|
|||
Loading…
Reference in a new issue