Hello Everyone,
I am trying the new Solr 6.6 and using SolrPhpClient to create index having 
info in an array.
$parts = array( '0' => array( 'id' => '0060248025', 'name' => 'Falling Up', 
'author' => 'Shel Silverstein',  'inStock' => true, ), '1' => array( 'id' => 
'0679805273', 'name' => 'Oh, The Places You will Go', 'author' => 'Dr. Seuss',  
'inStock' => false, ) );
But I am facing an error "solr unexpected eof in prolog". The final XML formed 
and going for indexing is ...
<add><doc><field name="id">0060248025</field><field name="name">Falling 
Up</field><field name="author">Shel Silverstein</field><field 
name="inStock">1</field></doc><doc><field name="id">0679805273</field><field 
name="name">Oh, The Places You will Go</field><field name="author">Dr. 
Seuss</field></doc></add>

I am not getting what the issue is & how to resolve. Can anyone help?
Also, I have tried picking one <doc> node and added the same in the example xml 
and tried indexing using command and that is working fine. So seems there is no 
issue with the info I am providing.
Please help! 
ThanksAshish

Reply via email to