ash_postgres v0.25.5 AshPostgres.Functions.TrigramSimilarity View Source
A filter predicate that filters based on trigram similarity.
See the postgres docs on https://www.postgresql.org/docs/9.6/pgtrgm.html for more information.
Requires the pg_trgm extension. Configure which extensions you have installed in your AshPostgres.Repo
At least one of the equals
, greater_than
and less_than
# Example
filter(query, [trigram_similarity: [:name, "geoff", [greater_than: 0.4]]])
Link to this section Summary
Functions
Callback implementation for Ash.Filter.Predicate.compare/2
.