Commit 5a475041 authored by Bert Balcaen's avatar Bert Balcaen
Browse files

Removing logic to set fields to 'null'.

parent 02b72dcc
......@@ -19,16 +19,6 @@ class SolrEngine extends Engine
$update = \Solr::createUpdate();
$models->each(function ($model) use (&$update) {
$searchableArray = $model->toSearchableArray();
foreach ($searchableArray as $key => $value) {
if (empty($value) && !is_numeric($value)) {
if (is_array($value)) {
$value = ['null'];
} else {
$value = 'null';
}
$searchableArray[$key] = $value;
}
}
$document = $update->createDocument($searchableArray);
$update->addDocument($document);
});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment