Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 63019 invoked from network); 11 Oct 2005 11:37:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 Oct 2005 11:37:20 -0000 Received: (qmail 87132 invoked by uid 500); 11 Oct 2005 11:37:14 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 87112 invoked by uid 500); 11 Oct 2005 11:37:13 -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 87101 invoked by uid 99); 11 Oct 2005 11:37:13 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Oct 2005 04:37:13 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [129.241.7.60] (HELO fri.itea.ntnu.no) (129.241.7.60) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Oct 2005 04:37:15 -0700 Received: from localhost (localhost [127.0.0.1]) by fri.itea.ntnu.no (Postfix) with ESMTP id 3A2B483CA for ; Tue, 11 Oct 2005 13:36:50 +0200 (CEST) Received: from whitestar (dhcp-103-241.idi.ntnu.no [129.241.103.241]) by fri.itea.ntnu.no (Postfix) with ESMTP for ; Tue, 11 Oct 2005 13:36:49 +0200 (CEST) From: "Trond Aksel Myklebust" To: Subject: Intersecting queries Date: Tue, 11 Oct 2005 13:36:36 +0200 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0000_01C5CE68.CD758980" X-Mailer: Microsoft Office Outlook, Build 11.0.6353 Thread-Index: AcXOVz2cN8HGL03xTgWPcvVQVRTauQ== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 X-Content-Scanned: with sophos and spamassassin at mailgw.ntnu.no. Message-Id: <20051011113650.3A2B483CA@fri.itea.ntnu.no> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_NextPart_000_0000_01C5CE68.CD758980 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit I need to be able to intersect the result of two queries based on a field "ID". So if I do a search: Content2 = "something totally" and a search: Content1 = "something" I want to return only Document 2 based on the field ID being the same. Any tip on how to do this in Lucene, or should I go for an external solution? Document 1: ID = 500 Content1 = "something" Document 2: ID = 500 Content2 = "something totally" Document 3: ID = 501 Content2 = "something totally different" Regards Trond A Myklebust ------=_NextPart_000_0000_01C5CE68.CD758980--