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

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.

Link to this section Summary

Functions

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

Link to this section Functions

Link to this function

build(query, resource, map)

View Source

Specs

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