I know about full-text search, but that only matches your query against individual words. I want to select strings that contain a word that starts with words in my query. For example, if I search:
appl
the following should match:
a really nice application
apples are cool
appliances
since all those strings contains words that start with appl
. In addition, it would be nice if I could select the number of words that match, and sort based on that.
How can I implement this in PostgreSQL?