Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-31701

Default search engine configuration is used instead of siteaccess-specific one

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 3.1.0-rc2
    • 3.1.0-beta1, 3.0.5
    • None

    Description

      It's not possible to have a specific SiteAccess use a different search engine - they all seem to use the default one.

      Steps to reproduce:
      1. Create a new repository under ezplatform.repositories:

              repository_2:
                  storage:
                      engine: legacy
                      connection: default
                      config: {  }
                  search:
                      engine: AAAAAA
                      connection: default
      

      2. Configure admin_group to use it:

              admin_group:
                  (...)
                  repository: repository_2
      

      3. Login into AdminUI as admin

      Expected result:

      • The configuration is taken into account and fails with:
         InvalidSearchEngine
        
        Invalid search engine 'AAAAA'. Could not find a service tagged as 'ezpublish.searchEngine' with alias 'AAAAA'.
        

        This is the behaviour on v2.

      Actual result:
      Admin panel loads without an issue and is using the default search engine - the configuration specified for repository_2 is ignored.

      Attachments

        Activity

          People

            Unassigned Unassigned
            marek.nocon@ibexa.co Marek NocoĊ„
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: