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
custom-apps
web-app
Commits
2779cb65
Commit
2779cb65
authored
Feb 19, 2021
by
Matthieu Benoist
Browse files
remove keyword from highlights
parent
19852edb
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/app/elasticsearch/services/elasticsearch.service.ts
View file @
2779cb65
...
...
@@ -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
,
...
...
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