--- trunk/pgswish.sql	2005/02/19 16:01:46	13
+++ trunk/pgswish.sql	2005/02/19 20:59:17	14
@@ -7,9 +7,17 @@
 	size integer
 );
 
---			   pgswish('/index/path/','query', 'property' 'sort');
-CREATE OR REPLACE FUNCTION pgswish(text, text, text, text)
+-- Search swish-e index as table
+-- select * from pgswish('/index/path/','query', 'sort');
+CREATE OR REPLACE FUNCTION pgswish(text, text, text)
 	RETURNS SETOF __pgswish
 	AS 'pgswish', 'pgswish'
 	LANGUAGE C IMMUTABLE STRICT;
 
+-- get property value while retriving results with pgswish
+-- select *,pgtextprop('property') from pgswish(...) ...
+
+CREATE OR REPLACE FUNCTION swtextprop(text)
+	RETURNS text
+	AS 'pgswish', 'swtextprop'
+	LANGUAGE C STRICT;
