API - Flush Crawl Buffer to Solr

Documentation > API-Web Crawler > API - Flush Crawl Buffer to Solr

Flush Crawl Buffer to Solr

Forces any documents remaining in the crawler's internal batch buffer to be flushed directly into your Solr index. Use this when the crawler is paused or has finished, and you suspect some documents may not have been committed to Solr yet.

The web crawler batches documents internally for performance. If crawling is interrupted (paused, stopped, or an error occurred), some documents may still be sitting in the buffer. This endpoint flushes them immediately.

  1. GET https://opensolr.com/solr_manager/api/flush_crawl_buffer
  2. Parameters:
    1. email - (required) your opensolr registration email address
    2. api_key - (required) your opensolr api_key
    3. core_name - (required) the name of the index you wish to flush the crawl buffer for
  3. Example: https://opensolr.com/solr_manager/api/flush_crawl_buffer?email=PLEASE_LOG_IN&
    api_key=PLEASE_LOG_IN&core_name=my_solr_core

Important: 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 designed 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.