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

Method optimize

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

Does a simple optimize operation

()

Source from the content-addressed store, hash-verified

781
782 /** Does a simple optimize operation */
783 public void optimize() throws IOException, SolrServerException {
784 info("Performing an OPTIMIZE to " + solrUpdateUrl + "...");
785 String url = solrUpdateUrl.toString();
786 url = url.substring(0, url.lastIndexOf("/update"));
787 try (final SolrClient client = CLIUtils.getSolrClient(url, credentials)) {
788 client.optimize();
789 }
790 }
791
792 /**
793 * Appends a URL query parameter to a URL

Callers 15

executeMethod · 0.95
deleteSomeDocsMethod · 0.45
beforeClassMethod · 0.45
testSimpleMethod · 0.45
deleteSomeDocsMethod · 0.45
testConfigMethod · 0.45
testMergeContiguousMethod · 0.45
testTermVecHighlightMethod · 0.45
testDisMaxHighlightMethod · 0.45

Calls 4

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

Tested by 15

deleteSomeDocsMethod · 0.36
beforeClassMethod · 0.36
testSimpleMethod · 0.36
deleteSomeDocsMethod · 0.36
testConfigMethod · 0.36
testMergeContiguousMethod · 0.36
testTermVecHighlightMethod · 0.36
testDisMaxHighlightMethod · 0.36