Re: Finding time of last commit to index from SolrJ?

2017-03-16 Thread Damien Kamerman
I ended up doing something like this:

String core = "collection1_shard1_core1";
ModifiableSolrParams p = new ModifiableSolrParams();
p.set("show", "index");
GenericSolrRequest checkRequest = new GenericSolrRequest(POST, "/../" +
core + "/admin/luke", p);
NamedList checkResult = client.request("collection1", checkRequest);

On 16 March 2017 at 14:20, Phil Scadden  wrote:

> The admin gui displays the time of last commit to a core but how can this
> be queried from within SolrJ?
>
> Notice: This email and any attachments are confidential and may not be
> used, published or redistributed without the prior written consent of the
> Institute of Geological and Nuclear Sciences Limited (GNS Science). If
> received in error please destroy and immediately notify GNS Science. Do not
> copy or disclose the contents.
>


Finding time of last commit to index from SolrJ?

2017-03-15 Thread Phil Scadden
The admin gui displays the time of last commit to a core but how can this be 
queried from within SolrJ?

Notice: This email and any attachments are confidential and may not be used, 
published or redistributed without the prior written consent of the Institute 
of Geological and Nuclear Sciences Limited (GNS Science). If received in error 
please destroy and immediately notify GNS Science. Do not copy or disclose the 
contents.