Hi,
I am trying to use the /get Request handler so as to retrieve the currently
indexed data.
But this does not seem to work for me.

I am using 4.12 version of Solr.

Also I am using CloudSolrServer to get the data.

 A snippet of code can be found below:

 SolrQuery solrQuery = new SolrQuery();
 solrQuery.setRequestHandler("/get");
 solrQuery.set("id","1");

 QueryResponse response = server.query(solrQuery);
 SolrDocumentList sdl = response.getResults();


Here I am not able to get any document.
However if I remove the
solrQuery.setRequestHandler("/get");

It works fine , but then I need t o soft commit to get the latest data.


Please help.



-- 
Vikash Agarwal



-- 
Vikash Agarwal

Reply via email to