summaryrefslogtreecommitdiff
path: root/contrib/tsearch2/ts_cfg.c
Commit message (Collapse)AuthorAgeFilesLines
* For some reason access/tupmacs.h has been #including utils/memutils.h,Tom Lane2005-05-061-6/+5
| | | | | | | which is neither needed by nor related to that header. Remove the bogus inclusion and instead include the header in those C files that actually need it. Also fix unnecessary inclusions and bad inclusion order in tsearch2 files.
* 1 fix various comparing functionsTeodor Sigaev2005-03-311-1/+3
| | | | 2 implement gtsvector_out for use with gevel module (debug GiST indexes, http://www.sai.msu.su/~megera/postgres/gist/gevel/)
* improve support of agglutinative languages (query with compound words).Teodor Sigaev2005-01-251-12/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | regression=# select to_tsquery( '\'fotballklubber\''); to_tsquery ------------------------------------------------ 'fotball' & 'klubb' | 'fot' & 'ball' & 'klubb' (1 row) So, changed interface to dictionaries, lexize method of dictionary shoud return pointer to aray of TSLexeme structs instead of char**. Last element should have TSLexeme->lexeme == NULL. typedef struct { /* number of variant of split word , for example Word 'fotballklubber' (norwegian) has two varian to split: ( fotball, klubb ) and ( fot, ball, klubb ). So, dictionary should return: nvariant lexeme 1 fotball 1 klubb 2 fot 2 ball 2 klubb */ uint16 nvariant; /* currently unused */ uint16 flags; /* C-string */ char *lexeme; } TSLexeme;
* Pgindent run for 8.0.Bruce Momjian2004-08-291-29/+30
|
* 1 Eliminate duplicate field HLWORD->skipTeodor Sigaev2004-06-281-2/+2
| | | | | | 2 Rework support for html tags in parser 3 add HighlightAll to headline function for generating highlighted whole text with saved html tags
* 1 add namespaces as Tom suggest http://www.pgsql.ru/db/mw/msg.html?mid=1987703Teodor Sigaev2004-05-311-35/+46
| | | | 2 remove select qeury in inserts
* Win32 related patch by Darko Prenosil. Small correct by teodorTeodor Sigaev2004-05-311-1/+1
|
* Fix some portability issues (reliance on gcc-isms).Tom Lane2004-04-011-4/+12
|
* Ignore too long lexemeTeodor Sigaev2003-11-251-2/+20
|
* I've not changed any malloc/calloc to palloc. It looks to me that these memoryBruce Momjian2003-09-291-0/+3
| | | | | | | | | | | | | | areas are for the lifetime of the backend and in the interests of not breaking something that's not broken I left alone. Note for anyone reading this and wanting it for tsearch-v2-stable (i.e. for 7.3 backend) this patch probably will not apply cleanly to that source. It should be simple enough to see what's going on and apply the changes by hand if need be. -- Nigel J. Andrews
* fix hlfinditem function. Thanks to "Stphane Bidoul" ↵Teodor Sigaev2003-09-221-1/+2
| | | | | | | | | <stephane.bidoul@softwareag.com>. The 'word' variable there is initialised from the prs->words array, but immediately after, that array may be reallocated, thus leaving word pointing to unallocated memory.
* pgindent run.Bruce Momjian2003-08-041-295/+364
|
* Error message editing in contrib (mostly by Joe Conway --- thanks Joe!)Tom Lane2003-07-241-7/+23
|
* tsearch2 moduleTeodor Sigaev2003-07-211-0/+509