Skip to content

Commit 9f35ceb

Browse files
committed
Merge pull request #35 from dmyers/zend-array-values
Added support for array values for the zend driver
2 parents ae46ed9 + 8a51e82 commit 9f35ceb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Mmanos/Search/Index/Zend.php

+4
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,10 @@ public function insert($id, array $fields, array $parameters = array())
248248

249249
// Add fields to document to be indexed and stored.
250250
foreach ($fields as $field => $value) {
251+
if (is_array($value)) {
252+
$value = implode(' ', $value);
253+
}
254+
251255
$doc->addField(\ZendSearch\Lucene\Document\Field::text(trim($field), trim($value)));
252256
}
253257

0 commit comments

Comments
 (0)