All of the examples in Postgres full text search documentation show creating an index by concatenating 2 columns, but I cannot solve how to do this with 3+ columns. Example from the Postgres docs:
to_tsvector(title || ' ' || body)
If I for example have another column that should be searched through called description, it seems that this syntax does not work as I expect:
to_tsvector(title || ' ' || body || ' ' || description)
It results in an index like this when I try it:
to_tsvector('english'::regconfig, ((("CompanyName" || ' '::text) || "Title") || ' '::text) || "Description")
There seems to be an extra set of parantheses wrapping the CompanyName and Title block.
Any ideas on what the syntax should be here? I'm having trouble finding any relevant documentation on using more columns with to_tsvector.