Skip to content

Commit f9e9e00

Browse files
mmanosdmyers
authored andcommitted
Merge pull request #35 from dmyers/zend-array-values
Added support for array values for the zend driver
2 parents 85db41a + 20dd0fa commit f9e9e00

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)