You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by solrk <ko...@gmail.com> on 2015/01/28 08:13:36 UTC
Reading data from another solr core
Hi Guys,
I have multiple cores setup in my solr server. I would like read/import data
from one core(source) into another core(target) and index it..Is there is a
easy way in solr to do so?
I was thinking of using SolrEntityProcessor for this purpose..any other
suggestions is appreciated..
http://blog.trifork.com/2011/11/08/importing-data-from-another-solr/
For example:
<dataconfig>
<document>
<entity name="user" pk="id"
url=""
processor="XPathEntityProcessor">
<field column="id" xpath="/user/id" />
<entity name="sep" processor="SolrEntityProcessor" query="*:*"
url="http://127.0.0.1:8081/solr/core2">
</entity>
</entity
</document>
</dataconfig>
Please sugget me if there is better solution? or Should i write new
processor which reads the index of another core?
--
View this message in context: http://lucene.472066.n3.nabble.com/Reading-data-from-another-solr-core-tp4182466.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Reading data from another solr core
Posted by solrk <ko...@gmail.com>.
Thank you Alvaro Cabrerizo! I am going to give a shot.
--
View this message in context: http://lucene.472066.n3.nabble.com/Reading-data-from-another-solr-core-tp4182466p4182758.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Reading data from another solr core
Posted by Alvaro Cabrerizo <to...@gmail.com>.
Hi,
I usually use the SolrEntityProcessor for moving/transform data between
cores, it's a piece of cake!
Regards.
On Wed, Jan 28, 2015 at 8:13 AM, solrk <ko...@gmail.com> wrote:
> Hi Guys,
>
> I have multiple cores setup in my solr server. I would like read/import
> data
> from one core(source) into another core(target) and index it..Is there is a
> easy way in solr to do so?
>
> I was thinking of using SolrEntityProcessor for this purpose..any other
> suggestions is appreciated..
>
> http://blog.trifork.com/2011/11/08/importing-data-from-another-solr/
>
> For example:
>
> <dataconfig>
> <document>
> <entity name="user" pk="id"
> url=""
> processor="XPathEntityProcessor">
>
> <field column="id" xpath="/user/id" />
> <entity name="sep" processor="SolrEntityProcessor" query="*:*"
> url="http://127.0.0.1:8081/solr/core2">
> </entity>
>
> </entity
> </document>
> </dataconfig>
>
> Please sugget me if there is better solution? or Should i write new
> processor which reads the index of another core?
>
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Reading-data-from-another-solr-core-tp4182466.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>