I am new to Postgres and came across full text search feature. I want to achieve the following:
- Specify some table and fields to search on.
- When the user search for some text, it should be searched on above specified table fields.
e.g.
CREATE TABLE customer (name text)
CREATE TABLE address (city text)
Search for 'Ram' should find both name 'Ram*' and city 'Ram*' (may be max 10 records).
Open point: Ranking.
I understand it might not be straighfoward, but if you can provide example statements to achieve similar?