Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 97877 invoked from network); 12 Nov 2007 14:55:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Nov 2007 14:55:19 -0000 Received: (qmail 52583 invoked by uid 500); 12 Nov 2007 14:55:01 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 52544 invoked by uid 500); 12 Nov 2007 14:55:01 -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 52533 invoked by uid 99); 12 Nov 2007 14:55:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Nov 2007 06:55:01 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [194.109.24.32] (HELO smtp-vbr12.xs4all.nl) (194.109.24.32) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Nov 2007 14:55:03 +0000 Received: from [192.168.89.206] (impressie.xs4all.nl [82.93.53.149]) by smtp-vbr12.xs4all.nl (8.13.8/8.13.8) with ESMTP id lACEsg5Q035247 for ; Mon, 12 Nov 2007 15:54:42 +0100 (CET) (envelope-from matthijs@impressie.nl) Message-ID: <47386935.4080803@impressie.nl> Date: Mon, 12 Nov 2007 15:54:45 +0100 From: Matthijs Bierman User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: java-user@lucene.apache.org Subject: get original term for synonym Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by XS4ALL Virus Scanner X-Virus-Checked: Checked by ClamAV on apache.org Hi there, Currently I am trying to get synonyms to work. I have gotten as far as injecting them into the index as Token.type SYNONYM. Lucene then finds the original word and synonym and points to the same document. So far so good. However, I am stuck at highlighting the result. I have highlighters of my own that currently need an array of words to highlight. Extraction is done from the query, but the query gives the synonym, instead of the word it points to. Therefore highlighting is incorrect (or rather non-existent). Is there a simple way to make the synonym return the word it points to? Thank you in advance, Matthijs Bierman (Netherlands) --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org