List Info

Thread: stylesheet issue




stylesheet issue
user name
2006-06-02 06:39:26
I've got solr installed and running, with only one failure
left to date.
Whenver I try to select a stylesheet for my search, I get an
error message
such as this:

Error loading stylesheet: A network error occured loading an
XSLT
stylesheet:http://localh
ost:8983/admin/tabular.xsl

Something tells me something isn't mapped correctly here
either in Jetty or
in a Solar config. My hunch is the path should be "
http://l
ocalhost:8983/solr/admin/tabular.xsl"

I must say the product is great and the synonym tool is
unbelievable. Can't
say enough.

Any help with this stylesheet issue is greatly appreciated.

Tim
stylesheet issue
user name
2006-06-02 13:18:39
On 6/2/06, Tim Archambault <tarchambaultbangordailynews.net> wrote:
> I've got solr installed and running, with only one
failure left to date.
> Whenver I try to select a stylesheet for my search, I
get an error message
> such as this:

Hi Tim,

There is no stylesheet 

It's a hold-over from an old XML format that Solr used to
support
before it was open-sourced.  That old XML format was for
compatibility
with another internal product.  It turned out that it
wasn't flexible
enough to add extra info like multiple result sets, or
faceted
browsing info, so we came up with v2 of the XML (but no new
stylesheet
to go with it).

The XML is fairly readable though, so it hasn't been much
of a problem
in practice.

-Yonik
stylesheet issue
user name
2006-06-02 18:06:25
: There is no stylesheet 
:
: It's a hold-over from an old XML format that Solr used to
support
: before it was open-sourced.  That old XML format was for
compatibility
: with another internal product.  It turned out that it
wasn't flexible
: enough to add extra info like multiple result sets, or
faceted
: browsing info, so we came up with v2 of the XML (but no
new stylesheet
: to go with it).
:
: The XML is fairly readable though, so it hasn't been much
of a problem
: in practice.

Yeah ... the whole way the stylesheet param is handled has
allwyas kind of
bugged me ... in the back of my mind, i've been thinking
that the right
thing to do would be to change it so if it's specified, the
string is used
verbatim as the stylehseet URL instead of hte current
practice of
assuming it's in the admin directory -- that way people
could either
specify fully qualified URLs on another host, or
quasi-relative paths
rooted with / on another webapp of the current host/port, or
it could even
be a refrence to get-files.jsp so they could store the XSLTs
in their
./solr directory.

another way to go if we add init() params to
QueryResponseWriter would be
to make the XmlResponseWriter take in a NamedList of
alias=>URL mappings
of all the stylesheets it wanted to support (which could
still be served
via get-files.jsp)


-Hoss

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )