Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.sai.msu.su/~megera/postgres/fts/doc/sql-fts-createparser.html
Дата изменения: Unknown
Дата индексирования: Sun Apr 13 07:54:45 2008
Кодировка:

Поисковые слова: п п п п п п п п п п п п п п п п п п п п п п п п р п р п
CREATE FULLTEXT PARSER

CREATE FULLTEXT PARSER

Name

CREATE FULLTEXT PARSER -- create a parser for full-text search

Synopsis

CREATE FULLTEXT PARSER prsname 
    START= start_function
    GETTOKEN  gettoken_function
    END  end_function
    LEXTYPES  lextypes_function
    [  HEADLINE  headline_function ]
;
  

Description

CREATE FULLTEXT PARSER will create a new parser used to break document onto lexemes.

If a schema name is given (for example, CREATE FULLTEXT PARSER myschema.prsname ...) then the parser is created in the specified schema. Otherwise it is created in the current schema.

More information about developing custom parser is available from this Appendix B.

Parameters

prsname

The name (optionally schema-qualified) of the new parser.

START

start_function is the name of the function, that initialize a parser.

GETTOKEN

gettoken_function, is the name of the function, that returns a token.

END

end_function, is the name of the function, that called after parsing is finished.

LEXTYPES

lextypes_function, is the name of the function, that returns an array containing the id, alias and the description of the tokens of a parser.

HEADLINE

headline_function, is the name of the function, that returns a representative piece of document.

See Also

DROP FULLTEXT PARSER, ALTER FULLTEXT PARSER