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

Allow other string distance measures in spellchecker

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4
    • Fix Version/s: 2.4
    • Component/s: modules/spellchecker
    • Labels:
      None
    • Environment:

      n/a

    • Lucene Fields:
      New, Patch Available

      Description

      Updated spelling code to allow for other string distance measures to be used.

      Created StringDistance interface.
      Modified existing Levenshtein distance measure to implement interface (and renamed class).
      Verified that change to Levenshtein distance didn't impact runtime performance.
      Implemented Jaro/Winkler distance metric
      Modified SpellChecker to take distacne measure as in constructor or in set method and to use interface when calling.

        Attachments

        1. LUCENE-1297.patch
          17 kB
          Thomas Morton
        2. LUCENE-1297.patch
          17 kB
          Otis Gospodnetic

          Activity

            People

            • Assignee:
              otis Otis Gospodnetic
              Reporter:
              tsmorton Thomas Morton
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: