jaiminpan / pg_jieba

Postgresql full-text search extension for chinese
BSD 3-Clause "New" or "Revised" License
341 stars 67 forks source link

分词粒度设置 #12

Closed ghost closed 7 years ago

ghost commented 7 years ago

请问如何设置分词粒度为FullSegment,pg_jieba.sql里面只有两个parser,而且实现是一样的:

CREATE TEXT SEARCH PARSER jieba (
    START    = jieba_start,
    GETTOKEN = jieba_gettoken,
    END      = jieba_end,
    LEXTYPES = jieba_lextype,
    HEADLINE = pg_catalog.prsd_headline
);

CREATE TEXT SEARCH PARSER jiebaqry (
    START    = jieba_query_start,
    GETTOKEN = jieba_gettoken,
    END      = jieba_end,
    LEXTYPES = jieba_lextype,
    HEADLINE = pg_catalog.prsd_headline
);
jaiminpan commented 7 years ago

目前还不支持。如果你有这方面需求,欢迎提交patch添加此功能配置。。。