You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by gs...@apache.org on 2010/10/20 15:53:02 UTC
svn commit: r1025579 - in /lucene/dev/trunk/solr/example/solr/conf/velocity:
VM_global_library.vm browse.vm
Author: gsingers
Date: Wed Oct 20 13:53:02 2010
New Revision: 1025579
URL: http://svn.apache.org/viewvc?rev=1025579&view=rev
Log:
SOLR-2178: make price work for paging, facets
Modified:
lucene/dev/trunk/solr/example/solr/conf/velocity/VM_global_library.vm
lucene/dev/trunk/solr/example/solr/conf/velocity/browse.vm
Modified: lucene/dev/trunk/solr/example/solr/conf/velocity/VM_global_library.vm
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/example/solr/conf/velocity/VM_global_library.vm?rev=1025579&r1=1025578&r2=1025579&view=diff
==============================================================================
--- lucene/dev/trunk/solr/example/solr/conf/velocity/VM_global_library.vm (original)
+++ lucene/dev/trunk/solr/example/solr/conf/velocity/VM_global_library.vm Wed Oct 20 13:53:02 2010
@@ -9,7 +9,9 @@
#macro(debug)#if($request.params.get('debugQuery'))&debugQuery=true#end#end
-#macro(lens)?#q#if($request.params.getParams('fq') and $list.size($request.params.getParams('fq')) > 0)&#fqs($request.params.getParams('fq'))#end#debug#end
+#macro(boostPrice)#if($request.params.get('bf') == 'price')CHECKED#end#end
+
+#macro(lens)?#q#if($request.params.getParams('fq') and $list.size($request.params.getParams('fq')) > 0)&#fqs($request.params.getParams('fq'))#end#debug#if($request.params.get('bf') == 'price')&bf=price#end#end
#macro(url_for_lens)#{url_for_home}#lens#end
Modified: lucene/dev/trunk/solr/example/solr/conf/velocity/browse.vm
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/example/solr/conf/velocity/browse.vm?rev=1025579&r1=1025578&r2=1025579&view=diff
==============================================================================
--- lucene/dev/trunk/solr/example/solr/conf/velocity/browse.vm (original)
+++ lucene/dev/trunk/solr/example/solr/conf/velocity/browse.vm Wed Oct 20 13:53:02 2010
@@ -7,7 +7,7 @@
<a href="#url_for_home#if($request.params.get('debugQuery'))?debugQuery=true#end"><img src="#{url_for_solr}/admin/solr_small.png" id="logo"/></a>
<div class="inputs"><span>Find: <input type="text" id="q" name="q" value="$!esc.html($params.get('q'))"/> <input type="submit"/> <input type="reset"/></span>
- <div class="query-boost"><input type="checkbox" name="bf" value="price" #if($response.responseHeader.params.bf == 'price')CHECKED#end>Boost by Price</input> </div></div>
+ <div class="query-boost"><input type="checkbox" name="bf" value="price" #boostPrice>Boost by Price</input> </div></div>
#if($request.params.get('debugQuery'))
<input type="hidden" name="debugQuery" value="true"/>
#end