Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add schema and indexes for Groonga and use it
- Loading branch information
Showing
3 changed files
with
61 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| column_create Categories pages_categories COLUMN_INDEX Pages categories | ||
|
|
||
| table_create Terms TABLE_PAT_KEY ShortText \ | ||
| --default_tokenizer TokenBigram \ | ||
| --normalizer NormalizerAuto | ||
| column_create Terms pages COLUMN_INDEX|WITH_SECTION|WITH_POSITION \ | ||
| Pages title,text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| table_create Categories TABLE_HASH_KEY ShortText | ||
|
|
||
| table_create Pages TABLE_HASH_KEY UInt64 | ||
| column_create Pages title COLUMN_SCALAR ShortText | ||
| column_create Pages text COLUMN_SCALAR Text | ||
| column_create Pages categories COLUMN_VECTOR Categories |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters