Packages

A search deployment helper library. Aims to easy deployment and monitoring of distributed Manticore & Sphinx in a Linux environment

Current section

Files

Jump to
khafra_search lib search_behaviour_sql.ex
Raw

lib/search_behaviour_sql.ex

defmodule Khafra.SearchBehaviourSQL do
@moduledoc """
A behaviour implemented to allow automatic inserts after database updates to
real time search tables.
This version supports ~SQL library
"""
@doc "tables name in atom form"
@callback table_name :: atom()
@doc "A list of fields to index"
@callback index_fields :: Keyword.t()
end