Update invertedindexes.md

This commit is contained in:
Dan Roscigno 2023-01-26 14:05:26 -05:00 committed by GitHub
parent f71b68bc46
commit 00b5354a93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: