Gem for searches using Postgresql.
Uses a dictionary to know the synonyms.
Query to get all currently available dictionaries
SELECT dictname FROM pg_catalog.pg_ts_dict; # or \dF
Query to get current default configuration
SHOW default_text_search_config;
To replace the default with another, run:
ALTER DATABASE postgresql_book SET default_text_search_config = 'pg_catalog.english';