Lucene - Core
  1. Lucene - Core
  2. LUCENE-4023

Scorer.visitSubScorers() is protected which make it impossible to implement it on a composite scorer in another package; DisjunctionMaxScorer does not implement it

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.1, 3.2, 3.3, 3.4, 3.5, 3.6
    • Fix Version/s: 3.6.1
    • Component/s: core/search
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      Scorer.visitSubScorers() is protected which make it impossible to implement it on a composite scorer in another package.

      I came around this issue when I tried to write a workaround for the 2nd problem of this issue: DisjunctionMaxScorer does not implement visitSubScorers():

      If you write a Scorer in another package than o.a.l.search and implement visit subScorers(), you may need to call the visitSubScorers method recursively on your leaves (sub-scorers). But this is not possible, as the method is protected.

      This issue should also fix the missing implementation of visitSubScorers in DisjMaxQuery.

      1. LUCENE-4023.patch
        3 kB
        Uwe Schindler

        Activity

        Uwe Schindler created issue -
        Uwe Schindler made changes -
        Field Original Value New Value
        Component/s core/search [ 12310235 ]
        Uwe Schindler made changes -
        Attachment LUCENE-4023.patch [ 12524429 ]
        Uwe Schindler made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Uwe Schindler made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Uwe Schindler
            Reporter:
            Uwe Schindler
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development