Module m_search

Search model, used as an interface to the search functions of modules etc.

Copyright © 2009-2021 Marc Worrell

Behaviours: zotonic_model.

Authors: Marc Worrell (marc@worrell.nl).

Description

Search model, used as an interface to the search functions of modules etc.

Function Index

m_get/3Fetch the value for the key from a model source.
search/2(Deprecated.)
search/3Perform a search.
search_pager/2(Deprecated.)

Function Details

m_get/3

m_get(Rest::list(), Msg::zotonic_model:opt_msg(), Context::z:context()) -> zotonic_model:return()

Fetch the value for the key from a model source

search/2

search(S, Context) -> #search_result{}

This function is deprecated: Use m_search:search/3

search/3

search(Name::binary(), Args::map(), Context::z:context()) -> {ok, #search_result{}} | {error, term()}

Perform a search. Pass page and pagelen as arguments for paging.

search_pager/2

search_pager(S, Context) -> #search_result{}

This function is deprecated: Use m_search:search/3


Generated by EDoc