Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: Lucene.Net 2.9.4, Lucene.Net 2.9.4g, Lucene.Net 3.0.3
    • Fix Version/s: Lucene.Net 3.0.3
    • Component/s: Lucene.Net Contrib
    • Labels:
      None

      Description

      I have a little optimisation for the GermanStemmer.vb (in
      Contrib.Analyzers) class. At the moment the function "Substitute"
      converts the german "Umlaute" "ä" in "a", "ö" in"o" and "ü" in "u". This
      is not the correct german translation. They must be converted to "ae",
      "oe" and "ue". So I can write the name "Björn" or "Bjoern" but not
      "Bjorn". With this optimization a user can search for "Björn" and also
      find "Bjoern".

      Here is the optimized code snippet:

      else if ( buffer[c] == 'ä' )

      { buffer[c] = 'a'; buffer.Insert(c + 1, 'e'); }

      else if ( buffer[c] == 'ö' )

      { buffer[c] = 'o'; buffer.Insert(c + 1,'e'); }

      else if ( buffer[c] == 'ü' )

      { buffer[c] = 'u'; buffer.Insert(c + 1,'e'); }

      Thank You
      Björn

      1. DIN2Stemmer.patch
        7 kB
        Christopher Currens

        Activity

        Prescott Nasser created issue -
        Christopher Currens made changes -
        Field Original Value New Value
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]
        Christopher Currens made changes -
        Resolution Fixed [ 1 ]
        Status Closed [ 6 ] Reopened [ 4 ]
        Christopher Currens made changes -
        Attachment DIN2Stemmer.patch [ 12519975 ]
        Christopher Currens made changes -
        Status Reopened [ 4 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Prescott Nasser
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development