lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Commit Tag Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-3829) Admin UI Logging events broken if schema.xml defines a catch-all dynamicField with type ignored
Date Sat, 05 Jan 2013 20:28:13 GMT

    [ https://issues.apache.org/jira/browse/SOLR-3829?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13544810#comment-13544810
] 

Commit Tag Bot commented on SOLR-3829:
--------------------------------------

[branch_4x commit] Stefan Matheis
http://svn.apache.org/viewvc?view=revision&revision=1429299

SOLR-3829: Admin UI Logging events broken if schema.xml defines a catch-all dynamicField with
type ignored (merge r1429298)

                
> Admin UI Logging events broken if schema.xml defines a catch-all dynamicField with type
ignored
> -----------------------------------------------------------------------------------------------
>
>                 Key: SOLR-3829
>                 URL: https://issues.apache.org/jira/browse/SOLR-3829
>             Project: Solr
>          Issue Type: Bug
>          Components: web gui
>    Affects Versions: 4.0-BETA
>            Reporter: Andreas Hubold
>            Assignee: Stefan Matheis (steffkes)
>             Fix For: 4.1
>
>         Attachments: SOLR-3829.patch
>
>
> The Solr Admin page does not show any log events. There are Javascript errors
> {noformat}
> TypeError: doc.logger.esc is not a function
> ... '<abbr title="' + doc.logger.esc() + '">' + doc.logger.split( '.' ).pop().esc()...
> {noformat}
> This is because the response of the LoggingHandler added unexpected {{[ ... ]}} characters
around the values for time, level, logger and message:
> {noformat}
> ...
> "history":{"numFound":2,"start":0,"docs":[{"time":["2012-09-11T15:07:05.453Z"],"level":["WARNING"],"logger":["org.apache.solr.core.SolrCore"],"message":["New
index directory detected: ...
> {noformat}
> This is caused by the way the JSON is created. org.apache.solr.logging.LogWatcher#toSolrDocument
creates a SolrDocument which is then formatted with a org.apache.solr.response.JSONResponseWriter.
> But the JSONResponseWriter uses the index schema to decide how to format the JSON. We
have the following field declaration in schema.xml:
> {noformat}
>     <dynamicField name="*" type="ignored" />
> {noformat}
> The field type "ignored" has the attribute multiValued set to true. Because of this JSONResponseWriter
adds [] characters in org.apache.solr.response.JSONWriter#writeSolrDocument
> The formatting should be independent from schema.xml

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message