SearchAsh.Source.Info (search_ash v0.2.2)

Copy Markdown View Source

Read a resource's searchable do … end configuration.

Summary

Functions

Archived resolver: nil, an attribute name (truthiness), or a record -> boolean.

The static language fixed for every row of this resource, or nil when the language is read per-row from language_attribute/1.

Attribute holding each row's language, defaulting to :language.

Whether language_attribute was set explicitly, as opposed to falling back to :language.

:remove or :archive — index behaviour when the source is destroyed.

Functions

archived(resource)

Archived resolver: nil, an attribute name (truthiness), or a record -> boolean.

fields(resource)

index(resource)

label_field(resource)

language(resource)

The static language fixed for every row of this resource, or nil when the language is read per-row from language_attribute/1.

language_attribute(resource)

Attribute holding each row's language, defaulting to :language.

Only meaningful when language/1 is nil; the two are mutually exclusive.

language_attribute_configured?(resource)

Whether language_attribute was set explicitly, as opposed to falling back to :language.

on_destroy(resource)

:remove or :archive — index behaviour when the source is destroyed.

source_type(resource)