[
https://issues.apache.org/jira/browse/LUCENE-645?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Koji Sekiguchi updated LUCENE-645:
----------------------------------
This fix works well for our case with JapaneseAnalyzer.
input text: "AAA BBB CCC (DDD EEE)"
output (w/ lucene-highlighter-2.0.0.jar)
AAA <B>BBB</B> CCC (DDD EEE
output(w/ lucene-highlighter-2.1-dev.jar)
AAA <B>BBB</B> CCC (DDD EEE)
We hope that the fix will be included at next release.
Regards,
Koji
> Highligter fails to include non-token at end of string to be highlighted
> ------------------------------------------------------------------------
>
> Key: LUCENE-645
> URL: https://issues.apache.org/jira/browse/LUCENE-645
> Project: Lucene - Java
> Issue Type: Bug
> Components: Other
> Affects Versions: 1.9
> Environment: Red Hat Linux, Java 1.5
> Windows Java 1.5
> Reporter: Andrew Palmer
> Priority: Minor
>
> 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 {
> match = hg.getBestFragment( new StandardAnalyzer(),
> "data", "help me [54-65]" );
> } 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]
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]