napoler / solr-php-client

Automatically exported from code.google.com/p/solr-php-client
Other
0 stars 0 forks source link

Support commitWithin in addDocument and addDocuments #51

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The commitWithin attribute of an add request allows the server to automatically 
commit added documents within the specified number of milliseconds; this saves 
manually making commit calls and is more efficient than using the autoCommit 
settings in Solr.

The changes required for this are very simple, as it's just another attribute 
on the <add> document.  The attached patch adds a commitWithin value to the 
addDocument and addDocuments methods; the default behaviour is not to add this 
to the add call, so backwards compatibility is maintained.

Original issue reported on code.google.com by liam.obo...@gmail.com on 4 Oct 2010 at 12:04

Attachments:

GoogleCodeExporter commented 8 years ago
Committed with updated unit tests in r57

Original comment by donovan....@gmail.com on 8 Feb 2011 at 7:11

GoogleCodeExporter commented 8 years ago
Thanks Donovan.

Original comment by liam.obo...@gmail.com on 8 Feb 2011 at 11:22