MCPcopy Create free account
hub / github.com/apache/solr / commit

Method commit

solr/core/src/java/org/apache/solr/cli/PostTool.java:773–780  ·  view source on GitHub ↗

Does a simple commit operation

()

Source from the content-addressed store, hash-verified

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 {

Callers 15

executeMethod · 0.95
setUpMethod · 0.45
testExtractionMethod · 0.45
testLiteralsMethod · 0.45
testLiteralDefaultsMethod · 0.45
testArabicPDFMethod · 0.45
testLiteralsOverrideMethod · 0.45
testPasswordProtectedMethod · 0.45
testIndexAndSearchMethod · 0.45
beforeMethod · 0.45

Calls 4

infoMethod · 0.95
getSolrClientMethod · 0.95
toStringMethod · 0.65
substringMethod · 0.45

Tested by 15

setUpMethod · 0.36
testExtractionMethod · 0.36
testLiteralsMethod · 0.36
testLiteralDefaultsMethod · 0.36
testArabicPDFMethod · 0.36
testLiteralsOverrideMethod · 0.36
testPasswordProtectedMethod · 0.36
testIndexAndSearchMethod · 0.36
beforeMethod · 0.36
beforeMethod · 0.36