__construct()
deleteFromIndex()
finalizeRebuildSet()
insertIntoIndex()
quickIndex()
setIsRebuild()
updateIndex()
$_sourceHandler
Manipulates the search index.
Proxies to the search source handler.
package | XenForo_Search |
---|
__construct(\XenForo_Search_SourceHandler_Abstract $sourceHandler)
\XenForo_Search_SourceHandler_Abstract
null
Search source handler. Uses default if not specified.
deleteFromIndex(string $contentType, array | integer $contentIds)
string
Type of content to remove
array
integer
An array of content IDs or 1 as an integer. May be an array of data records as well.
finalizeRebuildSet()
This function must be called to ensure that all records are updated together.
insertIntoIndex(string $contentType, integer $contentId, string $title, string $message, integer $itemDate, integer $userId, integer $discussionId, array $metadata)
string
Content type string
integer
ID of the content being indexed
string
Content title
string
Content message
integer
Timestamp of content
integer
ID of user content belongs to
integer
ID of discussion or other grouping container
array
Key value pairs of metadata to index.
quickIndex(string $contentType, array | integer $contentIds) : boolean
string
array
integer
One or more content IDs to index
boolean
setIsRebuild(boolean $rebuild)
If true, behavior may be modified to be less asynchronous.
boolean
updateIndex(string $contentType, integer $contentId, array $fieldUpdates)
string
Content type string
integer
ID of the content being indexed
array
Key-value pairs of fields to update. Metadata is not updatable.