Plugin Events
onJSolrBrowseBeforeQuery
Description
Fires before the browse query is executed.
Parameters
- \Solarium\QueryType\Select\Query\Query
$queryThe browse query. - JObject
$stateThe calling model's state.
Return
None
onJSolrBrowseAfterQuery
Description
Fires after the browse query is executed.
Parameters
- \Solarium\QueryType\Select\Result
$responseThe browse response. - JObject
$stateThe calling model's state.
Return
None
onJSolrSearchBeforeQuery
Description
Fires before the search query is executed.
Parameters
- \Solarium\QueryType\Select\Query\Query
$queryThe search query. - JObject
$stateThe calling model's state.
Return
None
onJSolrSearchAfterQuery
Description
Fires after the search query is executed.
Parameters
- \Solarium\QueryType\Select\Result
$responseThe search response. - JObject
$stateThe calling model's state.
Return
None
onJSolrSearchPrepareData
Description
Fires for each record which is retrieved from the index.
Parameters
- \Solarium\QueryType\Update\Query\Document\Document
$documentA single record from the index.
Return
None
onJSolrIndex
Description
Fires the indexing event.
Derived classes should override the index() method when implementing a custom index task.
Parameters
None
Return
None
onJSolrPurge
Description
Fires the purging event.
Derived classes should override the purge() method when implementing a custom purge task.
Parameters
None
Return
None
onJSolrIndexUpdate
Description
Fires the index update event.
The index update event is used to index items that have been created or modified since the index date. It should be used for content that are being indexed from an external source. For content that implements Joomla! content events, use onContentAfterSave, onContentAfterDelete and onContentStateChanged instead.
Parameters
None
Return
None
onJSolrAfterSave
Description
Fires when an item is saved.
Parameters
- string
$contextThe context of the item being saved. - StdClass
$itemThe item being saved (must have an id property). - bool
$isNewTrue if the item is new, false otherwise.
Return
None
onJSolrAfterDelete
Description
Fires when an item is deleted.
Parameters
- string
$contextThe context of the item being saved. - StdClass
$itemThe item being deleted (must have an id property).
Return
None
onJSolrChangeState
Description
Fires when the state of an item changes.
Parameters
- string
$contextThe context of the changed items. - array
$pksAn array of ids of the changed items. - int
$valueThe new state.
Return
None