lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guillaume Lebourgeois (JIRA)" <j...@apache.org>
Subject [jira] Issue Comment Edited: (SOLR-1630) StringIndexOutOfBoundsException in SpellCheckComponent
Date Wed, 16 Dec 2009 11:38:18 GMT

    [ https://issues.apache.org/jira/browse/SOLR-1630?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12791334#action_12791334
] 

Guillaume Lebourgeois edited comment on SOLR-1630 at 12/16/09 11:38 AM:
------------------------------------------------------------------------

This file provide a spellcheck configuration and a requesthandler which may raise an exception
when making queries
    
    Example of queries which work fine :
      * ?q=test
      * ?q=my+name+is+henry
      * ?q=éléphant
    
    Example of queries which throw an exception :
      * ?q=sous-marin
      * ?q=sous-marin+russe
      * ?q=sous_marin
      * ?q=éléphant-blanc
      
      
   It may be linked to the content of the index, and/or the spellcheck index.

Here is the stack :

	at java.lang.AbstractStringBuilder.replace(AbstractStringBuilder.java:797)
	at java.lang.StringBuilder.replace(StringBuilder.java:271)
	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)
	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)
	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365)
	at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
	at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211)
	at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
	at org.mortbay.jetty.Server.handle(Server.java:285)
	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:502)
	at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:821)
	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513)
	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:208)
	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:378)
	at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:226)
	at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)

      was (Author: glebourg):
    This file provide a spellcheck configuration and a requesthandler which may raise an exception
when making queries
    
    Example of queries which work fine :
      * ?q=test
      * ?q=my+name+is+henry
      * ?q=éléphant
    
    Example of queries which throw an exception :
      * ?q=sous-marin
      * ?q=sous-marin+russe
      * ?q=sous_marin
      * ?q=éléphant-blanc
      
      
   It may be linked to the content of the index, and/or the spellcheck index.
  
> StringIndexOutOfBoundsException in SpellCheckComponent
> ------------------------------------------------------
>
>                 Key: SOLR-1630
>                 URL: https://issues.apache.org/jira/browse/SOLR-1630
>             Project: Solr
>          Issue Type: Bug
>          Components: Schema and Analysis, spellchecker
>    Affects Versions: 1.4
>         Environment: Solr 1.4
> Lucene 2.9.1
> Win XP
> java version "1.6.0_14"
>            Reporter: Robin Wojciki
>            Assignee: Shalin Shekhar Mangar
>         Attachments: bug.xml, schema.xml, SOLR-1630.patch, solrconfig.xml, spellcheckconfig.xml
>
>
> For some documents/search strings, the SpellCheckComponent throws StringIndexOutOfBoundsException
> See: http://www.lucidimagination.com/search/document/3be6555227e031fc/
> h2. Replication
>  * Save attached schema.xml and solrconfig.xml in apache-solr-1.4.0/example/solr/conf
>  * Start Solr
>  * Index attached bug.xml
>  * Query [http://localhost:8983/solr/select/?q=awehjse-wjkekw]
> It throws a StringIndexOutOfBoundsException
> {noformat} 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)
> {noformat} 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message