View Source Paradex
Ecto fragments for ParadeDB, currently under active development.
Installation
Add :paradex
to your list of dependencies in mix.exs
:
def deps do
[
{:paradex, "~> 0.1.0"}
]
end
Documentation is available on HexDocs and may also be generated with ExDoc.
Usage
- Create your Ecto schema.
- Create a search index in your migrations.
- Run search queries.
import Ecto.Query
import Paradex
alias MyApp.Call
alias MyApp.Repo
from(
c in Call,
where: c.transcript ~> "bus"
)
|> Repo.all()
More examples are available in the API docs.