Method | Description | |
---|---|---|
buildTerm ( array $terms ) : array | Build the search term | |
execSearch ( mixed $term, integer $limit = 20, integer $offset ) : array | Execute actual search | |
getStartsWith ( string $term, string $language = '', integer $limit = 10 ) : array | Get preview searches that start with . | |
getSynonyms ( string $term ) : array | Get synonyms | |
getTotal ( string $term ) : integer | Get total results | |
save ( array $item ) | Save a search | |
search ( string $term, integer $limit = 20, integer $offset ) : array | Search The actual search will be performed by the execSearch() method. | |
statusIndex ( string $module, array $otherIds, boolean $active = true ) | Deactivate an index (no longer has to be searched) | |
validateSearch ( ) | Validate searches: check everything that has been marked as 'inactive', if should still be inactive |
public static execSearch ( mixed $term, integer $limit = 20, integer $offset ) : array | ||
$term | mixed | The search term (simple search) or the fields to search for (advanced search - please note that the field names may not be consistent throughout several modules). |
$limit | integer | The number of articles to get. |
$offset | integer | The offset. |
return | array |
public static getSynonyms ( string $term ) : array | ||
$term | string | The term to get synonyms for. |
return | array |
public static search ( string $term, integer $limit = 20, integer $offset ) : array | ||
$term | string | The search term (simple search) or the fields to search for (advanced search - please note that the field names may not be consistent throughout several modules). |
$limit | integer | The number of articles to get. |
$offset | integer | The offset. |
return | array |
public static validateSearch ( ) |