Only relevant for text and tsvector columns. Match only rows where column
matches the query string in query
.
For more information, see Postgres full text search.
The text or tsvector column to filter on
The query text to match with
The type of text search to use. Defaults to `TextSearchType.NONE`.
The text search configuration to use.
supabase.from("quotes").select(columns = Columns.list("catchphrase")) \{
filter \{
textSearch(column = "catchphrase", query = "'fat' & 'cat'", config = "english", type = TextSearchType.YOUR_TYPE)
\}
\}
supabase.from("quotes").select(columns = Columns.list("catchphrase")) \{
filter \{
or \{
textSearch(column = "catchphrase", query = "'fat' & 'cat'", config = "english", type = TextSearchType.YOUR_TYPE)
textSearch(column = "author", query = "'fat' & 'cat'", config = "english", type = TextSearchType.YOUR_TYPE)
\}
\}
\}
supabase.from("quotes").select(columns = Columns.list("catchphrase")) \{
filter \{
textSearch(column = "catchphrase", query = "'fat' & 'cat'", config = "english", type = TextSearchType.PLAINTO)
\}
\}
supabase.from("quotes").select(columns = Columns.list("catchphrase")) \{
filter \{
textSearch(column = "catchphrase", query = "'fat' & 'cat'", config = "english", type = TextSearchType.PHRASETO)
\}
\}
supabase.from("quotes").select(columns = Columns.list("catchphrase")) \{
filter \{
textSearch(column = "catchphrase", query = "'fat' & 'cat'", config = "english", type = TextSearchType.WEBSEARCH)
\}
\}