: so I have tried to attach the xslt steelsheet to the response of SOLR with
: passing this 2 variables wt=xslt&tr=example.xsl
: 
: while example.xsl is an included steelsheet to SOLR , but the response in
: HTML was'nt very perfect .

can you elaborate on what you mean by "wasn't very perfect" ? ... what was 
wrong with it? ... was there an actaul bug, or were you just not happy 
with how it looked?  did you try modifying the exampl.xsl?  (it's intended 
purely as an example ... it's not ment to work for everyone as is)

: So i have readen on the net that we can write an extension to the
: QueryResponseWriter class like XMLResponseWriter (default)
: and i m trying to build that .
        ...
: I m proceeding like XMLREsponseWriter to create HTMLResponseWriter and i

I would strongly suggest that instead of doing this, you take a look at 
the velocity response writer (in contrib) or tweet teh XSL some more ... 
writing a custom HTMLResponseWriter isn't neraly as flexible as either of 
those other two options -- particularly because the ResponseWriter API 
requires you to deal with the Response objects in the order they are added 
by the RequestHandler -- which isn't neccessarily the same order you want 
to deal with them in an HTML response.  (this isn't typically a problem 
for most ResponseWriters because htey aren't typically intended to be read 
by humans)

: org.apache.solr.common.SolrException: Error loading class
: 'org.apache.solr.request.HTMLResponseWriter'

1) if you are writing a custom ResponseWriter, you should be using your 
own java package name, not "org.apache.solr.request"

: Caused by: java.lang.ClassNotFoundException:
: org.apache.solr.request.HTMLResponseWriter

2) it can't find your class.  did you compile it?  did you put it i na 
jar? where did you put the jar?  what does your solr install look like? 
... the details are the key to understanding why it can't find your class.



-Hoss

Reply via email to