Skip to content

postgrespro/postgres

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pg_tsparser - parser for text search

Introduction

The pg_tsparser module is the modified default text search parser from PostgreSQL 9.6.

License

This module available under the same license as PostgreSQL.

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:

CREATE TEXT SEARCH CONFIGURATION russian_ts (
    PARSER = tsparser
);

COMMENT ON TEXT SEARCH CONFIGURATION russian_ts IS 'text search configuration for russian language';

ALTER TEXT SEARCH CONFIGURATION russian_ts
    ADD MAPPING FOR email, file, float, host, hword_numpart, int,
    numhword, numword, sfloat, uint, url, url_path, version
    WITH simple;

ALTER TEXT SEARCH CONFIGURATION russian_ts
    ADD MAPPING FOR asciiword, asciihword, hword_asciipart
    WITH russian_stem, english_stem;

ALTER TEXT SEARCH CONFIGURATION russian_ts
    ADD MAPPING FOR word, hword, hword_part
    WITH russian_stem, russian_stem;

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 83.3%
  • PLpgSQL 6.0%
  • Perl 2.3%
  • C++ 2.2%
  • TSQL 1.7%
  • Yacc 1.4%
  • Other 3.1%
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy