more search refinements
This commit is contained in:
parent
ca87bf56b3
commit
7db70d0dfc
@ -201,7 +201,7 @@ export default {
|
|||||||
type: 'most_fields',
|
type: 'most_fields',
|
||||||
fields: ['title^1000', 'text'],
|
fields: ['title^1000', 'text'],
|
||||||
minimum_should_match: '100%',
|
minimum_should_match: '100%',
|
||||||
boost: 1000
|
boost: 10000
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -210,10 +210,8 @@ export default {
|
|||||||
query,
|
query,
|
||||||
type: 'most_fields',
|
type: 'most_fields',
|
||||||
fields: ['title^1000', 'text'],
|
fields: ['title^1000', 'text'],
|
||||||
fuzziness: 'AUTO',
|
minimum_should_match: '60%',
|
||||||
prefix_length: 3,
|
boost: 1000
|
||||||
minimum_should_match: '100%',
|
|
||||||
boost: 10
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -284,11 +282,22 @@ export default {
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
field_value_factor: {
|
functions: [
|
||||||
field: sortField,
|
{
|
||||||
modifier: sort === 'comments' ? 'square' : 'log2p',
|
field_value_factor: {
|
||||||
factor: 1.2
|
field: sortField,
|
||||||
},
|
modifier: sort === 'comments' ? 'square' : 'log2p',
|
||||||
|
factor: 1.2
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field_value_factor: {
|
||||||
|
field: 'ncomments',
|
||||||
|
modifier: 'ln1p',
|
||||||
|
factor: 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
boost_mode: 'multiply'
|
boost_mode: 'multiply'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user