Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 79556 invoked from network); 19 Sep 2008 08:15:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Sep 2008 08:15:17 -0000 Received: (qmail 1187 invoked by uid 500); 19 Sep 2008 08:15:07 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 1056 invoked by uid 500); 19 Sep 2008 08:15:07 -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 1045 invoked by uid 99); 19 Sep 2008 08:15:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Sep 2008 01:15:07 -0700 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 [82.227.122.98] (HELO mail.garambrogne.net) (82.227.122.98) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Sep 2008 08:14:08 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.garambrogne.net (Postfix) with ESMTP id 72E6738E394 for ; Fri, 19 Sep 2008 10:14:38 +0200 (CEST) Received: from mail.garambrogne.net ([127.0.0.1]) by localhost (localhost.localdomain [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WfI0mB1VsrM0 for ; Fri, 19 Sep 2008 10:14:34 +0200 (CEST) Received: by mail.garambrogne.net (Postfix, from userid 33) id 7A20138E395; Fri, 19 Sep 2008 10:14:34 +0200 (CEST) To: java-user@lucene.apache.org Subject: Re: could I implement this =?UTF-8?Q?scenario=3F?= MIME-Version: 1.0 Date: Fri, 19 Sep 2008 10:14:34 +0200 From: mathieu Organization: Garambrogne In-Reply-To: <998192.14904.qm@web15806.mail.cnb.yahoo.com> References: <998192.14904.qm@web15806.mail.cnb.yahoo.com> Message-ID: <77e101c1855b7f8f59e43e7abbc15e89@localhost> X-Sender: mathieu@garambrogne.net User-Agent: RoundCube Webmail/0.1b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Yes. You can store data in lucene index and don't search on it : your simdocid. M. On Fri, 19 Sep 2008 16:00:20 +0800 (CST), xh sun wrote: > Hi all, > > How can I implemented this scenario in lucene? > > suppose every document has three fields: docid, doctext and simdocid. > docid is the id of the document, doctext is the content of the document, > dimdocid is the docid of a similar document with this document. > example: > docid  doctext                    simdocid > doc01  ************************   doc04 > doc02  ************************   doc03 > doc03  ************************   doc02 > doc04  ************************   doc03 > doc05  ************************   doc04 > doc06  ************************   doc02 > > During query, the index will be searched basing on field doctext. If the > hits include four documents doc01,doc03,doc04, doc05, I want to display the > corresponding similar documents only, that is, the three documents > doc04,doc02,doc03. > > Appreicate your help very much. > > BR, > Shawn > > > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org