Java 类org.apache.lucene.search.vectorhighlight.ScoreOrderFragmentsBuilder 实例源码

项目:t4f-data    文件:FastVectorHighlighterSample.java   
static FastVectorHighlighter getHighlighter() {
    FragListBuilder fragListBuilder = new SimpleFragListBuilder(); // #F
    FragmentsBuilder fragmentBuilder = // #F
    new ScoreOrderFragmentsBuilder( // #F
            BaseFragmentsBuilder.COLORED_PRE_TAGS, // #F
            BaseFragmentsBuilder.COLORED_POST_TAGS); // #F
    return new FastVectorHighlighter(true, true, // #F
            fragListBuilder, fragmentBuilder); // #F
}