Importing multivalued fields (Simple)

One of the most common issues with importing data is that a field may have more than one value. Accommodating this requirement in a database usually requires a separate table for values with foreign keys and referential constraints. In Solr, on the other hand, having multivalued fields is easy.

In our example, an e-mail can be sent to multiple people at once. Let's see how this can be represented in the input data, as well as what changes need to be done to Solr to make it store and search multivalued fields.

And we are going to keep all our examples in their own collections. While it is possible to just keep adding features to our first collection, it makes it harder to come back and review or redo the earlier ...

Get Instant Apache Solr for Indexing Data How-to now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.