Hi,

I'm reading the wiki.

What does q=apache mean in the url?

http://localhost:8983/solr/select/?stylesheet=&q=apache&wt=xslt&tr=example.xsl

thanks,

tri

 



________________________________
From: Markus Jelsma <markus.jel...@openindex.io>
To: Tri Nguyen <tringuye...@yahoo.com>
Cc: solr-user@lucene.apache.org
Sent: Tue, December 7, 2010 4:35:28 PM
Subject: Re: customer ping response

Well, you can go a long way with xslt but i wouldn't know how to embed the 
server name in the response as Solr simply doesn't return that information.

You'd have to patch the response Solr's giving or put a small script in front 
that can embed the server name.

> I need to return this:
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <admin>
> <status>
> <name>Server</name>
> <value>ok</value>
> </status>
> </admin>
> 
> 
> 
> 
> ________________________________
> From: Markus Jelsma <markus.jel...@openindex.io>
> To: solr-user@lucene.apache.org
> Cc: Tri Nguyen <tringuye...@yahoo.com>
> Sent: Tue, December 7, 2010 4:27:32 PM
> Subject: Re: customer ping response
> 
> Of course! The ping request handler behaves like any other request handler
> and accepts at last the wt parameter [1]. Use xslt [2] to transform the
> output to any desirable form or use other response writers [1].
> 
> Why anyway, is it a load balancer that only wants an OK output or
> something?
> 
> [1]: http://wiki.apache.org/solr/CoreQueryParameters
> [2]: http://wiki.apache.org/solr/XsltResponseWriter
> [3]: http://wiki.apache.org/solr/QueryResponseWriter
> 
> > Can I have a custom xml response for the ping request?
> > 
> > thanks,
> > 
> > Tri

Reply via email to