Skip to content

Commit

Permalink
more commented out code to remove
Browse files Browse the repository at this point in the history
  • Loading branch information
qqmyers committed May 22, 2024
1 parent d64e973 commit 139c833
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,6 @@ private void persistToSolr(Collection<SolrInputDocument> docs) throws SolrServer
* @todo Do something with these responses from Solr.
*/
UpdateResponse addResponse = solrClientService.getSolrClient().add(docs, IndexServiceBean.COMMIT_WITHIN);
//UpdateResponse commitResponse = solrClientService.getSolrClient().commit();
}

public IndexResponse indexPermissionsOnSelfAndChildren(long definitionPointId) {
Expand Down Expand Up @@ -504,19 +503,13 @@ public IndexResponse deleteMultipleSolrIds(List<String> solrIdsToDelete) {
*/
return new IndexResponse("problem deleting the following documents from Solr: " + solrIdsToDelete);
}
/*try {
solrClientService.getSolrClient().commit();
} catch (SolrServerException | IOException ex) {
return new IndexResponse("problem committing deletion of the following documents from Solr: " + solrIdsToDelete);
}*/
return new IndexResponse("no known problem deleting the following documents from Solr:" + solrIdsToDelete);
}

public JsonObjectBuilder deleteAllFromSolrAndResetIndexTimes() throws SolrServerException, IOException {
JsonObjectBuilder response = Json.createObjectBuilder();
logger.info("attempting to delete all Solr documents before a complete re-index");
solrClientService.getSolrClient().deleteByQuery("*:*", IndexServiceBean.COMMIT_WITHIN);
//solrClientService.getSolrClient().commit();
int numRowsAffected = dvObjectService.clearAllIndexTimes();
response.add(numRowsClearedByClearAllIndexTimes, numRowsAffected);
response.add(messageString, "Solr index and database index timestamps cleared.");
Expand Down

0 comments on commit 139c833

Please sign in to comment.