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 » Extensions » eZ Find » Merge results of children with parents

Merge results of children with parents

Merge results of children with parents

Monday 20 May 2013 5:41:29 pm - 1 reply


I'm hoping someone may have a suggestion on how best to deal with this.  I'm currently using eZ Publish 5.1 with eZFind 5.1-rc1.

I have a product class that contains several chapter objects.  I would like to be able to perform a search across all objects, but only return the results of the parent nodes.

I've considered adding a meta-field to the parent class just to store the content of the chapters, but I'm not sure if this would provide the best level of control for tuning search results (at least without constantly having to re-index the site).  

I've also considered processing the results and merging them in a custom fetch function, but this would cause significant problems with pagination.

Does anyone have any suggestions on how best to handle this?


Tuesday 21 May 2013 9:28:15 pm

We've done this before using the "meta field" approach with the default eZ Publish search index.  This is the extension we used; this version adds eZ Find support:

To get around the need to re-index the site regularly, that extension uses a workflow so that when the children are published, a re-index of the parent is automatically triggered.


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

36 542 Users on board!

Forums menu

Proudly Developed with from