Uni Ecto Plugin //top\\ May 2026

def changeset(post, attrs) do post |> Ecto.Changeset.cast(attrs, [:title, :content, :tags]) |> update_search_vector() end

test "search finds relevant posts" do results = Blog.search_posts("elixir search") assert length(results) > 0 assert Enum.any?(results, &String.contains?(&1.title, "Elixir")) end uni ecto plugin

timestamps() end