class AsyncSolrClient[F[_]] extends AnyRef
Async, non-blocking Solr Server that just allows to #query(SolrQuery).
The usage shall be similar to the solrj SolrServer,
so query returns a future of a QueryResponse.
- Alphabetic
- By Inheritance
- AsyncSolrClient
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
AsyncSolrClient(loadBalancer: LoadBalancer, httpClient: AsyncHttpClient, shutdownHttpClient: Boolean, requestInterceptor: Option[RequestInterceptor] = None, responseParser: ResponseParser = new BinaryResponseParser, metrics: Metrics = NoopMetrics, serverStateObservation: Option[ServerStateObservation[F]] = None, retryPolicy: RetryPolicy = RetryPolicy.TryOnce)(implicit futureFactory: FutureFactory[F])
- Attributes
- protected
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
val
AGENT: String
User-Agent String.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
getErrorReason(url: String, rsp: NamedList[_], response: Response): String
- Attributes
- protected
-
def
getPath(query: SolrQuery): String
- Attributes
- protected
-
def
getResponseEncoding(response: Response): String
- Attributes
- protected
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
query(q: SolrQuery): F[QueryResponse]
Performs a query to a solr server.
Performs a query to a solr server.
- q
the query to send to solr.
-
def
queryPreferred(q: SolrQuery, preferred: Option[SolrServer]): F[(QueryResponse, SolrServer)]
Performs a query to a solr server taking the preferred server into account if provided.
Performs a query to a solr server taking the preferred server into account if provided.
- q
the query to send to the solr server.
- preferred
the server that should be preferred to process the query. Specific LoadBalancer implementations have to support this and might add their own semantics.
- returns
the response and the server that handled the query.
-
def
shutdown(): Unit
Closes the http client (asynchronously) if it was not provided but created by this class.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toQueryResponse(response: Response, url: String, startTime: Long)(implicit server: SolrServer): QueryResponse
- Attributes
- protected
- Annotations
- @throws( ... )
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
validateMimeType(expectedContentType: String, response: Response): Unit
- Attributes
- protected
- Annotations
- @throws( ... )
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )