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

Add more methods to manipulate QueryNodeProcessorPipeline elements

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.9
    • 3.1, 4.0-ALPHA
    • modules/other
    • None
    • New

    Description

      QueryNodeProcessorPipeline allows the user to define a list of processors to process a query tree. However, it's not very flexible when the user wants to extend/modify an already created pipeline, because it only provides an add method, which only allows the user to append a new processor to the pipeline.

      So, I propose to add new methods to manipulate the processor in a pipeline. I think the methods should not consider an index position when modifying the pipeline, hence the index position in a pipeline does not mean anything, a processor has a meaning when it's after or before another processor. Therefore, I suggest the methods should always consider another processor when inserting/modifying the pipeline. For example, insertAfter(processor, newProcessor), which will insert the "newProcessor" after the "processor".

      Attachments

        1. LUCENE-1937_10_13_2009.patch
          13 kB
          Adriano Crestani
        2. LUCENE-1937.patch
          13 kB
          Robert Muir
        3. LUCENE-1937.patch
          5 kB
          Adriano Crestani

        Issue Links

          Activity

            People

              rcmuir Robert Muir
              adriano_crestani Adriano Crestani
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: