xdrop / fuzzywuzzy

Java fuzzy string matching implementation of the well known Python's fuzzywuzzy algorithm. Fuzzy search for Java
GNU General Public License v2.0
822 stars 118 forks source link

Can we priortize results to push first appears over top #94

Open Zaky7 opened 2 years ago

Zaky7 commented 2 years ago

hi, I am using this library for a small set of data that has 10k records. But for some strings, I am getting results in the wrong order.

for list of choices query: "Visa"


choices = ["grupo televisa s.a.", "is", "sa", "visa inc.", "via"]

// result
('grupo televisa s.a.', 90), ('is', 90), ('sa', 90), ('visa inc.', 90)
``

I want the Visa string to appear in the first place. how can I achieve that?
Zaky7 commented 2 years ago

@xdrop any comment on this