Commit 8b6424da authored by Matthieu Benoist's avatar Matthieu Benoist
Browse files

Changes the criteria of the search

parent 42c00687
......@@ -193,7 +193,7 @@ export class ElasticsearchService {
},
},
collapse: {
field: 'metadata-fr.geonet:info.uuid.keyword',
field: 'uuid.keyword',
},
highlight: {
order: 'score',
......@@ -205,7 +205,6 @@ export class ElasticsearchService {
fields: [
'metadata-fr.title^5',
'data-fr.properties^3',
'data-and-metadata',
'metadata-fr.abstract^4',
'metadata-fr.lineage^3',
'content-fr.title^5',
......@@ -245,13 +244,13 @@ export class ElasticsearchService {
multi_match: {
query: regex,
fields: [
'metadata-fr.title^5',
'metadata-fr.title^7',
'data-fr.properties^3',
'data-and-metadata',
'metadata-fr.abstract^4',
'metadata-fr.lineage^3',
'metadata-fr.abstract^6',
'metadata-fr.keyword^5',
'metadata-fr.lineage^4',
'content-fr.title^5',
'content-fr.excerpt^4',
'content-fr.excerpt^3',
'content-fr.plaintext^3'
],
},
......
Markdown is supported
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