Optimize

Share:

Description

Optimize

Usage

1
2
optimize(name, max_segments = 1, wait_searcher = TRUE,
  soft_commit = FALSE, wt = "json", raw = FALSE, ...)

Arguments

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: TRUE

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: FALSE

wt

(character) One of json (default) or xml. If json, uses fromJSON to parse. If xml, uses read_xml to parse

raw

(logical) If TRUE, returns raw data in format specified by wt param

...

curl options passed on to GET

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
solr_connect()

optimize("gettingstarted")
optimize("gettingstarted", max_segments = 2)
optimize("gettingstarted", wait_searcher = FALSE)

# get xml back
optimize("gettingstarted", wt = "xml")
## raw xml
optimize("gettingstarted", wt = "xml", raw = TRUE)

## End(Not run)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.