[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#900471: Odp: Bug#900471: RFS: groonga/8.0.3-1



On Thu, 31 May 2018 13:57:13 +0200
ox16 <ox16@o2.pl> 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.

Attachment: pgpdCs3M0mAAD.pgp
Description: PGP signature


Reply to: