Functions
Generate a search block.
do_search_block(array $map) : array
Parameters
$map
arraySearch block parameters
Returns
arraySearch block template parameters
Find autocomplete suggestions to complete a partially-typed search request.
find_search_suggestions(string $request, \ID_TEXT $search_type = '') : array
Parameters
$request
stringSearch request
$search_type
\ID_TEXTThe search type it is for (blank: N/A)
Returns
arrayList of suggestions
Get minimum search length for MySQL.
get_minimum_search_length() : integer
Returns
integerSearch length
Find whether a phrase is too small for fulltext search.
is_under_radar(string $test) : boolean
Parameters
Returns
booleanWhether it is
Classes, interfaces, and traits
FieldsSearchHook¶
Base class for catalogue search / custom content fields search.
« More »
Constants
MAXIMUM_AUTOCOMPLETE_SUGGESTIONS
MAXIMUM_AUTOCOMPLETE_SUGGESTIONS = intval(get_option('maximum_autocomplete_suggestions'))
MINIMUM_AUTOCOMPLETE_LENGTH
MINIMUM_AUTOCOMPLETE_LENGTH = intval(get_option('minimum_autocomplete_length'))
MINIMUM_AUTOCOMPLETE_PAST_SEARCH
MINIMUM_AUTOCOMPLETE_PAST_SEARCH = intval(get_option('minimum_autocomplete_past_search'))