Interesting. Do you know if it's possible to get the HTTP headers with Solrj?

Yonik Seeley wrote:
On Fri, Apr 10, 2009 at 11:58 AM, Richard Wiseman
<rwise...@infosciences.com> wrote:
Is it possible for a Solr client to determine if the index has changed since
the last time it performed a query?  For example, is it possible to query
the current Lucene indexVersion?

Grant pointed to one way - the Luke handler.
Another way is to look at the Last-Modified or ETag HTTP headers.

$ curl -i http://localhost:8983/solr/select?q=solr
HTTP/1.1 200 OK
Last-Modified: Fri, 10 Apr 2009 17:40:54 GMT
ETag: "OWZlNjdkN2Q4ODAwMDAwU29scg=="
Content-Type: text/xml; charset=utf-8
Content-Length: 2308
Server: Jetty(6.1.3)


-Yonik
http://www.lucidimagination.com




--
Richard Wiseman
Information Sciences Corp.
(301) 962-5707

Reply via email to