Hi,

 

 I am trying to delete a record from the index using SolrJ. When I
execute it I get a status of 0 which means success. I see that the
"cummulative_deletbyquery" count increases by 1 and also the "commit"
count increases by one. I don't see any decrease on the "numDocs" count.
When I query it back I do see that record again. 

 

 

        //rev.id is the field within the solr document that identifies
that review

        String deleteQuery = "rev.id:" + reviewId;

 

        SolrServer solrServer = new CommonsHttpSolrServer(indexUrl);

 

        UpdateResponse solrResponse =
solrServer.deleteByQuery(deleteQuery);

        solrResponse = solrServer.commit();

 

Appreciate your response.

 

Thanks,

Raghu

Reply via email to