Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
web-et-numerique
web-et-numerique-internet
data.grandlyon.com
web-portal
components
indexers
editorial-content
Commits
06fb9c8b
Commit
06fb9c8b
authored
Mar 07, 2022
by
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
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
lib/elastic_mapping_template_pages.py
View file @
06fb9c8b
...
...
@@ -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"
:
{
...
...
lib/elastic_mapping_template_posts.py
View file @
06fb9c8b
...
...
@@ -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"
:
{
...
...
lib/indexer.py
View file @
06fb9c8b
...
...
@@ -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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment