¾�ΥС�������ʸ�� �� 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9.6 | 9.5 | 9.4 | 9.3 | 9.2 | 9.1 | 9.0 | 8.4 | 8.3 | 8.2 | 8.1 | 8.0 | 7.4 | 7.3 | 7.2

12.7. ������

�ƥ����ȸ�������ϡ�ʸ���tsvector���Ѵ�����ɬ�פʤ��٤ƤΥ��ץ�������ꤷ�ޤ������ʤ�����ƥ����Ȥ�ȡ������ʬ�򤹤�ѡ����������ƥȡ����������Ǥ��Ѵ����뼭��Ǥ���to_tsvector�ޤ���to_tsquery��ƤӽФ����Ӥˡ�������ʤ�뤿��˥ƥ����ȸ������꤬ɬ�פˤʤ�ޤ�������ѥ�᡼����default_text_search_config�ϡ��ǥե���Ȥ��������ꤷ�ޤ�������ϡ�����Ū�����꤬��ά���줿�Ȥ��˥ƥ����ȸ����ؿ������Ѥ��ޤ���postgresql.conf�����ꤹ�뤫���ġ��Υ��å�����SET���ޥ�ɤ�Ȥä�����Ǥ��ޤ���

����Υƥ����ȸ������꤬�����Ĥ����ѤǤ��ޤ����ޤ������������������Τ��ưפǤ����ƥ����ȸ������֥������Ȥ�������뵡ǽ��¸����뤿��ˡ�SQL���ޥ�ɤ����̤��Ѱդ���Ƥ��ޤ����ƥ����ȸ������֥������Ȥ˴ؤ�������ɽ������psql���ޥ�ɤ⤤���Ĥ��Ѱդ���Ƥ��ޤ�(項12.10)��

��Ȥ��ơ��Ȥ߹��ߤ�english����Υ��ԡ����Ѥ��ơ�������pg�������ޤ���

CREATE TEXT SEARCH CONFIGURATION public.pg ( COPY = pg_catalog.english );

PostgreSQL��ͭ��Ʊ����ꥹ�Ȥ�Ȥ��������$SHAREDIR/tsearch_data/pg_dict.syn�˳�Ǽ���ޤ����ե���������Ƥϰʲ��Τ褦�ˤʤ�ޤ���

postgres    pg
pgsql       pg
postgresql  pg

Ʊ���켭��򼡤Τ褦��������ޤ���

CREATE TEXT SEARCH DICTIONARY pg_dict (
    TEMPLATE = synonym,
    SYNONYMS = pg_dict
);

���ˡ�Ispell�����english_ispell����Ͽ���ޤ�������ˤϤ��켫�Ȥ����꤬����ޤ���

CREATE TEXT SEARCH DICTIONARY english_ispell (
    TEMPLATE = ispell,
    DictFile = english,
    AffFile = english,
    StopWords = english
);

�����ǡ�pg�����ñ���ѤΥޥåԥ󥰤����ꤷ�ޤ���

ALTER TEXT SEARCH CONFIGURATION pg
    ALTER MAPPING FOR asciiword, asciihword, hword_asciipart,
                      word, hword, hword_part
    WITH pg_dict, english_ispell, english_stem;

�Ȥ߹������꤬���äƤ��뤤���Ĥ��Υȡ�����˴ؤ��Ƥϡ�����ǥå����դ��ȸ����˰���ʤ����Ȥˤ��ޤ���

ALTER TEXT SEARCH CONFIGURATION pg
    DROP MAPPING FOR email, url, url_path, sfloat, float;

����Ǥ����ޤǺ�ä���������Ȥ��Ǥ��ޤ���

SELECT * FROM ts_debug('public.pg', '
PostgreSQL, the highly scalable, SQL compliant, open source object-relational
database management system, is now undergoing beta testing of the next
version of our software.
');

���ˡ����å�������ǿ����������Ȥ��褦�ˤ��ޤ�����������ϡ�public�������ޤ���˺���Ƥ��ޤ���

=> \dF
   List of text search configurations
 Schema  | Name | Description
---------+------+-------------
 public  | pg   |

SET default_text_search_config = 'public.pg';
SET

SHOW default_text_search_config;
 default_text_search_config
----------------------------
 public.pg