summaryrefslogtreecommitdiff
path: root/contrib/tsearch2/dict.c
AgeCommit message (Collapse)Author
2007-11-13Replace the now-incompatible-with-core contrib/tsearch2 module with aTom Lane
compatibility package. This supports importing dumps from past versions using tsearch2, and provides the old names and API for most functions that were changed. (rewrite(ARRAY[...]) is a glaring omission, though.) Pavel Stehule and Tom Lane
2006-10-04pgindent run for 8.2.Bruce Momjian
2006-05-31Add thesaurus dictionary which can replace N>0 lexemes by M>0 lexemes.Teodor Sigaev
It required some changes in lexize algorithm, but interface with dictionaries stays compatible with old dictionaries. Funded by Georgia Public Library Service and LibLime, Inc.
2006-03-11Add CVS tag lines to files that were lacking them.Bruce Momjian
2005-10-15Standard pgindent run for 8.1.Bruce Momjian
2005-05-06For some reason access/tupmacs.h has been #including utils/memutils.h,Tom Lane
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.
2005-03-311 fix various comparing functionsTeodor Sigaev
2 implement gtsvector_out for use with gevel module (debug GiST indexes, http://www.sai.msu.su/~megera/postgres/gist/gevel/)
2005-01-25improve support of agglutinative languages (query with compound words).Teodor Sigaev
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;
2004-08-29Pgindent run for 8.0.Bruce Momjian
2004-05-311 add namespaces as Tom suggest http://www.pgsql.ru/db/mw/msg.html?mid=1987703Teodor Sigaev
2 remove select qeury in inserts
2004-04-01Fix some portability issues (reliance on gcc-isms).Tom Lane
2003-08-04pgindent run.Bruce Momjian
2003-07-24Error message editing in contrib (mostly by Joe Conway --- thanks Joe!)Tom Lane
2003-07-21tsearch2 moduleTeodor Sigaev