Skip to content
Snippets Groups Projects
Commit 652d08f5 authored by Matthieu Benoist's avatar Matthieu Benoist
Browse files

remove keyword from highlights

parent 41cd2f76
No related branches found
No related tags found
1 merge request!125Dos0091629
...@@ -221,7 +221,7 @@ export class ElasticsearchService { ...@@ -221,7 +221,7 @@ export class ElasticsearchService {
}, },
// Rules to construct the highlight fragments // Rules to construct the highlight fragments
fields: { fields: {
'*data-fr.*': { 'data-fr.*': {
fragment_size: 50, fragment_size: 50,
fragmenter: 'span', fragmenter: 'span',
type: 'unified', type: 'unified',
...@@ -236,6 +236,15 @@ export class ElasticsearchService { ...@@ -236,6 +236,15 @@ export class ElasticsearchService {
}, },
'metadata-fr.title': { 'metadata-fr.title': {
number_of_fragments: 0, 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 { ...@@ -257,6 +266,8 @@ export class ElasticsearchService {
}, },
}); });
console.log(request);
return this._http.request<IElasticsearchResponse>('POST', this.elasticSearchUrl, { return this._http.request<IElasticsearchResponse>('POST', this.elasticSearchUrl, {
body: request, body: request,
withCredentials: true, withCredentials: true,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment