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

FuzzyQuery should not be final

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1
    • Component/s: core/search
    • Labels:
      None
    • Environment:

      all platforms

    • Lucene Fields:
      Patch Available

      Description

      I am trying to extend the FuzzyQuery to further filter the TermEnum. (I am indexing stem forms and original forms, but I only want to match original forms with a fuzzy term, otherwise I get to much noise). However, FuzzyQuery is a final class and I cannot extend it.

      As discussed in the mailing list (http://www.gossamer-threads.com/lists/lucene/java-dev/38756), we want to make the private variables and inner classes protected.

      I am attaching a patch for FuzzyQuery.java that implements this. I ran all unit tests and they passed without errors.

      Andreas.

        Attachments

        1. LUCENE-657.patch
          1 kB
          Steven Parkes

          Activity

            People

            • Assignee:
              steven_parkes Steven Parkes
              Reporter:
              neunand Andreas Neumann
            • Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: