This is a unified front-end client to integrate various 3rd-party search services. It is made to enable searching on platforms like Hexo, Ghost, and any general websites that don't already have searching.
This plugin is only a front-end client. You still need to register and configure the services, including create and upload site indexes. For detailed instruction on registration and configuration of these search services, please refer to my series of tutorials:
- Universal Search #1 Common Logic
- Universal Search #2 Google Custom Search Engine
- Universal Search #4 Algolia Search
- Universal Search #5 Azure Search
Universal Search #3 Hexo Local Search(Support dropped in v2)Universal Search #6 Baidu Search(Never managed to support)
This plugin depends on jQuery.
Here are the files you need to include into your project:
- Everything under
./demo/fonts
. - Everything under
./demo/img
. - Load
./demo/universal-search.css
in<head>
. - Load
./demo/universal-search.js
after jQuery.
Enable a search service following the examples in ./demo/config.js
.
Clone this project and install.
git clone https://github.com/artchen/universal-search.git
npm install
npm build