SearchAsh.Source.IndexAttribute (search_ash v0.4.2)

Copy Markdown View Source

One extra index column filled from a source record — the target of an index_attribute entry in a searchable block.

source is either an attribute name (the value is read from the record, and the sync watches that attribute so a change to it alone still re-indexes) or a record -> value function (opaque, so the document is rebuilt on every write).

Summary

Types

t()

@type t() :: %SearchAsh.Source.IndexAttribute{
  __spark_metadata__: term(),
  name: atom(),
  source: atom() | (struct() -> term())
}