Add vector search to your application with Ecto, tsvector, and Postgres.
Install by adding ecto_tsvector to your list of dependencies in mix.exs:
def deps do
[
{:ecto_tsvector, "~> 0.1.0"}
]
endFull 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.PostgrexTypesDocumentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/ecto_tsvector.