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

Support terms' statistics for multiple fields in TermsComponent

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.6, 7.0
    • Component/s: None
    • Security Level: Public (Default Security Level. Issues are Public)
    • Labels:
      None
    • Flags:
      Patch

      Description

      Currently if you specify multiple terms.fl parameters on the request, while requesting terms' statistics, you get them for the first requested field (because the code only uses fields[0]). There's no reason why not to return the stats for the terms in all specified fields. It's a rather simple change, and I will post a patch shortly.

        Activity

        Hide
        shaie Shai Erera added a comment -

        Patch with tests.

        Show
        shaie Shai Erera added a comment - Patch with tests.
        Hide
        shaie Shai Erera added a comment -

        All tests pass, if there are no objections, I'd like to commit this.

        Show
        shaie Shai Erera added a comment - All tests pass, if there are no objections, I'd like to commit this.
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit 19bcffa0362b5d8d9d85dbe9c68497d4d81b8436 in lucene-solr's branch refs/heads/master from Shai Erera
        [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=19bcffa ]

        SOLR-10505: Add multi-field support to TermsComponent for terms stats

        Show
        jira-bot ASF subversion and git services added a comment - Commit 19bcffa0362b5d8d9d85dbe9c68497d4d81b8436 in lucene-solr's branch refs/heads/master from Shai Erera [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=19bcffa ] SOLR-10505 : Add multi-field support to TermsComponent for terms stats
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit 169aeb8f160d2a189798be6a3232a287f255844a in lucene-solr's branch refs/heads/branch_6x from Shai Erera
        [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=169aeb8 ]

        SOLR-10505: Add multi-field support to TermsComponent for terms stats

        Show
        jira-bot ASF subversion and git services added a comment - Commit 169aeb8f160d2a189798be6a3232a287f255844a in lucene-solr's branch refs/heads/branch_6x from Shai Erera [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=169aeb8 ] SOLR-10505 : Add multi-field support to TermsComponent for terms stats
        Hide
        shaie Shai Erera added a comment -

        Pushed to master and branch_6x.

        Show
        shaie Shai Erera added a comment - Pushed to master and branch_6x.

          People

          • Assignee:
            shaie Shai Erera
            Reporter:
            shaie Shai Erera
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development