
HanziBase – Search Updates and Radicals
你好! I have been working some more on Hanzibase and it’s pretty much ready for deployment now. Since the last post I have added some extra features, mostly around the search functionality. Now, if the search input is all non-Chinese characters, the search function will spilt the string up by spaces and search the database for those strings. However, if the input contains Chinese characters, it will run them by the database first to check if those characters stored. If they are, the search results will return the characters searched for. However, if any of the characters searched for are not in the database, then the APIs will be called for each new character and if they are valid, they’ll be added to the site. Once that’s all done, the search results will be displayed.


This means that multiple characters can be added at once if the search query contains more than one character that aren’t in the local database:

Other than this feature, radicals have been added. Each character has a radical (and some will have a simplified radical too) and this radical is provided on the character page as a link. The link will lead to a search of the local database for characters with that radical, letting users quickly search for similar characters:

The final major feature I worked on was the homepage. And of course, all of the site is fully responsive:


The next step will be to get the website online, and then to redo the frontend of the website with react (which I’m currently still learning and want to do a few more test projects before I dive into laravel+react).
再见!