Use generic url_for_solr prefix, allowing one global config change for a core path or different Solr mapping

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@955905 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Erik Hatcher 2010-06-18 09:33:42 +00:00
parent 5d964485d4
commit 363527dbe0
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@
<script> <script>
$(document).ready(function(){ $(document).ready(function(){
$("\#q").autocomplete('/solr/terms', { ## backslash escaped #q as that is a macro defined in VM_global_library.vm $("\#q").autocomplete('#{url_for_solr}/terms', { ## backslash escaped #q as that is a macro defined in VM_global_library.vm
extraParams:{ extraParams:{
'terms.prefix': function() { return $("\#q").val();}, 'terms.prefix': function() { return $("\#q").val();},
'terms.sort': 'count', 'terms.sort': 'count',