Re: How to index data in muliValue field with key

2014-01-12 Thread rachun
thank you Mr. Steve. Now I understood and i figured out to separate field to title_th and title_en and it worked ;) -- View this message in context: http://lucene.472066.n3.nabble.com/How-to-index-data-in-muliValue-field-with-key-tp4110653p4110981.html Sent from the Solr - User mailing list

Re: How to index data in muliValue field with key

2014-01-10 Thread Stefan Matheis
) { > $doc = new Apache_Solr_Document(); > > foreach ( $fields as $key => $value ) { > if ( is_array( $value ) ) { > foreach ( $value as $datum ) { > $doc->setMultiValue( $key, $datum ); > } > } > else { > $doc->$key = $value; > } > } > > $documen

How to index data in muliValue field with key

2014-01-10 Thread rachun
olr->commit(); $solr->optimize(); } catch(Exeption $e) { echo $e->getMessage(); } ?> *but the response that I'm getting now like below