Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 15919 invoked from network); 7 Feb 2010 10:33:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 Feb 2010 10:33:31 -0000 Received: (qmail 23822 invoked by uid 500); 7 Feb 2010 10:33:29 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 23747 invoked by uid 500); 7 Feb 2010 10:33:29 -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 23737 invoked by uid 99); 7 Feb 2010 10:33:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 07 Feb 2010 10:33:29 +0000 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 iamrohitbanga@gmail.com designates 209.85.223.200 as permitted sender) Received: from [209.85.223.200] (HELO mail-iw0-f200.google.com) (209.85.223.200) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 07 Feb 2010 10:33:17 +0000 Received: by iwn38 with SMTP id 38so5595482iwn.11 for ; Sun, 07 Feb 2010 02:32:57 -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 :from:date:message-id:subject:to:content-type; bh=FCOQSu3J/8KZSyIMaMS7rFCkXFUQrxRW1fVPpCsbLSg=; b=FoDVoUjQQFUepefO8dYdprUZgtzj9RDIhl7RyFs9vuSqzVV+4Mfz1rGCPusfNSzS1u SY1nL/68YzW5mO7WUmoQbIRSpbBB+dQKp+GGYH1yyEO2CXM77BSn6o/cnimY0Aj17ttO +xb9C7oWt7nU8NqMJrSZo2ba7FSLF6UxRbj/M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=vfFzPu9reQqSC71YQnaFEhL1Aouexr4UzKbABXHfNAkCzcgK4UcL5u6SHD7jnd0h0t Yl/RySYwrDiCxMgIv0odlthwTaTwqgm5tYTQlYBgkQhAEDyiVSr4vyNfM7Wh0+rTn4Ct EV1MRgnFVnSNUty8m/q7LA4P+Umi3p8XE1O0E= MIME-Version: 1.0 Received: by 10.231.146.79 with SMTP id g15mr6008454ibv.49.1265538777150; Sun, 07 Feb 2010 02:32:57 -0800 (PST) In-Reply-To: <001601caa73a$ac403030$04c09090$@de> References: <001601caa73a$ac403030$04c09090$@de> From: Rohit Banga Date: Sun, 7 Feb 2010 16:02:37 +0530 Message-ID: Subject: Re: hit highlighting in lucene To: java-user@lucene.apache.org Content-Type: multipart/alternative; boundary=0016e647601e42f8bc047f00355c --0016e647601e42f8bc047f00355c Content-Type: text/plain; charset=ISO-8859-1 but what about the case in which i am using fuzzy query matching. then the highlighter package does not work. On Sat, Feb 6, 2010 at 8:12 PM, Uwe Schindler wrote: > There are two contrib packages for highlighting in the lucene distribution: > highlighter and fast-vector-highlighter > > ----- > Uwe Schindler > H.-H.-Meier-Allee 63, D-28213 Bremen > http://www.thetaphi.de > eMail: uwe@thetaphi.de > > > > -----Original Message----- > > From: Rohit Banga [mailto:iamrohitbanga@gmail.com] > > Sent: Saturday, February 06, 2010 2:27 PM > > To: java-user@lucene.apache.org > > Subject: hit highlighting in lucene > > > > Hi friends > > > > I have just started using lucene and the way i want to use it is the > > following: > > > > i have documents consisting of names of users as one field. > > i have a sentence that may contain the name of some user. > > i perform a search for the sentence in the index using the searcher. > > if it contains the name of the user, then that user's document is > > listed on > > top by lucene. > > > > now i want to determine the position in the sentence where the string > > has > > been found. > > > > i am using fuzzy query matching by adding the character '~' to the > > sentence > > i am searching. > > so this means i cannot use the find function of the String class as is > > to > > get the position of the match. > > > > Thanks in advance > > > > -- > > Rohit Banga > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org > > -- Rohit Banga --0016e647601e42f8bc047f00355c--