FinderIndexerQuery::getTokenData
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.
Signature
protected function getTokenData(FinderIndexerToken
$tokenĀ )
Parameters
-
$token
- A FinderIndexerToken object.
Returns
- FinderIndexerToken
- A FinderIndexerToken object.
Errors/Exceptions
-
Exception
- on database error.
Tasks
Line | Task |
---|---|
1319 | PostgreSQL doesn't support SOUNDEX out of the box |