libkiwix icon indicating copy to clipboard operation
libkiwix copied to clipboard

Search results should be ordered

Open opk12 opened this issue 3 years ago • 7 comments

Is your feature request related to a problem? Please describe. The search results are not ordered, so I need to skim the list to find the correct entry. This is especially a problem for Wiktionary, where many words are very similar to each other (share the stem).

For example, in the German Wiktionary 2022-05-24 Pic, searching apf gives Apfelteilern - apfelartig - äpfelndern - Apfelgarten.

For example, in the Italian Wikivoyage 2022-03-21 Pic, serching new gives New Orleans - New Jersey - New Hampshire - New Boston - New Island

However for the English Wiktionary 2022-03-01 Pic apparently I always get ordered results and I cannot explain why.

Describe the solution you'd like The search results lists should be ordered.

opk12 avatar Jul 07 '22 09:07 opk12

This issue has been automatically marked as stale because it has not had recent activity. It will be now be reviewed manually. Thank you for your contributions.

stale[bot] avatar Sep 21 '22 04:09 stale[bot]

The situation is unchanged in the latest version.

opk12 avatar Sep 25 '22 20:09 opk12

@MohitMaliFtechiz I will assess the ticket.

kelson42 avatar Sep 27 '22 14:09 kelson42

hi @opk12 ,

Current result after sorting search result.

Its sorting the search result.

Keyword search Result
new
apf

MohitMaliFtechiz avatar Sep 28 '22 06:09 MohitMaliFtechiz

The search results are not ordered, so I need to skim the list to find the correct entry. This is especially a problem for Wiktionary, where many words are very similar to each other (share the stem).

They are ordered, but maybe not like you want. It seems you want them ordered alphabetically and they are ordered by pertinence.

I think your ticket is legitimate, but I have no solution in mind for the moment. Might take quite a bit before we can close this ticket, but thank you for creating it anyway.

kelson42 avatar Sep 28 '22 07:09 kelson42

For clarity to my future self: what is called current result above by MohitMaliFtechiz is the result of the non-merged PR 3093 linked above.

opk12 avatar Sep 28 '22 09:09 opk12

I will move ultimatively to openzim/libzim, where the sorting of results is decided. We have many tickets related to how results should be sorted. I believe that at the end, the way how we index and ponderate resukts should allow to get this alphabetical order. But we shoukd fix/organize this in MWoffliner.

kelson42 avatar May 05 '23 05:05 kelson42