Details

    • Type: Sub-task
    • 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

      Description

      in the below change, it looks like the logic that you apply to point fields would work in the general case and be as efficient?

      +    if (ft.isPointField()) {
      +      for (String term : terms) {
      +        int count = searcher.numDocs(ft.getFieldQuery(null, sf, term), parsed.docs);
      +        res.add(term, count);
      +      }
      +    } else {
      +      for (String term : terms) {
      +        String internal = ft.toInternal(term);
      +        int count = searcher.numDocs(new TermQuery(new Term(field, internal)), parsed.docs);
      +        res.add(term, count);
      +      }
           }
      

        Activity

        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit 35aac1d4623a34fe6b03d934eefd9066c61a95d5 in lucene-solr's branch refs/heads/master from Chris Hostetter
        [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=35aac1d ]

        SOLR-10399: cleanup unused imports

        Show
        jira-bot ASF subversion and git services added a comment - Commit 35aac1d4623a34fe6b03d934eefd9066c61a95d5 in lucene-solr's branch refs/heads/master from Chris Hostetter [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=35aac1d ] SOLR-10399 : cleanup unused imports
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit b60b86ecab797396ab6bd8be82740191922b0aa2 in lucene-solr's branch refs/heads/master from Chris Hostetter
        [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=b60b86e ]

        SOLR-10399: Generalize some internal facet logic to simplify points/non-points field handling

        Show
        jira-bot ASF subversion and git services added a comment - Commit b60b86ecab797396ab6bd8be82740191922b0aa2 in lucene-solr's branch refs/heads/master from Chris Hostetter [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=b60b86e ] SOLR-10399 : Generalize some internal facet logic to simplify points/non-points field handling
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit c04a3acd8cfcd4d658ec2c7b71f95cef27e2a11c in lucene-solr's branch refs/heads/branch_6x from Chris Hostetter
        [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=c04a3ac ]

        SOLR-10399: cleanup unused imports

        (cherry picked from commit 35aac1d4623a34fe6b03d934eefd9066c61a95d5)

        Show
        jira-bot ASF subversion and git services added a comment - Commit c04a3acd8cfcd4d658ec2c7b71f95cef27e2a11c in lucene-solr's branch refs/heads/branch_6x from Chris Hostetter [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=c04a3ac ] SOLR-10399 : cleanup unused imports (cherry picked from commit 35aac1d4623a34fe6b03d934eefd9066c61a95d5)
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit eb9a4b962088ee38358303cc8e75d3b83c910ef3 in lucene-solr's branch refs/heads/branch_6x from Chris Hostetter
        [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=eb9a4b9 ]

        SOLR-10399: Generalize some internal facet logic to simplify points/non-points field handling

        (cherry picked from commit b60b86ecab797396ab6bd8be82740191922b0aa2)

        Show
        jira-bot ASF subversion and git services added a comment - Commit eb9a4b962088ee38358303cc8e75d3b83c910ef3 in lucene-solr's branch refs/heads/branch_6x from Chris Hostetter [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=eb9a4b9 ] SOLR-10399 : Generalize some internal facet logic to simplify points/non-points field handling (cherry picked from commit b60b86ecab797396ab6bd8be82740191922b0aa2)

          People

          • Assignee:
            hossman Hoss Man
            Reporter:
            hossman Hoss Man
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development