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

remove new from autocomplete suggestions

parent 92901f06
Branches
Tags
1 merge request!134remove new from autocomplete suggestions
...@@ -207,10 +207,7 @@ export class ElasticsearchService { ...@@ -207,10 +207,7 @@ export class ElasticsearchService {
'data-fr.properties^4', 'data-fr.properties^4',
'metadata-fr.abstract^6', 'metadata-fr.abstract^6',
'metadata-fr.keyword^5', 'metadata-fr.keyword^5',
'metadata-fr.lineage^4', 'metadata-fr.lineage^4'
'content-fr.title^5',
'content-fr.excerpt^3',
'content-fr.plaintext^3'
], ],
analyzer: 'my_search_analyzer', analyzer: 'my_search_analyzer',
// fields: ['data_and_metadata', 'content-fr.title', 'content-fr.plaintext'], // fields: ['data_and_metadata', 'content-fr.title', 'content-fr.plaintext'],
...@@ -227,13 +224,6 @@ export class ElasticsearchService { ...@@ -227,13 +224,6 @@ export class ElasticsearchService {
type: 'unified', type: 'unified',
require_field_match: false, require_field_match: false,
}, },
'content-fr.title': {
number_of_fragments: 0,
},
'content-fr.plaintext': {
fragment_size: 50,
number_of_fragments: 5,
},
'metadata-fr.title': { 'metadata-fr.title': {
number_of_fragments: 0, number_of_fragments: 0,
}, },
...@@ -260,10 +250,7 @@ export class ElasticsearchService { ...@@ -260,10 +250,7 @@ export class ElasticsearchService {
'data-fr.properties^4', 'data-fr.properties^4',
'metadata-fr.abstract^6', 'metadata-fr.abstract^6',
'metadata-fr.keyword^5', 'metadata-fr.keyword^5',
'metadata-fr.lineage^4', 'metadata-fr.lineage^4'
'content-fr.title^5',
'content-fr.excerpt^3',
'content-fr.plaintext^3'
], ],
}, },
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment