mirror of
https://github.com/postgres/postgres.git
synced 2026-01-05 23:38:41 +03:00
New features for tsearch2:
1 Comparison operation for tsquery
2 Btree index on tsquery
3 numnode(tsquery) - returns 'length' of tsquery
4 tsquery @ tsquery, tsquery ~ tsquery - contains, contained for tsquery.
Note: They don't gurantee exact result, only MAY BE, so it
useful only for speed up rewrite functions
5 GiST index support for @,~
6 rewrite():
select rewrite(orig, what, to);
select rewrite(ARRAY[orig, what, to]) from tsquery_table;
select rewrite(orig, 'select what, to from tsquery_table;');
7 significantly improve cover algorithm
This commit is contained in:
7
contrib/tsearch2/query_cleanup.h
Normal file
7
contrib/tsearch2/query_cleanup.h
Normal file
@@ -0,0 +1,7 @@
|
||||
#ifndef __REWRITE_H__
|
||||
#define __REWRITE_H__
|
||||
|
||||
ITEM *clean_NOT_v2(ITEM * ptr, int4 *len);
|
||||
ITEM *clean_fakeval_v2(ITEM * ptr, int4 *len);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user