From b7b1aa3374c87f622aa5a291f76f3e1bcfc420a9 Mon Sep 17 00:00:00 2001 From: Ruihang Xia Date: Fri, 10 Jan 2025 11:42:43 +0800 Subject: [PATCH 1/2] fix: update data index documentation for consistency and clarity Signed-off-by: Ruihang Xia --- docs/user-guide/manage-data/data-index.md | 12 ++++++------ .../current/faq-and-others/faq.md | 2 +- .../current/user-guide/manage-data/data-index.md | 12 ++++++------ .../user-guide/manage-data/data-index.md | 12 ++++++------ .../user-guide/manage-data/data-index.md | 12 ++++++------ 5 files changed, 25 insertions(+), 25 deletions(-) diff --git a/docs/user-guide/manage-data/data-index.md b/docs/user-guide/manage-data/data-index.md index 712251b87..4615799c7 100644 --- a/docs/user-guide/manage-data/data-index.md +++ b/docs/user-guide/manage-data/data-index.md @@ -34,8 +34,8 @@ CREATE TABLE monitoring_data ( host STRING, region STRING PRIMARY KEY, cpu_usage DOUBLE, - timestamp TIMESTAMP TIME INDEX, - INDEX INVERTED_INDEX(host, region) + `timestamp` TIMESTAMP TIME INDEX, + INVERTED INDEX(host, region) ); ``` @@ -55,7 +55,7 @@ CREATE TABLE sensor_data ( domain STRING PRIMARY KEY, device_id STRING SKIPPING INDEX, temperature DOUBLE, - timestamp TIMESTAMP TIME INDEX, + `timestamp` TIMESTAMP TIME INDEX, ); ``` @@ -73,9 +73,9 @@ Fulltext index is designed for text search operations on string columns. It enab Example: ```sql CREATE TABLE logs ( - message STRING FULLTEXT INDEX, - level STRING PRIMARY KEY, - timestamp TIMESTAMP TIME INDEX, + message STRING FULLTEXT, + `level` STRING PRIMARY KEY, + `timestamp` TIMESTAMP TIME INDEX, ); ``` diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/faq-and-others/faq.md b/i18n/zh/docusaurus-plugin-content-docs/current/faq-and-others/faq.md index de3d5e00a..606b15154 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/faq-and-others/faq.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/faq-and-others/faq.md @@ -190,7 +190,7 @@ For more general advice for deployment, please read [Capacity Plan](/user-guide/ Since v0.7, GreptimeDB supports inverted indexes which are designed by ourselves, read the [Contributor Guide](/contributor-guide/datanode/data-persistence-indexing.md#inverted-index) for more information. -We plan to integrate Tantivy into the upcoming 0.9 release for full-text search functionality, although we are not currently using it. +Tantivy is a full-text search engine library. We are providing it as one of the implementation of FULLTEXT INDEX. ### In v0.8, does the Flow Engine (pre-computation) feature support PromQL syntax for calculations? diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/manage-data/data-index.md b/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/manage-data/data-index.md index 46a3962a7..0e7663508 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/manage-data/data-index.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/manage-data/data-index.md @@ -34,8 +34,8 @@ CREATE TABLE monitoring_data ( host STRING, region STRING PRIMARY KEY, cpu_usage DOUBLE, - timestamp TIMESTAMP TIME INDEX, - INDEX INVERTED_INDEX(host, region) + `timestamp` TIMESTAMP TIME INDEX, + INVERTED INDEX(host, region) ); ``` @@ -55,7 +55,7 @@ CREATE TABLE sensor_data ( domain STRING PRIMARY KEY, device_id STRING SKIPPING INDEX, temperature DOUBLE, - timestamp TIMESTAMP TIME INDEX, + `timestamp` TIMESTAMP TIME INDEX, ); ``` @@ -73,9 +73,9 @@ CREATE TABLE sensor_data ( 示例: ```sql CREATE TABLE logs ( - message STRING FULLTEXT INDEX, - level STRING PRIMARY KEY, - timestamp TIMESTAMP TIME INDEX, + message STRING FULLTEXT, + `level` STRING PRIMARY KEY, + `timestamp` TIMESTAMP TIME INDEX, ); ``` diff --git a/i18n/zh/docusaurus-plugin-content-docs/version-0.11/user-guide/manage-data/data-index.md b/i18n/zh/docusaurus-plugin-content-docs/version-0.11/user-guide/manage-data/data-index.md index 46a3962a7..0e7663508 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/version-0.11/user-guide/manage-data/data-index.md +++ b/i18n/zh/docusaurus-plugin-content-docs/version-0.11/user-guide/manage-data/data-index.md @@ -34,8 +34,8 @@ CREATE TABLE monitoring_data ( host STRING, region STRING PRIMARY KEY, cpu_usage DOUBLE, - timestamp TIMESTAMP TIME INDEX, - INDEX INVERTED_INDEX(host, region) + `timestamp` TIMESTAMP TIME INDEX, + INVERTED INDEX(host, region) ); ``` @@ -55,7 +55,7 @@ CREATE TABLE sensor_data ( domain STRING PRIMARY KEY, device_id STRING SKIPPING INDEX, temperature DOUBLE, - timestamp TIMESTAMP TIME INDEX, + `timestamp` TIMESTAMP TIME INDEX, ); ``` @@ -73,9 +73,9 @@ CREATE TABLE sensor_data ( 示例: ```sql CREATE TABLE logs ( - message STRING FULLTEXT INDEX, - level STRING PRIMARY KEY, - timestamp TIMESTAMP TIME INDEX, + message STRING FULLTEXT, + `level` STRING PRIMARY KEY, + `timestamp` TIMESTAMP TIME INDEX, ); ``` diff --git a/versioned_docs/version-0.11/user-guide/manage-data/data-index.md b/versioned_docs/version-0.11/user-guide/manage-data/data-index.md index 712251b87..4615799c7 100644 --- a/versioned_docs/version-0.11/user-guide/manage-data/data-index.md +++ b/versioned_docs/version-0.11/user-guide/manage-data/data-index.md @@ -34,8 +34,8 @@ CREATE TABLE monitoring_data ( host STRING, region STRING PRIMARY KEY, cpu_usage DOUBLE, - timestamp TIMESTAMP TIME INDEX, - INDEX INVERTED_INDEX(host, region) + `timestamp` TIMESTAMP TIME INDEX, + INVERTED INDEX(host, region) ); ``` @@ -55,7 +55,7 @@ CREATE TABLE sensor_data ( domain STRING PRIMARY KEY, device_id STRING SKIPPING INDEX, temperature DOUBLE, - timestamp TIMESTAMP TIME INDEX, + `timestamp` TIMESTAMP TIME INDEX, ); ``` @@ -73,9 +73,9 @@ Fulltext index is designed for text search operations on string columns. It enab Example: ```sql CREATE TABLE logs ( - message STRING FULLTEXT INDEX, - level STRING PRIMARY KEY, - timestamp TIMESTAMP TIME INDEX, + message STRING FULLTEXT, + `level` STRING PRIMARY KEY, + `timestamp` TIMESTAMP TIME INDEX, ); ``` From 1536b09d9324a0c2cfd91b4f7f9a0af50c69abce Mon Sep 17 00:00:00 2001 From: Ruihang Xia Date: Fri, 10 Jan 2025 12:27:27 +0800 Subject: [PATCH 2/2] add frontmatter Signed-off-by: Ruihang Xia --- .../current/faq-and-others/faq.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/faq-and-others/faq.md b/i18n/zh/docusaurus-plugin-content-docs/current/faq-and-others/faq.md index 606b15154..96dd0ded4 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/faq-and-others/faq.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/faq-and-others/faq.md @@ -1,3 +1,8 @@ +--- +keywords: [常见问题] +description: 关于 GreptimeDB 的常见问题解答。 +--- + # 常见问题 ### What would be the use cases for a time-series database?