Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
1.9
-
None
-
None
-
Red Hat Linux, Java 1.5
Windows Java 1.5
Description
The following code extract show the problem
TermQuery query= new TermQuery( new Term( "data", "help" ));
Highlighter hg = new Highlighter(new SimpleHTMLFormatter(), new QueryScorer( query ));
hg.setTextFragmenter( new NullFragmenter() );
String match = null;
try
catch (IOException e)
{ e.printStackTrace(); }System.out.println( match );
The sytsem outputs
<B>help</B> me [54-65
would expect
<B>help</B> me [54-65]