Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-6981

SpanQuery.getTermContexts() static helper methods should be public

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 5.5
    • None
    • None
    • New

    Description

      Currently, SpanQuery has two protected static helper methods for extracting all TermContext objects from a collection of SpanWeights. These are useful for objects extending SpanQuery. However, because they're static protected, they can't be accessed by subclasses if those subclasses have been loaded by a different classloader (for example, if they're being loaded as a Solr plugin).

      Attachments

        1. LUCENE-6981.patch
          2 kB
          Alan Woodward

        Activity

          romseygeek Alan Woodward added a comment -

          Patch. Makes the two static methods on SpanQuery public, and also adds a getSpans() method to SpanScorer to expose its underlying Spans to other runtime packages.

          romseygeek Alan Woodward added a comment - Patch. Makes the two static methods on SpanQuery public, and also adds a getSpans() method to SpanScorer to expose its underlying Spans to other runtime packages.

          Commit 1725710 from romseygeek in branch 'dev/trunk'
          [ https://svn.apache.org/r1725710 ]

          LUCENE-6981: SpanQuery.getTermContexts() helper methods should be public

          jira-bot ASF subversion and git services added a comment - Commit 1725710 from romseygeek in branch 'dev/trunk' [ https://svn.apache.org/r1725710 ] LUCENE-6981 : SpanQuery.getTermContexts() helper methods should be public

          Commit 1725718 from romseygeek in branch 'dev/branches/branch_5x'
          [ https://svn.apache.org/r1725718 ]

          LUCENE-6981: SpanQuery.getTermContexts() helper methods should be public

          jira-bot ASF subversion and git services added a comment - Commit 1725718 from romseygeek in branch 'dev/branches/branch_5x' [ https://svn.apache.org/r1725718 ] LUCENE-6981 : SpanQuery.getTermContexts() helper methods should be public
          tomoko Tomoko Uchida added a comment -

          This issue was moved to GitHub issue: #8038.

          tomoko Tomoko Uchida added a comment - This issue was moved to GitHub issue: #8038 .

          People

            romseygeek Alan Woodward
            romseygeek Alan Woodward
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: