Lucene - Core
  1. Lucene - Core
  2. LUCENE-6981

SpanQuery.getTermContexts() static helper methods should be public

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.5
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      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).

      1. LUCENE-6981.patch
        2 kB
        Alan Woodward

        Activity

        Hide
        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.

        Show
        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.
        Hide
        ASF subversion and git services added a comment -

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

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

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

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

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

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

          People

          • Assignee:
            Alan Woodward
            Reporter:
            Alan Woodward
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development