server: sql to debug search indexing w/ postgres

This commit is contained in:
Bill Thiede 2025-02-13 09:30:32 -08:00
parent 4a7ff8bf7b
commit 86c6face7d

View File

@ -0,0 +1,13 @@
select t.id, tt.tokid, tt.alias, length(t.token), t.token from (
select id, (ts_parse('default',
-- regexp_replace(
-- regexp_replace(summary, '<[^>]+>', ' ', 'g'),
-- '\s+',
-- ' ',
-- 'g'
-- )
summary
)).* from post) t
inner join ts_token_type('default') tt
on t.tokid = tt.tokid
where length(token) >= 2*1024;