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>
}
}
}
}
}
Changelog
Change Log
Change | Commit | Version |
---|---|---|
[Fix] Fix error log name for SourceSplitEnumerator implements class (#8817) | https://github.com/apache/seatunnel/commit/55ed90eca | 2.3.10 |
[Improve] restruct connector common options (#8634) | https://github.com/apache/seatunnel/commit/f3499a6ee | 2.3.10 |
[Feature]Check Chinese comments in the code (#8319) | https://github.com/apache/seatunnel/commit/d58fce1ca | 2.3.9 |
[Improve][dist]add shade check rule (#8136) | https://github.com/apache/seatunnel/commit/51ef80001 | 2.3.9 |
[Feature][Restapi] Allow metrics information to be associated to logical plan nodes (#7786) | https://github.com/apache/seatunnel/commit/6b7c53d03 | 2.3.9 |
[Fix][Connector-V2] Fix known directory create and delete ignore issues (#7700) | https://github.com/apache/seatunnel/commit/e2fb67957 | 2.3.8 |
[Feature][Connector-V2] Support typesense connector (#7450) | https://github.com/apache/seatunnel/commit/138d2a4eb | 2.3.8 |