Does a simple commit operation
()
| 771 | |
| 772 | /** Does a simple commit operation */ |
| 773 | public void commit() throws IOException, SolrServerException { |
| 774 | info("COMMITting Solr index changes to " + solrUpdateUrl + "..."); |
| 775 | String url = solrUpdateUrl.toString(); |
| 776 | url = url.substring(0, url.lastIndexOf("/update")); |
| 777 | try (final SolrClient client = CLIUtils.getSolrClient(url, credentials)) { |
| 778 | client.commit(); |
| 779 | } |
| 780 | } |
| 781 | |
| 782 | /** Does a simple optimize operation */ |
| 783 | public void optimize() throws IOException, SolrServerException { |