lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jack Lo (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (SOLR-4905) Cross core joins don't work for SolrCloud collections and/or aliases
Date Wed, 02 Jul 2014 03:21:25 GMT

    [ https://issues.apache.org/jira/browse/SOLR-4905?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14049570#comment-14049570
] 

Jack Lo edited comment on SOLR-4905 at 7/2/14 3:21 AM:
-------------------------------------------------------

I have noticed this issue have been lying around for a year, seems like nobody is bother to
use JOIN in solrcloud, so I decide to tackle this myself.

A small patch has been uploaded here to allow fromIndex to specify a collection under cloud
environment. Currently, it works if the fromIndex collection is a single shard having at least
1 replica on each node. I am planning to support multi-shard collection but not really sure
how to do it given I am not that familiar with the internal mechanics of solr.

Even if we support multishard, given the current implementation of JoinQParser, I think we
can only support it when a collection with at least 1 replica of all shards physically residing
on every node. We need all local IndexSearcher. If we need full solrcloud join support, I
think we need to revamp JoinQParser or make something on a higher level to gather terms collection
from remote shards on StandardRequestHandler.

By the way, I noticed we haven't use JoinUtil in LUCENE, is there a reason to not use it,
their implementation seems to be more cleaner than the one in SOLR right now, I have no idea
how JoinQParser works, especally the getdocset stage.


was (Author: jacklo):
I have noticed this issue have been lying around for a year, seems like nobody is bother to
use JOIN in solrcloud, so I decide to tackle this myself.

A small patch has been uploaded here to allow fromIndex to specify a collection under cloud
environment. Currently, it works if the fromIndex collection is a single shard having at least
1 replica on each node. I am planning to support multi-shard collection but not really sure
how to do it given I am not that familiar with the internal mechanics of solr.

Even if we support multishard, given the current implementation of JoinQParser, I think we
can only support it when a collection with at least 1 replica of all shards physically residing
on every node. We need all local IndexSearcher. If we need full solrcloud join support, I
think we need to revamp JoinQParser or make something on a higher level to gather terms collection
from remote shards on StandardRequestHandler.

By the way, I noticed we haven't use JoinUtil in LUCENE, is there a reason to not use it,
their implementation seems to be more cleaner than the one in SOLR right now, I have no idea
what it's doing in JoinQParser

> Cross core joins don't work for SolrCloud collections and/or aliases
> --------------------------------------------------------------------
>
>                 Key: SOLR-4905
>                 URL: https://issues.apache.org/jira/browse/SOLR-4905
>             Project: Solr
>          Issue Type: Improvement
>          Components: SolrCloud
>            Reporter: Philip K. Warren
>         Attachments: patch.txt
>
>
> Using a non-SolrCloud setup, it is possible to perform cross core joins (http://wiki.apache.org/solr/Join).
When testing with SolrCloud, however, neither the collection name, alias name (we have created
aliases to SolrCloud collections), or the automatically generated core name (i.e. <collection>_shard1_replica1)
work as the fromIndex parameter for a cross-core join.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message