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 <[email protected]> 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 > <[email protected]> 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 >> <[email protected]> wrote: >>> Subject: BlockJoinQuery is missing in lucene-4.1.0 . >>> To: [email protected] >>> >>> >>> 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: [email protected] >>> For additional commands, e-mail: [email protected] >>> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
