I am not sure if I have worded the question correctly. But how can we search a string in POSTGRES such that the following results can be achieved.
String to search:
Google Pvt Ltd
Data in table
symbol, company name
GOOG, Google Ltd
FACEBOOK, Facebook Corp
APPLE, Apple Inc
DELL, Dell Ltd
How do I return search result
GOOG,Google Ltd
, logic being it returns results based on the maximum words matched.
I am looking into the full text search option in POSTGRES and I can understand the tokenization using to_tsvector. But I'm not sure how to proceed after this. Is this type of searching possible?