Return-Path: Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: (qmail 12421 invoked from network); 30 Mar 2011 19:06:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 30 Mar 2011 19:06:46 -0000 Received: (qmail 95516 invoked by uid 500); 30 Mar 2011 19:06:45 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 95468 invoked by uid 500); 30 Mar 2011 19:06:45 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 95461 invoked by uid 99); 30 Mar 2011 19:06:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Mar 2011 19:06:45 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Mar 2011 19:06:43 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id BA46C85D0E for ; Wed, 30 Mar 2011 19:06:05 +0000 (UTC) Date: Wed, 30 Mar 2011 19:06:05 +0000 (UTC) From: "Tran Nam Quang (JIRA)" To: dev@lucene.apache.org Message-ID: <135796946.21898.1301511965759.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (LUCENE-3007) Fast vector highlighter: Allow access to start/end offsets MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org Fast vector highlighter: Allow access to start/end offsets ---------------------------------------------------------- Key: LUCENE-3007 URL: https://issues.apache.org/jira/browse/LUCENE-3007 Project: Lucene - Java Issue Type: Improvement Components: contrib/highlighter Reporter: Tran Nam Quang Priority: Minor Hello everyone, Apparently, the fast vector highlighter assumes all of its clients want to highlight HTML. However, there are some people (like me) who would like to implement highlighting on a text-only document view, so nothing but the highlighting start/end offsets are needed. This works quite well with Lucene's standard highlighter. Unfortunately, there seems to be no officially supported way to access the start/end offsets that are computed by the fast vector highlighter. More precisely, all the needed information is stored in the linked list org.apache.lucene.search.vectorhighlight.FieldPhraseList.phraseList, but there's no way to access it, except using reflection or modifying the highlighter source code. So my proposal is to provide some methods for accessing this particular field, or any other means to get the highlighting start/end offsets of the fast vector highlighter. Thanks in advance! Best regards Tran Nam Quang -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org