Commit 06fb9c8b authored by Sébastien DA ROCHA's avatar Sébastien DA ROCHA
Browse files

Update lib/indexer.py, lib/elastic_mapping_template_pages.py, lib/elastic_mapping_template_posts.py

parent 08e2d6a5
Pipeline #22220 passed with stage
in 47 seconds
......@@ -7,7 +7,7 @@ template = {
"index.mapping.total_fields.limit": 10000,
#"index.mapping.ignore_malformed": True,
"number_of_shards" : 1,
"number_of_replicas" : 0,
"number_of_replicas" : 1,
"max_ngram_diff": 100,
"analysis": {
"filter": {
......
......@@ -7,7 +7,7 @@ template = {
"index.mapping.total_fields.limit": 10000,
#"index.mapping.ignore_malformed": True,
"number_of_shards" : 1,
"number_of_replicas" : 0,
"number_of_replicas" : 1,
"max_ngram_diff": 100,
"analysis": {
"filter": {
......
......@@ -29,7 +29,7 @@ def index_docs( cfg, content_type, docs ):
es_body = {
"settings" : {
"number_of_shards" : 1,
"number_of_replicas" : 0,
"number_of_replicas" : 1,
"index.mapping.total_fields.limit": 10000,
"refresh_interval": "30s"
},
......@@ -187,4 +187,4 @@ def pushToMinio( client,bucket_name,image ):
bucket_name, file_path, data, length=-1, part_size=10*1024*1024)
except Exception :
logger.warning("erreur avec l'image "+image)
return True
\ No newline at end of file
return True
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment