Normally web searching is performed on the server side. That is, when you send a query with some keywords, the server will search its database that contains all data of a website. Searching can also be performed on the client side, i.e., in your web browser via JavaScript. Several JS libraries can do this job, such as lunr.js and fuse.js. They are not designed specifically for site searching but are more general-purpose—web searching is just one possible application.
In this post, I will show three quick steps to …