简体   繁体   English

Lucene 4.0快照中缺少软件包

[英]missing packages in lucene 4.0 snapshot

anybody knows why there is no QueryParser, nor IndexWriter.MaxFieldLength(25000) and some more in Lucene 4.0 Snapshot? 任何人都知道为什么在Lucene 4.0 Snapshot中没有QueryParser,IndexWriter.MaxFieldLength(25000)等等? I'm having hard time to port the code to this newer version, though I'm following the code as given here: http://search-lucene.com/jd/lucene/overview-summary.html 尽管我正在遵循此处给出的代码,但我很难将代码移植到此较新的版本: http : //search-lucene.com/jd/lucene/overview-summary.html

How do I find the missing packages, and how do I get them? 如何找到丢失的包裹,以及如何获取它们? As the snapshop jar doesn't contain all the features.. 由于snapshop jar并不包含所有功能。

thanks 谢谢

Lucene has been re-architectured, and some classes which used to be in the core module are now in submodules. Lucene已进行了重新架构,并且某些以前位于核心模块中的类现在位于子模块中。 You will now find the QueryParser stuff in the queryparser submodule. 现在,您将在queryparser子模块中找到QueryParser东西 Similarly, lots of useful analyzers, tokenizers and tokenfilters have been moved to the analysis submodule. 同样,许多有用的分析器,令牌化器和令牌过滤器已移至分析子模块。

Regarding IndexWriter, the maximum field length option has been deprecated, it is now recommended to wrap an analyzer with LimitTokenCountAnalyzer (in the analysis submodule) instead. 关于IndexWriter,最大字段长度选项已被弃用,现在建议使用LimitTokenCountAnalyzer (在分析子模块中)包装一个分析器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM