- $sNormPhrase = $this->normalizeString($oPhrase->getPhrase());
- Debug::printVar('Phrase', $sNormPhrase);
-
- $oWordList = new SimpleWordList($sNormPhrase);
-
- foreach ($oWordList->getTokens() as $sToken) {
- $sTransToken = $this->makeStandardWord($sToken);
- if (!isset($aTokens[$sTransToken])) {
- $aTokens[$sTransToken] = array();
- }
- $aTokens[$sTransToken][$sToken] = $sToken;
- }
+ $sNormQuery .= ','.$this->normalizeString($oPhrase->getPhrase());
+ $sPhrase = $this->makeStandardWord($oPhrase->getPhrase());
+ Debug::printVar('Phrase', $sPhrase);