On Thu, 31 May 2018 13:57:13 +0200 ox16 <[email protected]> wrote: > * Package name : groonga > it working with Polish language?
Technically, yes.
It seems that Polish full text search example also works.
Here is the example to demonstrate it:
% cat polish.grn
table_remove Examples
table_remove Terms
table_create --name Examples --flags TABLE_HASH_KEY --key_type ShortTex
column_create --table Examples --name sentence --type ShortText
table_create --name Terms --flags TABLE_PAT_KEY --key_type ShortText
--default_tokenizer TokenBigram
column_create --table Terms --name sentence_index --flags
COLUMN_INDEX|WITH_POSITION --type Examples --source sentence
load --table Examples
[
{"_key":"book","sentence":"Janek czyta książkę."},
{"_key":"car","sentence":"To jest samochód Janka."}
]
select Examples --query "sentence:@książkę"
In console:
% mkdir -p testdb
% groonga -n testdb/db < polish.grn
[[0,1528012694.460464,0.01500058174133301],
[[[1],[["_id","UInt32"],["_key","ShortText"],["sentence","ShortText"]],[1,"book","Janek
czyta książkę."]]]]
select Examples --query "sentence:@książkę" execute fulltext search by "książkę"
from sentence column in Examples table.
pgp8S9uLHhEqc.pgp
Description: PGP signature

