Typesense
Typesense Source Connector
Descriptionâ
Reads data from Typesense.
Key Featuresâ
Optionsâ
Name | Type | Required | Default |
---|---|---|---|
hosts | array | yes | - |
collection | string | yes | - |
schema | config | yes | - |
api_key | string | no | - |
query | string | no | - |
batch_size | int | no | 100 |
hosts [array]â
The access address of Typesense, for example: ["typesense-01:8108"]
.
collection [string]â
The name of the collection to write to, for example: "seatunnel"
.
schema [config]â
The columns to be read from Typesense. For more information, please refer to the guide.
api_key [config]â
The api_key
for Typesense security authentication.
batch_sizeâ
The number of records to query per batch when reading data.
Common Optionsâ
For common parameters of Source plugins, please refer to Source Common Options.
Exampleâ
source {
Typesense {
hosts = ["localhost:8108"]
collection = "companies"
api_key = "xyz"
query = "q=*&filter_by=num_employees:>9000"
schema = {
fields {
company_name_list = array<string>
company_name = string
num_employees = long
country = string
id = string
c_row = {
c_int = int
c_string = string
c_array_int = array<int>
}
}
}
}
}