I am in the process of migrating our existing SOLR (version 3.5) to new version of SOLR (4.3.0).
Currently we delete the document from SOLR using the below code (deletion happens via message queue). UpdateRequestProcessor processor = _getProcessor(); // return SOLR core information DeleteUpdateCommand deleteCommand = new DeleteUpdateCommand(); deleteCommand.id = docId; deleteCommand.fromPending = true; deleteCommand.fromCommitted = true; processor.processDelete(deleteCommand); It looks like the new version of SOLR API has different constructor, it requires a SOLR request to passed in...So I did something like below.. I just want to confirm if I am doing this right? Can someone please confirm? Also is there any migration help document that I can use to overcome migration related issues? NamedList<String> nList=new NamedList<String>(); nList.add("id", docId); LocalSolrQueryRequest req = new LocalSolrQueryRequest( _requestHandler.getCore(), nList); UpdateRequestProcessor processor = _getProcessor(); DeleteUpdateCommand deleteCommand = new DeleteUpdateCommand(req); processor.processDelete(deleteCommand); -- View this message in context: http://lucene.472066.n3.nabble.com/SOLR-4-3-0-How-to-use-DeleteUpdateCommand-tp4062454.html Sent from the Solr - User mailing list archive at Nabble.com.