Skip to content

Instantly share code, notes, and snippets.

@kou kou/create-index.grn
Last active Dec 24, 2016

Embed
What would you like to do?
Groongaで学ぶ全文検索2016-03-25
# 「terms」以外はテンプレ
table_create terms \
TABLE_PAT_KEY \
ShortText \
--default_tokenizer TokenBigram \
--normalizer NormalizerAuto
# 「terms」と「body_index」と
# 「pdfs」と「body」以外はテンプレ
column_create terms body_index \
COLUMN_INDEX|WITH_POSITION \
pdfs \
body
table_create pdfs \
TABLE_HASH_KEY \
ShortText
column_create pdfs body \
COLUMN_SCALAR \
Text
This file has been truncated, but you can view the full file.
# License is GPLv2. Source: "virtualbox" deb package in Debian.
load --table pdfs
[
{
"_key": "/usr/share/doc/virtualbox/UserManual.pdf",
View raw

(Sorry about that, but we can’t show files that are this big right now.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.