Skip to content
This repository was archived by the owner on Nov 7, 2025. It is now read-only.

Commit 410069d

Browse files
avelanariuspdelewskimieciu
authored
Documentation improvements (part 1) (#950)
A bunch of changes to Quesma's documentation: - Remove a few orphan files - old files, not up-to-date, not referenced in the menu - replace `eap.quesma.com` mentions to `docs.quesma.com` - Document recent changes of `target` configuration (and related `useCommonTable` and `tableName`) - Document the expected format of connection string (`clickhouse://host:port`) - a bunch of smaller changes --------- Signed-off-by: Piotr Grabowski <[email protected]> Co-authored-by: Przemyslaw Delewski <[email protected]> Co-authored-by: Przemysław Hejman <[email protected]>
1 parent cb218de commit 410069d

15 files changed

+61
-239
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<a href="https://www.linkedin.com/company/quesma">LinkedIn</a> |
1616
<a href="https://twitter.com/QuesmaOrg">Twitter</a> |
1717
<a href="https://www.youtube.com/@QuesmaOrg">YouTube</a> |
18-
<a href="https://eap.quesma.com/eap-docs">Docs</a>
18+
<a href="https://docs.quesma.com/eap-docs">Docs</a>
1919
</p>
2020

2121
Quesma is an actively developed database gateway currently in pre-alpha Early Access. Route your queries through a translation layer that seamlessly connects your apps with the modern database platforms of your choice. No more query refactoring during migrations.

docs/public/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Quesma EAP documentation
1+
# Quesma documentation
22

3-
This folder contains our EAP documentation available at https://eap.quesma.com.
3+
This folder contains our documentation available at https://docs.quesma.com (formerly https://eap.quesma.com).
44
These docs are just static files generated with [Vitepress](https://vitepress.dev) and published via CloudFlare Pages.
55

66

docs/public/docs/.vitepress/config.mts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ export default defineConfig({
4141
{ text: 'Query Hydrolix tables as Elasticsearch indices', link: '/example-2-0'}
4242
]
4343
},
44-
//{ text: 'Scenario I', link: '/scenario-1' },
45-
//{ text: 'Reference Docker compose configurations', link: '/reference-conf' }
4644
],
4745
},
4846
{ text: 'Advanced configuration',

docs/public/docs/config-primer.md

Lines changed: 40 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,17 @@ frontendConnectors:
7070
listenPort: 8080
7171
```
7272
73+
The supported configuration options for frontend connectors (under `config`):
74+
* `listenPort` - port number on which the frontend connector will listen for incoming requests
75+
* `disableAuth` - when set to `true`, disables authentication for incoming requests (optional, defaults to false). If you use Elasticsearch/Kibana without authentication, set it to `true`.
76+
77+
7378
#### Backend connectors
7479

7580
Backend connector has to have a `name`, `type` and `config` fields.
7681
* `name` is a unique identifier for the connector
7782
* `type` specifies the type of the connector.\
78-
At this moment, only three backend connector types are allowed: `elasticsearch`, `clickhouse` (used for ClickHouse Cloud SaaS service, `clickhouse-os` and `hydrolix`.
83+
At this moment, only three backend connector types are allowed: `elasticsearch`, `clickhouse` (used for ClickHouse Cloud SaaS service), `clickhouse-os` (self-hosted ClickHouse) and `hydrolix`.
7984
* `config` is a set of configuration options for the connector.
8085
```yaml
8186
backendConnectors:
@@ -84,16 +89,25 @@ backendConnectors:
8489
config:
8590
user: "elastic"
8691
password: "change-me"
87-
url: "http://elasticsearch:9200"
92+
url: "http://192.168.0.7:9200"
8893
- name: my-clickhouse-data-source
8994
type: clickhouse-os
9095
config:
9196
user: "username"
9297
password: "username-is-password"
9398
database: "dbname"
94-
url: "clickhouse://clickhouse:9000"
99+
url: "clickhouse://192.168.0.9:9000"
95100
```
96-
**WARNING:** When connecting to ClickHouse or Hydrolix, only the native protocol connection (`clickhouse://`) is supported.
101+
102+
The supported configuration options for backend connectors (under `config`):
103+
* `url` - connection string to the backend service in a URL format (`protocol://host:port`):
104+
* for Elastic/OpenSearch the expected format is `http://host:port` (Elastic/OpenSearch default port is 9200)
105+
* for ClickHouse/Hydrolix the expected format is `clickhouse://host:port` (ClickHouse default port is 9000, ClickHouse/Hydrolix default encrypted port is 9440). Note that Quesma supports only the ClickHouse native protocol (`clickhouse://`) and does not support the HTTP protocol.
106+
* `user` - username for authentication
107+
* `password` - password for authentication
108+
* `database` - name of the database to connect to. It is optional for ClickHouse, but strictly required for Hydrolix, where it is also referred as "project".
109+
* `adminUrl` - URL for administrative operations to render a handy link in Quesma management UI (optional)
110+
* `disableTLS` - when set to true, disables TLS for the connection (optional)
97111

98112
### Processors
99113

@@ -178,14 +192,33 @@ The configuration for an index consists of the following configuration options:
178192
will dual write ingest requests to `my_index` to both ElasticSearch and ClickHouse.
179193
Note that ElasticSearch/OpenSearch is the only supported backend for the `*` entry.
180194
If no targets are provided (example: `target: []`) in the configuration of an index in the ingest processor, ingest for that index will be disabled and incoming data will be dropped.
181-
- `override` (optional): override the name of table in Hydrolix/ClickHouse (by default Quesma uses the same table name as the index name)
182-
- `useCommonTable` (optional): if enabled, Quesma will store data in a single Hydrolix/ClickHouse table named `quesma_common_table`. See [ingest documentation](/ingest.md) for more details.
195+
196+
Some backend connectors have additional attributes which may be used. For example the following configuration sets `useCommonTable` for `backend-clickhouse` target:
197+
```yaml
198+
my_index:
199+
target:
200+
- backend-clickhouse:
201+
useCommonTable: true
202+
```
203+
Currently only the ClickHouse backend connector supports the following attributes:
204+
- `useCommonTable` (optional): if enabled, Quesma will store data in a single Hydrolix/ClickHouse table named `quesma_common_table`. See [ingest documentation](/ingest.md) for more details.
205+
- `tableName` (optional): override the name of table in Hydrolix/ClickHouse (by default Quesma uses the same table name as the index name)
206+
- `schemaOverrides` (optional): manual overrides of schema information for an index. Quesma infers schema for an index based on the data ingested and the schema information fetched from ClickHouse. `schemaOverrides` allows you to override this inferred schema with for some fields. For example the following configuration:
207+
```yaml
208+
my_index:
209+
target: [ backend-clickhouse ]
210+
schemaOverrides:
211+
"product_name":
212+
type: "text"
213+
```
214+
changes the type of `product_name` field to `text`. Note: `schemaOverrides` are currently not supported in `*` configuration.
183215

184216
## Optional configuration options
185217

186218
### Quesma licensing configuration
187219

188-
In order to be able to use `hydrolix` or `clickhouse` backend connectors, one needs to supply `licenseKey` in the configuration file. Contact us at [email protected] if you need one.
220+
In order to be able to use `hydrolix` or `clickhouse` backend connectors Quesma requires a commercial license key (supplied in the `licenseKey` field of the configuration file).
221+
Contact us at [email protected] if you need one.
189222
```yaml
190223
licenseKey: ZXlKcGJuTjBZV3hz...
191224
```

docs/public/docs/example-1.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ flowchart LR
3232
- name: backend-elasticsearch
3333
type: elasticsearch
3434
config:
35-
url: #PLACE_YOUR_ELASTICSEARCH_URL_HERE
35+
url: #PLACE_YOUR_ELASTICSEARCH_URL_HERE, for example: http://192.168.0.7:9200
3636
user: #PLACE_YOUR_ELASTICSEARCH_USERNAME_HERE
3737
password: #PLACE_YOUR_ELASTICSEARCH_PASSWORD_HERE
3838
processors:

docs/public/docs/example-2-0-clickhouse-specific.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,14 @@ flowchart LR
5555
- name: minimal-elasticsearch
5656
type: elasticsearch
5757
config:
58-
url: #PLACE_YOUR_ELASTICSEARCH_URL_HERE
58+
url: #PLACE_YOUR_ELASTICSEARCH_URL_HERE, for example: http://192.168.0.7:9200
5959
user: #PLACE_YOUR_ELASTICSEARCH_USERNAME_HERE
6060
password: #PLACE_YOUR_ELASTICSEARCH_PASSWORD_HERE
6161
- name: clickhouse-instance
6262
type: clickhouse-os
6363
#type: clickhouse # use for ClickHouse cloud service only
6464
config:
65-
url: #PLACE_YOUR_CLICKHOUSE_URL_HERE
65+
url: #PLACE_YOUR_CLICKHOUSE_URL_HERE, for example: clickhouse://192.168.0.7:9000
6666
user: #PLACE_YOUR_CLICKHOUSE_USER_HERE
6767
password: #PLACE_YOUR_CLICKHOUSE_PASSWORD_HERE
6868
database: #PLACE_YOUR_CLICKHOUSE_DATABASE_NAME_HERE

docs/public/docs/example-2-0.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ flowchart LR
4242
- name: minimal-elasticsearch
4343
type: elasticsearch
4444
config:
45-
url: #PLACE_YOUR_ELASTICSEARCH_URL_HERE
45+
url: #PLACE_YOUR_ELASTICSEARCH_URL_HERE, for example: http://192.168.0.7:9200
4646
user: #PLACE_YOUR_ELASTICSEARCH_USERNAME_HERE
4747
password: #PLACE_YOUR_ELASTICSEARCH_PASSWORD_HERE
4848
- name: hydrolix-instance
4949
type: hydrolix
5050
config:
51-
url: #PLACE_YOUR_HYDROLIX_URL_HERE
51+
url: #PLACE_YOUR_HYDROLIX_URL_HERE, for example: clickhouse://companyname.hydrolix.live:9440
5252
user: #PLACE_YOUR_HYDROLIX_USER_HERE
5353
password: #PLACE_YOUR_HYDROLIX_PASSWORD_HERE
5454
database: #PLACE_YOUR_HYDROLIX_DATABASE_NAME_HERE

docs/public/docs/example-2-1-hydro-specific.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@ flowchart LR
4444
- name: elasticsearch-instance
4545
type: elasticsearch
4646
config:
47-
url: #PLACE_YOUR_ELASTICSEARCH_URL_HERE
47+
url: #PLACE_YOUR_ELASTICSEARCH_URL_HERE, for example: http://192.168.0.7:9200
4848
user: #PLACE_YOUR_ELASTICSEARCH_USERNAME_HERE
4949
password: #PLACE_YOUR_ELASTICSEARCH_PASSWORD_HERE
5050
- name: hydrolix-instance
5151
type: hydrolix
5252
config:
53-
url: #PLACE_YOUR_HYDROLIX_URL_HERE
53+
url: #PLACE_YOUR_HYDROLIX_URL_HERE, for example: clickhouse://companyname.hydrolix.live:9440
5454
user: #PLACE_YOUR_HYDROLIX_USER_HERE
5555
password: #PLACE_YOUR_HYDROLIX_PASSWORD_HERE
5656
database: #PLACE_YOUR_HYDROLIX_DATABASE_NAME_HERE

docs/public/docs/example-2-1.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,14 @@ K[Kibana/OSD] --> Q((Quesma))
5252
- name: elasticsearch-instance
5353
type: elasticsearch
5454
config:
55-
url: #PLACE_YOUR_ELASTICSEARCH_URL_HERE
55+
url: #PLACE_YOUR_ELASTICSEARCH_URL_HERE, for example: http://192.168.0.7:9200
5656
user: #PLACE_YOUR_ELASTICSEARCH_USERNAME_HERE
5757
password: #PLACE_YOUR_ELASTICSEARCH_PASSWORD_HERE
5858
- name: clickhouse-instance
5959
type: clickhouse-os
6060
#type: clickhouse # use for ClickHouse cloud service only
6161
config:
62-
url: #PLACE_YOUR_CLICKHOUSE_URL_HERE
62+
url: #PLACE_YOUR_CLICKHOUSE_URL_HERE, for example: clickhouse://192.168.0.7:9000
6363
user: #PLACE_YOUR_CLICKHOUSE_USER_HERE
6464
password: #PLACE_YOUR_CLICKHOUSE_PASSWORD_HERE
6565
database: #PLACE_YOUR_CLICKHOUSE_DATABASE_NAME_HERE

docs/public/docs/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ hero:
66
image:
77
light: /logo/quesma-logo-black-full-svg.svg
88
dark: /logo/quesma-logo-white-full-svg.svg
9-
name: "Quesma Early Access Preview (EAP)"
9+
name: "Quesma Documentation"
1010
#text: "Quesma EAP docs"
11-
tagline: Welcome to the Quesma Early Access Preview! We're excited to have you on board and can't wait to hear your feedback! This website will help you get started.
11+
tagline: Welcome to the Quesma Documentation! This website will help you get started.
1212
actions:
1313
- theme: brand
1414
text: Getting started

0 commit comments

Comments
 (0)