Commit 2779cb65 authored by Matthieu Benoist's avatar Matthieu Benoist
Browse files

remove keyword from highlights

parent 19852edb
......@@ -221,7 +221,7 @@ export class ElasticsearchService {
},
// Rules to construct the highlight fragments
fields: {
'*data-fr.*': {
'data-fr.*': {
fragment_size: 50,
fragmenter: 'span',
type: 'unified',
......@@ -236,6 +236,15 @@ export class ElasticsearchService {
},
'metadata-fr.title': {
number_of_fragments: 0,
},
'metadata-fr.keyword': {
number_of_fragments: 0,
},
'metadata-fr.abstract': {
number_of_fragments: 50,
},
'metadata-fr.lineage': {
number_of_fragments: 50,
}
},
},
......@@ -257,6 +266,8 @@ export class ElasticsearchService {
},
});
console.log(request);
return this._http.request<IElasticsearchResponse>('POST', this.elasticSearchUrl, {
body: request,
withCredentials: true,
......
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