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 |
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'] . " ";
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
Need help with the Opensolr Web Crawler? We are here to help.
Contact SupportPaste any website URL into the RAG in 60 Seconds sandbox. The Web Crawler fetches your pages, Opensolr generates the vector embeddings, and you get keyword + vector hybrid search plus a RAG answer on your own content — live, on a temporary index, with the keyword-only, vector-only and hybrid results shown side by side. No account, no OpenAI key, nothing to install.
Try AI Hybrid Search in 60 seconds →