Web Crawler API
Flush Crawl Buffer to Solr
Force any documents remaining in the crawler's internal batch buffer to be flushed directly into your Solr index. Use when the crawler is paused or finished and you suspect uncommitted documents.
Endpoint
GET https://opensolr.com/solr_manager/api/flush_crawl_buffer
Parameters
| Parameter | Status | Description |
|---|---|---|
email | Required | Your Opensolr registration email address |
api_key | Required | Your Opensolr API key |
core_name | Required | The name of the index to flush the crawl buffer for |
Only use this when the crawler is not actively running. If the crawler is running, it manages its own buffer flushes automatically. This endpoint is for cases where crawling was paused or stopped and you want to ensure all discovered content is searchable.
Response
Returns a JSON object with status (true/false) and msg indicating how many documents were flushed, or that the buffer was already empty.
Code Examples
cURL
curl -s "https://opensolr.com/solr_manager/api/flush_crawl_buffer?email=YOUR_EMAIL&api_key=YOUR_API_KEY&core_name=my_solr_core"
PHP
$params = http_build_query([ 'email' => 'YOUR_EMAIL', 'api_key' => 'YOUR_API_KEY', 'core_name' => 'my_solr_core', ]); $response = file_get_contents("https://opensolr.com/solr_manager/api/flush_crawl_buffer?{$params}"); $result = json_decode($response, true); echo $result['msg'] . "\n";
Python
import requests response = requests.get("https://opensolr.com/solr_manager/api/flush_crawl_buffer", params={ "email": "YOUR_EMAIL", "api_key": "YOUR_API_KEY", "core_name": "my_solr_core", }) data = response.json() print(data["msg"])
Related Documentation
Start CrawlerLaunch the web crawler with full control over mode, threads, and rendering.
Pause CrawlerTemporarily halt crawling while keeping the cron schedule.
Resume CrawlerContinue crawling immediately from where it left off.
Check StatusCheck whether crawler processes are currently active.
Get Live StatsReal-time crawler statistics: pages crawled, queued, errors.
Flush BufferForce pending documents from the crawler buffer into Solr.
Need help with the Opensolr Web Crawler? We are here to help.
Contact Support