Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 78214 invoked from network); 16 Feb 2009 00:08:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Feb 2009 00:08:12 -0000 Received: (qmail 45197 invoked by uid 500); 16 Feb 2009 00:08:04 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 45167 invoked by uid 500); 16 Feb 2009 00:08:04 -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 45156 invoked by uid 99); 16 Feb 2009 00:08:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Feb 2009 16:08:04 -0800 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ianvink@gmail.com designates 209.85.217.170 as permitted sender) Received: from [209.85.217.170] (HELO mail-gx0-f170.google.com) (209.85.217.170) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Feb 2009 00:07:55 +0000 Received: by gxk18 with SMTP id 18so2451083gxk.5 for ; Sun, 15 Feb 2009 16:07:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=OagsMZGoHDvUMg9fT3iGVU56ZZQGGCqn1wUZzBvkFDI=; b=ti/nhMyVMdZtKwGOb2QlTvKgka5vD18bEUgQTUcMJXAZ4I9CRuEQciIAA/MweGoPcI tP+thmN5jzdOGfxO7AIvC9X3mIlPB9fsft5vS+IHzCRn2C0pw2QRv0E5ZhFAZTw3wdrx x+ytHuEDp6IZb3oFzoil6to3F0jxKCRapvpCw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=cMNANaC81olkjB5+CO2JqayTMJ3sxs+viZI957Xm1kL567ots7qVJrVtYYMnFySG6V 8WsY3pHGD6lzSYUYDUqTYzV8DVOfWMk6Qq1qN4eICndo55Ce3upYfN5bqCAFsSMaQ1Ry VtXqHwNCLWN+TzJ3z1g6NnZXpcKh1hlkfendA= MIME-Version: 1.0 Received: by 10.220.95.202 with SMTP id e10mr963878vcn.12.1234742852796; Sun, 15 Feb 2009 16:07:32 -0800 (PST) In-Reply-To: <49979264.4060501@gmail.com> References: <5d53d5770812071051g49fc6cau7ed2b142c88fd7e2@mail.gmail.com> <493D12E6.4020701@gmail.com> <5d53d5770902141903t2bcd1af1ic12ddcfc43d87446@mail.gmail.com> <49979264.4060501@gmail.com> Date: Sun, 15 Feb 2009 20:07:32 -0400 Message-ID: <5d53d5770902151607s4efec055x13642cedbcc5af58@mail.gmail.com> Subject: Re: Fragment Highlighter Phrase? From: Ian Vink To: java-user@lucene.apache.org Content-Type: multipart/alternative; boundary=0016e64eacb42140ef0462fdf9bd X-Virus-Checked: Checked by ClamAV on apache.org --0016e64eacb42140ef0462fdf9bd Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Thanks Mark, I got the latest Contrib bits for Highlighter.net (Jan 28/2008 Version 2.3.2) but it looks similar to the older 2.0.0 There is a QueryScroer only. Any ideas? (Really important to me :) Ian On Sat, Feb 14, 2009 at 11:56 PM, Mark Miller wrote: > Sorry, I wasn't specific enough. I meant the SpanScorer in the contrib > highlighter package - they are very different. > > I assume the latest Highlighter package has been ported to Lucene .NET, but > if not I know of a guy that ported the SpanScorer stuff > to C# a while back. I might be able to get my hands on that still, though > it may be dated now. First check the highlighter contrib > and see if its there though. > > - Mark > > > Ian Vink wrote: > >> I use the Lucene.NET implementation. (2.3) >> There is a Lucene.Net.Search.Spans.SpanScorer class, but it's not public I >> assume I'd have to use it as a base class for my own. >> >> Do you have a simple example on how, in Java, to use the SpanScorer to get >> a >> highlighter to return only fragments that are part of the phrase in the >> Query? >> >> Ian >> >> >> >> On Mon, Dec 8, 2008 at 8:28 AM, Mark Miller >> wrote: >> >> >> >>> Ian Vink wrote: >>> >>> >>> >>>> Is there a way to get phrases counted in the list of fragments that come >>>> back from Highlighter.GetBestFragments() in general. >>>> It seems to only take words into account. >>>> >>>> Ian >>>> >>>> >>>> >>>> >>>> >>> Not sure I fully understand, but have you tried the SpanScorer? It allows >>> the Highlighter to work with phrase/span queries. >>> >>> - Mark >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org >>> For additional commands, e-mail: java-user-help@lucene.apache.org >>> >>> >>> >>> >> >> >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org > > --0016e64eacb42140ef0462fdf9bd--