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

eZ Find: Search content in multiple languages in the admin SiteAccess

    Details

      Description

      When searching for a content object that has been translated to more than one language, eZ Find can't find it unless the language to match is the first element in site.ini [RegionalSettings] SiteLanguageList. So for example, if you have an article in eng-GB called "test", and...

      [RegionalSettings]
      SiteLanguageList[]=eng-GB
      SiteLanguageList[]=ger-DE
      

      ...eZ Find will find the article. But if the language order is switched...

      [RegionalSettings]
      SiteLanguageList[]=ger-DE
      SiteLanguageList[]=eng-GB
      

      ...no results will be returned. The fact that ezfind.ini SearchMainLanguageOnly is set to "disabled" makes no difference. In essence, you can only find objects that are translated in the first language specified in each SiteAccess' [RegionalSettings] SiteLanguageList list. This works well for frontend SiteAccesses, where only content in eng-GB will be returned for a SiteAccess set up in eng-GB, only content in ger-De will be returned for a SiteAccess in ger-De, and so on.

      This, however, can be an inconvenience in the admin Siteaccess, as it would be very useful to get results for all available translations for a given object. Therefore, I would like to suggest this mechanism to be enhanced so that eZ Find-powered searches in the admin SiteAccess return results for all available translations.

        Activity

        Hide
        Pedro Resende (Inactive) added a comment -

        Tested and approved by Q.A.

        Show
        Pedro Resende (Inactive) added a comment - Tested and approved by Q.A.
        Show
        André Rømcke added a comment - Merged in https://github.com/ezsystems/ezfind/commit/198e91acfd9e824c36beac952bdf1e5604a11493
        Hide
        Paul Borgermans (Inactive) added a comment -

        Testing was done manually

        In summary, the behaviour for language searching/filtering is done as follows according to language settings in ezfind.ini and site.ini:

        ezfind.ini:

        If SearchMainLanguageOnly is set to 'enabled', only the translations in the first language in site.ini > [RegionalSettings]>SiteLanguageList[] will be searched for.

        If SearchMainLanguageOnly is set to 'disabled', searching is done across all translations configured site.ini > [RegionalSettings]> SiteLanguageList[]

        Moreover if a certain translation is set to be "Always Available", this is honoured too

        Show
        Paul Borgermans (Inactive) added a comment - Testing was done manually In summary, the behaviour for language searching/filtering is done as follows according to language settings in ezfind.ini and site.ini: ezfind.ini: If SearchMainLanguageOnly is set to 'enabled', only the translations in the first language in site.ini > [RegionalSettings] >SiteLanguageList[] will be searched for. If SearchMainLanguageOnly is set to 'disabled', searching is done across all translations configured site.ini > [RegionalSettings] > SiteLanguageList[] Moreover if a certain translation is set to be "Always Available", this is honoured too
        Hide
        Paul Borgermans (Inactive) added a comment -

        Updated pull request for review:
        https://github.com/ezsystems/ezfind/pull/137

        Show
        Paul Borgermans (Inactive) added a comment - Updated pull request for review: https://github.com/ezsystems/ezfind/pull/137
        Hide
        Paul Borgermans (Inactive) added a comment -

        One caveat when searching across multiple translations is that you can end up with objects multiple times (yet typically ranked very differently).

        The admin search result templates also do not feature the translation selection in the URI's, so the results always link back to the default language version

        Show
        Paul Borgermans (Inactive) added a comment - One caveat when searching across multiple translations is that you can end up with objects multiple times (yet typically ranked very differently). The admin search result templates also do not feature the translation selection in the URI's, so the results always link back to the default language version
        Show
        Paul Borgermans (Inactive) added a comment - Pull request: https://github.com/ezsystems/ezfind/pull/137

          People

          • Assignee:
            Unassigned
            Reporter:
            Nuno Oliveira (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 2 days, 1 hour
              2d 1h