You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by eh...@apache.org on 2010/06/18 11:33:43 UTC
svn commit: r955905 -
/lucene/dev/trunk/solr/example/solr/conf/velocity/layout.vm
Author: ehatcher
Date: Fri Jun 18 09:33:42 2010
New Revision: 955905
URL: http://svn.apache.org/viewvc?rev=955905&view=rev
Log:
Use generic url_for_solr prefix, allowing one global config change for a core path or different Solr mapping
Modified:
lucene/dev/trunk/solr/example/solr/conf/velocity/layout.vm
Modified: lucene/dev/trunk/solr/example/solr/conf/velocity/layout.vm
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/example/solr/conf/velocity/layout.vm?rev=955905&r1=955904&r2=955905&view=diff
==============================================================================
--- lucene/dev/trunk/solr/example/solr/conf/velocity/layout.vm (original)
+++ lucene/dev/trunk/solr/example/solr/conf/velocity/layout.vm Fri Jun 18 09:33:42 2010
@@ -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.vm
extraParams:{
'terms.prefix': function() { return $("\#q").val();},
'terms.sort': 'count',