pgroonga / pgroonga.github.io Goto Github PK
View Code? Open in Web Editor NEWThe source of https://pgroonga.github.io
Home Page: https://pgroonga.github.io
License: Creative Commons Attribution Share Alike 4.0 International
The source of https://pgroonga.github.io
Home Page: https://pgroonga.github.io
License: Creative Commons Attribution Share Alike 4.0 International
make dist
-> .dput.cfの宛先がnightly担っていることを確認 -> rake package:ubuntu
rake yum
の際には、https://github.com/rpm-software-management/createrepo_c が必要で、独自でビルドする必要がある旨記載する。#9 より
varcharにはインデックスを使ったLIKE/ILIKEを使えないので、pgroonga.varchar_regexp_opsを使っているときはLIKE/ILIKEは必ずシーケンシャルサーチになります。
という説明を http://pgroonga.github.io/ja/reference/operators/like.html に記載する
When I execute the following rake task for generating translation files, there are many differences in .po
files
There are no some differences about generated translation files with .po
when I execute translation rake task.
There are some differences about generated translation files with .po
.
$ bundle exec rake
$ git status
On branch master
Your branch is up to date with 'origin/master'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: _po/ja/community/index.po
modified: _po/ja/development/build.po
modified: _po/ja/development/index.po
modified: _po/ja/development/release.po
modified: _po/ja/development/test.po
modified: _po/ja/faq/index.po
modified: _po/ja/how-to/auto-complete.po
modified: _po/ja/how-to/index.po
modified: _po/ja/how-to/jsonb.po
modified: _po/ja/how-to/laravel.po
modified: _po/ja/how-to/postgrest.po
modified: _po/ja/how-to/spring-hibernate.po
modified: _po/ja/how-to/sudachi-dictionary.po
modified: _po/ja/how-to/synonym-expansion.po
modified: _po/ja/how-to/travis-ci.po
modified: _po/ja/how-to/tuning.po
modified: _po/ja/index.po
modified: _po/ja/install/almalinux.po
modified: _po/ja/install/amazon-linux.po
modified: _po/ja/install/centos.po
modified: _po/ja/install/debian.po
modified: _po/ja/install/freebsd.po
modified: _po/ja/install/index.po
modified: _po/ja/install/macos.po
modified: _po/ja/install/os-x.po
modified: _po/ja/install/source.po
modified: _po/ja/install/ubuntu.po
modified: _po/ja/install/windows.po
modified: _po/ja/news/index.po
modified: _po/ja/overview/index.po
modified: _po/ja/reference/crash-safe.po
modified: _po/ja/reference/create-index-using-pgroonga.po
modified: _po/ja/reference/functions/pgroonga-command-escape-value.po
modified: _po/ja/reference/functions/pgroonga-command.po
modified: _po/ja/reference/functions/pgroonga-database-remove.po
modified: _po/ja/reference/functions/pgroonga-escape.po
modified: _po/ja/reference/functions/pgroonga-flush.po
modified: _po/ja/reference/functions/pgroonga-highlight-html.po
modified: _po/ja/reference/functions/pgroonga-index-column-name.po
modified: _po/ja/reference/functions/pgroonga-is-writable.po
modified: _po/ja/reference/functions/pgroonga-match-positions-byte.po
modified: _po/ja/reference/functions/pgroonga-match-positions-character.po
modified: _po/ja/reference/functions/pgroonga-normalize.po
modified: _po/ja/reference/functions/pgroonga-query-escape.po
modified: _po/ja/reference/functions/pgroonga-query-expand.po
modified: _po/ja/reference/functions/pgroonga-query-extract-keywords.po
modified: _po/ja/reference/functions/pgroonga-result-to-jsonb-objects.po
modified: _po/ja/reference/functions/pgroonga-result-to-recordset.po
modified: _po/ja/reference/functions/pgroonga-score.po
modified: _po/ja/reference/functions/pgroonga-set-writable.po
modified: _po/ja/reference/functions/pgroonga-snippet-html.po
modified: _po/ja/reference/functions/pgroonga-table-name.po
modified: _po/ja/reference/functions/pgroonga-tokenize.po
modified: _po/ja/reference/functions/pgroonga-vacuum.po
modified: _po/ja/reference/functions/pgroonga-wal-apply.po
modified: _po/ja/reference/functions/pgroonga-wal-set-applied-position.po
modified: _po/ja/reference/functions/pgroonga-wal-status.po
modified: _po/ja/reference/functions/pgroonga-wal-truncate.po
modified: _po/ja/reference/grant-usage-on-schema-pgroonga.po
modified: _po/ja/reference/groonga-functions/pgroonga-tuple-is-alive.po
modified: _po/ja/reference/index.po
modified: _po/ja/reference/jsonb.po
modified: _po/ja/reference/logical-replication.po
modified: _po/ja/reference/modules/pgroonga-check.po
modified: _po/ja/reference/modules/pgroonga-crash-safer.po
modified: _po/ja/reference/modules/pgroonga-database.po
modified: _po/ja/reference/modules/pgroonga-standby-maintainer.po
modified: _po/ja/reference/modules/pgroonga-wal-applier.po
modified: _po/ja/reference/operators/contain-array.po
modified: _po/ja/reference/operators/contain-jsonb.po
modified: _po/ja/reference/operators/contain-term-v2.po
modified: _po/ja/reference/operators/contain-term.po
modified: _po/ja/reference/operators/equal-query-v2.po
modified: _po/ja/reference/operators/exact-match-search.po
modified: _po/ja/reference/operators/like.po
modified: _po/ja/reference/operators/match-contain-v2.po
modified: _po/ja/reference/operators/match-in-v2.po
modified: _po/ja/reference/operators/match-jsonb-v2.po
modified: _po/ja/reference/operators/match-v2.po
modified: _po/ja/reference/operators/match.po
modified: _po/ja/reference/operators/not-prefix-search-in-v2.po
modified: _po/ja/reference/operators/prefix-rk-search-contain-v2.po
modified: _po/ja/reference/operators/prefix-rk-search-in-v2.po
modified: _po/ja/reference/operators/prefix-rk-search-v2.po
modified: _po/ja/reference/operators/prefix-search-contain-v2.po
modified: _po/ja/reference/operators/prefix-search-in-v2.po
modified: _po/ja/reference/operators/prefix-search-v2.po
modified: _po/ja/reference/operators/query-contain-v2.po
modified: _po/ja/reference/operators/query-in-v2.po
modified: _po/ja/reference/operators/query-jsonb-v2.po
modified: _po/ja/reference/operators/query-v2.po
modified: _po/ja/reference/operators/query.po
modified: _po/ja/reference/operators/regular-expression-in-v2.po
modified: _po/ja/reference/operators/regular-expression-v2.po
modified: _po/ja/reference/operators/regular-expression.po
modified: _po/ja/reference/operators/script-jsonb-v2.po
modified: _po/ja/reference/operators/script-jsonb.po
modified: _po/ja/reference/operators/script-v2.po
modified: _po/ja/reference/operators/similar-search-v2.po
modified: _po/ja/reference/parameters/enable-crash-safe.po
modified: _po/ja/reference/parameters/enable-trace-log.po
modified: _po/ja/reference/parameters/enable-wal.po
modified: _po/ja/reference/parameters/force-match-escalation.po
modified: _po/ja/reference/parameters/libgroonga-version.po
modified: _po/ja/reference/parameters/lock-timeout.po
modified: _po/ja/reference/parameters/log-level.po
modified: _po/ja/reference/parameters/log-path.po
modified: _po/ja/reference/parameters/log-type.po
modified: _po/ja/reference/parameters/match-escalation-threshold.po
modified: _po/ja/reference/parameters/max-wal-size.po
modified: _po/ja/reference/parameters/pgroonga-crash-safer-flush-naptime.po
modified: _po/ja/reference/parameters/pgroonga-crash-safer-log-level.po
modified: _po/ja/reference/parameters/pgroonga-crash-safer-log-path.po
modified: _po/ja/reference/parameters/pgroonga-standby-maintainer-max-parallel-wal-appliers-per-db.po
modified: _po/ja/reference/parameters/pgroonga-standby-maintainer-naptime.po
modified: _po/ja/reference/parameters/pgroonga-wal-applier-naptime.po
modified: _po/ja/reference/parameters/query-log-path.po
modified: _po/ja/reference/pgroonga-versus-gist-and-gin.po
modified: _po/ja/reference/pgroonga-versus-pg-bigm.po
modified: _po/ja/reference/pgroonga-versus-textsearch-and-pg-trgm.po
modified: _po/ja/reference/replication.po
modified: _po/ja/reference/streaming-replication.po
modified: _po/ja/tutorial/index.po
modified: _po/ja/uninstall/index.po
modified: _po/ja/upgrade/index.po
modified: _po/ja/users/index.po
modified: _po/ja/v1/how-to/auto-complete.po
modified: _po/ja/v1/how-to/index.po
modified: _po/ja/v1/how-to/travis-ci.po
modified: _po/ja/v1/reference/create-index-using-pgroonga.po
modified: _po/ja/v1/reference/functions/pgroonga-command-escape-value.po
modified: _po/ja/v1/reference/functions/pgroonga-command.po
modified: _po/ja/v1/reference/functions/pgroonga-escape.po
modified: _po/ja/v1/reference/functions/pgroonga-flush.po
modified: _po/ja/v1/reference/functions/pgroonga-highlight-html.po
modified: _po/ja/v1/reference/functions/pgroonga-match-positions-byte.po
modified: _po/ja/v1/reference/functions/pgroonga-match-positions-character.po
modified: _po/ja/v1/reference/functions/pgroonga-query-escape.po
modified: _po/ja/v1/reference/functions/pgroonga-query-expand.po
modified: _po/ja/v1/reference/functions/pgroonga-query-extract-keywords.po
modified: _po/ja/v1/reference/functions/pgroonga-score.po
modified: _po/ja/v1/reference/functions/pgroonga-snippet-html.po
modified: _po/ja/v1/reference/functions/pgroonga-table-name.po
modified: _po/ja/v1/reference/grant-usage-on-schema-pgroonga.po
modified: _po/ja/v1/reference/groonga-functions/pgroonga-tuple-is-alive.po
modified: _po/ja/v1/reference/index.po
modified: _po/ja/v1/reference/jsonb.po
modified: _po/ja/v1/reference/modules/pgroonga-check.po
modified: _po/ja/v1/reference/operators/contain-jsonb.po
modified: _po/ja/v1/reference/operators/contain-term-v2.po
modified: _po/ja/v1/reference/operators/contain-term.po
modified: _po/ja/v1/reference/operators/like.po
modified: _po/ja/v1/reference/operators/match-contain-v2.po
modified: _po/ja/v1/reference/operators/match-in-v2.po
modified: _po/ja/v1/reference/operators/match-jsonb-v2.po
modified: _po/ja/v1/reference/operators/match-v2.po
modified: _po/ja/v1/reference/operators/match.po
modified: _po/ja/v1/reference/operators/prefix-rk-search-contain-v2.po
modified: _po/ja/v1/reference/operators/prefix-rk-search-in-v2.po
modified: _po/ja/v1/reference/operators/prefix-rk-search-v2.po
modified: _po/ja/v1/reference/operators/prefix-search-contain-v2.po
modified: _po/ja/v1/reference/operators/prefix-search-in-v2.po
modified: _po/ja/v1/reference/operators/prefix-search-v2.po
modified: _po/ja/v1/reference/operators/query-contain-v2.po
modified: _po/ja/v1/reference/operators/query-in-v2.po
modified: _po/ja/v1/reference/operators/query-jsonb-v2.po
modified: _po/ja/v1/reference/operators/query-v2.po
modified: _po/ja/v1/reference/operators/query.po
modified: _po/ja/v1/reference/operators/regular-expression-v2.po
modified: _po/ja/v1/reference/operators/regular-expression.po
modified: _po/ja/v1/reference/operators/script-jsonb-v2.po
modified: _po/ja/v1/reference/operators/script-jsonb.po
modified: _po/ja/v1/reference/operators/script-v2.po
modified: _po/ja/v1/reference/operators/similar-search-v2.po
modified: _po/ja/v1/reference/parameters/enable-wal.po
modified: _po/ja/v1/reference/parameters/lock-timeout.po
modified: _po/ja/v1/reference/parameters/log-level.po
modified: _po/ja/v1/reference/parameters/log-path.po
modified: _po/ja/v1/reference/parameters/log-type.po
modified: _po/ja/v1/reference/parameters/match-escalation-threshold.po
modified: _po/ja/v1/reference/parameters/query-log-path.po
modified: _po/ja/v1/reference/pgroonga-versus-gist-and-gin.po
modified: _po/ja/v1/reference/pgroonga-versus-pg-bigm.po
modified: _po/ja/v1/reference/pgroonga-versus-textsearch-and-pg-trgm.po
modified: _po/ja/v1/reference/replication.po
modified: _po/ja/v1/tutorial/index.po
no changes added to commit (use "git add" and/or "git commit -a")
Sorry for reposting even though it was closed.
In the following URL, "mecab-devel" package existed.
https://packages.groonga.org/centos/8/x86_64/Packages/
"mecab-devel" was able to install by executing the following command.
# dnf install -y https://packages.groonga.org/centos/groonga-release-latest.noarch.rpm
# dnf install mecab-devel
It seems that "mecab-devel" package is provided in groonga repository,
Does it mean that you need "mecab-devel" provided by CentOS8 (EPEL) to install groonga-tokenizer-mecab?
Or do you need "mecab-devel" provided by CentOS8 (EPEL) to create groonga-tokenizer-mecab package?
Thank you in advance.
Hi, please help me
Example i have data: contents table
id - content(varchar)
1 - Test me please
Index:
CREATE INDEX test_index ON contents USING pgroonga (content pgroonga_varchar_full_text_search_ops_v2) WITH (tokenizer='TokenMecab');
When i search by query
SELECT content FROM contents where content &@ 'T'
;
it will return empty.
Is it function or a bug?
Hello,
I wonder if any body can tell me how can I use pgroonga for arabic dictionary. For example I need the search for word "أحمد" to fetch both "أحمد" and "احمد" i.e. the different forms of the letter "أ" should be considered
grant ALL on SCHEMA pgroonga to user;
の説明がどこかにあると良いように思います。
で良い場所が思いつかなないので、create extension pgroonga
の説明をリファレンスに入れて
その中で説明をするのが良いのかも...と思いました。
他に良い場所があればそちらで良いと思います。
grant ALL on SCHEMA pgroonga to user;
という項目でも良い気がしてきました。
create extension pgroonga
は、PGroongaを利用するために最初に実行するコマンドです。
コマンドは、PGroongaを利用するデータベース内で実行してください。このコマンドの実行には管理者権限が必要です。
psql# CREATE EXTENSION pgroonga
PGroongaが利用できる状態かどうかは次のコマンドを使って確認できます。
psql# \x
psql# select * from pg_extension;
-[ RECORD 2 ]--+---------
extname | pgroonga
extowner | 10
extnamespace | 2200
extrelocatable | f
extversion | 1.0.1
extconfig |
extcondition |
extname: pgroonga
というエントリがある場合、現在のデータベース上でPGroongaが利用可能です。
extversionは、pgroongaのバージョンを表しています。
create extension pgroonga
を実行した場合、pgroonga
というスキーマが自動的に作成されます。
スキーマの存在有無は次のコマンドで確認をすることができます。
psql# \dn
List of schemas
Name | Owner
----------+----------
pgroonga | postgres
public | postgres
(2 rows)
初期状態では、管理者のみがpgroongaスキーマのアクセス権限を持っています。
pgroongaのアクセス権限は、create index .. using pgroonga(... pgroonga.text_regexp_ops)
や
create index .. using pgroonga(... pgroonga.varchar_regexp_ops)
を実行する際に必要です。
所定のユーザにpgroongaスキーマへのアクセス権限を付与するためには次のコマンドを管理者権限で実行します。
# grant ALL on SCHEMA pgroonga to user;
GRANT
user
は権限を付与するユーザの名前です。
https://pgroonga.github.io/how-to/auto-complete.html
Because prefix search is included in loose full text search. Prefix search is meaningless.
the pgroonga is very good, but how to set up chinese tokenizer for ChineseWordSegmentation?
thanks!
@~
はPGroonga独自の演算子です。@~
演算子は、右辺のtext
型の値が、左辺のtext
型のサブセットの値なら真を返します。
この演算子の構文は次の通りです。
text_column @~ text_query
text_column
はtext
型またはvarchar
型のカラムです。
text_query
はクエリーとして使うtext
型またはvarchar
型のカラムです。
例に使うサンプルスキーマとデータは次の通りです。
CREATE TABLE memos (
id integer,
content text
);
INSERT INTO memos VALUES (1, 'PostgreSQL is a RDBMS.');
INSERT INTO memos VALUES (2, 'Groonga is fast full text search engine.');
INSERT INTO memos VALUES (3, 'PGroonga is a PostgreSQL extension that uses Groonga.');
CREATE INDEX grnindex ON memos USING pgroonga (content pgroonga.text_regexp_ops);
pgroonga.XXX_regexp_ops``のXXXの部分はカラムの型によって異なる値を指定します。
pgroonga.varchar_regexp_ops
を指定します。pgroonga.text_regexp_ops
を指定します。カラムがvarcharの場合は、最大文字数は最大バイト数が4096バイト以下になるように指定する必要があります。PGroongaのインデックスの最大長は、4096バイトだからです。たとえば、UTF-8エンコーディングを使う場合は最大文字数は1023文字以下にする必要があります。なぜなら、UTF-8エンコーディングのvarcharは1文字あたり4バイト確保し、PostgreSQLはメタデータ用に4バイトを確保するからです。
なお、一般ユーザ権限で、CREATE INDEX
を実行する場合は、対象のユーザへpgroonga
スキーマのアクセス権限を付与しておきます。詳細はcreate extensions pgroonga
を参照してください。
シーケンシャルスキャンを無効にします。
SET enable_seqscan = off;
マッチする例は次の通りです。
SELECT id, content
FROM memos
WHERE content @~ 'groonga';
id | content
----+-------------------------------------------------------
2 | Groonga is fast full text search engine.
3 | PGroonga is a PostgreSQL extension that uses Groonga.
(2 rows)
右辺に指定する文字列は正規表現を利用します。また、アルファベットの場合はすべての文字を小文字にします。PGroongaはなるべくインデックスにヒットするようにすべての大文字を小文字に変換してから、インデックスに登録するからです。
つまり、検索文字に、pgroonga
を指定した場合は、pgroonga
、PGroonga
のどちらもヒットします。
正規表現の演算子を使った例は次のとおりです。
SELECT id, content
FROM memos
WHERE content @~ 'Groonga\.\z';
id | content
----+-------------------------------------------------------
3 | PGroonga is a PostgreSQL extension that uses Groonga.
(1 row)
マッチしない例は次のとおりです。
SELECT id, content
FROM memos
WHERE content @~ 'PGroonga';
id | content
----+-------------------------------------------------------
2 | Groonga is fast full text search engine.
3 | PGroonga is a PostgreSQL extension that uses Groonga.
(2 rows)
と思ったが、上記のクエリは結果が出力される。
できれば、ぱっと見ただけでPGrongaとわかるようにしたい。
GroongaやMroonga、Rroongaなどは色でわかるので、そんな感じにしたい。
PostgreSQLのロゴの色をふんだんに使ったりすればいいだろうか。
Installer version links to here: http://www.enterprisedb.com/products-services-training/pgdownload
And I get an access denied error following that link.
Tim
https://pgroonga.github.io/reference/parameters/enable-wal.html
When used with [Replication Slots][postgresql-replication-slots], it prevents the WAL size from continuing to increase
[postgresql-replication-slots][https://www.postgresql.org/docs/16/warm-standby.html#STREAMING-REPLICATION-SLOTS]
PGroonga 2.4.7 or later provides packages for AlmaLinux 9.
When I run brew reinstall groonga --with-mecab
, I get the following error:
Error: invalid option: --with-mecab
How can I use the MeCab-based tokenizer?
https://pgroonga.github.io/ja/reference/
こちらのページの
「これはPGroonga 2.X用のドキュメントです。古いPGroongaを使っているならPGroonga 1.xのドキュメントを見てください。」
のリンクをクリックすると、404エラーとなってしまいます。
https://pgroonga.github.io/reference/streaming-replication.html uses PostgreSQL 9.6 but we'll drop support for PostgreSQL 9.6.
We should update the document with the latest PostgreSQL.
On MacBook, I see follow error since pgroonga-1.1.8 when I make a mvn build of a module called "common-test"
ERROR: pgroonga: object isn't found: <Sources366583664>
CONTEXT: automatic analyze of table "common-test.csp_appdata.customer"
An interesting fact is that, this error shows up about 1 minute after the mvn build finishes.
SELECT term
FROM terms
WHERE term &^ ${QUERY} OR
readings &^ ${QUERY} OR
term &@ ${QUERY}
ORDER BY term;
We can use pgroonga_condition()
function since PGroonga 3.1.6.
We recommend whitch PGroonga users use pgroonga_condition()
from now on.
However, this function have not reference.
Therefore, general PGroonga users can not know usage this function.
I will update the following documents.
reference/functions/pgroonga-condition.md
reference/operators/query-v2.md
reference/operators/prefix-search-v2.html
Unable to download installation package for Windows. When I click the links on https://pgroonga.github.io/install/windows.html, the page shows "Not Found".
For example: https://github.com/pgroonga/pgroonga/releases/download/3.1.0/pgroonga-3.1.0-postgresql-15-x64.zip
諸事情によりインストール前なのですが、PGroongaのディレクトリ一覧などあれば教えてほしいです。
デフォルトのディレクトリでパーミッションも分かればお教えください。
The default tokenizer tokenizes texts with unifying alphabets and numbers and so on.
It is not useful for some use cases.
We should add a description about the behaviour of the default tokenizer and how to specify tokenizer.
Related: #248
The installation page states that groonga-tokenizer-mecab can be installed, but the package did not exist and could not be installed.
https://pgroonga.github.io/install/centos.html
https://packages.groonga.org/centos/8/x86_64/Packages/
It existed for CentOS7 and CentOS6.
Will it be released for CentOS8?
Thank you.
今はPGroongaのリポジトリーのREADMEをindex.mdにコピペしているが、
もっと読みやすく、更新しやすくするためにWebサイトの構成を整理する。
たとえば各セクション(概要、インストールなど)を別のページに分けるなど。
https://github.com/droonga/droonga.org が参考になりそう。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.