1 |
select * from pgest(null, 'a OR b OR c', '', 0, 0); |
--select * from pgest(null, 'a OR b OR c', '', 0, 0); |
2 |
select * from pgest('##dir##/data/casket', 'a OR b OR c', '', 0, 0); |
--select * from pgest('##dir##/data/casket', 'a OR b OR c', '', 0, 10); |
3 |
select * from pgest('##dir##/data/casket', 'a OR b OR c', '', 20, 0); |
--select * from pgest('##dir##/data/casket', 'a OR b OR c', '', 20, 0); |
4 |
select * from pgest('##dir##/data/casket', 'a OR b OR c', null, 20, 0); |
--select * from pgest('##dir##/data/casket', 'a OR b OR c', null, 20, 0); |
5 |
select * from pgest('##dir##/data/casket', 'a OR b OR c', '@uri ISTREW .txt', 100, 0); |
--select * from pgest('##dir##/data/casket', 'a OR b OR c', '@uri ISTREW .txt', 100, 0); |
6 |
select * from pgest('##dir##/data/casket', 'a OR b OR c', '', 10, 1); |
|
7 |
--select * from pgest2('{foo}') as (a text, b text) ; |
-- find all references to blade runner in other films |
8 |
--select * from pgest2('{foo}') as (a text, b text, c text) ; |
select * from pgest('##dir##/data/casket','blade runner', '@title !ISTRINC blade runner', null, null) ; |
9 |
--select * from pgest2('{foo}') as (a text, b text, c text, d text) ; |
|
10 |
|
-- find all references and count them to blade runner after 1990 |
11 |
|
select count(title),title from pgest('/home/dpavlin/pgestraier/data/casket', 'blade runner', 'year NUMGT 1990', null, null) group by title order by title; |
12 |
|
|
13 |
|
-- example of new API which allows user to specify attributes |
14 |
|
select * from pgest('##dir##/data/casket', 'blade runner', null, 10, null, array['@id','@title','year']) as (id text, title text, year text) ; |
15 |
|
|