When you export, explicitly list only the fields that you normally specify when adding a document. So, exclude _version_, which Solr will add.

-- Jack Krupansky

-----Original Message----- From: Kalyan Kuram
Sent: Tuesday, April 23, 2013 8:40 PM
To: solr-user@lucene.apache.org
Subject: RE: Export Index and Re-Index XML

Thanks for the help,i could successfully export the file as csv and import it into my local box successfully ,now i have a different problem i tried to re-index the content using post.sh anc chaging URL=http://dev-core-solr1:8983/solr/ZinioArticles/update/csv this is now i see this error Before this i deleted all documents and then tried to re-index .$ sh post.sh output1.csvPosting file output1.csv to http://dev-core-solr1.zinio.com:8983/solr/ZinioArticles/update/csv<?xml version="1.0" encoding="UTF-8"?><response><lst name="responseHeader"><int name="status">409</int><int name="QTime">19</int></lst><lst name="error"><str name="msg">version conflict for 100845239 expected=1432420345067864064 actual=-1</str><int name="code">409</int></lst></response> <?xml version="1.0" encoding="UTF-8"?><response><lst name="responseHeader"><int name="status">0</int><int name="QTime">5</int></lst></response>

Can somebody help me how to do this



Subject: Re: Export Index and Re-Index XML
From: jan....@cominvent.com
Date: Tue, 23 Apr 2013 15:46:36 +0200
To: solr-user@lucene.apache.org

Hi,

I have done this many times. First use a curl job or something to download the complete index as CSV

q=*:*&rows=9999999&wt=csv

Then use post.jar to push that csv into the new node.

Alternatively you can query with XML and use xslt update request handler with parm tr=updateXml which is a stylesheet for indexing response XML directly.

--
Jan Høydahl, search solution architect
Cominvent AS - www.cominvent.com
Solr Training - www.solrtraining.com

23. apr. 2013 kl. 02:11 skrev Kalyan Kuram <kalyan.ku...@live.com>:

> Thank you all very much for your help.I do have field configured as > stored and index,i did read the FAQ from wiki,I think > SolrEntityProcessor is what i think needed.I am trying to index the data > from Adobe CQ and its a push based indexing and pain to index data from > a very large repository.I think i can manage this with > SolrEntityProcessor for now and will think of modelling data for > re-indexing purposes
> Kalyan
>
>> From: j...@basetechnology.com
>> To: solr-user@lucene.apache.org
>> Subject: Re: Export Index and Re-Index XML
>> Date: Mon, 22 Apr 2013 19:54:26 -0400
>>
>> Any fields which have stored values can be read and output, but
>> indexed-only, non-stored fields cannot be read or exported. Even if >> they >> could be, their values are post-analysis, which means that there is a >> good
>> chance that they cannot be run through term analysis again.
>>
>> It is always best to keep a copy of your raw source data separate from >> the >> data you add to Solr. Or, at least make sure any important data is >> "stored".
>>
>> In short, you need to model your data for "reindexing", which is a fact >> of
>> life in Solr land.
>>
>> -- Jack Krupansky
>>
>> -----Original Message----- >> From: Kalyan Kuram
>> Sent: Monday, April 22, 2013 7:07 PM
>> To: solr-user@lucene.apache.org
>> Subject: Export Index and Re-Index XML
>>
>> Hi AllI am new to solr and i wanted to know if i can export the Index >> as XML
>> and then re-index back into Solr,The reason i need to do this is i
>> misconfigured fieldtype and to make it work i need to re-index the >> content
>> Kalyan
>>
>



Reply via email to