Skip to content

Instantly share code, notes, and snippets.

@cristianc-ty
Last active February 8, 2018 13:05
Show Gist options
  • Save cristianc-ty/795523f029e64d7f3690a0637e1b9323 to your computer and use it in GitHub Desktop.
Save cristianc-ty/795523f029e64d7f3690a0637e1b9323 to your computer and use it in GitHub Desktop.
db_extensions.sql
create extension if not exists pg_trgm;
create extension if not exists unaccent;
create text search configuration en ( copy = pg_catalog.english );
alter text search configuration en
alter mapping for asciiword, asciihword, hword_asciipart, word, hword, hword_part
with unaccent, english_stem;
set default_text_search_config = 'en';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment