class base
optional base class for search plugins providing simple caching based on ACM and functions to retrieve ignore_words and synonyms
Properties
$ignore_words | ||
$match_synonym | ||
$replace_synonym |
Methods
search_backend($error)
|
||
int |
obtain_ids(string $search_key, int $result_count, array $id_ary, int $start, int $per_page, string $sort_dir)
Retrieves cached search results |
|
null |
save_ids(string $search_key, string $keywords, array $author_ary, int $result_count, array $id_ary, int $start, string $sort_dir)
Caches post/topic ids |
|
destroy_cache($words, $authors = false)
Removes old entries from the search results table and removes searches with keywords that contain a word in $words. |
Details
at line 33
public
search_backend($error)
at line 51
public int
obtain_ids(string $search_key, int $result_count, array $id_ary, int $start, int $per_page, string $sort_dir)
Retrieves cached search results
at line 132
public null
save_ids(string $search_key, string $keywords, array $author_ary, int $result_count, array $id_ary, int $start, string $sort_dir)
Caches post/topic ids
at line 241
public
destroy_cache($words, $authors = false)
Removes old entries from the search results table and removes searches with keywords that contain a word in $words.