Global navigation

   Documentation Center
   eZ Studio & eZ Platform
     User Manual
     Technical Manual
     Glossary
   eZ Publish 4.x / legacy

 
eZ Publish (5.x)

eZ Publish 5.x | For eZ Platform & eZ Studio topics see Technical manual and User manual, for eZ Publish 4.x and Legacy topics see eZ Publish legacy

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • ezpublish.persistence.legacy.search.gateway.sort_clause_handler.content
  • ezpublish.persistence.legacy.search.gateway.sort_clause_handler.location

Example of registering ContentId Criterion handler, common for both Content and Location Search on 5.4.2 and higher

Code Block
languagebash
titleRegistering Criterion handler
services:
    ezpublish.persistence.legacy.search.gateway.criterion_handler.common.content_id:
        class: eZ\Publish\Core\Persistence\Legacy\Content\Search\Common\Gateway\CriterionHandler\ContentId
        arguments: [@ezpublish.api.storage_engine.legacy.dbhandler]
        tags:
          - {name: ezpublish.persistencesearch.legacy.search.gateway.criterion_handler.content}
          - {name: ezpublish.persistencesearch.legacy.search.gateway.criterion_handler.location}

Example of registering Depth Sort Clause handler for Location Search on 5.3.x

Code Block
languagebash
titleRegistering Sort Clause handler
ezpublish.persistence.legacy.search.gateway.sort_clause_handler.location.depth:
    class: eZ\Publish\Core\Persistence\Legacy\Content\Search\Location\Gateway\SortClauseHandler\Location\Depth
    arguments: [@ezpublish.api.storage_engine.legacy.dbhandler]
    tags:
        - {name: ezpublish.persistence.legacy.search.gateway.sort_clause_handler.location}

...