Skip to content
Snippets Groups Projects
Commit a05901ca authored by Alessandro Cerioni's avatar Alessandro Cerioni
Browse files

Updated es_template. Bug fixed in the reindexer, concerning the usage of a remote ES as source.

parent fcc5fe82
Branches
Tags
No related merge requests found
......@@ -60,7 +60,7 @@ def main(cfg, wait=True):
}
if 'source_url' in cfg['reindexer'].keys():
body['source']['remote'] = cfg['reindexer']['source_url']
body['source']['remote'] = {'host': cfg['reindexer']['source_url']}
logging.debug(body)
......
......@@ -176,7 +176,7 @@ template = {
# "match": "(metadata-fr\.image.*|data-fr\.geometry.*|metadata-fr\.href.*|metadata-fr\.idxMsg.*)",
"mapping": {
"type": "text",
#"ignore_malformed": True
#"ignore_malformed": True,
"index": False
}
}
......@@ -185,11 +185,12 @@ template = {
"unindexed-path-template-2": {
"match_pattern": "regex",
"match_mapping_type": "*",
"path_match": "metadata-fr\.link\.bbox_by_projection|metadata-fr\.link\.projections|metadata-fr\.link\.content-type|metadata-fr\.link\.content-length",
"path_match": "metadata-fr\.link\.projections|metadata-fr\.link\.content-type|metadata-fr\.link\.content-length",
# "match": "(metadata-fr\.image.*|data-fr\.geometry.*|metadata-fr\.href.*|metadata-fr\.idxMsg.*)",
# TODO: ignore this one -> metadata-fr\.link\.bbox_by_projection
"mapping": {
"type": "text",
#"ignore_malformed": True
#"ignore_malformed": True,
"index": False
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment