The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
run npx prettier
askdkc10cf805d8809
diff --git a/apps/docs/pages/guides/database/extensions/pgroonga.mdx b/apps/docs/pages/guides/database/extensions/pgroonga.mdxindex 63942af88e5..8692817957f 100644--- a/apps/docs/pages/guides/database/extensions/pgroonga.mdx+++ b/apps/docs/pages/guides/database/extensions/pgroonga.mdx@@ -101,6 +101,7 @@ The pgroonga index is used to retrive the result set:```## Full Text Search+The `&@~` operator performs full text search. It returns any matching results. Unlike `LIKE` operator, pgroonga can search any text that contains the keyword case insensitive.Take the following example:@@ -111,16 +112,18 @@ select * from memos where content &@~ 'groonga';```And the result:+```markdown- id | content+id | content----+------------------------------------------------------------------------- 2 | Groonga is a fast full text search engine that supports all languages.- 3 | PGroonga is a PostgreSQL extension that uses Groonga as index.- 4 | There is groonga command.+2 | Groonga is a fast full text search engine that supports all languages.+3 | PGroonga is a PostgreSQL extension that uses Groonga as index.+4 | There is groonga command.(3 rows)```### Match all search words+To find all memos where content contains BOTH of the words `postgres` and `pgroonga`, we can just use space to separate each words:{/* prettier-ignore */}@@ -129,14 +132,16 @@ select * from memos where content &@~ 'postgres pgroonga';```And the result:+```markdown- id | content+id | content----+----------------------------------------------------------------- 3 | PGroonga is a PostgreSQL extension that uses Groonga as index.+3 | PGroonga is a PostgreSQL extension that uses Groonga as index.(1 row)```### Match any search words+To find all memos where content contain ANY of the words `postgres` or `pgroonga`, use the upper case `OR`:{/* prettier-ignore */}@@ -145,15 +150,17 @@ select * from memos where content &@~ 'postgres OR pgroonga';```And the result:+```markdown- id | content+id | content----+----------------------------------------------------------------- 1 | PostgreSQL is a relational database management system.- 3 | PGroonga is a PostgreSQL extension that uses Groonga as index.+1 | PostgreSQL is a relational database management system.+3 | PGroonga is a PostgreSQL extension that uses Groonga as index.(2 rows)```### Search that matches words with negation+To find all memos where content contain the word `postgres` but not `pgroonga`, use `-` symbol:{/* prettier-ignore */}@@ -162,10 +169,11 @@ select * from memos where content &@~ 'postgres -pgroonga';```And the result:+```markdown- id | content+id | content----+--------------------------------------------------------- 1 | PostgreSQL is a relational database management system.+1 | PostgreSQL is a relational database management system.(1 row)```@@ -175,4 +183,4 @@ And the result:export const Page = ({ children }) => <Layout meta={meta} children={children} />-export default Page+export default Page\ No newline at end of file