I attempting to create a query to find the name other in my sql database. I have a basic like search as follow and would like to use a full text search instead.
Like Query
SELECT g.*, COUNT(*) OVER() AS total
FROM group AS g
WHERE UPPER(g.name) LIKE UPPER('oth%')
Full Text Query
SELECT g.*, COUNT(*) OVER() AS total
FROM group AS g
WHERE to_tsvector(g.name) @@ to_tsquery('oth:*')
It appears that my full text returns 0 unlike my like search does. Why is this so when it appears that both queries appear to be doing similar searches