Return-Path: Delivered-To: apmail-lucene-general-archive@www.apache.org Received: (qmail 83689 invoked from network); 7 Apr 2011 11:20:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 Apr 2011 11:20:11 -0000 Received: (qmail 16688 invoked by uid 500); 7 Apr 2011 11:20:10 -0000 Delivered-To: apmail-lucene-general-archive@lucene.apache.org Received: (qmail 16626 invoked by uid 500); 7 Apr 2011 11:20:10 -0000 Mailing-List: contact general-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: general@lucene.apache.org Delivered-To: mailing list general@lucene.apache.org Received: (qmail 16617 invoked by uid 99); 7 Apr 2011 11:20:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Apr 2011 11:20:10 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=FREEMAIL_FROM,SPF_NEUTRAL,T_TO_NO_BRKTS_FREEMAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: 216.139.236.26 is neither permitted nor denied by domain of sailesh.jain@gmail.com) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Apr 2011 11:20:04 +0000 Received: from ben.nabble.com ([192.168.236.152]) by sam.nabble.com with esmtp (Exim 4.69) (envelope-from ) id 1Q7nFY-00007X-JY for general@lucene.apache.org; Thu, 07 Apr 2011 04:19:44 -0700 Date: Thu, 7 Apr 2011 04:19:44 -0700 (PDT) From: Sailesh To: general@lucene.apache.org Message-ID: <1302175184591-2789957.post@n3.nabble.com> Subject: Searching a group of associated multi-value fileds MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, I have scenario where i have so search multiple multi-valued fields, for example I have an invoice that contians may items and each item has many attributes like item id : 1, item_name : my item name1 , unit_price : 10 item id : 2, item_name : your item name2 , unit_price : 11 item id : 3, item_name : item name3 , unit_price : 12 The above items are part of single invoice, so cannot have them as separate documents. Now if I search for item-id = 2 and unit_price = 12 then it should not return me anything. If it would have been single I could have used phase or span queries but in case of multiple associated fields i don't how to handle it. So if any body have ever tried or have any idea to handle this problem, please let me know Thanks Sailesh -- View this message in context: http://lucene.472066.n3.nabble.com/Searching-a-group-of-associated-multi-value-fileds-tp2789957p2789957.html Sent from the Lucene - General mailing list archive at Nabble.com.