diff --git a/webapp/src/app/geosource/models/elasticsearch-options.model.ts b/webapp/src/app/geosource/models/elasticsearch-options.model.ts index 52eb42f78908afad83363e5ab4f175163b5a70cd..3690bab853f5c89f45cc86bf06a32113eae471ea 100644 --- a/webapp/src/app/geosource/models/elasticsearch-options.model.ts +++ b/webapp/src/app/geosource/models/elasticsearch-options.model.ts @@ -62,7 +62,7 @@ export class ElasticsearchOptions { 'label-en': 'Formats', 'aggregations': [], 'activeFilters': [], - 'type': 'number' + 'type': 'string' }, { 'field': 'date_publication', diff --git a/webapp/src/app/geosource/services/elasticsearch.service.ts b/webapp/src/app/geosource/services/elasticsearch.service.ts index 54a6494acd0685a08839f7e5a420a4376df63466..862804d38a748516eebda223dc15116d7a4937b7 100644 --- a/webapp/src/app/geosource/services/elasticsearch.service.ts +++ b/webapp/src/app/geosource/services/elasticsearch.service.ts @@ -120,7 +120,8 @@ export class ElasticsearchService { 'pre_tags': ['<span class="highlighted">'], 'post_tags': ['</span>'], 'require_field_match': false, - 'type': 'unified', + 'type': 'fvh', + 'fragmenter': 'span', 'order': 'score', 'fields': { '*': { diff --git a/webapp/src/environments/environment.ts b/webapp/src/environments/environment.ts index 45d82e1098bbd9e4a368d416ba00b326a28454d3..3e8e96ee79bf3c74873435e16df1c74ebd0cb72d 100644 --- a/webapp/src/environments/environment.ts +++ b/webapp/src/environments/environment.ts @@ -7,7 +7,7 @@ export const environment = { production: false, elasticsearchUrl: { - full: 'http://localhost:8081/elasticsearch/*.full', + full: 'http://localhost:8081/elasticsearch/*.full.v2', meta: 'http://localhost:8081/elasticsearch/*.meta' },