SOLR-3238: Admin UI -- link the doc count to a query showing matching docs (field:[* TO *])

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1310027 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Ryan McKinley 2012-04-05 19:31:41 +00:00
parent 33787e952c
commit 2ebf6243ca
1 changed files with 5 additions and 1 deletions

View File

@ -833,9 +833,13 @@ sammy.get
$( 'dd.docs', options_element )
.remove();
var target = '#/' + current_core + '/query?q=' + field.esc() + ':[* TO *]';
docs_element
.show()
.after( '<dd class="docs">' + schema_browser_data.fields[field].docs + '</dd>' );
.after(
'<dd class="docs">'+
'<a href="'+target+'">' + schema_browser_data.fields[field].docs + '</a>' +
'</dd>' );
}
else
{