Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 20061 invoked from network); 23 Sep 2008 10:52:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Sep 2008 10:52:31 -0000 Received: (qmail 96954 invoked by uid 500); 23 Sep 2008 10:52:22 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 96606 invoked by uid 500); 23 Sep 2008 10:52:21 -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 96594 invoked by uid 99); 23 Sep 2008 10:52:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Sep 2008 03:52:21 -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: domain of anshulnirvana@gmail.com designates 209.85.198.226 as permitted sender) Received: from [209.85.198.226] (HELO rv-out-0506.google.com) (209.85.198.226) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Sep 2008 10:51:23 +0000 Received: by rv-out-0506.google.com with SMTP id f6so1932934rvb.5 for ; Tue, 23 Sep 2008 03:51:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=gFNePFAHYF1PD4uP5WbGNQDrMaPiFrnws8tZ+Ob5VEY=; b=MwdreTFy+8aLcm1cvrGila6DA9BNfgTY9FII2sfdraHFxEQfx+a4npoiUFjcSTVaaY nO5JEVIOs3IkYLBt6SZG8S5cjTGPLJ436RtyEJeeD07w4yv31KU4RGPixJBB0PXxca2X bBSs6qHnCvTSKb8wmjlBNoj44nP4W6RIsA/B4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=vXnrEoGLsdoTHxMEhyR0UGJOeKhiWJ2hQjwOfB27rfvyKzukFIA1/2L5j2++627C8t V2n8XcA2hjGhPNaHbZCKVhBAm4SMa5+uc4o/ontw6hMT17Xcw5ChrDPBscFVedFIPw2i Ees8X7hSoQDyxN5jwV2MbChjSJPYNsi/Hp3p8= Received: by 10.114.148.2 with SMTP id v2mr6115901wad.202.1222167107342; Tue, 23 Sep 2008 03:51:47 -0700 (PDT) Received: by 10.114.39.6 with HTTP; Tue, 23 Sep 2008 03:51:47 -0700 (PDT) Message-ID: Date: Tue, 23 Sep 2008 12:51:47 +0200 From: "Anshul jain" To: java-user@lucene.apache.org Subject: Re: Multi Field search without Multifieldqueryparser In-Reply-To: <48d75c0a.1f15300a.5c54.4df2@mx.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <48d75c0a.1f15300a.5c54.4df2@mx.google.com> X-Virus-Checked: Checked by ClamAV on apache.org Here is what I'm trying to do: say a lucene document: name: abc ^10 organization: xyz ^3 ^10 and ^3 are boosts in the document. now if I query name: abc ^5 AND organization: xyz this will work. but if I query (default_field): abc^5 AND xyz this won't work. Now what I want is that a text can be associated with more than one field. i.e. (field1,field2,field3):value name,(default_field),title: abc^10 organization,(default_field),institute: xyz^3 then both of my queries will work. Is it possible to do so in lucene without changing the source? If no then can anyone please explain the indexing and searching mechanism for lucene, so that I can start working on it. The solution given by the java-users won't work for me as I do not want to add all the contents of the document in a single field and then search for that field, as this would increase the index size and I've to index more than 10 million documents. Also multifieldqueryparser will make it query execution inefficient, as there will be thousands of fields. If I start storing just a single field as: (default_field): "name abc organization xyz", then it is possible that some other documents might get selected that are not relevant. Also i want to boost individual fields in a document. Anshul --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org