You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: EN/modules/ROOT/pages/master/ecosystem_components/pgroonga.adoc
+17Lines changed: 17 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -87,5 +87,22 @@ postgres=# select version();
87
87
(1 row)
88
88
```
89
89
90
+
== Encoding Compatibility
91
+
92
+
PGroonga relies on https://groonga.org/docs/reference/api/util_8h.html#c.grn_encoding[Groonga's supported encodings], which do not include GB18030. A PGroonga index created in a GB18030-encoded database may therefore contain no tokens and return no matches.
93
+
94
+
Create a UTF-8 database for workloads that use PGroonga:
95
+
96
+
[source,sql]
97
+
----
98
+
CREATE DATABASE search_db
99
+
WITH ENCODING 'UTF8'
100
+
LC_COLLATE 'C'
101
+
LC_CTYPE 'C'
102
+
TEMPLATE template0;
103
+
----
104
+
105
+
Changing Groonga's runtime encoding or rebuilding the index does not change the database encoding. Existing data must be migrated or reloaded into a UTF-8 database before creating the PGroonga index.
106
+
90
107
== Usage
91
108
For PGroonga usage, please refer to the https://pgroonga.github.io/tutorial[PGroonga Official Documentation]
0 commit comments