You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "jyoti Tiwari (JIRA)" <ji...@apache.org> on 2018/08/07 05:58:00 UTC

[jira] [Commented] (LUCENE-3759) Support joining in a distributed environment.

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

jyoti Tiwari commented on LUCENE-3759:
--------------------------------------

Solr4 on cloud joining across two sharded core i.e engineeringlogs_shard1_replica1 on machine 1 and micrologs_shard1_replica1 on machine 1

machine1 - engineeringlogs_shard1_replica1 (A), micrologs_shard1_replica1(B) machine 2- engineeringlogs_shard2_replica1(A1) , micrologs_shard2_replica1(B1)

query time join on engineeringlogs_shard1_replica1 (A):

fq: "\{!join from=Log_type to=Log_type fromIndex=micrologs_shard1_replica1}SerialNumber:\"000123456789\""

want to perform join across A and A1 on same machine 1,but it is not working fine. error is:

"error": \{ "metadata": [ "error-class", "org.apache.solr.common.SolrException", "root-error-class", "org.apache.solr.common.SolrException" ], "msg": "Cross-core join: no such core micrologs_shard1_replica1", "code": 400 }

Please guide me how should i proceed so that this join query will work fine for sharded collection for solr4 cloud.

> Support joining in a distributed environment.
> ---------------------------------------------
>
>                 Key: LUCENE-3759
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3759
>             Project: Lucene - Core
>          Issue Type: Improvement
>          Components: modules/join
>            Reporter: Martijn van Groningen
>            Priority: Major
>
> Add two more methods in JoinUtil to support joining in a distributed manner.
> * Method to retrieve all from values.
> * Method to create a TermsQuery based on a set of from terms.
> With these two methods distributed joining can be supported following these steps:
> # Retrieve from values from each shard
> # Merge the retrieved from values. 
> # Create a TermsQuery based on the merged from terms and send this query to all shards. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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