SearchAsh.Preparations.Search (search_ash v0.4.2)

Copy Markdown View Source

Preparation generated by SearchAsh for the :search read action. Builds a tsquery from the query + language arguments (same SearchCore pipeline used at index time) and filters on the 'simple' tsvector of the search-text column.

A blank/absent query lists all rows (unranked); a non-blank one whose tokens are all eliminated (stopwords, too short) returns no rows.

Summary

Functions

init(opts)

Callback implementation for Ash.Resource.Preparation.init/1.

supports(opts)

Callback implementation for Ash.Resource.Preparation.supports/1.