searchThresholdValue stops search too often.

Author Message

Kai Duebbert

Saturday 27 September 2003 11:04:00 pm

Hi,

I don't understand the use of $searchThresholdValue in lines 785-791 (file kernel/search/plugins/ezsearchengine/ezsearchengine.php):
[...]
$searchThresholdValue = $totalObjectCount;
if ( $totalObjectCount > $stopWordThresholdValue )
{
$searchThresholdValue = (int)( $totalObjectCount * ( $stopWordThresholdPercent / 100 ) );
}

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

Now, I understand that it gets calculated, if it's bigger than $stopWordThresholdValue. But why does it get set to $totalObjectCount as default??

Even if I set the threshold for stopwords very high, the search still stops sometimes, because of searchThresholdValue being to high.

Can someone explain this or is it a bug? (The search system has many problems.)

Thanks,
Kai

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 22:35:59
Script start
Timing: Jan 18 2025 22:35:59
Module start 'layout'
Timing: Jan 18 2025 22:35:59
Module start 'content'
Timing: Jan 18 2025 22:36:01
Module end 'content'
Timing: Jan 18 2025 22:36:01
Script end

Main resources:

Total runtime1.1827 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 589.1641152.6406
Module start 'layout' 0.00540.0027 741.804739.4766
Module start 'content' 0.00811.1730 781.2813404.0547
Module end 'content' 1.18110.0015 1,185.33598.1250
Script end 1.1827  1,193.4609 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.3335160.0002
Check MTime0.00140.1219160.0001
Mysql Total
Database connection0.00120.097610.0012
Mysqli_queries1.140296.4031460.0248
Looping result0.00050.0454440.0000
Template Total1.147797.020.5738
Template load0.00210.173920.0010
Template processing1.145696.863020.5728
Template load and register function0.00010.012510.0001
states
state_id_array0.00080.068210.0008
state_identifier_array0.00170.146620.0009
Override
Cache load0.00160.1385190.0001
Sytem overhead
Fetch class attribute can translate value0.00040.036710.0004
Fetch class attribute name0.00090.079110.0009
XML
Image XML parsing0.00010.009610.0001
class_abstraction
Instantiating content class attribute0.00000.000810.0000
General
dbfile0.00070.0631100.0001
String conversion0.00000.000740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 10
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs