Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 68589 invoked from network); 25 Aug 2005 15:53:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 Aug 2005 15:53:16 -0000 Received: (qmail 21745 invoked by uid 500); 25 Aug 2005 15:53:10 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 21724 invoked by uid 500); 25 Aug 2005 15:53:10 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 21711 invoked by uid 99); 25 Aug 2005 15:53:10 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Aug 2005 08:53:10 -0700 X-ASF-Spam-Status: No, hits=0.4 required=10.0 tests=DNS_FROM_RFC_ABUSE X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [217.12.10.212] (HELO web26001.mail.ukl.yahoo.com) (217.12.10.212) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 25 Aug 2005 08:53:26 -0700 Received: (qmail 83380 invoked by uid 60001); 25 Aug 2005 15:53:06 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.co.uk; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=cPlwQlkpWVPnwyc0SZj6Nj/wKXO/2HUXGUVjrdheTEm1b1zpTxVwVflo0eGf1ia0qJC8BQihLLqRYPg79hVhPqnDmXBFG27jNOJIWeMIMqmlQiXy7nuO6+x4SjwwOkIbbd57eZ4X3YcMNikV6b2yVpaueviZXvj2lSgr6nuDzfg= ; Message-ID: <20050825155306.83378.qmail@web26001.mail.ukl.yahoo.com> Received: from [193.36.230.96] by web26001.mail.ukl.yahoo.com via HTTP; Thu, 25 Aug 2005 16:53:06 BST Date: Thu, 25 Aug 2005 16:53:06 +0100 (BST) From: mark harwood Subject: Re: Thinking about better highlighting To: java-user@lucene.apache.org In-Reply-To: <6.2.3.4.2.20050825095248.0674e6d0@fast.synernet.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N >> but I'm still lost on how to convert > everything to SpanQuery > variants. See the QuerySpansExtractor I linked to here: http://issues.apache.org/bugzilla/show_bug.cgi?id=35518 This uses SpanTermQuery for individual TermQuerys. As for all of the other query types eg fuzzy, prefix, range etc these are always rewritten to TermQuerys anyway (using Query.rewrite(reader)) so passing re-written queries to the highlighter solves all these issues. That has always been the advice in using the existing term-based highlighter. This would also be required when calling any new span-based highlighter. ___________________________________________________________ How much free photo storage do you get? Store your holiday snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org