Skip to content

Instantly share code, notes, and snippets.

@jiri-jagos
Created September 18, 2013 07:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jiri-jagos/6605728 to your computer and use it in GitHub Desktop.
Save jiri-jagos/6605728 to your computer and use it in GitHub Desktop.
lambda function in yaml
elastic_document_structure_helper:
class: SAVerlag\SearchBundle\Logic\ElasticDocumentStructureHelper
calls:
- [addEntityWantedFields, ['SAVerlag\FinderBundle\Entity\Certificate', ['type', 'other_type_name']]]
- [addEntityWantedFields, ['SAVerlag\FinderBundle\Entity\Company', ['id', 'name', 'employees_craft_total', 'employees_tech_total', 'employees_total', 'short_description', 'description', 'specialization', 'funding_year', 'action_radius', 'action_radius_distance', 'email', 'phone', 'fax', 'turnover', 'contract_volume_min', 'contract_volume_max']]]
- [addEntityWantedFields, ['SAVerlag\FinderBundle\Entity\Project', {'project_name': 'name', 'project_description': 'description', 'project_segment': 'segment_id', 0: 'executed_activities_text', 1: 'contract_volume', 2: 'builder', 3: 'architect'}]]
- [addEntityWantedFields, ['SAVerlag\FinderBundle\Entity\Location', ['street', 'zip_code', 'city', 'longitude', 'latitude']]]
- [addEntityWantedFields, ['SAVerlag\FinderBundle\Entity\Membership', ['type', 'other_type_name']]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment