Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 795 Bytes

File metadata and controls

29 lines (20 loc) · 795 Bytes

EctoTsvector

Add vector search to your application with Ecto, tsvector, and Postgres.

Installation

Install by adding ecto_tsvector to your list of dependencies in mix.exs:

def deps do
  [
    {:ecto_tsvector, "~> 0.1.0"}
  ]
end

Full documentation at https://hexdocs.pm/ecto_tsvector.

This library uses the regconfig type in Postgres. Add support for this type by adding the following config for your repo:

config :my_app, MyApp.Repo, types: EctoTsvector.PostgrexTypes

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/ecto_tsvector.