On Fri, Jul 22, 2011 at 12:42 AM, abhayd <ajdabhol...@hotmail.com> wrote:
> hi
> I m trying to load data into solr index from a xml file using dih
>
> my promotions.xml file
> ------------------
> <add>
>        <doc>
>                <field name="id">3</field>
>        </doc>
>        <doc>
>                <field name="id">4</field>
>        </doc>
> </add>
[...]

This is already a complete SolrXML file, and you do not
need DIH. Instead, use post.sh in example/exampledocs
in your Solr distribution. With Solr running in the embedded
Jetty server, the command would be:
  ./post.sh promotions.xml
If you are running Solr in some other fashion, please modify
post.sh as needed.

Regards,
Gora

Reply via email to