Package-level declarations

Types

Link copied to clipboard
data class Document<T>(val id: String, val index: String, val document: T)
Link copied to clipboard
@ExperimentalCoroutinesApi
interface PaginatedSearch

Functions

Link copied to clipboard
fun <T> ElasticsearchAsyncClient.indexFlow(upstream: Flow<Document<T>>, concurrency: Int = 1, groupStrategy: GroupStrategy = GroupStrategy.TimeWindow(100, 250.milliseconds)): Flow<BulkResponseItem>

This function is used to index documents asynchronously into Elasticsearch using bulk requests. It takes a flow of Document objects as input, along with optional parameters for concurrency and chunking.

Link copied to clipboard
suspend fun ElasticsearchAsyncClient.maxResultWindow(index: String, default: Int = 10000): Int
Link copied to clipboard
inline fun <T> ElasticsearchAsyncClient.paginatedSearchFlow(configuration: PaginatedSearch): Flow<Hit<T>>
Link copied to clipboard
fun <T> Flow<T>.toDocument(f: (T) -> Pair<String, String>): Flow<Document<T>>