Match a string
Finds all rows whose text or tsvector value on the stated column
matches
the tsquery in query
.
Parameters
column
REQUIRED
objectThe column to filter on.
query
REQUIRED
stringThe Postgres tsquery string to filter with.
__namedParameters
Optional
objecttype
Optional
objectThe type of tsquery conversion to use on `query`.
config
REQUIRED
undefined | stringThe text search configuration to use.
const { data, error } = await supabase
.from('quotes')
.select('catchphrase')
.textSearch('catchphrase', `'fat' & 'cat'`, {
config: 'english'
})