2 ## An example of using an arbitrary request parameter
3 <title>#param('title')</title>
4 <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
6 <script type="text/javascript" src="#{url_root}/js/lib/jquery-1.7.2.min.js"></script>
7 <link rel="stylesheet" type="text/css" href="#{url_for_solr}/admin/file?file=/velocity/main.css&contentType=text/css"/>
8 <link rel="stylesheet" href="#{url_for_solr}/admin/file?file=/velocity/jquery.autocomplete.css&contentType=text/css" type="text/css" />
9 <script type="text/javascript" src="#{url_for_solr}/admin/file?file=/velocity/jquery.autocomplete.js&contentType=text/javascript"></script>
13 $(document).ready(function(){
14 $("\#q").autocomplete('#{url_for_solr}/terms', { ## backslash escaped #q as that is a macro defined in VM_global_library.vm
16 'terms.prefix': function() { return $("\#q").val();},
17 'terms.sort': 'count',
20 'v.template': 'suggest'
25 // http://localhost:8983/solr/terms?terms.fl=name&terms.prefix=i&terms.sort=count