dedekj/postgres-pgq-tsearch-czech

By dedekj

Updated about 8 years ago

Postgres pgq docker image with Czech full text search dictionaries

Image
0

336

dedekj/postgres-pgq-tsearch-czech repository overview

About

jtjeferreira/docker-pgq docker with Czech full-text search dictionaries pulled from https://postgres.cz/data/czech.tar.gz and Czech snowball stemmer from https://github.com/datlowe/postgres_snowball_czech .

Supported tags

  • 9.6

    • Based on dedekj/docker-pgq:9.6.
    • docker pull dedekj/postgres-pgq-tsearch-czech:9.6
  • 9.5

    • Based on jtjeferreira/docker-pgq:9.5.
    • docker pull dedekj/postgres-pgq-tsearch-czech:9.5

How to


docker build -t datlowe/postgres-pgq-tsearch-czech:9.6 .

docker run --name postgres -p 5432:5432 -e POSTGRES_PASSWORD=datlowe -e POSTGRES_USER=datlowe datlowe/postgres-pgq-tsearch-czech:9.6

Test it

SELECT * FROM ts_debug('czech', 'psi a psů a lidi a lidí a ruce a vody a Měla cholecystektomii neb cholecystektomie i  mnoho cholecystektomií');

Upgrading from docker-pgq image or for any new database

  create text search dictionary czech_ispell
    (template=ispell, dictfile=czech, afffile=czech, stopwords=czech);
    
  create text search dictionary czech_snowball
    (template=snowball, language=czech, stopwords=czech);
    
  create text search configuration czech (copy=english);
  alter text search configuration czech
    alter mapping for word, asciiword with czech_ispell, czech_snowball;

See also

Tag summary

Content type

Image

Digest

Size

129.5 MB

Last updated

about 8 years ago

Requires Docker Desktop 4.37.1 or later.