Description Usage Arguments Examples
Optimize
1 2 3 4 5 6 7 8 9 10 |
conn |
A solrium connection object, see SolrClient |
name |
(character) A collection or core name. Required. |
max_segments |
optimizes down to at most this number of segments. Default: 1 |
wait_searcher |
block until a new searcher is opened and registered
as the main query searcher, making the changes visible. Default: |
soft_commit |
perform a soft commit - this will refresh the 'view'
of the index in a more performant manner, but without "on-disk" guarantees.
Default: |
wt |
(character) One of json (default) or xml. If json, uses
|
raw |
(logical) If |
... |
curl options passed on to crul::HttpClient |
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Not run:
(conn <- SolrClient$new())
solr_optimize(conn, "gettingstarted")
solr_optimize(conn, "gettingstarted", max_segments = 2)
solr_optimize(conn, "gettingstarted", wait_searcher = FALSE)
# get xml back
solr_optimize(conn, "gettingstarted", wt = "xml")
## raw xml
solr_optimize(conn, "gettingstarted", wt = "xml", raw = TRUE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.