Ask
s the Solr.Client.manager for a connection actor.
Ask
s the Solr.Client.manager for a connection actor.
a Future containing the com.codemettle.akkasolr.client.ClientConnection's ActorRef
Request a Solr connection actor.
Request a Solr connection actor. A connection will be created if needed.
override def preStart() = { super.preStart() Solr.Client.clientTo("http://my-solr:8983/solr") } override def receive = { case Solr.SolrConnection("http://my-solr:8983/solr", connectionActor) => // connectionActor available for requests }
A solrUrl
of the form "zk://host:port,host:port,host:port" will create a
com.codemettle.akkasolr.client.SolrCloudConnection
Solr URL to connect to
Actor to send resulting connection or errors to. Since it is implicit,
calling this method from inside an actor without specifying requestor
will use the Actor's
implicit self
Unit; sends a Solr.SolrConnection message to requestor
. A spray.can.Http.ConnectionException
wrapped in a akka.actor.Status.Failure may be raised by Spray and sent to requestor
.
Creates an ImperativeWrapper, useful for transitioning from other Solr libraries
Creates an ImperativeWrapper, useful for transitioning from other Solr libraries
a Future containing an com.codemettle.akkasolr.imperative.ImperativeWrapper around the akka-solr client connection
Request a LoadBalanced connection that behaves like a org.apache.solr.client.solrj.impl.LBHttpSolrClient.
Request a LoadBalanced connection that behaves like a org.apache.solr.client.solrj.impl.LBHttpSolrClient. Just like regular connections, a cached connection will be returned if one already exists.
set of Solr connections to create. If any URLs in the list resolve to the same Uri from ), only one connection will be created for each unique Uri.
options for the LoadBalanced connection. Can be overridden globally; see "load-balanced-connection-defaults" in reference.conf
Actor to send resulting connection to. Since it is implicit,
calling this method from inside an actor without specifying requestor
will use the Actor's
implicit self
Unit; sends a Solr.SolrLBConnection message to requestor
SolrExtImpl.clientTo()
Request a SolrCloud connection that behaves like a org.apache.solr.client.solrj.impl.CloudSolrClient.
Request a SolrCloud connection that behaves like a org.apache.solr.client.solrj.impl.CloudSolrClient. Just like regular connections, a cached connection will be returned if one already exists.
host string in the same format that CloudSolrServer expects ("host:port[,host:port,..]")
options for the connection. Can be overridden globally; see "solrcloud-connection-defaults" in reference.conf
Actor to send resulting connection to. Since it is implicit,
calling this method from inside an actor without specifying requestor
will use the Actor's
implicit self
Unit; sends a Solr.SolrConnection message to requestor
.
SolrExtImpl.clientTo()