lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Greg Ludington (JIRA)" <j...@apache.org>
Subject [jira] Updated: (SOLR-58) Change Admin components to return XML like the rest of the system
Date Fri, 10 Nov 2006 04:18:38 GMT
     [ http://issues.apache.org/jira/browse/SOLR-58?page=all ]

Greg Ludington updated SOLR-58:
-------------------------------

    Attachment: schemaxsl.zip

This may be slightly OT for this issue, but since the ticket discusses XSLT in the browser,
and the Self Service wiki page, I though to put up for comments a quick and dirty XSLT-based
schema browser I made.  It transforms schema.xml into a single page tree view, so you can
inspect fields and types, with some cross referencing between fieldtypes and fields, and field
copyField source/dests.  I have only tried it against Firefox 2 and IE7, but it should work
in all browsers with an XSLT engine, or, failing that, it could be done server-side, and the
resulting HTML sent to the browser.

Unzipping and opening schema.xml in a browser is enough to see it, but it will be missing
some styles and images referenced in the admin webapp.  To use it in a solr webapp against
your own schema, you have to:

a) place schema.xml and the gifs in the /admin/ directory
b) add the xsl directive to your schema.xml
<?xml-stylesheet type="text/xsl" href="schema.xsl"?>

c) modify get-file.jsp to set a content type of text/xml, and not to emit any whitespace

I have only tried it with my prototype small-scale schemas, but, if it works for people with
larger schemas, and fits in with the "Self Service" aims, I could take suggestions, clean
up the xsl, and submit the a-b-c changes above as a patch.

> Change Admin components to return XML like the rest of the system
> -----------------------------------------------------------------
>
>                 Key: SOLR-58
>                 URL: http://issues.apache.org/jira/browse/SOLR-58
>             Project: Solr
>          Issue Type: New Feature
>          Components: web gui
>            Reporter: Otis Gospodnetic
>         Assigned To: Otis Gospodnetic
>            Priority: Minor
>         Attachments: analysis-xml-out.txt, analysis-xml.jsp, logging-xml.jsp, ping-xml-out.txt,
ping-xml.jsp, schemaxsl.zip, threaddump-xml-out.txt, threaddump-xml.jsp
>
>
> I need to expose the admin functionality to an external application.  I think returning
admin data as XML may be a good and simple first step towards that.
> To do that I think I'll mostly need to modify JSPs (but I haven't had a good look at
Admin GUI yet).  From what I saw a few weeks ago when I briefly looked at this, no Java code
will need to be modified.  If you have concrete ideas about how this should be done, please
comment before I start next week (week of October 23rd 2006).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message