Different limits on multiple facet

Author Message

Max Keil

Wednesday 15 July 2009 3:27:31 am

Can anyone confirm that different limits on multiple facets do not working properly.

'facet', array( hash( 'field', 'class' ),
    hash( 'field', 'myclass/filter_size', 'limit', 3 ),
    hash( 'field', 'myclass/filter_material', 'limit', 25 ),
    hash( 'field', 'myclass/filter_color', 'limit', 25 )
)

In this case I getting all facets with limit 25. The request to the solr seems to be ok.

["facet.field"]=>{
    [0]=>"meta_contentclass_id_si"
    [1]=>"attr_filter_size_s"
    [2]=>"attr_filter_material_s"
    [3]=>"attr_filter_color_s"
}
["facet.limit"]=> {
    [0]=>int(20)
    [1]=>int(3)
    [2]=>int(25)
    [3]=>int(25)
}

Is this a solr problem or is eZ Find not able to set multiple limits. I found an example for this problem in eZ Find manual - but this example uses the same number for every facet.

Mit freundlichen Grüßen
Best regards

Max Keil

____________________________________________________________
eZ Publish Gold Partner - http://www.all2e.com
http://ez.no/partners/worldwide_partners/all2e_gmbh

Paul Borgermans

Monday 20 July 2009 2:11:33 pm

This is a limitation in the ez find code, not Solr (which allows per facet limits)

Please file a bug report to it in the ez find issue tracker with a reference to this thread

Tx
Paul

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

Max Keil

Tuesday 21 July 2009 3:06:04 pm

Hi Paul,

thank you for your reply! I opened an issues under:

http://issues.ez.no/IssueView.php?Id=15175

Mit freundlichen Grüßen
Best regards

Max Keil

____________________________________________________________
eZ Publish Gold Partner - http://www.all2e.com
http://ez.no/partners/worldwide_partners/all2e_gmbh

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 10:32:57
Script start
Timing: Jan 18 2025 10:32:57
Module start 'layout'
Timing: Jan 18 2025 10:32:57
Module start 'content'
Timing: Jan 18 2025 10:32:58
Module end 'content'
Timing: Jan 18 2025 10:32:58
Script end

Main resources:

Total runtime0.5284 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.0056 588.0625152.6406
Module start 'layout' 0.00560.0022 740.703139.4766
Module start 'content' 0.00780.5194 780.1797551.1250
Module end 'content' 0.52720.0012 1,331.304712.4453
Script end 0.5284  1,343.7500 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.5959160.0002
Check MTime0.00140.2555160.0001
Mysql Total
Database connection0.00080.156610.0008
Mysqli_queries0.479490.7200590.0081
Looping result0.00050.1012570.0000
Template Total0.499194.520.2496
Template load0.00230.426720.0011
Template processing0.496994.023220.2484
Template load and register function0.00010.019910.0001
states
state_id_array0.00090.168210.0009
state_identifier_array0.00110.203420.0005
Override
Cache load0.00180.3381200.0001
Sytem overhead
Fetch class attribute can translate value0.00050.102620.0003
Fetch class attribute name0.00220.408950.0004
XML
Image XML parsing0.00100.190920.0005
class_abstraction
Instantiating content class attribute0.00000.002360.0000
General
dbfile0.00080.1488230.0000
String conversion0.00000.001540.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.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
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/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: 17
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs