use of org.apache.lucene.codecs.blockterms.LuceneVarGapFixedInterval in project lucene-solr by apache.
the class TestPerFieldPostingsFormat2 method testSameCodecDifferentParams.
public void testSameCodecDifferentParams() throws Exception {
Codec codec = new AssertingCodec() {
@Override
public PostingsFormat getPostingsFormatForField(String field) {
if ("id".equals(field)) {
return new LuceneVarGapFixedInterval(1);
} else if ("date".equals(field)) {
return new LuceneVarGapFixedInterval(2);
} else {
return super.getPostingsFormatForField(field);
}
}
};
doTestMixedPostings(codec);
}
Aggregations