Class search_api
Class search_api
- search_api implements search_api_interface
Abstract
Package: SMF
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Located at Sources/Class-SearchAPI.php
Package: SMF
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Located at Sources/Class-SearchAPI.php
public
boolean
|
#
supportsMethod( string $methodName, array $query_params = null )
Check whether the specific search operation can be performed by this API. The operations are the functions listed in the interface, if not supported they need not be declared |
public
boolean
|
|
public
integer
|
#
searchSort( string $a, string $b )
Callback function for usort used to sort the fulltext results. the order of sorting is: large words, small words, large words that are excluded from the search, small words that are excluded. |
public
|
#
prepareIndexes( string $word, array & $wordsSearch, array & $wordsExclude, boolean $isExcluded )
Callback while preparing indexes for searching |
public
mixed
|
|
public
|
#
postCreated( array & $msgOptions, array & $topicOptions, array & $posterOptions )
Callback when a post is created |
public
|
#
postModified( array & $msgOptions, array & $topicOptions, array & $posterOptions )
Callback when a post is modified |
public
|
|
public
|
|
public
|
|
public
mixed
|
#
searchQuery( array $query_params, array $searchWords, array $excludedIndexWords, array & $participants, array & $searchArray )
Callback for actually performing the search query |
public
string
|
$version_compatible
The maximum SMF version that this will work with. |
#
'2.1.999'
|
public
string
|
$min_smf_version
The minimum SMF version that this will work with. |
#
'2.1 RC1'
|
public
boolean
|
$is_supported
Whether or not it's supported |
#
true
|