Adjust ranking so that duplicates count against rank

This commit is contained in:
Michael Howell
2024-10-31 13:09:37 -07:00
parent 12dc24f460
commit 9900ea48b5
6 changed files with 52 additions and 30 deletions

View File

@@ -11,9 +11,9 @@ const EXPECTED = [
{
query: '-> generic:T',
others: [
{ path: 'foo', name: 'beta' },
{ path: 'foo', name: 'bet' },
{ path: 'foo', name: 'alef' },
{ path: 'foo', name: 'beta' },
],
},
{
@@ -50,8 +50,8 @@ const EXPECTED = [
{
query: 'generic:T',
in_args: [
{ path: 'foo', name: 'beta' },
{ path: 'foo', name: 'bet' },
{ path: 'foo', name: 'beta' },
{ path: 'foo', name: 'alternate' },
{ path: 'foo', name: 'other' },
],
@@ -59,8 +59,8 @@ const EXPECTED = [
{
query: 'generic:Other',
in_args: [
{ path: 'foo', name: 'beta' },
{ path: 'foo', name: 'bet' },
{ path: 'foo', name: 'beta' },
{ path: 'foo', name: 'alternate' },
{ path: 'foo', name: 'other' },
],