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

项目:BioSolr    文件:XJoinQParserPlugin.java   
@Override
@SuppressWarnings("unchecked")
Filter makeFilter(String fname, Iterator<BytesRef> it) {
  Automaton union = Automata.makeStringUnion(IteratorUtils.toList(it));
  return new MultiTermQueryWrapperFilter<AutomatonQuery>(new AutomatonQuery(new Term(fname), union)) {
  };
}
项目:search    文件:TermsQParserPlugin.java   
@Override
Filter makeFilter(String fname, BytesRef[] byteRefs) {
  Automaton union = Automata.makeStringUnion(Arrays.asList(byteRefs));
  return new MultiTermQueryWrapperFilter<AutomatonQuery>(new AutomatonQuery(new Term(fname), union)) {
  };
}
项目:read-open-source-code    文件:TermsQParserPlugin.java   
@Override
Filter makeFilter(String fname, BytesRef[] byteRefs) {
  Automaton union = Automata.makeStringUnion(Arrays.asList(byteRefs));
  return new MultiTermQueryWrapperFilter<AutomatonQuery>(new AutomatonQuery(new Term(fname), union)) {
  };
}