[][src]Module triforce_rs::functions

Re-exports

pub use concat_ws_mod::*;

Modules

concat_ws_mod

Structs

show_limit

Returns the current similarity threshold used by the % operator. This sets the minimum similarity between two words for them to be considered similar enough to be misspellings of each other, for example (deprecated).

Functions

array_to_string

Concats all the strings in the array, using the supplied delimiter, so they can be used in a search query.

concat_null

Concats all the strings in the array, using the supplied delimiter, so they can be used in a search query.

set_limit[
Deprecated
]

Sets the current similarity threshold that is used by the % operator. The threshold must be between 0 and 1 (default is 0.3). Returns the same value passed in (deprecated).

show_trgm

Returns an array of all the trigrams in the given string. (In practice this is seldom useful except for debugging.)

similarity

Returns a number that indicates how similar the two arguments are. The range of the result is zero (indicating that the two strings are completely dissimilar) to one (indicating that the two strings are identical).

strict_word_similarity

Same as word_similarity(text, text), but forces extent boundaries to match word boundaries. Since we don't have cross-word trigrams, this function actually returns greatest similarity between first string and any continuous extent of words of the second string.

word_similarity

Returns a number that indicates the greatest similarity between the set of trigrams in the first string and any continuous extent of an ordered set of trigrams in the second string. For details, see the explanation below.

Type Definitions

ArrayToString
ConcatNull
SetLimit
ShowTrgm
Similarity
StrictWordSimilarity
WordSimilarity