Java 类org.apache.lucene.search.FieldCacheTermsFilter 实例源码

项目:t4f-data    文件:FilterTest.java   
public void testFieldCacheTermsFilter() throws Exception {
  Filter filter = new FieldCacheTermsFilter("category",
                    new String[] {"/health/alternative/chinese",
                                  "/technology/computers/ai",
                                  "/technology/computers/programming"});
  assertEquals("expected 7 hits",
               7,
               TestUtil.hitCount(searcher, allBooks, filter));
}
项目:search    文件:TermsQParserPlugin.java   
@Override
Filter makeFilter(String fname, BytesRef[] byteRefs) {
  return new FieldCacheTermsFilter(fname, byteRefs);
}
项目:BioSolr    文件:XJoinQParserPlugin.java   
@Override
Filter makeFilter(String fname, Iterator<BytesRef> it) {
  return new FieldCacheTermsFilter(fname, (BytesRef[])IteratorUtils.toArray(it, BytesRef.class));
}
项目:read-open-source-code    文件:TermsQParserPlugin.java   
@Override
Filter makeFilter(String fname, BytesRef[] byteRefs) {
  return new FieldCacheTermsFilter(fname, byteRefs);
}