I want to write something like
create index on thread(unnest(tags));
But I get the error
ERROR: index expression cannot return a set
Basically I want to find all docs that have the tagid of 2 in them (see my other question for details) and I'm assuming the below acts like a blob(I won't find [1,2] because 1 isn't in my query)
create index on thread(tags);