Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update data index documentation for consistency and clarity #1456

Merged
merged 2 commits into from
Jan 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions docs/user-guide/manage-data/data-index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
);
```

Expand All @@ -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,
);
```

Expand All @@ -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,
);
```

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
keywords: [常见问题]
description: 关于 GreptimeDB 的常见问题解答。
---

# 常见问题

### What would be the use cases for a time-series database?
Expand Down Expand Up @@ -190,7 +195,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?

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
);
```

Expand All @@ -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,
);
```

Expand All @@ -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,
);
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
);
```

Expand All @@ -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,
);
```

Expand All @@ -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,
);
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
);
```

Expand All @@ -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,
);
```

Expand All @@ -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,
);
```

Expand Down
Loading