mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
Update invertedindexes.md
This commit is contained in:
parent
f71b68bc46
commit
00b5354a93
@ -31,7 +31,14 @@ SET allow_experimental_inverted_index = true;
|
|||||||
An inverted index can be defined on a string column using the following syntax
|
An inverted index can be defined on a string column using the following syntax
|
||||||
|
|
||||||
``` sql
|
``` sql
|
||||||
CREATE TABLE tab (key UInt64, str String, INDEX inv_idx(s) TYPE inverted(N) GRANULARITY 1) Engine=MergeTree ORDER BY (k);
|
CREATE TABLE tab
|
||||||
|
(
|
||||||
|
`key` UInt64,
|
||||||
|
`str` String,
|
||||||
|
INDEX inv_idx str TYPE inverted(0) GRANULARITY 1
|
||||||
|
)
|
||||||
|
ENGINE = MergeTree
|
||||||
|
ORDER BY key
|
||||||
```
|
```
|
||||||
|
|
||||||
where `N` specifies the tokenizer:
|
where `N` specifies the tokenizer:
|
||||||
|
Loading…
Reference in New Issue
Block a user