module search
Search predicates module containing text and token matching predicates.
Classes
Functions
Supports fuzzy searches based on the Levenshtein Distance, or Edit Distance algorithm (case sensitive).
Example: the search expression is fuzzy("david", 1)
- the inserted value “david” is found
- the inserted value “dawid” is found
- the inserted value “davids” is found
- the inserted value “dewid” is not found
Supports finding words which are a within a specific distance away (case insensitive).
Example: the search expression is phrase("Hello world", 2)
- the inserted value “Hello world” is found
- the inserted value “Hello wild world” is found
- the inserted value “Hello big wild world” is found
- the inserted value “Hello the big wild world” is not found
- the inserted value “Goodbye world” is not found.
prefix
(value)Search for a specific prefix at the beginning of the text property targeted.
regex
(value)Search for this regular expression inside the text property targeted.
token
(value)Search any instance of a certain token within the text property targeted.
Supports fuzzy searches based on the Levenshtein Distance, or Edit Distance algorithm after having tokenized the data stored (case insensitive).
Example: the search expression is tokenFuzzy(“david”, 1)
- the inserted value “david” is found
- the inserted value “dawid” is found
- the inserted value “hello-dawid” is found
- the inserted value “dewid” is not found
tokenPrefix
(value)Search any instance of a certain token prefix withing the text property targeted.
tokenRegex
(value)Search any instance of the provided regular expression for the targeted property.