search_backend
public class search_backend
| Field Summary | |
|---|---|
| mixed | |
| mixed | |
| mixed | |
| Method Summary | |
|---|---|
| void | __construct(mixed error) |
| void | destroy_cache(mixed words, bool authors) Removes old entries from the search results table and removes searches with keywords that contain a word in $words. |
| void | Retrieves a language dependend list of words that should be ignored by the search |
| void | Stores a list of synonyms that should be replaced in $this->match_synonym and $this->replace_synonym and caches them |
| int | obtain_ids(mixed search_key, mixed result_count, mixed id_ary, mixed start, mixed per_page, mixed sort_dir, int &$result_count, array &$id_ary) Retrieves cached search results |
| void | save_ids(mixed search_key, mixed keywords, mixed author_ary, mixed result_count, mixed id_ary, mixed start, mixed sort_dir, array &$id_ary) Caches post/topic ids |
public mixed $ignore_words = array()
public mixed $match_synonym = array()
public mixed $replace_synonym = array()
public void __construct(mixed error)
public void destroy_cache(mixed words, bool authors)
Removes old entries from the search results table and removes searches with keywords that contain a word in $words.
public void get_ignore_words()
Retrieves a language dependend list of words that should be ignored by the search
public void get_synonyms()
Stores a list of synonyms that should be replaced in $this->match_synonym and $this->replace_synonym and caches them
public int obtain_ids(mixed search_key, mixed result_count, mixed id_ary, mixed start, mixed per_page, mixed sort_dir, int &$result_count, array &$id_ary)
Retrieves cached search results
public void save_ids(mixed search_key, mixed keywords, mixed author_ary, mixed result_count, mixed id_ary, mixed start, mixed sort_dir, array &$id_ary)
Caches post/topic ids
search_backend optional base class for search plugins providing simple caching based on ACM and functions to retrieve ignore_words and synonyms