Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 69D87444A for ; Wed, 29 Jun 2011 22:53:54 +0000 (UTC) Received: (qmail 17538 invoked by uid 500); 29 Jun 2011 22:53:52 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 16995 invoked by uid 500); 29 Jun 2011 22:53:51 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 16894 invoked by uid 99); 29 Jun 2011 22:53:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Jun 2011 22:53:51 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Jun 2011 22:53:49 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id A43D543ACEC for ; Wed, 29 Jun 2011 22:53:28 +0000 (UTC) Date: Wed, 29 Jun 2011 22:53:28 +0000 (UTC) From: "Michael McCandless (JIRA)" To: dev@lucene.apache.org Message-ID: <598926723.4047.1309388008669.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <643099518.68624.1307204327285.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (LUCENE-3171) BlockJoinQuery/Collector MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/LUCENE-3171?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Michael McCandless resolved LUCENE-3171. ---------------------------------------- Resolution: Fixed Fix Version/s: (was: 3.3) 3.4 > BlockJoinQuery/Collector > ------------------------ > > Key: LUCENE-3171 > URL: https://issues.apache.org/jira/browse/LUCENE-3171 > Project: Lucene - Java > Issue Type: Improvement > Components: modules/other > Reporter: Michael McCandless > Fix For: 3.4, 4.0 > > Attachments: LUCENE-3171.patch, LUCENE-3171.patch, LUCENE-3171.patch > > > I created a single-pass Query + Collector to implement nested docs. > The approach is similar to LUCENE-2454, in that the app must index > documents in "join order", as a block (IW.add/updateDocuments), with > the parent doc at the end of the block, except that this impl is one > pass. > Once you join at indexing time, you can take any query that matches > child docs and join it up to the parent docID space, using > BlockJoinQuery. You then use BlockJoinCollector, which sorts parent > docs by provided Sort, to gather results, grouped by parent; this > collector finds any BlockJoinQuerys (using Scorer.visitScorers) and > retains the child docs corresponding to each collected parent doc. > After searching is done, you retrieve the TopGroups from a provided > BlockJoinQuery. > Like LUCENE-2454, this is less general than the arbitrary joins in > Solr (SOLR-2272) or parent/child from ElasticSearch > (https://github.com/elasticsearch/elasticsearch/issues/553), since you > must do the join at indexing time as a doc block, but it should be > able to handle nested joins as well as joins to multiple tables, > though I don't yet have test cases for these. > I put this in a new Join module (modules/join); I think as we > refactor join impls we should put them here. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org