首页 >> 文摘 >> JAVA

高级搜索技术--Filter

采集日期:2008-5-1作者:sunnydream(注:本数据由系统自动采集,内容与BHCODE无关)
 关于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
本周推荐
MORE
热点关注
MORE