diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt index 2d26a225b97..3dd59940b51 100644 --- a/solr/CHANGES.txt +++ b/solr/CHANGES.txt @@ -117,6 +117,8 @@ Bug Fixes (Mark Miller, Michael Sun) * SOLR-9729: JDBCStream improvements (Kevin Risden) + +* SOLR-9626: new Admin UI now also highlights matched terms in the Analysis screen. (Alexandre Rafalovitch) Other Changes ---------------------- diff --git a/solr/webapp/web/js/angular/controllers/analysis.js b/solr/webapp/web/js/angular/controllers/analysis.js index ccd556aa087..48ec36995f7 100644 --- a/solr/webapp/web/js/angular/controllers/analysis.js +++ b/solr/webapp/web/js/angular/controllers/analysis.js @@ -76,9 +76,17 @@ solrAdminApp.controller('AnalysisController', for (key in tokenhash) { if (key == "match" || key=="positionHistory") { - //@ todo do something + //skip, to not display these keys in the UI } else { - token.keys.push({name:key, value:tokenhash[key]}); + var tokenInfo = new Object(); + tokenInfo.name = key; + tokenInfo.value = tokenhash[key]; + if ('text' === key || 'raw_bytes' === key ) { + if (tokenhash.match) { + tokenInfo.extraclass = 'match'; //to highlight matching text strings + } + } + token.keys.push(tokenInfo); } } tokens.push(token); diff --git a/solr/webapp/web/partials/analysis.html b/solr/webapp/web/partials/analysis.html index 3c1b4565dc5..23527f7351c 100644 --- a/solr/webapp/web/partials/analysis.html +++ b/solr/webapp/web/partials/analysis.html @@ -106,7 +106,7 @@ limitations under the License. - +
{{value.value}}