Share » Forums » Developer » Search: Entries could not be found -...

Search: Entries could not be found - EZ Version 3.5.1

Search: Entries could not be found - EZ Version 3.5.1

Thursday 23 August 2007 11:56:22 pm - 4 replies

Modified on Friday 24 August 2007 2:56:53 am by Stefanie Salbaum

Author Message

Bruce Morrison

Friday 24 August 2007 1:00:45 am

Hi Stefanie

There is actually some code in the search that will exclude frequent words.

From 3.5.2

// Loop every word and insert result in temporary table

            include_once( 'kernel/classes/ezcontentobjecttreenode.php' );
            $showInvisibleNodesCond =& eZContentObjectTreeNode::createShowInvisibleSQLString( true );

            foreach ( $searchPartsArray as $searchPart )
            {
                $stopWordThresholdValue = 100;
                if ( $ini->hasVariable( 'SearchSettings', 'StopWordThresholdValue' ) )
                    $stopWordThresholdValue = $ini->variable( 'SearchSettings', 'StopWordThresholdValue' );

                $stopWordThresholdPercent = 60;
                if ( $ini->hasVariable( 'SearchSettings', 'StopWordThresholdPercent' ) )
                    $stopWordThresholdPercent = $ini->variable( 'SearchSettings', 'StopWordThresholdPercent' );

                $searchThresholdValue = $totalObjectCount;
                if ( $totalObjectCount > $stopWordThresholdValue )
                {
                    $searchThresholdValue = (int)( $totalObjectCount * ( $stopWordThresholdPercent / 100 ) );
                }

                // do not search words that are too frequent
                if ( $searchPart['object_count'] < $searchThresholdValue )

You need to tweak the StopWord settings in site.ini
See: http://ez.no/doc/ez_publish/technical_manual/3_9/reference/configuration_files/site_ini/searchsettings
Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Stefanie Salbaum

Friday 24 August 2007 2:54:55 am

Hi Bruce!

I modified it (site.ini), but the problem still exists. :o(

Bruce Morrison

Friday 24 August 2007 4:38:12 am

Hi Stefanie

Did you clear the cache?

What values have you got 'StopWordThresholdValue' & 'StopWordThresholdPercent' set to?

I believe that if you set 'StopWordThresholdValue' to a large value (say 1000000) or 'StopWordThresholdPercent' = 100 that the exclusion will not happen.

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Stefanie Salbaum

Monday 27 August 2007 6:07:57 am

Hello Bruce,

thanks for your reply.

Yes, I cleared the cache. And here are the SearchSettings:

StopWordThresholdPercent = 80
StopWordThresholdValue = 100

Cheers,
Steffi

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu