SOLR-5800: Admin UI - Analysis form doesn't render results correctly when a CharFilter is used

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1576652 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Stefan Matheis 2014-03-12 09:02:20 +00:00
parent bfe18a4936
commit d4d2e6f8b5
2 changed files with 13 additions and 4 deletions

View File

@ -144,6 +144,9 @@ Bug Fixes
* SOLR-5839: ZookeeperInfoServlet does not trim path properly.
(Furkan KAMACI via Mark Miller)
* SOLR-5800: Admin UI - Analysis form doesn't render results correctly when a
CharFilter is used. (steffkes)
Optimizations
----------------------
* SOLR-1880: Distributed Search skips GET_FIELDS stage if EXECUTE_QUERY

View File

@ -360,12 +360,18 @@ sammy.get
analysis_data[type][1] = [{ 'text': analysis_data[type][1] }]
}
var c = analysis_data[type][1].length;
for( var i = 0; i < c; i++ )
for( var i = 1; i < type_length; i += 2 )
{
global_elements_count = Math.max( analysis_data[type][1][i].position || 0, global_elements_count );
var tmp_type_length = analysis_data[type][i].length;
for( var j = 0; j < tmp_type_length; j++ )
{
global_elements_count = Math.max
(
( analysis_data[type][i][j].positionHistory || [] )[0] || 1,
global_elements_count
);
}
}
var content = '<div class="' + type + '">' + "\n";
content += '<table border="0" cellspacing="0" cellpadding="0">' + "\n";