https://github.com/zencodex/pg_bigm
The pg_bigm module provides full text search capability in PostgreSQL, it allows a user to create **2-gram** (bigram) index for faster full text search.
https://github.com/zencodex/pg_bigm
Last synced: 4 months ago
JSON representation
The pg_bigm module provides full text search capability in PostgreSQL, it allows a user to create **2-gram** (bigram) index for faster full text search.
- Host: GitHub
- URL: https://github.com/zencodex/pg_bigm
- Owner: zencodex
- License: other
- Created: 2020-07-27T13:55:08.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-07-27T14:19:23.000Z (almost 6 years ago)
- Last Synced: 2025-10-12T05:09:56.044Z (8 months ago)
- Language: HTML
- Size: 200 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pg_bigm
pg_bigm 中文支持 比 pg_trgm 要好,pg_trgm 在 Mac osx 中不支持中文等 Unicode 字符,原因如下:
The pg_bigm module provides full text search capability in [PostgreSQL](https://www.postgresql.org/).
This module allows a user to create **2-gram** (bigram) index for faster full text search.
pg_bigm is released under the [PostgreSQL License](https://opensource.org/licenses/postgresql), a liberal Open Source license, similar to the BSD or MIT licenses.
For more information look at [the official pg_bigm web site](https://pgbigm.osdn.jp/index_en.html).
# How to build
make USE_PGXS=1 PG_CONFIG=`which pg_config` install
# How to use
```bash
# sudo -u postgres psql
# \c dbname
create extension pg_bigm
select show_bigm('做软件的禅师')
# 相似度 0.71428573
select bigm_similarity('哇!故宫的二十四节气-芒种', '芒种-哇!故宫的二十四节气');
```
## Test Status
[](https://travis-ci.org/pgbigm/pg_bigm)