pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: matti.linnanvuori@portalify.com
Subject: BUG #16647: ts_lexize with dict_voikko no longer works as of PostgreSQL 13.0
Date: Wed, 30 Sep 2020 10:19:04 +0000
Message-ID: <16647-08ea19a19c574a88@postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      16647
Logged by:          Matti Linnanvuori
Email address:      matti.linnanvuori@portalify.com
PostgreSQL version: 13.0
Operating system:   Red Hat Enterprise Linux 8.2
Description:        

ts_lexize with dict_voikko no longer works as of PostgreSQL 13.0 but it
worked in PostgreSQL 12.4.
dnf install postgresql13
dnf install postgresql13-server
dnf install postgresql13-devel
dnf install libvoikko
dnf install malaga-suomi-voikko
wget
https://www.puimula.org/htp/testing/voikko-snapshot-v5/dict-morpho.zip
unzip dict-morpho.zip
mkdir /etc/voikko
mv 5 /etc/voikko
git clone https://github.com/MattiL/dict_voikko.git
cp -r dict_voikko /usr/pgsql-13/share/contrib
cd /usr/pgsql-13/share/contrib/dict_voikko
PATH="/usr/pgsql-13/bin:$PATH" make clean install USE_PGXS=1
PGSETUP_INITDB_OPTIONS=--locale=fi_FI.utf8
/usr/pgsql-13/bin/postgresql-13-setup initdb
createdb -E UTF8 test
CREATE EXTENSION dict_voikko;
CREATE TEXT SEARCH DICTIONARY voikko_stopwords (TEMPLATE = voikko_template,
StopWords = finnish);
CREATE TEXT SEARCH CONFIGURATION voikko (COPY = pg_catalog.finnish);
ALTER TEXT SEARCH CONFIGURATION voikko ALTER MAPPING FOR asciiword,
asciihword, hword_asciipart, word, hword, hword_part WITH voikko_stopwords,
finnish_stem;' tasks";
test=# select ts_lexize('voikko', 'kerrostalollekohan');
 ts_lexize 
-----------
 
(1 row)

PostgreSQL 12.4:
test=# select ts_lexize('voikko', 'kerrostalollekohan');
   ts_lexize   
---------------
 {kerros,talo}
(1 row)



view thread (3+ messages)  latest in thread

Message-ID: <16647-08ea19a19c574a88@postgresql.org>
Permalink:  ../16647-08ea19a19c574a88@postgresql.org/
Also on:    postgresql.org/message-id/16647-08ea19a19c574a88@postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, matti.linnanvuori@portalify.com
  Subject: Re: BUG #16647: ts_lexize with dict_voikko no longer works as of PostgreSQL 13.0
  In-Reply-To: <16647-08ea19a19c574a88@postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox