Forums / Extensions / eZ Find / ezfind sorting by state

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

ezfind sorting by state

|
|
Next topic
 »
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