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
- FinderIndexerToken A FinderIndexerToken object.
- Depuis
- 2.5
- Exceptions
-
Exception | on database error. |
Références $db, $i, $key, $query, et $results.
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, et $results.
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 $date, $i, $input, $key, $lang, $mode, $modifier, $offset, $parts, $return, $suffix, $value, FinderHelperLanguage\branchSingular(), elseif, ENT_QUOTES, FinderIndexerTaxonomy\getBranchTitles(), FinderIndexerTaxonomy\getNodeByTitle(), JDEBUG, null, et FinderIndexerHelper\tokenize().