High-performance API endpoint for batch processing and indexing of documents in Sophra’s Elasticsearch cluster
NextRequest
object and returns a NextResponse
containing the ingestion results or error details.
ServiceManager
to access required services dynamically.SyncService
.Data Flow Sequence
Request Validation Errors
Processing Errors
BATCH_SIZE
(default: 500 documents)BATCH_SIZE
based on your specific hardware and network capabilities for optimal performance.