Skip to content
Discussion options

You must be logged in to vote

Appwrite uses MariaDB's full-text search in boolean mode for the search query. When you make a query like:

Query.search("yearTags", ["1111"])

Appwrite sends a query to MariaDB like:

MATCH(yearTags) AGAINST("'1111*'" IN BOOLEAN MODE)

Note: The * at the end of your query value does a wildcard to support auto-complete.

source code

Since we're using MariaDB's full-text search, there are a few other things to keep in mind.

  1. Only words are indexed. A "word" is considered "any sequence of true word characters (letters, digits, and underscores) as a word." A word may also contain 1 apostrophe.
  2. Words less than 3 characters are ignored
  3. Words greater than 84 characters are ignored

I hope that giv…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@pitcairn1987
Comment options

@xuelink
Comment options

Answer selected by pitcairn1987
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
product / databases Fixes and upgrades for the Appwrite Database.
3 participants
Converted from issue

This discussion was converted from issue #5001 on January 13, 2023 17:18.