Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-1630

StringIndexOutOfBoundsException in SpellCheckComponent

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.4
    • Fix Version/s: 3.1, 4.0-ALPHA
    • Labels:
      None
    • Environment:

      Solr 1.4
      Lucene 2.9.1
      Win XP
      java version "1.6.0_14"

      Description

      For some documents/search strings, the SpellCheckComponent throws StringIndexOutOfBoundsException
      See: http://www.lucidimagination.com/search/document/3be6555227e031fc/

      Replication

      It throws a StringIndexOutOfBoundsException

       String index out of range: -7
      
      java.lang.StringIndexOutOfBoundsException: String index out of range: -7
      	at java.lang.AbstractStringBuilder.replace(Unknown Source)
      	at java.lang.StringBuilder.replace(Unknown Source)
      	at org.apache.solr.handler.component.SpellCheckComponent.toNamedList(SpellCheckComponent.java:248)
      	at org.apache.solr.handler.component.SpellCheckComponent.process(SpellCheckComponent.java:143)
      	at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:195)
      	at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131)
      	at org.apache.solr.core.SolrCore.execute(SolrCore.java:1316)
      	at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:338)
      	at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:241)
      

        Attachments

        1. bug.xml
          0.1 kB
          Robin Wojciki
        2. schema.xml
          4 kB
          Robin Wojciki
        3. solrconfig.xml
          13 kB
          Robin Wojciki
        4. SOLR-1630.patch
          4 kB
          Shalin Shekhar Mangar
        5. spellcheckconfig.xml
          3 kB
          Guillaume Lebourgeois
        6. SOLR-1630.patch
          5 kB
          Robert Muir

          Activity

            People

            • Assignee:
              shalinmangar Shalin Shekhar Mangar
              Reporter:
              robin.wojciki@gmail.com Robin Wojciki
            • Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: