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

revise Scorer visitor API

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.0-ALPHA
    • None
    • None
    • New, Patch Available

    Description

      Currently there is an (expert) API in scorer to allow you to take a scorer, and visit its children etc (e.g. booleanquery).

      I think we should improve this, so its general to all queries.

      The current issues are:

      • the current api is hardcoded for booleanquery's Occurs, but we should support other types of children (e.g. disjunctionmax)
      • it can be difficult to use the API, because of the amount of generics and the visitor callback API.
      • the current API enforces a DFS traversal when you might prefer BFS instead.

      Attachments

        1. LUCENE-3330.patch
          17 kB
          Robert Muir

        Activity

          People

            rcmuir Robert Muir
            rcmuir Robert Muir
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: