Class custom_search
Used for the "custom search index" option Class custom_search
- search_api implements search_api_interface
- custom_search
Package: SMF
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Located at Sources/SearchAPI-Custom.php
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Located at Sources/SearchAPI-Custom.php
public
|
|
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 |
postRemoved(),
searchQuery(),
topicsMoved(),
topicsRemoved()
|
protected
array
|
$indexSettings
Index settings |
#
array()
|
protected
array
|
$bannedWords
An array of banned words |
#
array()
|
protected
integer|null
|
$min_word_length
Minimum word length (null for no minimum) |
#
null
|
protected
array
|
$supported_databases
Which databases support this method |
#
array('mysql', 'postgresql')
|
$is_supported,
$min_smf_version,
$version_compatible
|