diff --git a/content/200-orm/200-prisma-client/100-queries/060-full-text-search.mdx b/content/200-orm/200-prisma-client/100-queries/060-full-text-search.mdx index 822ae8916f..4b98326b22 100644 --- a/content/200-orm/200-prisma-client/100-queries/060-full-text-search.mdx +++ b/content/200-orm/200-prisma-client/100-queries/060-full-text-search.mdx @@ -148,14 +148,15 @@ Here's how the following queries would match that text: | `+fox +dog` | Yes | The text contains 'fox' and 'dog' | | `+dog +fox` | Yes | The text contains 'dog' and 'fox' | | `+dog -cat` | Yes | The text contains 'dog' but not 'cat' | -| `-cat` | Yes | 'cat' is not in the text | +| `-cat` | No | The minus operator cannot be used on its own (see note below) | | `fox dog` | Yes | The text contains 'fox' or 'dog' | -| `-cat -pig` | No | The text does not contain 'cat' or 'pig' | | `quic*` | Yes | The text contains a word starting with 'quic' | | `quick fox @2` | Yes | 'fox' starts within a 2 word distance of 'quick' | | `fox dog @2` | No | 'dog' does not start within a 2 word distance of 'fox' | | `"jumps over"` | Yes | The text contains the whole phrase 'jumps over' | +> **Note**: The - operator acts only to exclude rows that are otherwise matched by other search terms. Thus, a boolean-mode search that contains only terms preceded by - returns an empty result. It does not return “all rows except those containing any of the excluded terms.” + MySQL also has `>`, `<` and `~` operators for altering the ranking order of search results. As an example, consider the following two records: **1. "The quick brown fox jumps over the lazy dog"**