Apache Lucene open-source search software
SOLR-2178: make price work for paging, facets
Grant Ingersoll1d3ba9d433eb
diff --git a/solr/example/solr/conf/velocity/VM_global_library.vm b/solr/example/solr/conf/velocity/VM_global_library.vmindex 5f6f8f3eed6..efcaee259be 100644--- a/solr/example/solr/conf/velocity/VM_global_library.vm+++ b/solr/example/solr/conf/velocity/VM_global_library.vm@@ -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#enddiff --git a/solr/example/solr/conf/velocity/browse.vm b/solr/example/solr/conf/velocity/browse.vmindex cc1d2922446..013770c4cde 100644--- a/solr/example/solr/conf/velocity/browse.vm+++ b/solr/example/solr/conf/velocity/browse.vm@@ -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