I've briefly tested your library with data extracted from OpenStreetMaps. I'm using objects that look like this:
{
"type": "node",
"id": 2953129298,
"lat": 7.9361803,
"lon": -11.3474922,
"tags": {
"gns:ufi": "-1314862",
"name": "Bo",
"place": "hamlet",
"source": "GNS",
"unocha:pcode": "SLE01021400041"
}
},
Here is an example of my results (I've cut the list). I've searched for "Bo". However, there is multiple Bo entries in my list and those are returned in different places since all have score 0.
[
"Bo hamlet",
"Borwaila hamlet",
"Bobe hamlet",
"Bonge hamlet",
"Bondie Mosque village",
"Bokaria village",
"Boma hamlet",
"Bonga hamlet",
"Bonjema hamlet",
"Bomotoke hamlet",
"Bombo hamlet",
"Bondam hamlet",
"Bom hamlet",
"Bonma hamlet",
"Borobofu hamlet",
"Borma village",
"Bonjema hamlet",
"Bonkohun hamlet",
"Bonkomataka hamlet",
"Bombe hamlet",
"Bohol village",
"Bolabombor village",
"Boroso hamlet",
"Borbana hamlet",
"Bonthe town",
"Bombalibana hamlet",
"Bomemahun hamlet",
"Bolota hamlet",
"Bo hamlet",
"Bonkofoton hamlet",
"Bondebu hamlet",
"Bobowaleh hamlet",
"Bo hamlet",
"Bolia hamlet",
"Boma hamlet",
"Bopo hamlet",
"Boiguru hamlet",
"Boma hamlet",
"Bohun hamlet",
"Bonaia hamlet",
"Boto hamlet",
"Bohol hamlet",
"Bongka hamlet",
"Boria hamlet",
"Boronka hamlet",
"Boli hamlet",
"Bouria hamlet",
"Bolleh village",
"Bondua hamlet",
"Boyipie hamlet",
"Boalakarafaia hamlet",
"Bokaria hamlet",
"Bokaria hamlet",
"Bomuvulahun hamlet",
"Bokarikondea hamlet",
"Bobobu hamlet",
"Bomatok hamlet",
"Bompiya village",
"Bobarsene village",
"Bolyine village",
"Bonjema village",
"Bomdei hamlet",
"Boabu hamlet",
"Bokeni hamlet",
"Bondobu hamlet",
"Bompeworo village",
"Bobobu hamlet",
"Bohun hamlet",
"Boajibu village",
"Bokuma hamlet",
"Bomahun hamlet",
"Boabu hamlet",
"Bongor Town village",
"Bobobu hamlet",
"Bondoma hamlet",
"Bontiworo hamlet",
"Bobobu hamlet",
"Bohehun hamlet",
"Bombe hamlet",
"Bondayirahun hamlet",
"Borokonko hamlet",
"Bololo hamlet",
"Bombohun hamlet",
"Bowama hamlet",
"Bonganema hamlet",
"Bopan hamlet",
"Bopo hamlet",
"Bonjema hamlet",
"Bonge hamlet",
"Bopon hamlet",
"Bomi hamlet",
"Boloma hamlet",
"Bomatok hamlet",
"Bombadu hamlet",
"Bobobu hamlet",
"Boumu Samba village",
"Bongoya hamlet",
"Bokolu hamlet",
"Bomu hamlet",
"Bo hamlet"
]
I would expect to see all exact matches at the top. But it seems that a lot of entries have score 0, including partial matches. Is this expected behavior?