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

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

Andreas

 

 

----

 

Found fix and it works - but ignores priority sort: 

added

 'priority' => 'sint',

to nodeAttributes() in ezsolr.php

 

added 

 <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

Hi,

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

Raj

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 http://projects.ez.no/all2esolr

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?

expandshrink

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

36 542 Users on board!

Forums menu

Proudly Developed with from