ezfind sorting by state

Author Message

VĂ­ctor Aranda Iglesias

Thursday 06 May 2010 3:12:27 am

Hi!

Is it possible to sort ezfind results by object state?
In the documentation 2.0, the sorting options are relevance,score,class, modified,publihed, author,class_name,class_id,name,path,section_id, but "state" is no included as an option.

Thanks!

Paul Borgermans

Friday 07 May 2010 10:50:41 am

Indeed, the main reason is that object states are multivalued if you have several object state groups.

To make it sortable, the object states should be indexed into a field per group.

And the, on what do you want to sort: ID or identifier?

Paul

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

H-Works Agency

Wednesday 29 June 2011 5:37:29 am

Hello,

In the same type of question : How is it possible to select content with ezfind filtered on state id ?

Even if there is multiple state groups, a given content always have only one state ID per group.

How can ezfind be modified to handle such constraint ?

EZP is Great

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 29 2025 23:44:52
Script start
Timing: Jan 29 2025 23:44:52
Module start 'layout'
Timing: Jan 29 2025 23:44:52
Module start 'content'
Timing: Jan 29 2025 23:44:53
Module end 'content'
Timing: Jan 29 2025 23:44:53
Script end

Main resources:

Total runtime0.8189 sec
Peak memory usage4,096.0000 KB
Database Queries61

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0044 588.1563151.2109
Module start 'layout' 0.00440.0029 739.367236.6484
Module start 'content' 0.00730.8109 776.0156517.1563
Module end 'content' 0.81820.0007 1,293.171911.8516
Script end 0.8189  1,305.0234 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00280.3407160.0002
Check MTime0.00120.1443160.0001
Mysql Total
Database connection0.00080.098310.0008
Mysqli_queries0.778695.0761610.0128
Looping result0.00050.0608590.0000
Template Total0.780695.320.3903
Template load0.00190.237920.0010
Template processing0.778695.074620.3893
Template load and register function0.00020.028510.0002
states
state_id_array0.00270.325910.0027
state_identifier_array0.00160.192620.0008
Override
Cache load0.00160.1913190.0001
Sytem overhead
Fetch class attribute can translate value0.00060.073630.0002
Fetch class attribute name0.00110.139150.0002
XML
Image XML parsing0.00380.465230.0013
class_abstraction
Instantiating content class attribute0.00000.001150.0000
General
dbfile0.00410.5040240.0002
String conversion0.00000.001040.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
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/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: 12
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs