Skip to content

Commit d67dd4e

Browse files
abetomokomainu8otegami
authored
doc news: add 4.0.5 entry (#436)
Co-authored-by: Horimoto Yasuhiro <horimoto@clear-code.com> Co-authored-by: takuya kodama <a.s.takuya1026@gmail.com>
1 parent 09d761b commit d67dd4e

File tree

3 files changed

+380
-9
lines changed

3 files changed

+380
-9
lines changed

_po/ja/news/index.po

Lines changed: 170 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,173 @@ msgstr ""
2222
msgid "# News"
2323
msgstr "# おしらせ"
2424

25-
msgid "## 4.0.4: 2025-10-02 {#version-4-0-4}"
25+
msgid "## 4.0.5: 2025-12-12 {#version-4-0-5}"
2626
msgstr ""
2727

2828
msgid "### Improvements"
2929
msgstr "### 改良"
3030

31+
msgid "#### Added support for semantic search"
32+
msgstr "#### セマンティックサーチをサポート"
33+
34+
msgid "Semantic search is now available."
35+
msgstr "セマンティック検索が利用可能になりました。"
36+
37+
msgid "This is still an experimental feature."
38+
msgstr "まだ実験的な機能です。"
39+
40+
msgid ""
41+
"For information on how to create an index and how to search, please refer to "
42+
"the following documentation."
43+
msgstr ""
44+
"インデックスの作成方法と検索方法については、以下のドキュメントをご覧くださ"
45+
"い。"
46+
47+
msgid ""
48+
"* [How to create an index.][create-index-using-pgroonga-semantic-search]"
49+
msgstr ""
50+
"* [インデックスの作成方法。][create-index-using-pgroonga-semantic-search]"
51+
52+
msgid ""
53+
"* How to search: Use the [`&@*`][semantic-search-v2] operator or [`<&@*>`]"
54+
"[semantic-distance-v2] operator."
55+
msgstr ""
56+
"* 検索方法: [`&@*`][semantic-search-v2]演算子や[`<&@*>`][semantic-distance-"
57+
"v2]演算子を使います。"
58+
59+
msgid ""
60+
"#### Added a new function [`pgroonga_language_model_vectorize()`][language-"
61+
"model-vectorize]"
62+
msgstr ""
63+
"#### [`pgroonga_language_model_vectorize()`][language-model-vectorize]関数を"
64+
"追加"
65+
66+
msgid "This function returns the normalized embedding of the specified text."
67+
msgstr "この関数は指定されたテキストの正規化されたエンべディングを返します。"
68+
69+
msgid "### Fixes"
70+
msgstr "### 修正"
71+
72+
msgid ""
73+
"#### Fixed a bug that PGroonga returns no records when we use `LIKE` or "
74+
"`ILIKE` with `OR`"
75+
msgstr ""
76+
"#### `LIKE`または`ILIKE`と`OR`を使ったときにPGroongaがレコードを返さない問題"
77+
"を修正"
78+
79+
msgid "[GH-916](https://github.com/pgroonga/pgroonga/issues/916)"
80+
msgstr ""
81+
82+
msgid "Reported by kurita0."
83+
msgstr "kurita0さんの報告。"
84+
85+
msgid ""
86+
"When PostgreSQL chooses the `seqscan`, this issue doesn't occur.\n"
87+
"This issue occurs when PostgreSQL chooses the `indexscan` or `bitmapscan` as "
88+
"below."
89+
msgstr ""
90+
"PostgreSQLが`seqscan`を選択した場合は、この問題は発生しません。\n"
91+
"この問題は、以下のようにPostgreSQLが`indexscan`または`bitmapscan`を選択した際"
92+
"に発生します。"
93+
94+
msgid ""
95+
"```sql\n"
96+
"CREATE TABLE memos (\n"
97+
" id integer,\n"
98+
" content text\n"
99+
");"
100+
msgstr ""
101+
102+
msgid ""
103+
"INSERT INTO memos VALUES (1, 'PostgreSQL is a RDBMS.');\n"
104+
"INSERT INTO memos VALUES (2, 'Groonga is fast full text search engine.');\n"
105+
"INSERT INTO memos VALUES (3, 'PGroonga is a PostgreSQL extension that uses "
106+
"Groonga.');"
107+
msgstr ""
108+
109+
msgid ""
110+
"CREATE INDEX grnindex\n"
111+
" ON memos\n"
112+
" USING pgroonga (content pgroonga_text_full_text_search_ops_v2)\n"
113+
" WITH (tokenizer='TokenNgram(\"unify_alphabet\", false)');"
114+
msgstr ""
115+
116+
msgid ""
117+
"SET enable_seqscan = off;\n"
118+
"SET enable_indexscan = on;\n"
119+
"SET enable_bitmapscan = off;"
120+
msgstr ""
121+
122+
msgid ""
123+
"EXPLAIN (COSTS OFF)\n"
124+
"SELECT id, content\n"
125+
" FROM memos\n"
126+
" WHERE content LIKE 'Po%' OR content LIKE 'Gr%';\n"
127+
" QUERY PLAN \n"
128+
"------------------------------------------------------\n"
129+
" Index Scan using grnindex on memos\n"
130+
" Index Cond: (content ~~ ANY ('{Po%,Gr%}'::text[]))\n"
131+
"(2 rows)"
132+
msgstr ""
133+
134+
msgid ""
135+
"SELECT id, content\n"
136+
" FROM memos\n"
137+
" WHERE content LIKE 'Po%' OR content LIKE 'Gr%';\n"
138+
" id | content\n"
139+
"----+---------\n"
140+
"(0 rows)"
141+
msgstr ""
142+
143+
msgid ""
144+
"SET enable_seqscan = off;\n"
145+
"SET enable_indexscan = off;\n"
146+
"SET enable_bitmapscan = on;"
147+
msgstr ""
148+
149+
msgid ""
150+
"EXPLAIN (COSTS OFF)\n"
151+
"SELECT id, content\n"
152+
" FROM memos\n"
153+
" WHERE content LIKE 'Po%' OR content LIKE 'Gr%';\n"
154+
" QUERY PLAN \n"
155+
"------------------------------------------------------------------------\n"
156+
" Bitmap Heap Scan on memos\n"
157+
" Recheck Cond: ((content ~~ 'Po%'::text) OR (content ~~ 'Gr%'::text))\n"
158+
" -> Bitmap Index Scan on grnindex\n"
159+
" Index Cond: (content ~~ ANY ('{Po%,Gr%}'::text[]))\n"
160+
"(4 rows)"
161+
msgstr ""
162+
163+
msgid ""
164+
"SELECT id, content\n"
165+
" FROM memos\n"
166+
" WHERE content LIKE 'Po%' OR content LIKE 'Gr%';\n"
167+
" id | content\n"
168+
"----+---------\n"
169+
"(0 rows)\n"
170+
"```"
171+
msgstr ""
172+
173+
msgid "### Thanks"
174+
msgstr "### 感謝"
175+
176+
msgid "* OreoYang"
177+
msgstr "* OreoYangさん"
178+
179+
msgid ""
180+
" * Fixed the usage of snapshots in the custom scan currently under "
181+
"development. [GH-898](https://github.com/pgroonga/pgroonga/pull/898)"
182+
msgstr ""
183+
" * 開発中のカスタムスキャンにて、スナップショットの使い方を修正していただき"
184+
"ました。 [GH-898](https://github.com/pgroonga/pgroonga/pull/898)"
185+
186+
msgid "* kurita0"
187+
msgstr "* kurita0さん"
188+
189+
msgid "## 4.0.4: 2025-10-02 {#version-4-0-4}"
190+
msgstr ""
191+
31192
msgid "#### Added support for PostgreSQL 18"
32193
msgstr "#### PostgreSQL 18をサポート"
33194

@@ -170,9 +331,6 @@ msgstr ""
170331
msgid "Because Ubuntu 20.04 will reach EOL on 2025-05."
171332
msgstr ""
172333

173-
msgid "### Fixes"
174-
msgstr "### 修正"
175-
176334
msgid "#### Fixed an upgrade bug"
177335
msgstr ""
178336

@@ -199,9 +357,6 @@ msgstr ""
199357
msgid "Reported by Tim Abbott. Thanks!!!"
200358
msgstr ""
201359

202-
msgid "### Thanks"
203-
msgstr "### 感謝"
204-
205360
msgid "* Tim Abbott"
206361
msgstr ""
207362

@@ -3444,7 +3599,9 @@ msgid ""
34443599
"[create-index-using-pgroonga-custom-normalizer]:../reference/create-index-"
34453600
"using-pgroonga.html#custom-normalizer\n"
34463601
"[create-index-using-pgroonga-custom-index-flags]:../reference/create-index-"
3447-
"using-pgroonga.html#custom-index-flags"
3602+
"using-pgroonga.html#custom-index-flags\n"
3603+
"[create-index-using-pgroonga-semantic-search]:../reference/create-index-"
3604+
"using-pgroonga.html#semantic-search"
34483605
msgstr ""
34493606

34503607
msgid ""
@@ -3495,7 +3652,9 @@ msgid ""
34953652
"[regular-expression-v2]:../reference/operators/regular-expression-v2.html\n"
34963653
"[script-jsonb-v2]:../reference/operators/script-jsonb-v2.html\n"
34973654
"[script-v2]:../reference/operators/script-v2.html\n"
3498-
"[similar-search-v2]:../reference/operators/similar-search-v2.html"
3655+
"[similar-search-v2]:../reference/operators/similar-search-v2.html\n"
3656+
"[semantic-search-v2]:../reference/operators/semantic-search-v2.html\n"
3657+
"[semantic-distance-v2]:../reference/operators/semantic-distance-v2.html"
34993658
msgstr ""
35003659

35013660
msgid ""
@@ -3505,6 +3664,8 @@ msgid ""
35053664
"[highlight-html]:../reference/functions/pgroonga-highlight-html.html\n"
35063665
"[index-column-name]:../reference/functions/pgroonga-index-column-name.html\n"
35073666
"[is-writable]:../reference/functions/pgroonga-is-writable.html\n"
3667+
"[language-model-vectorize]:../reference/functions/pgroonga-language-model-"
3668+
"vectorize.html\n"
35083669
"[list-broken-indexes]:../reference/functions/pgroonga-list-broken-"
35093670
"indexes.html\n"
35103671
"[list-lagged-indexes]:../reference/functions/pgroonga-list-lagged-"

ja/news/index.md

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,107 @@ upper_level: ../
55

66
# おしらせ
77

8+
## 4.0.5: 2025-12-12 {#version-4-0-5}
9+
10+
### 改良
11+
12+
#### セマンティックサーチをサポート
13+
14+
セマンティック検索が利用可能になりました。
15+
16+
まだ実験的な機能です。
17+
18+
インデックスの作成方法と検索方法については、以下のドキュメントをご覧ください。
19+
20+
* [インデックスの作成方法。][create-index-using-pgroonga-semantic-search]
21+
22+
* 検索方法: [`&@*`][semantic-search-v2]演算子や[`<&@*>`][semantic-distance-v2]演算子を使います。
23+
24+
#### [`pgroonga_language_model_vectorize()`][language-model-vectorize]関数を追加
25+
26+
まだ実験的な機能です。
27+
28+
この関数は指定されたテキストの正規化されたエンべディングを返します。
29+
30+
### 修正
31+
32+
#### `LIKE`または`ILIKE``OR`を使ったときにPGroongaがレコードを返さない問題を修正
33+
34+
[GH-916](https://github.com/pgroonga/pgroonga/issues/916)
35+
36+
kurita0さんの報告。
37+
38+
PostgreSQLが`seqscan`を選択した場合は、この問題は発生しません。
39+
この問題は、以下のようにPostgreSQLが`indexscan`または`bitmapscan`を選択した際に発生します。
40+
41+
```sql
42+
CREATE TABLE memos (
43+
id integer,
44+
content text
45+
);
46+
47+
INSERT INTO memos VALUES (1, 'PostgreSQL is a RDBMS.');
48+
INSERT INTO memos VALUES (2, 'Groonga is fast full text search engine.');
49+
INSERT INTO memos VALUES (3, 'PGroonga is a PostgreSQL extension that uses Groonga.');
50+
51+
CREATE INDEX grnindex
52+
ON memos
53+
USING pgroonga (content pgroonga_text_full_text_search_ops_v2)
54+
WITH (tokenizer='TokenNgram("unify_alphabet", false)');
55+
56+
SET enable_seqscan = off;
57+
SET enable_indexscan = on;
58+
SET enable_bitmapscan = off;
59+
60+
EXPLAIN (COSTS OFF)
61+
SELECT id, content
62+
FROM memos
63+
WHERE content LIKE 'Po%' OR content LIKE 'Gr%';
64+
QUERY PLAN
65+
------------------------------------------------------
66+
Index Scan using grnindex on memos
67+
Index Cond: (content ~~ ANY ('{Po%,Gr%}'::text[]))
68+
(2 rows)
69+
70+
SELECT id, content
71+
FROM memos
72+
WHERE content LIKE 'Po%' OR content LIKE 'Gr%';
73+
id | content
74+
----+---------
75+
(0 rows)
76+
77+
SET enable_seqscan = off;
78+
SET enable_indexscan = off;
79+
SET enable_bitmapscan = on;
80+
81+
EXPLAIN (COSTS OFF)
82+
SELECT id, content
83+
FROM memos
84+
WHERE content LIKE 'Po%' OR content LIKE 'Gr%';
85+
QUERY PLAN
86+
------------------------------------------------------------------------
87+
Bitmap Heap Scan on memos
88+
Recheck Cond: ((content ~~ 'Po%'::text) OR (content ~~ 'Gr%'::text))
89+
-> Bitmap Index Scan on grnindex
90+
Index Cond: (content ~~ ANY ('{Po%,Gr%}'::text[]))
91+
(4 rows)
92+
93+
SELECT id, content
94+
FROM memos
95+
WHERE content LIKE 'Po%' OR content LIKE 'Gr%';
96+
id | content
97+
----+---------
98+
(0 rows)
99+
```
100+
101+
### 感謝
102+
103+
* OreoYangさん
104+
105+
* 開発中のカスタムスキャンにて、スナップショットの使い方を修正していただきました。 [GH-898](https://github.com/pgroonga/pgroonga/pull/898)
106+
107+
* kurita0さん
108+
8109
## 4.0.4: 2025-10-02 {#version-4-0-4}
9110

10111
### 改良
@@ -2405,6 +2506,7 @@ The first release!!!
24052506
[create-index-using-pgroonga]:../reference/create-index-using-pgroonga.html
24062507
[create-index-using-pgroonga-custom-normalizer]:../reference/create-index-using-pgroonga.html#custom-normalizer
24072508
[create-index-using-pgroonga-custom-index-flags]:../reference/create-index-using-pgroonga.html#custom-index-flags
2509+
[create-index-using-pgroonga-semantic-search]:../reference/create-index-using-pgroonga.html#semantic-search
24082510
24092511
[text-regexp-ops]:../reference/#text-regexp-ops
24102512
[text-array-full-text-search-ops]:../reference/#text-array-full-text-search-ops
@@ -2444,13 +2546,16 @@ The first release!!!
24442546
[script-jsonb-v2]:../reference/operators/script-jsonb-v2.html
24452547
[script-v2]:../reference/operators/script-v2.html
24462548
[similar-search-v2]:../reference/operators/similar-search-v2.html
2549+
[semantic-search-v2]:../reference/operators/semantic-search-v2.html
2550+
[semantic-distance-v2]:../reference/operators/semantic-distance-v2.html
24472551
24482552
[command]:../reference/functions/pgroonga-command.html
24492553
[database-remove]:../reference/functions/pgroonga-database-remove.html
24502554
[escape]:../reference/functions/pgroonga-escape.html
24512555
[highlight-html]:../reference/functions/pgroonga-highlight-html.html
24522556
[index-column-name]:../reference/functions/pgroonga-index-column-name.html
24532557
[is-writable]:../reference/functions/pgroonga-is-writable.html
2558+
[language-model-vectorize]:../reference/functions/pgroonga-language-model-vectorize.html
24542559
[list-broken-indexes]:../reference/functions/pgroonga-list-broken-indexes.html
24552560
[list-lagged-indexes]:../reference/functions/pgroonga-list-lagged-indexes.html
24562561
[primary-maintainer]:../reference/commands/pgroonga-primary-maintainer.html

0 commit comments

Comments
 (0)