Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Up-to-date mirror of@postgres with Travis-CI / Appveyor integration and PRs

NotificationsYou must be signed in to change notification settings

postgrespro/postgres

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

Thepg_tsparser module is the modified default text search parser fromPostgreSQL 9.6.The difference betweentsparser anddefault parsers is thattsparsergives also unbroken words by underscore character.

License

This module available under the same license asPostgreSQL.

Installation

Typical installation procedure may look like this:

$ cd pg_tsparser$ sudo make USE_PGXS=1 install$ make USE_PGXS=1 installcheck$ psql DB -c "CREATE EXTENSION pg_tsparser;"

After this you can create your own text search configuration:

CREATETEXT SEARCH CONFIGURATION english_ts (    PARSER= tsparser);COMMENTONTEXT SEARCH CONFIGURATION english_ts IS'text search configuration for english language';ALTERTEXT SEARCH CONFIGURATION english_ts    ADD MAPPING FOR email, file, float, host, hword_numpart,int,    numhword, numword, sfloat, uint, url, url_path, version    WITH simple;ALTERTEXT SEARCH CONFIGURATION english_ts    ADD MAPPING FOR asciiword, asciihword, hword_asciipart,    word, hword, hword_part    WITH english_stem;

Examples

Example of difference betweentsparser anddefault:

SELECT to_tsvector('english_ts','pg_trgm');         to_tsvector-----------------------------'pg':2'pg_trgm':1'trgm':3(1 row)SELECT to_tsvector('english','pg_trgm');   to_tsvector-----------------'pg':1'trgm':2(1 row)

About

Up-to-date mirror of@postgres with Travis-CI / Appveyor integration and PRs

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C83.3%
  • PLpgSQL6.0%
  • Perl2.3%
  • C++2.2%
  • TSQL1.7%
  • Yacc1.4%
  • Other3.1%

[8]ページ先頭

©2009-2025 Movatter.jp