Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 17929 invoked from network); 2 Jun 2009 15:03:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Jun 2009 15:03:45 -0000 Received: (qmail 50310 invoked by uid 500); 2 Jun 2009 15:03:54 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 50271 invoked by uid 500); 2 Jun 2009 15:03:54 -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 50255 invoked by uid 99); 2 Jun 2009 15:03:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Jun 2009 15:03:52 +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 (nike.apache.org: domain of radha84@gmail.com designates 209.85.222.199 as permitted sender) Received: from [209.85.222.199] (HELO mail-pz0-f199.google.com) (209.85.222.199) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Jun 2009 15:03:43 +0000 Received: by pzk37 with SMTP id 37so2112471pzk.29 for ; Tue, 02 Jun 2009 08:03:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=UcsaBzbVE/1OMcfxPCDZxow2qlbDEDKJL3Zi2/iZeSY=; b=Vlq6vcY0iSuzrQjSYCj0wZptyMu+1wIVK4IB8dB5pE5mDXry4/JgUWYYtdZOoyK1s2 H8v2qKmB1va79B7zbnQaXPmZwElcloUVqG0wqM0GhVoQov2psPFzSLEMr6mYkqZf4Ib4 ilLbNOhNWOPQKsGXbGj+YCB9sfcYWYMdtKbyQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=g/xDdKsKvE/IoP4ZiJzhEjmUG8oP/1ePZvBOH14/Tl16y/eVR8L2uUhfxkDeazCyxo oUQ/EI3JOrQzm1g7mg57nENqxW4Sc3mXBxTXgkgWjorGZqfKNSZnWRAxIIIxS9z9U3vR 796gaQOB2zU5jKbJuSih1H7t2l8wLPBxuZHOs= MIME-Version: 1.0 Received: by 10.142.218.4 with SMTP id q4mr2463907wfg.225.1243955002442; Tue, 02 Jun 2009 08:03:22 -0700 (PDT) Date: Tue, 2 Jun 2009 20:33:22 +0530 Message-ID: <45e5f8bb0906020803u410f1ca8ma64d21b4b1649410@mail.gmail.com> Subject: Highlighting in Lucene ( With SrndQuery & Query Parser ) From: Radha Sreedharan To: java-user@lucene.apache.org Content-Type: multipart/alternative; boundary=000e0cd22f28098523046b5ed82b X-Virus-Checked: Checked by ClamAV on apache.org --000e0cd22f28098523046b5ed82b Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi all, *Requirment * I have a query of type *SrndQuery *which is parsed by *QueryParser*.On the hit of this query I want to get the region of words around the match. *Approach followed* I used the highlighting logic code as per example usage in << http://lucene.apache.org/java/2_4_1/api/org/apache/lucene/search/highlight/package-summary.html>> *Issue faced* However the scores returned for the *TextFragments *are always 0, hence no text fragment is picked up The same piece of code works when my underlying query is *SpanQuery *and I am *NOT** *using *QueryParser*. *Query* Please do let me know if any of you have an idea how to resolve this issue? Regards, Radha --000e0cd22f28098523046b5ed82b--