=== New features in 1.12 ===
=== Bug fixes in 1.12 ===
+* Subpages are now indexed for searching properly when using Postgres
=== API changes in 1.12 ===
--- /dev/null
+CREATE OR REPLACE FUNCTION ts2_page_title()
+RETURNS TRIGGER
+LANGUAGE plpgsql AS
+$mw$
+BEGIN
+IF TG_OP = 'INSERT' THEN
+ NEW.titlevector = to_tsvector('default',REPLACE(NEW.page_title,'/',' '));
+ELSIF NEW.page_title != OLD.page_title THEN
+ NEW.titlevector := to_tsvector('default',REPLACE(NEW.page_title,'/',' '));
+END IF;
+RETURN NEW;
+END;
+$mw$;
dbsource($ni[2]);
}
+ # Tweak the page_title tsearch2 trigger to filter out slashes
+ # This is create or replace, so harmless to call if not needed
+ dbsource(archive("patch-ts2pagetitle.sql"));
+
return;
}