ez find numFound exceeds the actual number of results

Author Message

Jim Thaxton

Thursday 29 October 2009 11:50:14 am

I am running into a problem where ez find is returning too large a number in the total number of items. This is causing my pagination to work incorrectly since the last 1/3 of the pagination links return empty pages.

This problem occurs all the time, including immediately after indexing and optimizing the search.

Any ideas?

We are making the calls to Solr via the ez find api.

All the individual pages that return content via the Solr search work and the results are accurate, it's merely that the total number of items returned is inaccurate.

Thanks in advance!
--Jim

Web Developer
Coupon Cabin
Chicago, IL

Paul Borgermans

Tuesday 03 November 2009 11:24:37 am

I can't reproduce this here, which versions of ezp and ez find are you using?

Paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Jim Thaxton

Tuesday 03 November 2009 3:50:30 pm

Thanks.

eZ Publish Version: 4.1.3 (4.1.3) SVN revision: 19785
eZ Find v2.0.0

We are running our site in three environments, my local box, a stage site and the production site. The stage site does not have this problem whereas my local box and production site do have the problem.

A related issue is that the search often returns bad objects (for lack of a better word) in the local and production environments. Our hack/work around to immediately solve that problem was to update the following snippet of code /kernel/classes/ezcontentobjecttreenode.php. These two problems are interlinked. If a version of the site returns too many results, it also has problems with the search sending back data to the object tree node script and vice versa.

Here is some background information on that issue

so i looked at the error log for 01 and it gave this on samm's failed searches
[Mon Nov 02 13:53:35 2009] [error] [client 66.92.135.21] PHP Fatal error: Call to a member function attribute() on a non-object in /var/www/www.luxgoddess.com/kernel/classes/ezcontentobjecttreenode.php on line 5604
so i added this condition to the offending file
object = $this->object();
if($class = $object->contentClass()){
$this->ClassName = $class->attribute( 'name' );
}else{
error_log("object error",0);
fixes it for the moment, but it's an obvious hack
let me know what you figure out on that

Web Developer
Coupon Cabin
Chicago, IL

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 05:07:47
Script start
Timing: Jan 18 2025 05:07:47
Module start 'layout'
Timing: Jan 18 2025 05:07:47
Module start 'content'
Timing: Jan 18 2025 05:07:47
Module end 'content'
Timing: Jan 18 2025 05:07:47
Script end

Main resources:

Total runtime0.6257 sec
Peak memory usage4,096.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0069 589.3047152.6563
Module start 'layout' 0.00690.0049 741.960939.5078
Module start 'content' 0.01180.6124 781.4688541.1719
Module end 'content' 0.62420.0015 1,322.640612.1016
Script end 0.6257  1,334.7422 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.5467160.0002
Check MTime0.00150.2471160.0001
Mysql Total
Database connection0.00140.224510.0014
Mysqli_queries0.573191.5845590.0097
Looping result0.00060.0985570.0000
Template Total0.588594.020.2943
Template load0.00210.327820.0010
Template processing0.586493.719120.2932
Template load and register function0.00020.039310.0002
states
state_id_array0.00140.229110.0014
state_identifier_array0.00110.180920.0006
Override
Cache load0.00180.2825310.0001
Sytem overhead
Fetch class attribute can translate value0.00060.093320.0003
Fetch class attribute name0.00200.325740.0005
XML
Image XML parsing0.00080.122420.0004
class_abstraction
Instantiating content class attribute0.00000.002140.0000
General
dbfile0.00090.1460170.0001
String conversion0.00000.001940.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/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
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 15
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs