summaryrefslogtreecommitdiff
path: root/contrib/tsearch2/query.c
Commit message (Collapse)AuthorAgeFilesLines
* Add parentheses to macros when args are used in computations. WithoutBruce Momjian2005-05-251-5/+5
| | | | them, the executation behavior could be unexpected.
* improve support of agglutinative languages (query with compound words).Teodor Sigaev2005-01-251-10/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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;
* ChangeTeodor Sigaev2005-01-251-1/+1
| | | | | | | | | typedef struct {} WordEntryPos; to typedef uint16 WordEntryPos according to http://www.pgsql.ru/db/mw/msg.html?mid=2035188 Require re-fill all tsvector fields and reindex tsvector indexes.
* This patch makes some cleanups to contrib/ to silence some sparseNeil Conway2004-11-091-1/+1
| | | | | | | | | | warnings: - remove pointless "extern" keyword from some function definitions in contrib/tsearch2 - use "NULL" not "0" as NULL pointer in contrib/tsearch, contrib/tsearch2, contrib/pgbench, and contrib/vacuumlo
* Pgindent run for 8.0.Bruce Momjian2004-08-291-7/+10
|
* 1 add namespaces as Tom suggest http://www.pgsql.ru/db/mw/msg.html?mid=1987703Teodor Sigaev2004-05-311-2/+8
| | | | 2 remove select qeury in inserts
* Win32 related patch by Darko Prenosil. Small correct by teodorTeodor Sigaev2004-05-311-1/+1
|
* Fix for word with several infinitivesTeodor Sigaev2003-12-031-1/+1
|
* Fixes about word with several infiniteveTeodor Sigaev2003-11-271-1/+1
|
* Fix incorrect pfree in to_tsquery_name(), per Nigel Andrews.Tom Lane2003-09-121-9/+5
|
* More accuracy works with stopwords in queriesTeodor Sigaev2003-08-281-11/+2
|
* pgindent run.Bruce Momjian2003-08-041-62/+101
|
* Error message editing in contrib (mostly by Joe Conway --- thanks Joe!)Tom Lane2003-07-241-11/+24
|
* tsearch2 moduleTeodor Sigaev2003-07-211-0/+862