Lucene3.0正式发布了
Lucene3.0正式版于2009年11月25日发布了,2.X经过多年终于有了大版本的升级了. 在Lucene 3 中,发生了较大的变化。Jdk的版本必须是jdk5以上,使用了5的泛型和匿名注释.与上个版本2.9的使用方法是没有明显区别, QueryParser parser = new QueryParser(Version.LUCENE_CURRENT, field,analyzer); 以前是没有版本参数.
· Replace o.a.l.util.Parameter by Java 5 enums (see below).
· Add @Override annotations.
- TokenStream/AttributeSource: Now addAttribute()/getAttribute() return an instance of the requested attribute interface and no cast needed anymore (LUCENE-1855).
- NumericRangeQuery, NumericRangeFilter, and FieldCacheRangeFilter now have Integer, Long, Float, Double as type param (LUCENE-1857).
- Document.getFields() returns List<Fieldable>.
- Query.extractTerms(Set<Term>)
- CharArraySet and stop word sets in core/contrib
- PriorityQueue (LUCENE-1935)
- TopDocCollector
- DisjunctionMaxQuery (LUCENE-1984)
- MultiTermQueryWrapperFilter
- CloseableThreadLocal
- MapOfSets
- o.a.l.util.cache package
- lot’s of internal APIs of IndexWriter
欢迎转载,请注明出处:亲亲宝宝