As of solr 4.0 the waitFlush parameter is removed.If you're using the solr 4.0 or later version (and you have to),when you do this<?php $client->commit(); ?>you will get a solr error like this:"Unknown commit parameter 'waitFlush'."

The documentation in the example section doesn't mention that you need to commit once you've added doc(s).

So in short it would be something like:$client = new SolrClient(array('hostname' => '127.0.0.1', 'port' => 8080));$doc = new SolrInputDocument();$doc->addField('id', 12345);$doc->addField('name', 'some person');