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 » eZ Publish 5 Platform » Looking for equivalent for...

Looking for equivalent for 'load_data_map' in Search Service

Looking for equivalent for 'load_data_map' in Search Service

Tuesday 06 October 2015 11:59:21 pm - 2 replies


I'm searching locations using Search Service findLocations method. Is there a simple method, as 'load_data_map' from legacy stack, to fetch all object's fields?


Wednesday 07 October 2015 12:45:32 am



no there is no such flag, approach is different.

there is findContent which loads the full Content (incl fields), so what you seem to want here. And then there is findLocations and findContentInfo (recently added) for when you for instance only need meta info.

Modified on Wednesday 07 October 2015 12:47:02 am by André R

Wednesday 07 October 2015 7:42:57 pm

Hi André,

Thank you for your response. I just read Developer Cookbook chapter about Search Service. I'm little confused after that, because I'm not sure if is it what I'm looking for.

What could be the best option (quick and optimal) for following scenario?

  • I'm on object which we can called for now 'Folder', it is parent of some objects with specific contentType, let's called it as 'Article'
  • in my overridden template I call Twig function to use my helper class which perform fetching objects
  • I need to have locations (for generating url) and objects to show fields as intro text, image etc.

I have no problems with searching for locations with depth, contentType, subTree. I need an object so I'm iterating over locations and I'm loading content using ContentService. It's really big part of code in comparison with fetching functions known from legacy kernel.

Could you point me out the right way to do it?


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

36 542 Users on board!

Forums menu

Proudly Developed with from