Cool!
Will RUM support having ts_vector and bigint in the same index, like GIN does (utilizine btree_gin), then sorting by some 3rd timestamp-column?
This will enable queries like:
create table delivery( id BIGSERIAL primary key, fts_all TSVECTOR not null, folder_id BIGINT NOT NULL, sent TIMESTAMP not null, message varchar not null
);
SELECT del.id , del.sent FROM delivery del WHERE del.fts_all @@ to_tsquery('simple', 'hi:*') AND del.folder_id = ANY(ARRAY[2,3]::BIGINT[])
ORDER BY del.sent DESC LIMIT 101 OFFSET 0;
Having this query use one RUM-index with optimized sorting by timestamp would be extremely useful.
Thanks.
--
Andreas Joseph Krogh
CTO / Partner - Visena AS
Mobile: +47 909 56 963