Reference Implementation for using multiple Solr services in a distribution. Functionality
includes: routing of read / write operations failover (on selection) for multiple read servers
Located in /Service/Balancer.php (line 48)
Escape a value for special query characters such as ':', '(', ')', '*', '?', etc.
NOTE: inside a phrase fewer characters need escaped, use Apache_Solr_Service::escapePhrase() instead
Escape a value meant to be contained in a phrase for special query characters
Convenience function for creating phrase syntax from a value
Constructor. Takes arrays of read and write service instances or descriptions
Raw Add Method. Takes a raw post body and sends it to the update service. Post body should be a complete and well formed "add" xml document.
Add a Solr Document to the index
Add an array of Solr Documents to the index all at once
Adds a service instance or service descriptor (if it is already not added)
Adds a service instance or service descriptor (if it is already not added)
Send a commit command. Will be synchronous unless both wait parameters are set to false.
Raw Delete Method. Takes a raw post body and sends it to the update service. Body should be a complete and well formed "delete" xml document
Create a delete document based on document ID
Create a delete document based on a query and submit it
Send an optimize command. Will be synchronous unless both wait parameters are set to false.
Removes a service instance or descriptor from the available services
Removes a service instance or descriptor from the available services
Simple Search interface
Generates a service ID
Iterate through available read services and select the first with a ping that satisfies configured timeout restrictions (or the default)
Iterate through available write services and select the first with a ping that satisfies configured timeout restrictions (or the default)
Iterate through available write services and select the first with a ping
that satisfies configured timeout restrictions (or the default). The timeout period will increase until a connection is made or the limit is reached. This will allow for increased reliability with heavily loaded server(s).
Documentation generated on Wed, 11 Mar 2009 17:34:13 -0400 by phpDocumentor 1.4.2