Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-18077

Ability to search assets in multiple groups

    Details

    • Branch Version/s:
      6.0.x

      Description

      My need is to allow user to choose the organizations where the search is made.

      The SearchContext class supports several groupIds as there is a setGroupIds(long[] groupIds)

      but that's strange because the abstract search method of HitsOpenSearchImpl - that should implements all OpenSearch implementation - only accept a unique groupId :

      [code] public abstract String search(
      HttpServletRequest request, long groupId, long userId,
      String keywords, int startPage, int itemsPerPage, String format)
      throws SearchException;
      [/code]

      and it only does a setGroupIds on SearchContext with a unique groupId :

      [code] searchContext.setGroupIds(new long[]

      {groupId}

      );[/code]

      Not fair !

      So I think that should be more consistent so either the search method accepts an long[] groupIds, either the groupIds are set from the HttpServletRequest "request" search method parameter (as it is done for example for assetCategoryIds in SearchContextFactory#getInstance).

        Attachments

          Activity

            People

            • Assignee:
              support-lep@liferay.com SE Support
              Reporter:
              lamim Laurent Mimoun (Inactive)
            • Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:

                Packages

                Version Package