|
@@ -450,6 +450,7 @@ SearchClient.prototype.appendCriteriaForQueryString = function(query, queryStrin
|
|
|
const q = {
|
|
const q = {
|
|
|
multi_match: {
|
|
multi_match: {
|
|
|
query: parsedKeywords.match.join(' '),
|
|
query: parsedKeywords.match.join(' '),
|
|
|
|
|
+ type: 'most_fields',
|
|
|
fields: ['path.ja^2', 'path.en^2', 'body.ja', 'body.en'],
|
|
fields: ['path.ja^2', 'path.en^2', 'body.ja', 'body.en'],
|
|
|
},
|
|
},
|
|
|
};
|
|
};
|
|
@@ -460,7 +461,7 @@ SearchClient.prototype.appendCriteriaForQueryString = function(query, queryStrin
|
|
|
const q = {
|
|
const q = {
|
|
|
multi_match: {
|
|
multi_match: {
|
|
|
query: parsedKeywords.not_match.join(' '),
|
|
query: parsedKeywords.not_match.join(' '),
|
|
|
- fields: ['path.ja^2', 'path.en^2', 'body.ja', 'body.en'],
|
|
|
|
|
|
|
+ fields: ['path.ja', 'path.en', 'body.ja', 'body.en'],
|
|
|
operator: 'or'
|
|
operator: 'or'
|
|
|
},
|
|
},
|
|
|
};
|
|
};
|