|
PostgreSQL Source Code git master
|
#include "postgres.h"#include "tsearch/ts_cache.h"#include "tsearch/ts_utils.h"#include "varatt.h"
Go to the source code of this file.
Data Structures | |
| struct | ParsedLex |
| struct | ListParsedLex |
| struct | LexizeData |
Macros | |
| #define | IGNORE_LONGLEXEME 1 |
Typedefs | |
| typedef struct ParsedLex | ParsedLex |
| typedef struct ListParsedLex | ListParsedLex |
| #define IGNORE_LONGLEXEME 1 |
Definition at line 21 of file ts_parse.c.
|
static |
Definition at line 499 of file ts_parse.c.
References fb(), TSLexeme::flags, hladdword(), hlfinditem(), TSLexeme::lexeme, pfree(), TSL_ADDPOS, and HeadlineParsedText::vectorpos.
Referenced by hlparsetext().
| text * generateHeadline | ( | HeadlineParsedText * | prs | ) |
Definition at line 607 of file ts_parse.c.
References HeadlineParsedText::curwords, fb(), HeadlineParsedText::fragdelim, HeadlineParsedText::fragdelimlen, len, palloc(), pfree(), repalloc(), SET_VARSIZE(), HeadlineParsedText::startsel, HeadlineParsedText::startsellen, HeadlineParsedText::stopsel, HeadlineParsedText::stopsellen, VARHDRSZ, and HeadlineParsedText::words.
Referenced by headline_json_value(), and ts_headline_byid_opt().
Definition at line 440 of file ts_parse.c.
References buf, HeadlineParsedText::curwords, fb(), HeadlineWordEntry::len, HeadlineParsedText::lenwords, palloc(), repalloc(), type, HeadlineWordEntry::type, HeadlineWordEntry::word, and HeadlineParsedText::words.
Referenced by addHLParsedLex().
|
static |
Definition at line 464 of file ts_parse.c.
References buf, HeadlineParsedText::curwords, QueryOperand::distance, fb(), GETOPERAND, GETQUERY, i, HeadlineWordEntry::item, QueryOperand::length, HeadlineParsedText::lenwords, LIMITPOS, HeadlineWordEntry::pos, QueryOperand::prefix, QI_VAL, QueryItem::qoperand, repalloc(), HeadlineWordEntry::repeated, TSQueryData::size, tsCompareString(), QueryItem::type, word(), and HeadlineParsedText::words.
Referenced by addHLParsedLex().
Definition at line 540 of file ts_parse.c.
References addHLParsedLex(), buf, DatumGetInt32(), DatumGetPointer(), ereport, errcode(), errdetail(), errmsg(), ERROR, fb(), FunctionCall1, FunctionCall2, FunctionCall3, Int32GetDatum(), LexizeAddLemm(), LexizeExec(), LexizeInit(), lookup_ts_config_cache(), lookup_ts_parser_cache(), MAXSTRLEN, NOTICE, PointerGetDatum(), TSParserCacheEntry::prsend, TSConfigCacheEntry::prsId, TSParserCacheEntry::prsstart, TSParserCacheEntry::prstoken, type, and HeadlineParsedText::vectorpos.
Referenced by headline_json_value(), and ts_headline_byid_opt().
Definition at line 100 of file ts_parse.c.
References fb(), LPLAddTail(), palloc_object, and type.
Referenced by hlparsetext(), and parsetext().
|
static |
Definition at line 173 of file ts_parse.c.
References DatumGetPointer(), ListDictionary::dictIds, fb(), TSLexeme::flags, FunctionCall4, i, Int32GetDatum(), InvalidOid, ParsedLex::lemm, ListDictionary::len, TSLexeme::lexeme, LexizeExec(), lookup_ts_dictionary_cache(), moveToWaste(), PointerGetDatum(), RemoveHead(), setCorrLex(), setNewTmpRes(), and TSL_FILTER.
Referenced by hlparsetext(), LexizeExec(), and parsetext().
|
static |
Definition at line 61 of file ts_parse.c.
References LexizeData::cfg, fb(), and InvalidOid.
Referenced by hlparsetext(), and parsetext().
|
static |
Definition at line 73 of file ts_parse.c.
References fb().
Referenced by LexizeAddLemm(), and RemoveHead().
|
static |
|
static |
Definition at line 142 of file ts_parse.c.
References fb(), ParsedLex::next, and RemoveHead().
Referenced by LexizeExec().
| void parsetext | ( | Oid | cfgId, |
| ParsedText * | prs, | ||
| char * | buf, | ||
| int | buflen | ||
| ) |
Definition at line 355 of file ts_parse.c.
References ParsedWord::alen, buf, ParsedText::curwords, DatumGetInt32(), DatumGetPointer(), ereport, errcode(), errdetail(), errmsg(), ERROR, fb(), TSLexeme::flags, ParsedWord::flags, FunctionCall1, FunctionCall2, FunctionCall3, Int32GetDatum(), ParsedWord::len, ParsedText::lenwords, TSLexeme::lexeme, LexizeAddLemm(), LexizeExec(), LexizeInit(), LIMITPOS, lookup_ts_config_cache(), lookup_ts_parser_cache(), MAXSTRLEN, NOTICE, TSLexeme::nvariant, ParsedWord::nvariant, pfree(), PointerGetDatum(), ParsedWord::pos, ParsedText::pos, TSParserCacheEntry::prsend, TSConfigCacheEntry::prsId, TSParserCacheEntry::prsstart, TSParserCacheEntry::prstoken, repalloc(), TSL_ADDPOS, TSL_PREFIX, type, ParsedWord::word, and ParsedText::words.
Referenced by add_to_tsvector(), pushval_morph(), to_tsvector_byid(), and tsvector_update_trigger().
|
static |
Definition at line 112 of file ts_parse.c.
References fb(), LPLAddTail(), and LPLRemoveHead().
Referenced by LexizeExec(), and moveToWaste().
|
static |
Definition at line 120 of file ts_parse.c.
References fb(), ParsedLex::next, and pfree().
Referenced by LexizeExec().
|
static |
Definition at line 158 of file ts_parse.c.
References fb(), TSLexeme::lexeme, and pfree().
Referenced by LexizeExec().