Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 95638 invoked from network); 25 Jul 2005 14:41:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 Jul 2005 14:41:04 -0000 Received: (qmail 181 invoked by uid 500); 25 Jul 2005 14:40:56 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 143 invoked by uid 500); 25 Jul 2005 14:40:55 -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 117 invoked by uid 99); 25 Jul 2005 14:40:55 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Jul 2005 07:40:55 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FORGED_RCVD_HELO,SPF_HELO_PASS X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [129.177.30.12] (HELO noralf.uib.no) (129.177.30.12) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Jul 2005 07:40:48 -0700 Received: from alfred.uib.no (smtp.uib.no) [129.177.30.120] by noralf.uib.no with esmtp (Exim 4.34) id 1Dx48R-0000oG-Fx; Mon, 25 Jul 2005 16:40:52 +0200 Received: from 157.84-48-88.nextgentel.com ([10.0.0.3]) [84.48.88.157] by smtp.uib.no for java-user@lucene.apache.org with esmtp (Exim 4.34) id 1Dx48R-0002Je-9D; Mon, 25 Jul 2005 16:40:51 +0200 Message-ID: <42E4F9F3.2070902@broadpark.no> Date: Mon, 25 Jul 2005 16:40:51 +0200 From: Magne Skjeret User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: java-user@lucene.apache.org Subject: Relations between documents Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-checked-clean: by exiscan on noralf X-Scanner: b215d40c921de83079b77583cfe43455 http://tjinfo.uib.no/virus.html X-UiB-SpamFlag: NO UIB: -15 hits, 8.0 required X-UiB-SpamReport: spamassassin found; -15 From is listed in 'whitelist_from' X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi I have been reading around a bit on the net to find a solution for my problem, but no luck yet. I am pretty sure it can be done, but I haven't found out how yet. My problem is that I have relations between documents. E.g Survey --> Variables Each survey can have loads of variables, and I want to be able to run queries like this: Get Survey where Variable.label contains 'gender' Get Variable where Survey.abstract contains 'cancer' Is this possible to do this in the index? Or does it belong in the query? If anyone has some comments on best practice or other comments I would very much appreciate hearing about them. Magne Skjeret --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org