(22)
https://groonga.org/ja/docs/install/ubuntu.html
sudo apt -V -y install software-properties-common
sudo add-apt-repository -y universe
sudo add-apt-repository -y ppa:groonga/ppa
sudo apt update
sudo apt -V -y install groonga
sudo apt -V -y install groonga-tokenizer-mecab
sudo apt -V -y install groonga-token-filter-stem
groonga -n /tmp/test.db
Ctrlキーを押しながらdキーを押すと、対話モードから抜けることができます。
groonga /tmp/test.db
status
table_list
table_create --name tab1 --flags TABLE_HASH_KEY --key_type ShortText
table_list
column_list tab1
column_create --table tab1 --name col1 --type ShortText
column_list tab1
select --table tab1
load --table tab1
[
{"_key":"key1","col1":"val1"},
{"_key":"key2","col1":"val2"},
{"_key":"key3","col1":"val3"},
]
select --table tab1
select --table tab1 --query _id:1
(12)
https://groonga.org/ja/docs/install/debian.html
sudo apt update
sudo apt install -y -V ca-certificates lsb-release wget
wget https://apache.jfrog.io/artifactory/arrow/$(lsb_release --id --short | tr 'A-Z' 'a-z')/apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb
sudo apt install -y -V ./apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb
sudo apt update
wget https://packages.groonga.org/debian/groonga-apt-source-latest-$(lsb_release --codename --short).deb
sudo apt install -y -V ./groonga-apt-source-latest-$(lsb_release --codename --short).deb
sudo apt update
sudo apt install -y -V groonga
sudo apt install -y -V groonga-tokenizer-mecab
sudo apt install -y -V groonga-token-filter-stem
groonga -n /tmp/test.db
Ctrlキーを押しながらdキーを押すと、対話モードから抜けることができます。
groonga /tmp/test.db
status
table_list
table_create --name tab1 --flags TABLE_HASH_KEY --key_type ShortText
table_list
column_list tab1
column_create --table tab1 --name col1 --type ShortText
column_list tab1
select --table tab1
load --table tab1
[
{"_key":"key1","col1":"val1"},
{"_key":"key2","col1":"val2"},
{"_key":"key3","col1":"val3"},
]
select --table tab1
select --table tab1 --query _id:1
(RL9)
https://groonga.org/ja/docs/install/almalinux.html
sudo dnf install -y https://apache.jfrog.io/artifactory/arrow/almalinux/9/apache-arrow-release-latest.rpm
sudo dnf install -y https://packages.groonga.org/almalinux/9/groonga-release-latest.noarch.rpm
sudo dnf install -y --enablerepo=epel --enablerepo=crb groonga
sudo dnf install -y --enablerepo=epel groonga-tokenizer-mecab
groonga -n /tmp/test.db
Ctrlキーを押しながらdキーを押すと、対話モードから抜けることができます。
groonga /tmp/test.db
status
table_list
table_create --name tab1 --flags TABLE_HASH_KEY --key_type ShortText
table_list
column_list tab1
column_create --table tab1 --name col1 --type ShortText
column_list tab1
select --table tab1
load --table tab1
[
{"_key":"key1","col1":"val1"},
{"_key":"key2","col1":"val2"},
{"_key":"key3","col1":"val3"},
]
select --table tab1
select --table tab1 --query _id:1
- Windows Server
(2022)
https://groonga.org/ja/docs/install/windows.html
https://packages.groonga.org/windows/groonga/groonga-latest-x64-vs2019-with-vcruntime.zip
cd C:\Users\Administrator\Downloads\groonga-14.0.5-x64-vs2019-with-vcruntime\groonga-14.0.5-x64-vs2019-with-vcruntime\bin
groonga -n C:\test.db
Ctrlキーを押しながらzキーを押すと、対話モードから抜けることができます。
groonga C:\test.db
status
table_list
table_create --name tab1 --flags TABLE_HASH_KEY --key_type ShortText
table_list
column_list tab1
column_create --table tab1 --name col1 --type ShortText
column_list tab1
select --table tab1
load --table tab1
[
{"_key":"key1","col1":"val1"},
{"_key":"key2","col1":"val2"},
{"_key":"key3","col1":"val3"},
]
select --table tab1
select --table tab1 --query _id:1