Hi,
I had several keys on an object (such as .name1, .name2) and was using dis_max along with match to run independent and identical queries and return the one with the highest score. Now the data has changed to an Array and I can see that Match is working across the items which produces a different score.
Old method (should just one query)
should.push({
dis_max: {
queries: [
{
match: {
nameA: { _name:'nameA', query, ...req.address.params }
}
}
]
}
So now the requirement is
[
'Andrew Smith Jones',
'Andrew Burke'
]
If I search for 'Smith Jones Burke' the score would be higher, the second row should have no impact as the first row is a higher match.
Thoughts?