diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt index 53fca9ec8cb..a61504bf8ef 100644 --- a/solr/CHANGES.txt +++ b/solr/CHANGES.txt @@ -152,6 +152,9 @@ Bug Fixes * SOLR-4484: ReplicationHandler#loadReplicationProperties still uses Files rather than the Directory to try and read the replication properties files. (Mark Miller) + +* SOLR-4352: /browse pagination now supports and preserves sort context + (Eric Spiegelberg, Erik Hatcher) Optimizations ---------------------- diff --git a/solr/example/solr/collection1/conf/velocity/VM_global_library.vm b/solr/example/solr/collection1/conf/velocity/VM_global_library.vm index b501545674f..7fdd85b7ab2 100644 --- a/solr/example/solr/collection1/conf/velocity/VM_global_library.vm +++ b/solr/example/solr/collection1/conf/velocity/VM_global_library.vm @@ -26,7 +26,9 @@ #macro(group)#if($request.params.getBool("group") == true)&group=true#end#if($request.params.get("group.field"))#foreach($grp in $request.params.getParams('group.field'))&group.field=$grp#end#end#end -#macro(lensNoQ)?#if($request.params.getParams('fq') and $list.size($request.params.getParams('fq')) > 0)&#fqs($request.params.getParams('fq'))#end#debug#boostPrice#annotate#spatial#qOpts#group#end +#macro(sort $p)#if($p)#foreach($s in $p)&sort=$esc.url($s)#end#end#end + +#macro(lensNoQ)?#if($request.params.getParams('fq') and $list.size($request.params.getParams('fq')) > 0)&#fqs($request.params.getParams('fq'))#end#sort($request.params.getParams('sort'))#debug#boostPrice#annotate#spatial#qOpts#group#end #macro(lens)#lensNoQ#q#end