dannyxu2015 / ik-analyzer

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

什么时候加入对lucene4的支持呢? #34

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
lucene4-snapshot的变动比较大,导致3.2.8不能用了。

请问什么时候会加入这个支持?

Original issue reported on code.google.com by sonyfe2...@gmail.com on 7 Dec 2011 at 2:36

GoogleCodeExporter commented 8 years ago
我需要等4.0正式出版,lucene的api改动太大了,而且不向下兼��
�,这个是很大问题

Original comment by linliang...@gmail.com on 14 Mar 2012 at 11:42

GoogleCodeExporter commented 8 years ago
等待 支持 lucene 4.0

Original comment by chenp...@co188.com on 20 Jul 2012 at 5:33

GoogleCodeExporter commented 8 years ago
昨天研究了一下,成功改成支持lucene/solr 
4.0alpha了,修改部分代码如附件

Original comment by windfal...@gmail.com on 10 Aug 2012 at 7:46

Attachments:

GoogleCodeExporter commented 8 years ago
更新/debug到支持的Lucene/ 
Solr的4.0测试版了,附上编译好的结果给有兴趣的人试看看

Original comment by windfal...@gmail.com on 15 Aug 2012 at 3:30

Attachments:

GoogleCodeExporter commented 8 years ago
在solr4.0里用了:IKAnalyzer2012u5ForLuceneSolr4.jar包,添加索引时报��
�:
信息: [collection1] webapp=/solr path=/update params={wt=javabin&version=2} 
{} 0 1046
2012-8-22 9:57:39 org.apache.solr.common.SolrException log
严重: java.io.IOException: Stream closed
    at java.io.StringReader.ensureOpen(StringReader.java:39)
    at java.io.StringReader.read(StringReader.java:73)
    at java.io.Reader.read(Reader.java:123)
    at org.wltea.analyzer.core.AnalyzeContext.fillBuffer(AnalyzeContext.java:125)
    at org.wltea.analyzer.core.IKSegmenter.next(IKSegmenter.java:124)
    at org.wltea.analyzer.lucene.IKTokenizer.incrementToken(IKTokenizer.java:80)
    at org.apache.lucene.analysis.util.FilteringTokenFilter.incrementToken(FilteringTokenFilter.java:50)
    at org.apache.lucene.analysis.core.LowerCaseFilter.incrementToken(LowerCaseFilter.java:54)
    at org.apache.lucene.index.DocInverterPerField.processFields(DocInverterPerField.java:101)
    at org.apache.lucene.index.DocFieldProcessor.processDocument(DocFieldProcessor.java:307)
    at org.apache.lucene.index.DocumentsWriterPerThread.updateDocument(DocumentsWriterPerThread.java:242)
    at org.apache.lucene.index.DocumentsWriter.updateDocument(DocumentsWriter.java:376)
    at org.apache.lucene.index.IndexWriter.updateDocument(IndexWriter.java:1333)
    at org.apache.lucene.index.IndexWriter.updateDocument(IndexWriter.java:1305)
    at org.apache.solr.update.DirectUpdateHandler2.addDoc(DirectUpdateHandler2.java:177)
    at org.apache.solr.update.processor.RunUpdateProcessor.processAdd(RunUpdateProcessorFactory.java:56)
    at org.apache.solr.update.processor.UpdateRequestProcessor.processAdd(UpdateRequestProcessor.java:51)
    at org.apache.solr.update.processor.DistributedUpdateProcessor.doLocalAdd(DistributedUpdateProcessor.java:386)
    at org.apache.solr.update.processor.DistributedUpdateProcessor.versionAdd(DistributedUpdateProcessor.java:501)
    at org.apache.solr.update.processor.DistributedUpdateProcessor.processAdd(DistributedUpdateProcessor.java:288)
    at org.apache.solr.update.processor.LogUpdateProcessor.processAdd(LogUpdateProcessorFactory.java:97)
    at org.apache.solr.handler.loader.XMLLoader.processUpdate(XMLLoader.java:233)
    at org.apache.solr.handler.loader.XMLLoader.load(XMLLoader.java:158)
    at org.apache.solr.handler.UpdateRequestHandler$1.load(UpdateRequestHandler.java:92)
    at org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStreamHandlerBase.java:74)
    at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:129)
    at org.apache.solr.core.SolrCore.execute(SolrCore.java:1561)
    at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:442)
    at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:263)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:999)
    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:565)
    at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1812)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:619)

Original comment by 214191...@qq.com on 22 Aug 2012 at 3:09

GoogleCodeExporter commented 8 years ago
楼上的兄弟,关于IKAnalyzer2012u5ForLuceneSolr4.jar,是热心网友提�
��的,使用请谨慎!

IK如果是官方发布对solr4的支持,会直接在downloads提供链接! 

Original comment by linliang...@gmail.com on 22 Aug 2012 at 3:14

GoogleCodeExporter commented 8 years ago
我这jar是在4.0beta下测试的,请确认一下

Original comment by windfal...@gmail.com on 22 Aug 2012 at 3:19

GoogleCodeExporter commented 8 years ago
因为4.0alpha跟4.0beta并不相容,保险起见我重新上传一次jar档��
�不过使用上还是以官方发布的为准

Original comment by windfal...@gmail.com on 22 Aug 2012 at 3:27

Attachments:

GoogleCodeExporter commented 8 years ago
作者早就提醒过大家,Lucene和Solr的各种版本兼容性是坑爹的�
��!
在它没有出正式版本前,IK不会对其提供官方的API支持。否则
就要一日三变了!

Original comment by linliang...@gmail.com on 22 Aug 2012 at 3:34

GoogleCodeExporter commented 8 years ago
真的是坑爹,我从lucene3.0改到4.0beta,每个版本都有不相容的�
��方

Original comment by windfal...@gmail.com on 22 Aug 2012 at 3:44

GoogleCodeExporter commented 8 years ago
大家的回复都挺快的,呵呵,谢谢。我改成4.0beta版了,果然�
��以用了,alpha版和beta并不相容。现在索引做好了,但查询时
中文变成乱码了,这个不知道大家怎么解决?

Original comment by 214191...@qq.com on 22 Aug 2012 at 6:26

GoogleCodeExporter commented 8 years ago
这应该是网页编码问题吧,改成UTF-8试试,另外就是到Solr管��
�介面中的schema-browser,看看用ik的栏位的term info是否正常

Original comment by windfal...@gmail.com on 22 Aug 2012 at 7:03

GoogleCodeExporter commented 8 years ago
已经可以了,在tomcat的server.xml里指定了utf-8编码,就可以了��
�

Original comment by 214191...@qq.com on 22 Aug 2012 at 7:25

GoogleCodeExporter commented 8 years ago
用了你提供的支持solr4.0beta版的ik,但所有分词信息都在控制台
打印出来,比较耗性能,请问这个应该怎么关闭打印呢?

Original comment by 214191...@qq.com on 6 Sep 2012 at 8:18

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
向下兼容问题确实坑爹,建议作者将IK版本号与Lucene同步,就
像现在的Lucene与Solr,以免搞混。

Original comment by qq8707...@gmail.com on 25 Sep 2012 at 4:20

GoogleCodeExporter commented 8 years ago
thanks for the great work along with solr 3.x!

and finally solr 4.0 has been out of beta yesterday, now really looking forward 
to the fully support of IK Analyzer. 

thanks again.

Original comment by hefu....@gmail.com on 12 Oct 2012 at 12:18

GoogleCodeExporter commented 8 years ago
solr 4.0正式版出来了,请问什么时候支持4.0呢。

Original comment by liuyou...@gmail.com on 22 Oct 2012 at 3:54

GoogleCodeExporter commented 8 years ago
请下载IK2012_FF版本,支持4.0

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

GoogleCodeExporter commented 8 years ago
嗯,我用的就是ik2012lucene4.jar

Original comment by Xyynj0...@gmail.com on 11 Feb 2014 at 9:57