Only relevant for text and tsvector columns. Match only rows where column
matches the query string in query
.
The text or tsvector column to filter on
The query text to match with
Named parameters
response = (
supabase.table("texts")
.select("content")
.text_search("content", "'eggs' & 'ham'", options=\{"config": "english"\})
.execute()
)
response = (
supabase.table("quotes")
.select("catchphrase")
.text_search(
"catchphrase",
"'fat' & 'cat'",
options=\{"type": "plain", "config": "english"\},
)
.execute()
)
response = (
supabase.table("quotes")
.select("catchphrase")
.text_search(
"catchphrase",
"'fat' & 'cat'",
options=\{"type": "phrase", "config": "english"\},
)
.execute()
)
response = (
supabase.table("quotes")
.select("catchphrase")
.text_search(
"catchphrase",
"'fat or cat'",
options=\{"type": "websearch", "config": "english"\},
)
.execute()
)