src/SearchBundle/objects/db/TShopSearchFieldWeight.class.php
protected function InsertSoundex($iArticleId, $sOriginalWord, $iCount, $dOriginalWeight)
    {
        $sSoundEx = TdbShopSearchIndexer::GetSoundexForWord($sOriginalWord);

        $sSoundEx = TdbShopSearchIndexer::PrepareSearchWord($sSoundEx); // clean and cut the word
        if (!empty($sSoundEx) && '0000' != $sSoundEx) {
            $oShop = &$this->GetFieldShop();
            // now add to index
            $sIndexTable = TdbShopSearchIndexer::GetIndexTableNameForIndexLength(mb_strlen($sSoundEx));
            $dWeight = $dOriginalWeight * $oShop->fieldShopSearchSoundexPenalty;
            $this->AddIndexToTable($sIndexTable, $iArticleId, $sSoundEx, $iCount, $dWeight);
        }
    }
protected function InsertSoundex($iArticleId, $sOriginalWord, $iCount, $dOriginalWeight)
    {
        $sSoundEx = TdbShopSearchIndexer::GetSoundexForWord($sOriginalWord);

        $sSoundEx = TdbShopSearchIndexer::PrepareSearchWord($sSoundEx); // clean and cut the word
        if (!empty($sSoundEx) && '0000' != $sSoundEx) {
            $oShop = &$this->GetFieldShop();
            // now add to index
            $sIndexTable = TdbShopSearchIndexer::GetIndexTableNameForIndexLength(mb_strlen($sSoundEx));
            $dWeight = $dOriginalWeight * $oShop->fieldShopSearchSoundexPenalty;
            $this->AddIndexToTable($sIndexTable, $iArticleId, $sSoundEx, $iCount, $dWeight);
        }
    }
protected function InsertSoundex ( $ iArticleId , $ sOriginalWord , $ iCount , $ dOriginalWeight ) { $ sSoundEx = TdbShopSearchIndexer :: GetSoundexForWord ( $ sOriginalWord ) ; $ sSoundEx = TdbShopSearchIndexer :: PrepareSearchWord ( $ sSoundEx ) ; // clean and cut the word if ( ! empty ( $ sSoundEx ) && '0000' != $ sSoundEx ) { $ oShop = & $ this -> GetFieldShop ( ) ; // now add to index $ sIndexTable = TdbShopSearchIndexer :: GetIndexTableNameForIndexLength ( mb_strlen ( $ sSoundEx ) ) ; $ dWeight = $ dOriginalWeight * $ oShop -> fieldShopSearchSoundexPenalty ; $ this -> AddIndexToTable ( $ sIndexTable , $ iArticleId , $ sSoundEx , $ iCount , $ dWeight ) ; } }
insert soundex for word.

@param string $sOriginalWord
@param float  $dOriginalWeight
insert soundex for word .