mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-30 14:57:59 +01:00
11 lines
386 B
Elixir
11 lines
386 B
Elixir
defmodule PhilomenaQuery.SearchIndex do
|
|
# Returns the index name for the index.
|
|
# This is usually a collection name like "images".
|
|
@callback index_name() :: String.t()
|
|
|
|
# Returns the mapping and settings for the index.
|
|
@callback mapping() :: map()
|
|
|
|
# Returns the JSON representation of the given struct for indexing in OpenSearch.
|
|
@callback as_json(struct()) :: map()
|
|
end
|