关于Filter
Filter顾名思义 就是用来过虑搜索结果的,在Lucene中有3个过虑器
1,DateFilter constrains the document space to only documents with a specified date field within a given range of dates.
2,QueryFilter uses the results of query as the searchable document space for a new query.
3,CachingWrapperFilter is a decorator over another filter caching its results to increase performance when used again. import lia.common.LiaTestCase; import org.apache.lucene.document.DateField;005 import org.apache.lucene.index.Term;00