> some sample code for our users that shows them how to query Solr - I believe you don't have to use SolrJ to query Solr; SolrJ can query and parse XML response from server; if your clients can use raw URL as a query and raw XML (JSON etc.) as a response - you don't need SolrJ.
To pass cookie with SolrJ you need modify source code... or may be you can get access to core HttpClient objects via some configuration (singleton) and pass default per-client cookie without altering SOLR -----Original Message----- From: Ramirez, Paul M (388J) [mailto:paul.m.rami...@jpl.nasa.gov] Sent: August-18-09 12:48 PM To: solr-user@lucene.apache.org Subject: Passing a Cookie in SolrJ Hi All, The project I am working on is using Solr and OpenSSO (Sun's single sign on service). I need to write some sample code for our users that shows them how to query Solr and I would just like to point them to the SolrJ documentation but I can't see an easy way to be able to pass a cookie with the request. The cookie is needed to be able to get through the SSO layer but will just be ignored by Solr. I see that you are using Apache Commons Http Client and with that I would be able to write the cookie if I had access to the HttpMethod being used (GetMethod or PostMethod). However, I can not find an easy way to get access to this with SolrJ and thought I would ask before rewriting a simple example using only an ApacheHttpClient without the SolJ library. Thanks in advance for any pointers you may have. Thanks, Paul Ramirez