SOLR-8990: Fix top term links from schema browser page to use {!term} parser

This commit is contained in:
Chris Hostetter 2016-04-19 11:17:10 -07:00
parent 423ec09850
commit c574a91e3b
3 changed files with 6 additions and 1 deletions

View File

@ -137,6 +137,8 @@ Bug Fixes
* SOLR-8983: Cleanup clusterstate and replicas for a failed create collection request
(Varun Thacker, Anshum Gupta)
* SOLR-8990: Fix top term links from schema browser page to use {!term} parser (hossman)
Optimizations
----------------------
* SOLR-8722: Don't force a full ZkStateReader refresh on every Overseer operation.

View File

@ -143,6 +143,9 @@ solrAdminApp.config([
IS_COLLECTION_PAGE: 3,
ROOT_URL: "/"
})
.filter('uriencode', function() {
return window.encodeURIComponent;
})
.filter('highlight', function($sce) {
return function(input, lang) {
if (lang && input && lang!="text") return hljs.highlight(lang, input).value;

View File

@ -315,7 +315,7 @@ limitations under the License.
<li class="clearfix" ng-repeat="countGroup in termInfo.topTerms">
<p><span>{{countGroup.count}}</span></p>
<ul>
<li ng-repeat="term in countGroup.terms" ng-class="{odd:$odd}"><a href="#/{{core}}/query?q={{name}}:{{term}}">{{term}}</a></li>
<li ng-repeat="term in countGroup.terms" ng-class="{odd:$odd}"><a ng-href="#/{{core}}/query?q=%7B!term+f%3D{{name | uriencode}}%7D{{term | uriencode}}">{{term}}</a></li>
</ul>
</li>