PostgreSQL Source Code
git master
|
#include "tsearch/ts_type.h"
Go to the source code of this file.
Data Structures | |
struct | LexDescr |
struct | HeadlineWordEntry |
struct | HeadlineParsedText |
struct | StopList |
struct | TSLexeme |
struct | DictSubState |
Macros | |
#define | TSL_ADDPOS 0x01 |
#define | TSL_PREFIX 0x02 |
#define | TSL_FILTER 0x04 |
Functions | |
char * | get_tsearch_config_filename (const char *basename, const char *extension) |
void | readstoplist (const char *fname, StopList *s, char *(*wordop)(const char *)) |
bool | searchstoplist (StopList *s, char *key) |
#define TSL_ADDPOS 0x01 |
Definition at line 142 of file ts_public.h.
#define TSL_FILTER 0x04 |
Definition at line 144 of file ts_public.h.
#define TSL_PREFIX 0x02 |
Definition at line 143 of file ts_public.h.
char* get_tsearch_config_filename | ( | const char * | basename, |
const char * | extension | ||
) |
Definition at line 33 of file ts_utils.c.
References ereport, errcode(), errmsg(), ERROR, get_share_path(), MAXPGPATH, my_exec_path, palloc(), and snprintf.
Referenced by dispell_init(), dsynonym_init(), initTrie(), read_dictionary(), readstoplist(), and thesaurusRead().
void readstoplist | ( | const char * | fname, |
StopList * | s, | ||
char *(*)(const char *) | wordop | ||
) |
Definition at line 68 of file ts_utils.c.
References ereport, errcode(), errmsg(), ERROR, filename, get_tsearch_config_filename(), StopList::len, palloc(), pfree(), pg_mblen(), pg_qsort_strcmp(), qsort, repalloc(), StopList::stop, t_isspace(), tsearch_readline(), tsearch_readline_begin(), and tsearch_readline_end().
Referenced by dispell_init(), dsimple_init(), and dsnowball_init().
Definition at line 140 of file ts_utils.c.
References sort-test::key, StopList::len, pg_qsort_strcmp(), and StopList::stop.
Referenced by dispell_lexize(), dsimple_lexize(), and dsnowball_lexize().