Skip to content

datlowe/postgres-tsearch-czech

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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%