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

Allow other string distance measures in spellchecker

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.4
    • 2.4
    • modules/spellchecker
    • None
    • n/a

    • 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
          Otis Gospodnetic
        2. LUCENE-1297.patch
          17 kB
          Tom Morton

        Activity

          People

            otis Otis Gospodnetic
            tsmorton Tom Morton
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: