Forums / Extensions / eZ Find / ezfind sorting by state
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