class AsyncSolrClient extends IAsyncSolrClient
Provides the asynchronous and non-blocking API for Solr.
- Alphabetic
- By Inheritance
- AsyncSolrClient
- IAsyncSolrClient
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new AsyncSolrClient(url: String, factory: () => OkHttpClient = () => new OkHttpClient())(implicit parser: ExpressionParser = new DefaultExpressionParser())
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
- def add(doc: Any): Future[Unit]
Add the document.
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def commit(): Future[Unit]
Commit the current session.
Commit the current session.
- Definition Classes
- AsyncSolrClient → IAsyncSolrClient
- def deleteById(id: String): Future[Unit]
Delete the document which has a given id.
Delete the document which has a given id.
- id
the identifier of the document to delete
- Definition Classes
- IAsyncSolrClient
- def deleteByQuery(query: String, params: Map[String, Any] = Map()): Future[Unit]
Delete documents by the given query.
Delete documents by the given query.
- query
the solr query to select documents which would be deleted
- params
the parameter map which would be given to the query
- Definition Classes
- IAsyncSolrClient
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def execute(req: UpdateRequest, promise: Promise[Unit]): Future[Unit]
- Attributes
- protected
- Definition Classes
- AsyncSolrClient → IAsyncSolrClient
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- implicit val parser: ExpressionParser
- Attributes
- protected
- Definition Classes
- AsyncSolrClient → IAsyncSolrClient
- def query(query: String): AsyncQueryBuilder
Search documents using the given query.
Search documents using the given query.
- Definition Classes
- AsyncSolrClient → IAsyncSolrClient
- def register(doc: Any): Future[Unit]
Add the document and commit them immediately.
Add the document and commit them immediately.
- doc
the document to register
- Definition Classes
- IAsyncSolrClient
- def rollback(): Future[Unit]
Rolled back the current session.
Rolled back the current session.
- Definition Classes
- AsyncSolrClient → IAsyncSolrClient
- def shutdown(): Unit
Shutdown AsyncHttpClient.
Shutdown AsyncHttpClient. Call this method before stopping your application.
- Definition Classes
- AsyncSolrClient → IAsyncSolrClient
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- 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.
- Definition Classes
- IAsyncSolrClient