wahahajun / ik-analyzer

Automatically exported from code.google.com/p/ik-analyzer
0 stars 0 forks source link

分词时出现 java.lang.ArrayIndexOutOfBoundsException: 3072 异常 #78

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
solr使用IKAnalyzer分词时出现如下异常:不知如何解决,为什么
分词器上下文的缓冲区大小设置为3072而不是更大的值呢?
org.apache.solr.common.SolrException: 3072  
java.lang.ArrayIndexOutOfBoundsException: 3072      
at org.wltea.analyzer.core.AnalyzeContext.moveCursor(AnalyzeContext.java:159)   
at org.wltea.analyzer.core.IKSegmenter.next(IKSegmenter.java:142)   
at org.wltea.analyzer.lucene.IKTokenizer.incrementToken(IKTokenizer.java:73)    
at 
org.apache.lucene.index.DocInverterPerField.processFields(DocInverterPerField.ja
va:141)     
at 
org.apache.lucene.index.DocFieldProcessorPerThread.processDocument(DocFieldProce
ssorPerThread.java:276)     
at 
org.apache.lucene.index.DocumentsWriter.updateDocument(DocumentsWriter.java:766)

at org.apache.lucene.index.IndexWriter.updateDocument(IndexWriter.java:2328)    
at org.apache.lucene.index.IndexWriter.updateDocument(IndexWriter.java:2300)    
at 
org.apache.solr.update.DirectUpdateHandler2.addDoc(DirectUpdateHandler2.java:240
)   
at 
org.apache.solr.update.processor.RunUpdateProcessor.processAdd(RunUpdateProcesso
rFactory.java:61)   
at 
org.apache.solr.update.processor.LogUpdateProcessor.processAdd(LogUpdateProcesso
rFactory.java:115)      
at org.apache.solr.handler.XMLLoader.processUpdate(XMLLoader.java:157)      
at org.apache.solr.handler.XMLLoader.load(XMLLoader.java:79)    
at 
org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStream
HandlerBase.java:58)    
at 
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java
:129)   
at org.apache.solr.core.SolrCore.execute(SolrCore.java:1376)    
at 
org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:365) 

at 
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:260)

at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.jav
a:1212)     
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:399)     
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)  

at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)     
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)     
at org.mortbay.jetty.webapp.WebAppContext.handle(We

Original issue reported on code.google.com by yong.guo.cn@gmail.com on 21 Sep 2012 at 3:50

GoogleCodeExporter commented 8 years ago
请下载最新的IK2012_FF版本

Original comment by linliang...@gmail.com on 23 Oct 2012 at 9:29