On Mon, Oct 10, 2011 at 6:30 AM, Pulkit Singhal <pulkitsing...@gmail.com> wrote:
> @Gora Thank You!
>
> I know that Solr accepts xml with Solr specific elements that are commands
> that only it understands ... such as <add/>, <commit/> etc.
>
> Question: Is there some way to ask Solr to dump out whatever it has in its
> index already ... as a Solr xml document?

As far as I know, there is no way to do that out of the box. One would get
the contents of each record with a normal Solr query, massage that into
a Solr XML document, and use that to rebuild the index. Have not tried
this, but it should be possible to get the desired output format with the
XsltResponseWriter: http://wiki.apache.org/solr/XsltResponseWriter .

All in all, it seems easier to me to just reindex from the base source, unless
that is not possible for some reason.

> Plan: I intend to message that xml dump (add the field + value that I need
> in every doc's xml element) and then I should be able to push this dump back
> to Solr to get data indexed again, I hope.

Yes, that should be the general idea.

Regards,
Gora

Reply via email to