Actually, the blog post should still apply: just insert ToParent to rename things.
ToChildBlockJoinQuery is the same idea, but it joins in the reverse direction, so e.g. if your index has CDs (parent docs) and individual songs on those CDs (child docs), you can take a parent-level constraint (e.g. maybe price < $12) and join it down to child level constraints (maybe a query against the song's title) and then see individual songs (not albums) as the returned hits. Mike McCandless http://blog.mikemccandless.com On Wed, Jan 29, 2014 at 5:44 AM, Priyanka Tufchi <priyanka.tuf...@launchship.com> wrote: > Hello Michael, > > Can i get code snippet for this new classes: ToParentBlockJoinQuery, > ToChildBlockJoinQuery > and how to use it. > > thanks > > On Wed, Jan 29, 2014 at 2:22 AM, Michael McCandless > <luc...@mikemccandless.com> wrote: >> Sorry, BlockJoinQuery was split into two separate classes: >> ToParentBlockJoinQuery, ToChildBlockJoinQuery. >> >> Mike McCandless >> >> http://blog.mikemccandless.com >> >> >> On Wed, Jan 29, 2014 at 4:32 AM, Priyanka Tufchi >> <priyanka.tuf...@launchship.com> wrote: >>> Subject: BlockJoinQuery is missing in lucene-4.1.0 . >>> To: java-user@lucene.apache.org >>> >>> >>> Hello , >>> >>> I want to Search relational content which has parent child >>> relationship . I am following below link >>> >>> http://blog.mikemccandless.com/2012/01/searching-relational-content-with.html >>> >>> but got problem in following line >>> >>> BlockJoinQuery skuJoinQuery = new BlockJoinQuery( >>> skuQuery, >>> shirts, ScoreMode.None); >>> >>> where is "BlockJoinQuery " class in lucene-4.1.0 ? It has been >>> removed or some other alternative way is in this version. >>> >>> Thanks in advance. >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org >>> For additional commands, e-mail: java-user-h...@lucene.apache.org >>> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org >> For additional commands, e-mail: java-user-h...@lucene.apache.org >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org