I have to query for example zips_of_state,state_names,county_names from a state table
select zips_of_state,state_names,county_names
from state
where zips_of_state='something'
OR state_names='something'
OR county_names ='something';
Now I am indexing as
CREATE INDEX ind_zips
ON state
USING gin(to_tsvector('english', zips_of_state)); -- this works
But how do I do multi indexing like
CREATE INDEX ind_zips
ON state
-- this doesn't work
USING gin(to_tsvector('english', zips_of_state)),state_names, county_names ;
CREATE INDEX ind_zips ON state USING gin(to_tsvector('english', zips_of_state),state_names, county_names);?