Sha256: 5b271234067bf2622f4e24f77e8f4cf2f1a82295fa996ecd6fb2abb556e1c0df
Contents?: true
Size: 1.3 KB
Versions: 10
Compression:
Stored size: 1.3 KB
Contents
## An example of using an arbitrary request parameter <title>#param('title')</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"/> <script type="text/javascript" src="#{url_root}/js/lib/jquery-1.7.2.min.js"></script> <link rel="stylesheet" type="text/css" href="#{url_for_solr}/admin/file?file=/velocity/main.css&contentType=text/css"/> <link rel="stylesheet" href="#{url_for_solr}/admin/file?file=/velocity/jquery.autocomplete.css&contentType=text/css" type="text/css" /> <script type="text/javascript" src="#{url_for_solr}/admin/file?file=/velocity/jquery.autocomplete.js&contentType=text/javascript"></script> <script> $(document).ready(function(){ $("\#q").autocomplete('#{url_for_solr}/terms', { ## backslash escaped #q as that is a macro defined in VM_global_library.vm extraParams:{ 'terms.prefix': function() { return $("\#q").val();}, 'terms.sort': 'count', 'terms.fl': 'name', 'wt': 'velocity', 'v.template': 'suggest' } } ).keydown(function(e){ if (e.keyCode === 13){ $("#query-form").trigger('submit'); } }); // http://localhost:8983/solr/terms?terms.fl=name&terms.prefix=i&terms.sort=count }); </script>
Version data entries
10 entries across 4 versions & 2 rubygems