gugray / ZydeoWeb

Chinese dictionary lookup and authoring site
GNU General Public License v3.0
8 stars 3 forks source link

Smarter sorting/grouping/filtering in Hanzi and Pinyin lookup results #7

Open gugray opened 7 years ago

gugray commented 7 years ago

The current "show everything" lookup behavior is clumsy when there are many (or extremely many) lookup results.

Scenario 1: You're searching for Hanzi. The lookup results first include your search term. Then everything that has your query as a prefix. Then everything where the query starts on the 2. position, etc. Solution:

Scenario 2: You're searching for Pinyin. Results are alphabetically ordered, and within that, they group same entries with the same Hanzi. Here, too, this breaks down with too many lookup resuls.