Skip to content

Instantly share code, notes, and snippets.

@rud
Created June 30, 2011 05:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rud/1055675 to your computer and use it in GitHub Desktop.
Save rud/1055675 to your computer and use it in GitHub Desktop.
Heroku Danish languate support
(heroku console)$ User.connection.execute("select to_tsvector('danish', 'vi kigger p\303\245 biler og huse')").to_set
=> #<Set: {{"to_tsvector"=>"'bil':4 'hus':6 'kig':2"}}>
(psql)$ \dF+ danish
Text search configuration "pg_catalog.danish"
Parser: "pg_catalog.default"
Token | Dictionaries
-----------------+--------------
asciihword | danish_stem
asciiword | danish_stem
email | simple
file | simple
float | simple
host | simple
hword | danish_stem
hword_asciipart | danish_stem
hword_numpart | simple
hword_part | danish_stem
int | simple
numhword | simple
numword | simple
sfloat | simple
uint | simple
url | simple
url_path | simple
version | simple
word | danish_stem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment