simongray / sino.study

A modern Chinese dictionary.
http://sino.study/
8 stars 0 forks source link

"to silence" doesn't return results for "to silence sb" #47

Open simongray opened 6 years ago

simongray commented 6 years ago

This is a broader issue with how search works.

Example:

http://sino.study/terms/to%20silence VS http://sino.study/terms/silence

The first query doesn't include results such as

simongray commented 6 years ago

similar to how "to" is removed for pinyin keys, sb and sth should be removed for extra pinyin keys that match these abbreviations.

Additionally, the terms themselves (sb and sth) should be removed from searchable terms the same way many other stopwords are.

simongray commented 6 years ago

also do this for "to be _____", e.g. "to be done" should match "done"