m_search (zotonic_core v1.0.0-rc.11)
Link to this section Summary
Functions
Fetch the value for the key from a model source
search(S, Context)
deprecated
Perform a search. Pass page and pagelen as arguments for paging.
search_pager(S, Context)
deprecated
Link to this section Functions
Link to this function
m_get(Rest, Msg, Context)
-spec m_get(list(), zotonic_model:opt_msg(), z:context()) -> zotonic_model:return().
Link to this function
search(S, Context)
This function is deprecated. Use m_search:search/3.
-spec search(S, Context) -> #search_result{} when S :: {atom(), proplists:proplist()} | {binary(), map()} | {binary(), proplists:proplist()}, Context :: z:context().
Link to this function
search(Name, Args, Context)
-spec search(binary(), map(), z:context()) -> {ok, #search_result{}} | {error, term()}.
Link to this function
search_pager(S, Context)
This function is deprecated. Use m_search:search/3.
-spec search_pager(S, Context) -> #search_result{} when S :: {atom(), proplists:proplist()} | {binary(), map()} | {binary(), proplists:proplist()}, Context :: z:context().