Query class for the Finder indexer package.
- Depuis
- 2.5
Method to get the base and similar term ids and, if necessary, suggested term data from the database. The terms ids are identified based on a 'like' match in MySQL and/or a common stem. If no term ids could be found, then we know that we will not be able to return any results for that term and we should try to find a similar term to use that we can match so that we can suggest the alternative search query to the user.
- Paramètres
-
- Renvoie
- Token A Token object.
- Depuis
- 2.5
- Exceptions
-
Exception | on database error. |
Références $c, $db, $i, $key, $query, $results, elseif, Joomla\Database\getDatabase(), et ParameterType\STRING.
processDynamicTaxonomy |
( |
|
$filters | ) |
|
|
protected |
Method to process the dynamic taxonomy input. The dynamic taxonomy input comes in the form of select fields that the user chooses from. The dynamic taxonomy input is processed AFTER the static taxonomy input because the dynamic options can be used to further narrow a static taxonomy filter.
- Paramètres
-
array | $filters | An array of taxonomy node ids. |
- Renvoie
- boolean True on success.
- Depuis
- 2.5
- Exceptions
-
Exception | on database error. |
Références $db, $filters, $groups, $query, $result, $results, Joomla\Database\getDatabase(), Factory\getUser(), et ArrayHelper\toInteger().
processStaticTaxonomy |
( |
|
$filterId | ) |
|
|
protected |
Method to process the static taxonomy input. The static taxonomy input comes in the form of a pre-defined search filter that is assigned to the search form.
- Paramètres
-
integer | $filterId | The id of static filter. |
- Renvoie
- boolean True on success, false on failure.
- Depuis
- 2.5
- Exceptions
-
Exception | on database error. |
Références $db, $filters, $groups, $params, $query, $result, $results, $return, Joomla\Database\getDatabase(), Factory\getUser(), et ArrayHelper\toInteger().
processString |
( |
|
$input, |
|
|
|
$lang, |
|
|
|
$mode |
|
) |
| |
|
protected |
Method to process the query input string and extract required, optional, and excluded tokens; taxonomy filters; and date filters.
- Paramètres
-
string | $input | The query input string. |
string | $lang | The query input language. |
string | $mode | The query matching mode. |
- Renvoie
- boolean True on success.
- Depuis
- 2.5
- Exceptions
-
Exception | on database error. |
Références $c, $date, $i, $input, $key, $lang, $mode, $modifier, Joomla\Database\Query\$offset, $params, $parts, $return, $suffix, $value, Text\_(), LanguageHelper\branchSingular(), elseif, ENT_QUOTES, Factory\getApplication(), Taxonomy\getBranchTitles(), Factory\getDate(), Taxonomy\getNodeByTitle(), ComponentHelper\getParams(), JDEBUG, null, StringHelper\strlen(), StringHelper\strpos(), StringHelper\strtolower(), StringHelper\substr(), et Helper\tokenize().