Ajax SOLR is a SOLR-based application library implemented using the client JavaScript library. It provides a wide range of application functions.
Ajax SOLR is a client-side JavaScript library that can access SOLR via its rest-like interface. SOLR is not properly a database, but a search server; however it is the main data source for a search-based application. the result of using Ajax SOLR for the user interface is literally having a JDBC (or PDO) API available in the browser, which can make queries and change the results displayed basing on events generated by the user.
Official homepage and details
Https://github.com/evolvingweb/ajax-solr
Http://www.renren.it/a/JAVAbiancheng/JAVAzonghe/20100909/client-applications-ajax-solr.html
Http://java.dzone.com/articles/client-applications-ajax-solr
Example Reuters Tutorial:
Https://github.com/evolvingweb/ajax-solr/wiki/reuters-tutorial
Http://wenku.baidu.com/view/6830cd10f18583d04964590d.html
Download example: http://github.com/evolvingweb/ajax-solr/zipball/gh-pages
Decompress the downloaded file, and examples is the specific effect as follows. docs is the library's API docs description, which is very detailed; LIB is the library's JavaScriptSource code
The following is the specific effect of each example. It can be seen that all aspects of the search have a wide variety of manifestations in this library, which is of reference significance for our common applications.
[The following example shows the step-by-step differences marked in red box]
· Step 1: Talk to SOLR
· Step 2: Add a results widget
· Step 3: Add a pager widget
· Step 4: Add a tagcloud widget
· Step 5: display the current Filters
· Step 6: Add a free-text widget
· Step 7: add an AutoComplete widget
· Step 8: Add a map widget
· Step 9: Add a calendar widget
Step 10: extra credit
Basic
The specific services of the above applications are JSON data returned by SOLR-based services. The specific requests are similar to the following:
Http://evolvingweb.ca/solr/reuters/select? Facet = true & Q = * % 3A * & facet. field = topics & facet. field = organizations & facet. field = exchanges & facet. field = countrycodes & facet. limit = 20 & facet. mincount = 1 & F. topics. facet. limit = 50 & F. countrycodes. facet. limit =-1 & facet. date = Date & facet. date. start = 1987-02-26t00% 3a00% 3a00. 000z % 2 fday & facet. date. end = 1987-10-20t00% 3a00% 3a00. 000z % 2 fday % 2b1day & facet. date. gap = % 2b1day & JSON. NL = map & Wt = JSON & JSON. WRF = jsonp1313733083156 & _ = 1313733083258
http://evolvingweb.ca/solr/reuters/select? Q = *: * & rows = 0 & facet = true & facet. limit =-1 & facet. mincount = 1 & JSON. NL = map & facet. field = topics & facet. field = organizations & facet. field = exchanges & Wt = JSON & JSON. WRF = jsonp1313733083157 & _= 1313733084113