1
我有這個數據-config.xml中Solr的DataimportHandler與MySQL和一個URLDataSource作爲JSON
從dataimport.php返回請求該JSON:
Array (
[0] => Array (
[xx1] => Text1
[xx2] => Text2
[keynum] => 10003
[xx3] => text3
[xx4] => Array
(
[0] => http://bildurl1.de/832500+1427507417.jpg
[1] => http://bildurl1.de/07418.jpg
)
[xx5] => 18.89
[xx6] => 0
[xx7] => 0
[xx8] => http://urlzum.de/artikel.php?id=10003
[xx9] => 3
[xx10] => 0
[xx11] => 0
[xx12] => 32122
[xx13] => 0
[xx14] => -1
[xx15] => -1
[xx16] =>
[xx17] => Array
(
[yy1] => Array
(
[0] => 10003
)
[yy2] => Array
(
[0] => 10003
)
[yy3] => Array
(
[10003] => 18.89
)
[yy4] => Array
(
[10003] => 0
)
[yy5] => 3
[yy6] => 0
)
[xx18] => 0
[xx19] => text5
[xx20] => 19
[xx21] => 3
[xx22] => text6
[xx23] => 0
[xx24] => Array
(
[1] => wrgr01
[3] => wrgr02
)))
我怎麼得到json中的Fields到Solr中?有一個例子與實體和PHP產生JSON是開頭:
Array ([0] => Array (
[xx1] => Text1
一些能幫助我,爲正確的數據-config.xml中?