This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit

eZ Community » Forums » Developer » eZ Find 2.2 - fetch: sorty_by priority

eZ Find 2.2 - fetch: sorty_by priority

eZ Find 2.2 - fetch: sorty_by priority

Thursday 04 October 2012 10:34:58 am - 4 replies

Hallo Guys.

I need some help for eZ find 2.2. I think it could be fixed really fast if I know which screws I will have to screw. happy.gif Emoticon


My issue:

I have an eZ Find fetch which works pretty well for "sort_by" like "published" or "modified".

Now I need to get ez Find to fetch "sort_by" "priority". 


Could you give me some hints how to add priority fetch to eZ Find 2.2? 


Thanks for your help in advance.


Best Regards






Found fix and it works - but ignores priority sort: 


 'priority' => 'sint',

to nodeAttributes() in ezsolr.php



 <field name="meta_priority_si" type="sint" indexed="true" stored="true" multiValued="true"/>     <!-- Priority -->

to schema.xml. 


Problem: It seems that update priority has no effect. 

Modified on Thursday 04 October 2012 11:46:51 am by Andreas Dobrick

Thursday 04 October 2012 4:18:19 pm

I did an updateserachindex. After this everything seems to be fine.

A Solr request looks pretty good:

<int name="meta_priority_si">100</int>

The problem is changing (updating) the priority. Changing priority seems to have no effect on Solr. Solr always return the "initial" priority and sorting based on this. 


Any suggestions? 


Thanks in advance. 

Modified on Thursday 04 October 2012 4:19:55 pm by Andreas Dobrick

Monday 08 October 2012 2:50:24 am


Based on my understanding Update priority is not consider as the content edit, So the search index is not updates.

By default the update priority will not update the search index( I believe you already know this).

So it need an custom solution, I would suggest using the 'post_updatepriority' trigger. Probably create a custom workflow event which update solr index for the object which is triggered on post update priority.

I never tried this myself, But I believe this is possible

Thank you


Modified on Monday 08 October 2012 2:51:54 am by Raj Vivakaran

Thursday 18 October 2012 9:05:37 am

AFAIK, you can get it triggered with ALL2ESolr extension

Wednesday 16 October 2013 5:16:52 pm

Hello Andreas have you found a solution to update your index when you change the priority of a node?


You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from