SearchAsh.GlobalIndex.Info (search_ash v0.5.0)

Copy Markdown View Source

Read a resource's global_index do … end configuration.

Summary

Functions

Name of the generated read action.

Language used to stem the query when the language argument is omitted.

Whether :global_search also matches the label by trigram similarity/substring.

Minimum trigram similarity for a fuzzy label match.

Attribute holding the pre-stemmed tokens.

Synonym map to expand the query with for language (see SearchAsh.Synonyms.resolve/2). %{} when unset, so callers can pass the result straight to SearchCore.tsquery/3.

Functions

action(resource)

Name of the generated read action.

default_language(resource)

Language used to stem the query when the language argument is omitted.

fuzzy?(resource)

Whether :global_search also matches the label by trigram similarity/substring.

fuzzy_threshold(resource)

Minimum trigram similarity for a fuzzy label match.

search_text_attribute(resource)

Attribute holding the pre-stemmed tokens.

synonyms(resource, language)

Synonym map to expand the query with for language (see SearchAsh.Synonyms.resolve/2). %{} when unset, so callers can pass the result straight to SearchCore.tsquery/3.