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

Fix analyzer factories to throw exception when arguments are invalid

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.3, 6.0
    • Component/s: modules/analysis
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      Currently if someone typos an argument "someParamater=xyz" instead of someParameter=xyz, they get no exception and sometimes incorrect behavior.

      It would be way better if these factories threw exception on unknown params, e.g. they removed the args they used and checked they were empty at the end.

        Attachments

        1. LUCENE-4877_one_solution_prototype.patch
          13 kB
          Robert Muir
        2. LUCENE-4877.patch
          569 kB
          Robert Muir
        3. LUCENE-4877.patch
          493 kB
          Robert Muir
        4. LUCENE-4877.patch
          246 kB
          Robert Muir
        5. LUCENE-4877-steve-minor-fixes.patch
          3 kB
          Steve Rowe
        6. LUCENE-4877-steve-more-param-parsing-verbs.patch
          68 kB
          Steve Rowe

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                rcmuir Robert Muir
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: