Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-4330

group.sort is ignored when using truncate and ex/tag local params

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 3.6, 4.0, 4.1, 6.0
    • 3.6.3, 4.2, 6.0
    • search
    • None

    Description

      In parseParams method of SimpleFacets, as group sort is not set after creating grouping object, member variable groupSort is always null. Because of it, AbstractAllGroupHeadsCollector with default sort (new Sort()) is created all the time.

      public AbstractAllGroupHeadsCollector<?> createAllGroupCollector() throws IOException {
        Sort sortWithinGroup = groupSort != null ? groupSort : new Sort();
        return TermAllGroupHeadsCollector.create(groupBy, sortWithinGroup);
      }
      

      Attachments

        1. SOLR-4330.patch
          3 kB
          Koji Sekiguchi
        2. SOLR-4330.patch
          0.8 kB
          Koji Sekiguchi

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            koji Koji Sekiguchi
            koji Koji Sekiguchi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment