Functions for front-end search indexing
This is the code documentation for the SproutCMS project
Search documentation |
class SearchFunctions for front-end search indexing
Variables
Functions
private addWordsIndexunknown Search::addWordsIndex ( array $words [, int $relevancy_multiplier ] ); Accepts an array of relevant words and adds it into the index chosen with selectIndex() Usually should be run from within a transaction public cleanupunknown Search::cleanup ( mixed $reference_table ); Looks for syncronisation errors in the indexes and fixes them public clearIndexunknown Search::clearIndex ( ); Clears the index chosen with selectIndex() public indexHtmlunknown Search::indexHtml ( string $text [, float $relevancy_multiplier ] ); Splits up html, and adds the keywords which are found into the index chosen with selectIndex() Usually should be run from within a transaction public indexTextunknown Search::indexText ( string $text [, float $relevancy_multiplier ] ); Splits up text, and adds the keywords which are found into the index chosen with selectIndex() Usually should be run from within a transaction public paginateunknown Search::paginate ( mixed $curr_page , mixed $num_pages [, mixed $div_class ] ); Return HTML to perform pagination. $curr_page The current page number (1-based). $num_page The total number of pages. $div_class If provided, a wrapper div will be generated, with this class name. public queryarray Search::query ( string $query , array $search_handlers [, int $page [, int $num_per_page ]] ); Does a query for a term, against a set of search handlers public queryAndvoid Search::queryAnd ( mixed $val ); Set the 'query_and' parameter, which defines the handling of search terms public selectIndexvoid Search::selectIndex ( string $table , int $record_id ); Selects the currently active index |
| Powered by Pelzini, version 0.9.0 |
Documentation is made available under the
GNU Free Documentation License 1.2. Generated: Tuesday, 15th September, 2026 at 10:26 am |
|