SearchAsh.Info (search_ash v0.1.0)

Copy Markdown View Source

Read a resource's search do … end configuration.

Summary

Functions

Name of the generated read action.

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

Attributes indexed for search.

Configured GIN index name, or nil to derive it from the table.

Attribute holding each row's language.

Whether the search matches the query tokens as prefixes (search-as-you-type).

Whether results are ranked by ts_rank (and the :search_rank calc is exposed).

Attribute the stemmed tokens are stored in.

Functions

action(resource)

Name of the generated read action.

default_language(resource)

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

fields(resource)

Attributes indexed for search.

index_name(resource)

Configured GIN index name, or nil to derive it from the table.

language_attribute(resource)

Attribute holding each row's language.

prefix?(resource)

Whether the search matches the query tokens as prefixes (search-as-you-type).

rank?(resource)

Whether results are ranked by ts_rank (and the :search_rank calc is exposed).

search_text_attribute(resource)

Attribute the stemmed tokens are stored in.