AsyncSolrClient

class AsyncSolrClient(url: String, factory: () => OkHttpClient)(implicit val parser: ExpressionParser) extends IAsyncSolrClient

Provides the asynchronous and non-blocking API for Solr.

class Object
trait Matchable
class Any

Value members

Concrete methods

def commit(): Future[Unit]

Commit the current session.

Commit the current session.

def query(query: String): AbstractAsyncQueryBuilder

Search documents using the given query.

Search documents using the given query.

def rollback(): Future[Unit]

Rolled back the current session.

Rolled back the current session.

def shutdown(): Unit

Shutdown AsyncHttpClient. Call this method before stopping your application.

Shutdown AsyncHttpClient. Call this method before stopping your application.

Inherited methods

def add(doc: Any): Future[Unit]

Add the document.

Add the document.

Value Params
doc

the document to register

Inherited from
IAsyncSolrClient
def deleteById(id: String): Future[Unit]

Delete the document which has a given id.

Delete the document which has a given id.

Value Params
id

the identifier of the document to delete

Inherited from
IAsyncSolrClient
def deleteByQuery(query: String, params: Map[String, Any]): Future[Unit]

Delete documents by the given query.

Delete documents by the given query.

Value Params
params

the parameter map which would be given to the query

query

the solr query to select documents which would be deleted

Inherited from
IAsyncSolrClient
def register(doc: Any): Future[Unit]

Add the document and commit them immediately.

Add the document and commit them immediately.

Value Params
doc

the document to register

Inherited from
IAsyncSolrClient
def withTransaction[T](operations: => Future[T]): Future[T]

Execute given operation in the transaction.

Execute given operation in the transaction.

The transaction is committed if operation was successful. But the transaction is rolled back if an error occurred.

Inherited from
IAsyncSolrClient