* [WIP] break out a few contexts, start refactoring fast index modules * [WIP] more contexts, this time around slow indexing and downloads * [WIP] got all tests passing * [WIP] Added moduledocs * Built a genserver to rename old jobs on boot * Added a module naming check; moved things around * Fixed specs
16 lines
451 B
Elixir
16 lines
451 B
Elixir
defmodule Pinchflat.Media.MediaItemsSearchIndex do
|
|
@moduledoc """
|
|
The MediaItem fts5 search index. Not made to be directly interacted with,
|
|
but I figured it'd be better to have it in-app so it's not a mystery.
|
|
"""
|
|
|
|
use Ecto.Schema
|
|
|
|
@primary_key {:id, :id, autogenerate: true, source: :rowid}
|
|
schema "media_items_search_index" do
|
|
field :title, :string
|
|
field :description, :string
|
|
|
|
field :rank, :float, virtual: true
|
|
end
|
|
end
|