Apache Lucene open-source search software
Use generic url_for_solr prefix, allowing one global config change for a core path or different Solr mapping
Erik Hatcher363527dbe08a
diff --git a/solr/example/solr/conf/velocity/layout.vm b/solr/example/solr/conf/velocity/layout.vmindex b01908e027c..c633113ea87 100644--- a/solr/example/solr/conf/velocity/layout.vm+++ b/solr/example/solr/conf/velocity/layout.vm@@ -12,7 +12,7 @@<script>$(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.vmextraParams:{'terms.prefix': function() { return $("\#q").val();},'terms.sort': 'count',