Return-Path: X-Original-To: apmail-lucene-java-user-archive@www.apache.org Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 15CBEE3E0 for ; Wed, 20 Feb 2013 15:49:11 +0000 (UTC) Received: (qmail 42818 invoked by uid 500); 20 Feb 2013 15:49:09 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 42406 invoked by uid 500); 20 Feb 2013 15:49:03 -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 42284 invoked by uid 99); 20 Feb 2013 15:49:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Feb 2013 15:49:01 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,MIME_QP_LONG_LINE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of chris.bamford@talktalk.net designates 62.24.128.240 as permitted sender) Received: from [62.24.128.240] (HELO out1.ip04ir2.opaltelecom.net) (62.24.128.240) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Feb 2013 15:48:43 +0000 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqsEAHXvJFHDXSRf/2dsb2JhbABFgkO1dAGIHxaBAHOCHwEBBAEtISQMBwwDEQQBAQFfFQkIDgcEARwEh2sGBAifHaEUgk2LAIE9CwaDOgOIZo5jhFGJIYFMgyVPgQU X-IronPort-AV: E=Sophos;i="4.84,702,1355097600"; d="scan'208";a="400642809" Received: from webmail-vfrr20.sis.aol.com (HELO webmail-vfrr20) ([195.93.36.95]) by out1.ip04ir2.opaltelecom.net with ESMTP; 20 Feb 2013 15:48:22 +0000 To: java-user@lucene.apache.org Subject: Re: More questions on BlockJoinQuery Date: Wed, 20 Feb 2013 10:48:22 -0500 In-Reply-To: X-MB-Message-Source: WebUI MIME-Version: 1.0 From: Chris Bamford X-MB-Message-Type: User Content-Type: multipart/alternative; boundary="--------MB_8CFDD98D8A79E55_8F8_1F45_webmail-vfrr20.sis.aol.com" X-Mailer: Webmail 36992-STANDARD Received: from 146.101.57.209 by webmail-vfrr20.sis.aol.com (195.93.36.95) with HTTP (WebMailUI); Wed, 20 Feb 2013 10:48:21 -0500 Message-Id: <8CFDD98D811A7F4-8F8-87F@webmail-vfrr20.sis.aol.com> X-Virus-Checked: Checked by ClamAV on apache.org ----------MB_8CFDD98D8A79E55_8F8_1F45_webmail-vfrr20.sis.aol.com Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="us-ascii" =0A=20Thanks=20Mike.=0AI=20have=20downloaded=20the=20source=20tarball=20for=204.= 1.0=20and=20have=20tried=20to=20get=20it=20working,=20but=20am=20having=20a=20fe= w=20problems=20getting=20it=20to=20fit=20with=20my=20environment=20(intelliJ=20/= =20Maven).=0AWhere=20is=20the=20best=20forum=20to=20discuss=20such=20issues?=0A=0A= Chris=0A=0A=20=0A=0A=20=0A=0A-----Original=20Message-----=0AFrom:=20Michael=20Mc= Candless=20=0ATo:=20java-user@lucene.apache.org=0ASen= t:=20Tue,=2012=20Feb=202013=2015:17=0ASubject:=20Re:=20More=20questions=20on=20B= lockJoinQuery=0A=0A=0AOn=20Tue,=20Feb=2012,=202013=20at=207:43=20AM,=20Chris=20B= amford=0A=20wrote:=0A=0A>>=20Could=20you=20please=20= send=20this=20to=20the=20java-user@lucene.apache.org=20list?=0A>=0A>=20I=20thoug= ht=20I=20did!=20=20:-)=20=20Here=20it=20is=20again:=0A=0ADuh,=20my=20bad=20:)=20= =20You=20are=20right!=0A=0AI=20saw=20the=20"Hi=20Mike"=20and=20stopped=20there!=0A= =0AResponses=20below:=0A=0A>=20I=20have=20a=20question=20about=20your=20post=20"= Searching=20relational=20content=20with=20Lucene's=0A>=20BlockJoinQuery"=0A>=20(= http://blog.mikemccandless.com/2012/01/searching-relational-content-with.html).=0A= >=20I=20am=20actually=20trying=20to=20use=20Lucene=204.0.0,=20so=20am=20having=20= to=20translate=20your=20=0Aexample=20to=0A>=20the=20newer=20ToParentBlockJoinQue= ry=20/=20ToChildBlockJoinQuery=20APIs.=20=20I=20have=20had=20=0Asome=20success,=0A= >=20but=20my=20ultimate=20goal=20of=20combining=20the=20info=20from=20both=20chi= ld=20and=20parent=20hits=20is=20=0Aeluding=0A>=20me.=20=20I=20=20suspect=20I=20a= m=20missing=20something,=20but=20as=20yet=20haven't=20figured=20out=20what!=0A>=0A= >=20In=20this=20scenario,=20let's=20say=20I=20have=20the=20following=20relations= hip:=0A>=0A>=20child=201=20:=20=20=20ref:"100",=20content:"child=201",=20type:"C= "=0A>=20child=202=20:=20=20=20ref:"200",=20content:"child=202",=20type:"C"=0A>=20= child=203=20:=20=20=20ref:"300",=20content:"child=203",=20type:"C"=0A>=20parent=20= =20:=20=20=20ref:"400",=20content:"parent",=20type:"P"=0A>=0A>=20When=20one=20or= =20more=20children=20are=20hit,=20I=20want=20that=20to=20be=20noted=20against=20= the=20parent,=0A>=20so=20ultimately=20I=20can=20create=20a=20result=20object=20l= ike:=0A>=0A>=20Result{=20ref:400,=20content:"parent",=20matches:=20[100,=20300]=20= }=20=20//=20children=201=20&=203=0A>=20were=20hit=0A>=0A>=20I=20have=20followed=20= your=20example=20closely=20just=20replacing=20BlockJoinQuery=20with=0A>=20ToPare= ntBlockJoinQuery=20and=20BlockJoinCollector=20with=20ToParentBlockJoinCollector.= =0A>=20Unfortunately=20I=20seem=20to=20be=20able=20to=20get=20either:=0A>=0A>=20= Just=20the=20parent=20objects=20(with=20td=3Ds.search(q,=2010))=20or=20just=20th= e=20children=20(with=20=0Athe=0A>=20Collector),=20=20but=20not=20both!=0A>=0A>=20= Am=20I=20to=20call=20search()=20twice=20(one=20returning=20TopDocs=20and=20the=20= other=20GroupDocs=20via=0A>=20the=20Collector)=20and=20join=20them=20myself?=20=20= Or=20does=20one=20of=20these=20calls=20return=20me=20=0Aboth=0A>=20types=20of=20= documents,=20grouped=20and=20sorted?=0A=0AYou=20should=20only=20call=20IndexSear= cher.search=20once,=20but=20you=20should=20pass=0Ayour=20ToParentBlockJoinCollec= tor=20instance=20IS.search(query,=20collector),=0Aand=20then=20you=20call=20coll= ector.getTopGroups=20to=20get=20the=20parent=20&=20children.=0A=0AMaybe=20have=20= a=20look=20@=20the=20unit=20test=20to=20get=20ideas?=0A=0A=20=20https://svn.apac= he.org/repos/asf/lucene/dev/branches/lucene_solr_4_1/lucene/join/src/test/org/ap= ache/lucene/search/join/TestBlockJoin.java=0A=0ABTW=20you=20should=20upgrade=20t= o=204.1.0!=0A=0AMike=20McCandless=0A=0Ahttp://blog.mikemccandless.com=0A=0A-----= ----------------------------------------------------------------=0ATo=20unsubscr= ibe,=20e-mail:=20java-user-unsubscribe@lucene.apache.org=0AFor=20additional=20co= mmands,=20e-mail:=20java-user-help@lucene.apache.org=0A=0A=0A=20=0A ----------MB_8CFDD98D8A79E55_8F8_1F45_webmail-vfrr20.sis.aol.com--