Using Solr's XML format (Simple)
While CSV is perfectly an useful import format for Solr, it starts to get unwieldy very quickly. Fortunately, Solr supports a number of import formats. One of them is Solr's own update XML import format. It is more verbose than CSV, but you will see that it is easier to read and deals better with multivalued fields, optional fields, complex text strings, and other real-life requirements.
How to do it...
- Copy and rename the
multivalueddirectory to a directory named
xmland delete the
datasubdirectory in the new copy.
- Add another
<core name="xml" instanceDir="xml" />
a. Inside the
fieldssection, add three ...