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

GermanStemmer crashes while indexing

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • modules/analysis
    • None
    • Operating System: Solaris
      Platform: Sun

    • 4555

    Description

      Version: lucene-1.2-rc1.jar

      Indexing of "alpha-geek2" works.
      Indexing of "alpha-geek" throws exception. (Hope its not my inability.)

      demo code which shows exception: http://www.nalle.de/TestIndex.java
      Output of code:

      indexed 1
      java.lang.StringIndexOutOfBoundsException: String index out of range: -1
      at java.lang.StringBuffer.charAt(StringBuffer.java:283)
      at org.apache.lucene.analysis.de.GermanStemmer.resubstitute(Unknown
      Source)
      at org.apache.lucene.analysis.de.GermanStemmer.stem(Unknown Source)
      at org.apache.lucene.analysis.de.GermanStemFilter.next(Unknown Source)
      at org.apache.lucene.analysis.LowerCaseFilter.next(Unknown Source)
      at org.apache.lucene.index.DocumentWriter.invertDocument(Unknown Source)
      at org.apache.lucene.index.DocumentWriter.addDocument(Unknown Source)
      at org.apache.lucene.index.IndexWriter.addDocument(Unknown Source)
      at TestIndex.<init>(TestIndex.java:25)
      at TestIndex.main(TestIndex.java:36)

      Attachments

        Activity

          People

            malco@claranet.de Gerhard Schwarz
            nalle@ymail.de M. Reinsch
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: