|
|
@@ -751,7 +751,7 @@ class ElasticsearchDelegator implements SearchDelegator<Data, ESTermsKey, ESQuer
|
|
|
multi_match: {
|
|
|
query: parsedKeywords.match.join(' '),
|
|
|
type: 'most_fields',
|
|
|
- fields: ['path.ja^2', 'path.en^2', 'body.ja', 'body.en', 'comments.ja', 'comments.en'],
|
|
|
+ fields: ['path.ja', 'path.en', 'body.ja', 'body.en', 'comments.ja', 'comments.en'],
|
|
|
},
|
|
|
};
|
|
|
query.body.query.bool.must.push(q);
|
|
|
@@ -945,7 +945,7 @@ class ElasticsearchDelegator implements SearchDelegator<Data, ESTermsKey, ESQuer
|
|
|
query.body.highlight = {
|
|
|
fields: {
|
|
|
'*': {
|
|
|
- fragment_size: 40,
|
|
|
+ fragment_size: 150,
|
|
|
fragmenter: 'simple',
|
|
|
pre_tags: ["<em class='highlighted-keyword'>"],
|
|
|
post_tags: ['</em>'],
|