giellatekno / neahttadigisanit

Saami dictionary webapp
Other
2 stars 2 forks source link

Lemma matches / exact matches are not prioritized in search view #12

Open trondtynnol opened 7 months ago

trondtynnol commented 7 months ago

When searching for a compound word, the compound is not necessarily prioritized above the dynamically decomposed parts when showing the results. This means it may be hidden below the other analyzes. This has worked previously.

Example: Search for "verkkolanka" in https://saan.oahpa.no/fin/sms. The results for "verkko" and "lanka" are shown above "verkkolanka", completely hiding the latter on my laptop screen before scrolling down.

trondtynnol commented 6 months ago

An especially bad example: https://saan.oahpa.no/fin/sms/?lookup=takaisin, where takaisin is hidden below taata, isä, takka, takka and takainen.

Phaqui commented 6 months ago

May be related to, or because of python 3 (when hashing of strings became randomized) - see my full explanation here: https://github.com/giellatekno/neahttadigisanit/blob/restructuring/neahtta/src/nds_lexicon/lexicon.py#L20-L54

(I was working on an unrelated local bug in the restructuring branch.)

Phaqui commented 4 months ago

Commit 37d8af9290229ca13d1f7555de3d2c92ce69ea4c should at least be on the right path.

fin-sms takaisin looks better, but verkkolanka doesn't. Will have to keep digging.

Edit: nob-sme "for" shows progression. The conjugated "for" of "å fare" and "å fore" is now at the bottom.