View Source ExTeal.Search.SimpleSearch (ExTeal v0.27.0)

The default search adapter. Uses dynamic ecto queries to build a simple ILIKE comparison across the field specified by the search/2 function on the resource.

Summary

Functions

Build a dynamic ecto where statement by reducing over the resource's searchable fields and creating an ilike where expression

Functions

Link to this function

build(query, resource, map)

View Source
@spec build(Ecto.Query.t(), module(), map()) :: Ecto.Query.t()

Build a dynamic ecto where statement by reducing over the resource's searchable fields and creating an ilike where expression