groonga
约 1 分钟阅读
- groonga/groongaGitHubgroonga/groongagroonga/groonga · LGPL-2.1, C · 搜索引擎和列存储 · 有 MySQL 和 PostgreSQL 插件 · 支持嵌入 · 支持 CS 结构 - Groonga Query Transfer Protocol GQTP笔记:groonga
- LGPL-2.1, C
- 搜索引擎和列存储
- 有 MySQL 和 PostgreSQL 插件
- 支持嵌入
- 支持 CS 结构 - Groonga Query Transfer Protocol GQTP
- normalizers
- tokenizers
- token filters
- friso 中文分词
- lionsoul2014/frisoGitHublionsoul2014/friso
- groonga/groonga-tokenizer-frisoGitHubgroonga/groonga-tokenizer-frisogroonga/groonga · LGPL-2.1, C · 搜索引擎和列存储 · 有 MySQL 和 PostgreSQL 插件 · 支持嵌入 · 支持 CS 结构 - Groonga Query Transfer Protocol GQTP笔记:groonga
# macOS
brew install groonga
groonga -n /tmp/test/test.db # 创建数据库
groonga /tmp/test/test.db # 进入数据库
# Docker
docker run -v $PWD/db:/db groonga/groonga /db- status
- table_list
- column_list
- table_create
- column_create
- select
- load
- quite
status
table_create --name Site --flags TABLE_HASH_KEY --key_type ShortText
select --table Site
column_create --table Site --name title --type ShortText
select --table Site
load --table Site
select --table Site --query _id:1
select --table Site --query '_key:"http://example.org/"'
table_create --name Terms --flags TABLE_PAT_KEY --key_type ShortText --default_tokenizer TokenBigram --normalizer NormalizerAuto
column_create --table Terms --name blog_title --flags COLUMN_INDEX|WITH_POSITION --type Site --source title
# 全文搜索
select --table Site --query title:@this
select --table Site --match_columns title --query this
select --table Site --output_columns _key,title,_score --query title:@test
select --table Site --offset 0 --limit 3
select --table Site --sort_keys -_id关联信息
反向链接、本文链接的其他页面和外部资料。
References
GitHub3 条
- groonga/groongagithub.com/groonga/groonga
- groonga/groonga-tokenizer-frisogithub.com/groonga/groonga-tokenizer-friso
- lionsoul2014/frisogithub.com/lionsoul2014/friso
其他外链4 条
- groonga.org/docs/reference/normalizers.htmlgroonga.org/docs/reference/normalizers.html
- groonga.org/docs/reference/token_filters.htmlgroonga.org/docs/reference/token_filters.html
- groonga.org/docs/reference/tokenizers.htmlgroonga.org/docs/reference/tokenizers.html
- groonga.org/docs/spec/gqtp.htmlgroonga.org/docs/spec/gqtp.html