Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@www.apache.org Received: (qmail 45043 invoked from network); 21 Jul 2004 20:32:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 21 Jul 2004 20:32:28 -0000 Received: (qmail 70235 invoked by uid 500); 21 Jul 2004 20:32:20 -0000 Delivered-To: apmail-jakarta-lucene-user-archive@jakarta.apache.org Received: (qmail 70192 invoked by uid 500); 21 Jul 2004 20:32:20 -0000 Mailing-List: contact lucene-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Lucene Users List" Reply-To: "Lucene Users List" Delivered-To: mailing list lucene-user@jakarta.apache.org Received: (qmail 70179 invoked by uid 99); 21 Jul 2004 20:32:20 -0000 X-ASF-Spam-Status: No, hits=0.8 required=10.0 tests=DNS_FROM_RFC_ABUSE,NO_REAL_NAME,SPF_HELO_PASS X-Spam-Check-By: apache.org Received: from [194.106.33.237] (HELO outmail.freedom2surf.net) (194.106.33.237) by apache.org (qpsmtpd/0.27.1) with ESMTP; Wed, 21 Jul 2004 13:32:17 -0700 Received: from dell (i-194-106-34-5.freedom2surf.net [194.106.34.5]) by outmail.freedom2surf.net (8.12.10/8.12.10) with SMTP id i6LKWAnF023720 for ; Wed, 21 Jul 2004 21:32:11 +0100 Date: Wed, 21 Jul 2004 21:32:10 +0100 Message-Id: <200407212032.i6LKWAnF023720@outmail.freedom2surf.net> From: markharw00d@yahoo.co.uk To: lucene-user@jakarta.apache.org Subject: Re: Can I retrieve token offsets from Hits? X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N > I need these values for hihglighting. I've already looked to > Highlighter in sandbox but it actually re-analyzes the original > document's field. Technically not true, as of a few months ago. The good news is the highlighter has been redesigned specifically to use TokenStreams not Analyzers. This would enable you to pass the token position information in from a pre-computed store of token positions. The bad news is that such a token-position storage feature has not been added to core Lucene yet. If it ever is added the highlighter is already set up to make good use of it. Cheers Mark --------------------------------------------------------------------- To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: lucene-user-help@jakarta.apache.org