hubowei 2015-07-22
VisualSearch.js enhances ordinary search boxes with the ability to autocomplete faceted search queries. Specify the facets for completion, along with the completable values for any facet. You can retrieve the search query as a structured object, so you don't have to parse the query string yourself.
Here's an example of a search on DocumentCloud.org that uses facets.
The project is hosted on GitHub. You can report bugs and discuss features on the issues page, on Freenode in the #documentcloud channel, or send tweets to @documentcloud.
VisualSearch.js is an open-source component of DocumentCloud.
The complete annotated source code is also available.
原文:http://documentcloud.github.io/visualsearch/
下载:documentcloud-visualsearch-0.5.1-0-g4910604
项目地址:http://documentcloud.github.io/visualsearch/docs/visualsearch.html