Package org.apache.lucene.search.highlight

Examples of org.apache.lucene.search.highlight.SimpleHTMLEncoder


    FieldFragList ffl = ffl( "a", "<h1> a </h1>" );
    SimpleFragmentsBuilder sfb = new SimpleFragmentsBuilder();
    String[] preTags = { "[" };
    String[] postTags = { "]" };
    assertEquals( "&lt;h1&gt; [a] &lt;/h1&gt;",
        sfb.createFragment( reader, 0, F, ffl, preTags, postTags, new SimpleHTMLEncoder() ) );
  }
View Full Code Here

TOP

Related Classes of org.apache.lucene.search.highlight.SimpleHTMLEncoder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.