eZ Community » Forums » Extensions » eZ Find » Merge results of children with parents
expandshrink

Merge results of children with parents

Merge results of children with parents

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

Hello,

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?

Thanks,
Seiji

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:

https://github.com/killerwolf/children_indexer

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.

expandshrink

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

36 542 Users on board!

Forums menu

Proudly Developed with from