Skip to content

Postgres pgq docker image with Czech full text search dictionaries and snowball stemmer

License

Notifications You must be signed in to change notification settings

datlowe/postgres-tsearch-czech

 
 

Repository files navigation

About

The official postgres docker with Czech full-text search dictionaries pulled from https://postgres.cz/data/czech.tar.gz.

Supported tags

  • 11.6 Based on postgres:11.6

  • 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

About

Postgres pgq docker image with Czech full text search dictionaries and snowball stemmer

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dockerfile 66.5%
  • Shell 33.5%