I am currently indexing a few documents from an external source into SOLR. This external source has few empty elements that are getting indexed in SOLR as well. How can I avoid indexing empty/null values in SOLR.
For e.g.
My CSV is name,city,zip. Some values are
Jack,Houston, 89812
,Austin,98123
In the second value set I do not have a name. However, when SOLR indexes this document it adds {"Name":"","City":"Austin","Zip":"98123"}. How can I avoid having "Name" as an empty element in SOLR?
Thanks in advance
keepEmpty.keepEmptyis an argument you can give the CSV update module, which excludes fields that doesn't have a value in the CSV file. For the same for general updates, see the answer by Alexandre.