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 in 5.4.x, common for both Content and Location Search

...

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

Example of registering Depth Sort Clause handler

...

in 5.3.x for Location Search

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}

...