Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 29326 invoked from network); 2 Jul 2007 19:14:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Jul 2007 19:14:28 -0000 Received: (qmail 41942 invoked by uid 500); 2 Jul 2007 19:14:29 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 41880 invoked by uid 500); 2 Jul 2007 19:14:29 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 41869 invoked by uid 99); 2 Jul 2007 19:14:28 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Jul 2007 12:14:28 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Jul 2007 12:14:25 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 8E4FE714191 for ; Mon, 2 Jul 2007 12:14:04 -0700 (PDT) Message-ID: <27818686.1183403644579.JavaMail.jira@brutus> Date: Mon, 2 Jul 2007 12:14:04 -0700 (PDT) From: "Mark Miller (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Commented: (LUCENE-645) Highligter fails to include non-token at end of string to be highlighted In-Reply-To: <30210700.1154594114003.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/LUCENE-645?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12509643 ] Mark Miller commented on LUCENE-645: ------------------------------------ This issue has been fixed. > 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 > help me [54-65 > would expect > help 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: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org