View Source Haystack.Index.Attr behaviour (Haystack v0.1.0)
A behaviour for defining a store attr.
Link to this section Summary
Link to this section Types
@type opts() :: Keyword.t()
Link to this section Callbacks
@callback delete(Haystack.Index.t(), Haystack.Index.Document.t(), opts()) :: Haystack.Index.t()
Delete an attr.
@callback insert(Haystack.Index.t(), Haystack.Index.Document.t(), opts()) :: Haystack.Index.t()
Insert an attr.
The attr key.
Link to this section Functions
Return the default attrs.