SearchAsh.Source.ExtraText (search_ash v0.4.2)

Copy Markdown View Source

One derived text contribution to a record's searchable document — the target of an extra_text entry in a searchable block.

source is a record -> String.t() | [String.t()] function; weight is the rank class its words carry, :d (the weakest, and Postgres' default) unless you say otherwise.

Summary

Types

t()

@type t() :: %SearchAsh.Source.ExtraText{
  __spark_metadata__: term(),
  source: (struct() -> term()),
  weight: :a | :b | :c | :d
}