Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
SubmissionSearchIndex Class Reference
Inheritance diagram for SubmissionSearchIndex:
MonographSearchIndex

Static Public Member Functions

static _loadStopwords ()
 
static filterKeywords ($text, $allowWildcards=false)
 

Detailed Description

Class to maintain a submission search index.

Definition at line 25 of file SubmissionSearchIndex.inc.php.

Member Function Documentation

static SubmissionSearchIndex::_loadStopwords ( )
static

Return list of stopwords. FIXME: Should this be locale-specific?

Returns
array with stopwords as keys

Definition at line 67 of file SubmissionSearchIndex.inc.php.

static SubmissionSearchIndex::filterKeywords (   $text,
  $allowWildcards = false 
)
static

Split a string into a clean array of keywords

Parameters
$textstring
$allowWildcardsboolean
Returns
array of keywords

Definition at line 32 of file SubmissionSearchIndex.inc.php.

References Core\cleanVar(), Config\getVar(), String\regexp_replace(), String\regexp_split(), String\strlen(), String\strtolower(), and String\substr().


The documentation for this class was generated from the following file: