[ 
https://issues.apache.org/jira/browse/SOLR-522?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tricia Williams updated SOLR-522:
---------------------------------

    Attachment: SOLR-522-analysis.jsp.patch

Modified patch uses Yonik's suggestion:

As a useful first step for debugging purposes, it seems like the full
hex of the raw bytes should always be output.  If it seems to be
ascii, that could be put in parens.
example: 636f6f6c (cool)

and incorporates Hoss' suggestion for printable Strings:

if i were tasked with 
trying to find a way to display in HTML an arbitrary byte[] that may or 
may not be a String, i would start by attempting a String conversion, if 
that succeds *and* all chars in the resulting String are "printable" ( 
ie: Character.isDefined(c) && ! Character.isISOCOntrol(c)) then display 
the first N chars (where N is some reasonable max size to display) ... if 
not, then just display the first N characters of the hex string 
representing the byte[].

> analysis.jsp doesn't show payloads created/modified by tokenizers and 
> tokenfilters
> ----------------------------------------------------------------------------------
>
>                 Key: SOLR-522
>                 URL: https://issues.apache.org/jira/browse/SOLR-522
>             Project: Solr
>          Issue Type: Improvement
>          Components: web gui
>            Reporter: Tricia Williams
>            Priority: Trivial
>         Attachments: SOLR-522-analysis.jsp.patch, SOLR-522-analysis.jsp.patch
>
>   Original Estimate: 0.17h
>  Remaining Estimate: 0.17h
>
> Add payload content to the vebose output of the analysis.jsp page for 
> debugging purposes.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to