<optimize waitSearcher="" softCommit="" maxSegments="" />
waitSearcher
: (default: true) — if true, wait until a new searcher is opened and registered as the main query searcher, making the changes visible.softCommit
: (default: false) — if true, perform a soft commit.maxSegments
: (default: 1) — optimizes down to the given maximum segments.<optimize waitSearcher="false" softCommit="true" maxSegments="1" />
$ curl http://localhost:8983/solr/COLLECTION-NAME/update \ -H "Content-Type: text/xml" \ --data-binary '<optimize waitSearcher="false" softCommit="true" maxSegments="1" />'
http://localhost:8983/solr/COLLECTION-NAME/update?optimize=true
http://localhost:8983/solr/COLLECTION-NAME/update?optimize=true&waitSearcher=false&softCommit=true&maxSegments=1