Skip to content
Zotonic
  • Start
  • Guides
  • Reference
  • Releases

Live search

Search across all Zotonic content

Type at least two characters

Results are matched against titles, summaries and topics as you type.

Notifications
  • Reference
  • Backend developer
  • Search and discovery
  • Notification
  • Query

observe_rsc_query_item/2

Send a notification that the resource ‘id’ is added to the query query_id.

Type:

notify

Return:

return value is ignored

#rsc_query_item{} properties:

  • query_id: m_rsc:resource_id()
  • match_id: m_rsc:resource_id()

Edit on GitHub

Related documentation

Notifications

observe_search_query/2

Map a custom search term to a #search_sql_term{} record.

Notifications

observe_search_query_term/2

Map a custom search term to a #search_sql_term{} record.

Notifications

observe_search_query_normalize_value/2

Normalize a search value for queries and indexing. An example is the normalization of texts by transliteration and removal of accents.

Notifications

observe_auth_identity_types/3

Return the list of identity types that allow somebody to logon and become an active user of the system. Defaults to [ username_pw ]. In the…

Notifications

observe_custom_pivot/2

Add custom pivot fields to a resource’s search index (map) Result is a single tuple or list of tuples {pivotname, props} , where…

Notifications

observe_media_identify_extension/2

Try to find a filename extension for a mime type (example: <<".jpg">> )

Notifications

observe_survey_get_handlers/3

Fetch list of handlers for survey submits.

Notifications

observe_rsc_get/3

Resource is read, opportunity to add computed fields Used in a foldr with the read properties as accumulator.

Notifications

observe_pivot_rsc_data/3

Fold over the resource props map to extend/remove data to be pivoted

GitHub © 2026 Zotonic