rank exact search matches higher
This commit is contained in:
parent
dce189703c
commit
48c72fc0c1
|
@ -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: {
|
||||
|
|
Loading…
Reference in New Issue