Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 6543 invoked from network); 8 Jun 2010 07:20:15 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 8 Jun 2010 07:20:15 -0000 Received: (qmail 54458 invoked by uid 500); 8 Jun 2010 07:20:13 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 54243 invoked by uid 500); 8 Jun 2010 07:20: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 54234 invoked by uid 99); 8 Jun 2010 07:20:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Jun 2010 07:20:09 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of aad.nales@gmail.com designates 74.125.82.48 as permitted sender) Received: from [74.125.82.48] (HELO mail-ww0-f48.google.com) (74.125.82.48) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Jun 2010 07:20:01 +0000 Received: by wwb34 with SMTP id 34so764917wwb.35 for ; Tue, 08 Jun 2010 00:19:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=xeohJksxRLjiNneCBUcHPddSWrCwWLLA6APHFvFkKwY=; b=oPdviwbcFIPHpfBJ1XXNl5uyEj+AYb1fVnBkgGoCQhdavcSVTdLSO8oF5wmpC2Vzrf kp7qfWXXw2TyXmmPj51CWBSdF0mq9iajQN2W+M5i6TJ1d6jzhf/AcrfmA7QQsMJQJrxe mboOSlhDyj88rJJ21ROKL2ySIraDXhYup930s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=kZywfCe0K+AtmGHiL8OI/3BJjsEjzGEfrl9tHP4Xv1E8WENHAOZQ4Pi/1XJRzBmT+g 3sj+8APvyN8SFO0myrQN+jNt4l1eQmYg+v5oPXXIRKAu8pQhj5Adk0d5MER2Dy0Q0si0 Sk7D5TUfj5HEoSUWUGFOFCeEWoExKaDzgitEM= MIME-Version: 1.0 Received: by 10.227.146.208 with SMTP id i16mr3049748wbv.178.1275981580409; Tue, 08 Jun 2010 00:19:40 -0700 (PDT) Received: by 10.216.157.135 with HTTP; Tue, 8 Jun 2010 00:19:40 -0700 (PDT) Date: Tue, 8 Jun 2010 09:19:40 +0200 Message-ID: Subject: retrieving Payload 3.0.1 From: Aad Nales To: java-user@lucene.apache.org Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org Hi All, I storing synonyms in an index. e.g. 'institute' as a synonym for 'organization'. Since I want to highlight the orginal term when showing the result i am storing a Payload with each synononym. So in this case the term 'institute' has a payload for 'organization'. I execute a search and the document is found. Now i want to create the highlighting and here is where it goes wrong. I am unable to figure out how to 'read' the Payload from the document. Perhaps i am looking at it the wrong way? What i want to avoid is having to expand my search query with the synonyms. Is there anybody who could give me a hint how to go about this in lucene 3.0.1 tia, Aad --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org