rank exact search matches higher

This commit is contained in:
keyan 2022-02-01 16:27:10 -06:00
parent dce189703c
commit 48c72fc0c1
1 changed files with 10 additions and 0 deletions

View File

@ -279,6 +279,16 @@ export default {
must: {
bool: {
should: [
{
// all terms are matched in fields
multi_match: {
query,
type: 'most_fields',
fields: ['title^20', 'text'],
minimum_should_match: '100%',
boost: 3
}
},
{
// all terms are matched in fields
multi_match: {