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

        Nuno Oliveira (Inactive) created issue -
        Nuno Oliveira (Inactive) made changes -
        Field Original Value New Value
        Status Open [ 1 ] Confirmed [ 10037 ]
        André Rømcke made changes -
        Summary eZ Find: Search content in multiple languages in the admin SiteAccess. eZ Find: Search content in multiple languages in the admin SiteAccess
        Show
        Paul Borgermans (Inactive) added a comment - Pull request: 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
        Paul Borgermans (Inactive) made changes -
        Assignee Paul Borgermans [ paul.borgermans@ez.no ]
        Nuno Oliveira (Inactive) made changes -
        Issue Type Improvement [ 4 ] Bug [ 1 ]
        Paul Borgermans (Inactive) logged work - 07/Nov/13 7:48 PM
        • Time Spent:
          5 hours
           

          R&D

        Gunnstein Lye made changes -
        Status Confirmed [ 10037 ] InputQ [ 10001 ]
        Paul Borgermans (Inactive) logged work - 15/Nov/13 1:00 AM
        • Time Spent:
          3 hours
           

          R&D

        Paul Borgermans (Inactive) logged work - 18/Nov/13 1:00 AM
        • Time Spent:
          3 hours
           

          Final commits and cleanup (actual commits over weekend)

        Paul Borgermans (Inactive) made changes -
        Status InputQ [ 10001 ] Development [ 3 ]
        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 -

        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
        Paul Borgermans (Inactive) made changes -
        Status Development [ 3 ] Development review [ 10006 ]
        André Rømcke made changes -
        Fix Version/s 4.7 Maintenance [ 12583 ]
        Fix Version/s 5.1 Maintenance [ 12301 ]
        Fix Version/s 5.2 Maintenance [ 12782 ]
        André Rømcke made changes -
        Fix Version/s 5.0 Maintenance [ 11287 ]
        Show
        André Rømcke added a comment - Merged in https://github.com/ezsystems/ezfind/commit/198e91acfd9e824c36beac952bdf1e5604a11493
        André Rømcke made changes -
        Remaining Estimate 0 minutes [ 0 ]
        Time Spent 1 hour [ 3600 ]
        Worklog Id 42761 [ 42761 ]
        André Rømcke made changes -
        Status Development review [ 10006 ] Development Review done [ 10028 ]
        Affects Version/s 5.2 [ 12582 ]
        Affects Version/s 5.1 [ 11280 ]
        Affects Version/s 5.0 [ 10300 ]
        Affects Version/s 4.7.0 [ 11010 ]
        André Rømcke made changes -
        Status Development Review done [ 10028 ] Documentation done [ 10011 ]
        Paul Borgermans (Inactive) made changes -
        Time Spent 1 hour [ 3600 ] 6 hours [ 21600 ]
        Worklog Id 42792 [ 42792 ]
        Paul Borgermans (Inactive) made changes -
        Time Spent 6 hours [ 21600 ] 1 day, 1 hour [ 32400 ]
        Worklog Id 42800 [ 42800 ]
        Paul Borgermans (Inactive) made changes -
        Time Spent 1 day, 1 hour [ 32400 ] 1 day, 4 hours [ 43200 ]
        Worklog Id 42801 [ 42801 ]
        Pedro Resende (Inactive) made changes -
        Status Documentation done [ 10011 ] QA [ 10008 ]
        Assignee Paul Borgermans [ paul.borgermans@ez.no ] Pedro Resende [ pedro.resende@ez.no ]
        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.
        Pedro Resende (Inactive) made changes -
        Assignee Pedro Resende [ pedro.resende@ez.no ]
        Status QA [ 10008 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]
        Pedro Resende (Inactive) logged work - 02/Dec/13 5:46 PM
        • Time Spent:
          5 hours
           

          Analyse and reproduce issue, write test case and verify the issue has been fixed after applying the patch

        Pedro Resende (Inactive) made changes -
        Resolution Fixed [ 1 ]
        Status Closed [ 6 ] Reopened [ 4 ]
        Pedro Resende (Inactive) made changes -
        Time Spent 1 day, 4 hours [ 43200 ] 2 days, 1 hour [ 61200 ]
        Worklog Id 42902 [ 42902 ]
        Pedro Resende (Inactive) made changes -
        Status Reopened [ 4 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]
        André Rømcke made changes -
        Workflow eZ Engineering Scrumban Workflow [ 59564 ] EZ* Development Workflow [ 84401 ]
        Alex Schuster made changes -
        Workflow EZ* Development Workflow [ 84401 ] EZEE Development Workflow [ 123052 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Confirmed Confirmed
        4m 20s 1 nuno.oliveira@ez.no 17/Oct/13 11:57 PM
        Confirmed Confirmed InputQ InputQ
        21d 10h 27m 1 Gunnstein Lye 08/Nov/13 9:24 AM
        InputQ InputQ Development Development
        10d 3h 12m 1 paul.borgermans@ez.no 18/Nov/13 12:37 PM
        Development Development Development Review Development Review
        9d 23h 37m 1 paul.borgermans@ez.no 28/Nov/13 12:15 PM
        Development Review Development Review Development Review done Development Review done
        2d 4h 47m 1 André Rømcke 30/Nov/13 5:02 PM
        Development Review done Development Review done Documentation Review done Documentation Review done
        1m 53s 1 André Rømcke 30/Nov/13 5:03 PM
        Documentation Review done Documentation Review done QA QA
        1d 16h 8m 1 pedro.resende@ez.no 02/Dec/13 9:12 AM
        QA QA Closed Closed
        8h 9m 1 pedro.resende@ez.no 02/Dec/13 5:21 PM
        Closed Closed Reopened Reopened
        25m 1 pedro.resende@ez.no 02/Dec/13 5:46 PM
        Reopened Reopened Closed Closed
        1s 1 pedro.resende@ez.no 02/Dec/13 5:46 PM

          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