Vector search vs full-text search
SurrealDB supports full-text search and Vector Search. Full-text search (FTS) involves indexing documents using an FTS index that makes use of an analyzer that breaks down text using tokenizers and filters.

The image above is a Google search for the word “lead”, a word with more than one definition (and pronunciation!). Lead can mean 'taking initiative', as well as the chemical element with the symbol 'Pb'.
Let's consider this in the context of a database of liquid samples which note down harmful chemicals that are found in them.
In the example below, we have a table called liquids with a sample field and a content field. Next, we can define a full-text index on the content field by first defining an analyzer called liquid_analyzer. We can then define an index on the content field in the liquid table and set our custom analyzer (liquid_analyzer)to search through the index.
Then, using the select statement to retrieve all the samples containing the chemical lead will also bring up samples that mention the word lead.
If you read through the content of the tap water sample, you’ll notice that it does not contain any lead in it but it has the mention of the word lead under “The team lead by Dr. Rose…” which means that the team was guided by Dr. Rose.
The search pulled up both the records although the tap water sample had no lead in it. This example shows us that while full-text search does a great job at matching query terms with indexed documents, on its own it may not be the best solution for use cases where the query terms have deeper context and scope for ambiguity.
For vector-side retrieval on the same story, see Similarity search.
Hybrid search functions
As mentioned above, full-text search and vector search can both be used in SurrealDB. In addition, some functions exist inside the search:: namespace that take both full-text and vector arguments in order to produce a single unified output.
Here is an example of one of them called search::rrf() which does this using an algorithm called reciprocal rank fusion.