Fuse icon indicating copy to clipboard operation
Fuse copied to clipboard

How does it search and rank multiple terms in multiple fields

Open MichaelRoger opened this issue 3 years ago • 2 comments

hi,

i have got the following configuration:

`{ includeScore: true, includeMatches: true, minMatchCharLength: 3, findAllMatches: true, keys: [ 'persondata.basic.givenNameReal', 'persondata.basic.surnameReal', 'persondata.basic.mainTasks' ]

    }`

lets say i have got an document with the following data:

{persondata: {basic: { givenNameReal:'Michael', surnameReal:'Mustermann', mainTasks : 'handarbeiter' } } }

let's search for 'michael musermann' and it just finds a match in the column 'persondata.basic.givenNameReal'

:-(

shouldn't be a finding in multiple columns been ranked up?

MichaelRoger avatar Apr 20 '22 15:04 MichaelRoger

If a single record contains a match in multiple keys, currently only the best score is used. For better or worse, the score is not a compound function of multiple matches.

I wavered with this in the past, whether compound scoring should be the default behavior or not. Curious to get people's thoughts on this.

krisk avatar May 06 '22 02:05 krisk

i would definitly say it has to be compound. because i search the best matching entry and therefor it should find the most interessting match (also in multiple columns)

MichaelRoger avatar May 09 '22 08:05 MichaelRoger

This issue is stale because it has been open 120 days with no activity. Remove stale label or comment or this will be closed in 30 days

github-actions[bot] avatar Sep 07 '22 00:09 github-actions[bot]