You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by "Andrew Nagy (JIRA)" <ji...@apache.org> on 2008/08/12 16:26:44 UTC

[jira] Created: (SOLR-691) Standardized XML Response

Standardized XML Response
-------------------------

                 Key: SOLR-691
                 URL: https://issues.apache.org/jira/browse/SOLR-691
             Project: Solr
          Issue Type: Improvement
    Affects Versions: 1.3
            Reporter: Andrew Nagy
            Priority: Minor


It would be nice for parsing Solr output if all output followed a standardized XML schema.

For example: add, commit, optimize, etc. all return the following:
<result status="0"></result>
But do not include an XML declaration line.

When Solr throws an error - we get a standard java backtrace.  It would be nice if this was formated in XML as well with something to the effect of:
<?xml ... ?>
<result status="error">
<backtrace>....</backtrace>
</result>

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


[jira] Resolved: (SOLR-691) Standardized XML Response

Posted by "Hoss Man (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-691?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hoss Man resolved SOLR-691.
---------------------------

    Resolution: Duplicate

ignoring the specifics about XML, there's to aspects of this request...
1) that the response format from adds/commits be standardized along with queries
2) that the response format from errors be machine parsable.

#1 has already been done as long as people register a request handler for doing updates - then a normal response writer is used (it's only the SolrUpdateServlet that generates the output mentioned and that's for back compatibility)

#2 is covered by SOLR-141 as ryan mentioned.

> Standardized XML Response
> -------------------------
>
>                 Key: SOLR-691
>                 URL: https://issues.apache.org/jira/browse/SOLR-691
>             Project: Solr
>          Issue Type: Improvement
>    Affects Versions: 1.3
>            Reporter: Andrew Nagy
>            Priority: Minor
>
> It would be nice for parsing Solr output if all output followed a standardized XML schema.
> For example: add, commit, optimize, etc. all return the following:
> <result status="0"></result>
> But do not include an XML declaration line.
> When Solr throws an error - we get a standard java backtrace.  It would be nice if this was formated in XML as well with something to the effect of:
> <?xml ... ?>
> <result status="error">
> <backtrace>....</backtrace>
> </result>

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


[jira] Commented: (SOLR-691) Standardized XML Response

Posted by "Ryan McKinley (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-691?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12621838#action_12621838 ] 

Ryan McKinley commented on SOLR-691:
------------------------------------

Check: SOLR-141
This would let the response writer format errors...

> Standardized XML Response
> -------------------------
>
>                 Key: SOLR-691
>                 URL: https://issues.apache.org/jira/browse/SOLR-691
>             Project: Solr
>          Issue Type: Improvement
>    Affects Versions: 1.3
>            Reporter: Andrew Nagy
>            Priority: Minor
>
> It would be nice for parsing Solr output if all output followed a standardized XML schema.
> For example: add, commit, optimize, etc. all return the following:
> <result status="0"></result>
> But do not include an XML declaration line.
> When Solr throws an error - we get a standard java backtrace.  It would be nice if this was formated in XML as well with something to the effect of:
> <?xml ... ?>
> <result status="error">
> <backtrace>....</backtrace>
> </result>

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