Class/Object

io.ino.solrs

JavaAsyncSolrClient

Related Docs: object JavaAsyncSolrClient | package solrs

Permalink

class JavaAsyncSolrClient extends AsyncSolrClient[CompletionStage]

Java API: Async, non-blocking Solr Server that allows to make requests to Solr. The usage shall be similar to the solrj SolrServer, so request returns a CompletionStage of a SolrResponse.

Example usage:

JavaAsyncSolrClient solr = JavaAsyncSolrClient.create("http://localhost:" + solrRunner.port + "/solr/collection1");
CompletionStage<QueryResponse> response = solr.query(new SolrQuery("*:*"));
response.thenAccept(r -> System.out.println("found "+ r.getResults().getNumFound() +" docs"));
Linear Supertypes
AsyncSolrClient[CompletionStage], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JavaAsyncSolrClient
  2. AsyncSolrClient
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new JavaAsyncSolrClient(loadBalancer: LoadBalancer, httpClient: AsyncHttpClient, shutdownHttpClient: Boolean, requestInterceptor: Option[RequestInterceptor] = None, requestWriter: RequestWriter = new BinaryRequestWriter, responseParser: ResponseParser = new BinaryResponseParser, metrics: Metrics = NoopMetrics, serverStateObservation: Option[ServerStateObservation[CompletionStage]] = None, retryPolicy: RetryPolicy = RetryPolicy.TryOnce)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val AGENT: String

    Permalink

    User-Agent String.

    User-Agent String.

    Definition Classes
    AsyncSolrClient
  5. def addBean(collection: String, obj: Any, commitWithinMs: Int): CompletionStage[UpdateResponse]

    Permalink

    Adds a single bean specifying max time before it becomes committed The bean is converted to a SolrInputDocument by the client's org.apache.solr.client.solrj.beans.DocumentObjectBinder

    Adds a single bean specifying max time before it becomes committed The bean is converted to a SolrInputDocument by the client's org.apache.solr.client.solrj.beans.DocumentObjectBinder

    collection

    to Solr collection to add documents to

    obj

    the input bean

    returns

    an { @link org.apache.solr.client.solrj.response.UpdateResponse} from the server

  6. def addBean(collection: String, obj: Any): CompletionStage[UpdateResponse]

    Permalink

    Adds a single bean specifying max time before it becomes committed The bean is converted to a SolrInputDocument by the client's org.apache.solr.client.solrj.beans.DocumentObjectBinder

    Adds a single bean specifying max time before it becomes committed The bean is converted to a SolrInputDocument by the client's org.apache.solr.client.solrj.beans.DocumentObjectBinder

    collection

    to Solr collection to add documents to

    obj

    the input bean

    returns

    an { @link org.apache.solr.client.solrj.response.UpdateResponse} from the server

  7. def addBean(obj: Any, commitWithinMs: Int): CompletionStage[UpdateResponse]

    Permalink

    Adds a single bean specifying max time before it becomes committed The bean is converted to a SolrInputDocument by the client's org.apache.solr.client.solrj.beans.DocumentObjectBinder

    Adds a single bean specifying max time before it becomes committed The bean is converted to a SolrInputDocument by the client's org.apache.solr.client.solrj.beans.DocumentObjectBinder

    obj

    the input bean

    returns

    an { @link org.apache.solr.client.solrj.response.UpdateResponse} from the server

  8. def addBean(obj: Any): CompletionStage[UpdateResponse]

    Permalink

    Adds a single bean specifying max time before it becomes committed The bean is converted to a SolrInputDocument by the client's org.apache.solr.client.solrj.beans.DocumentObjectBinder

    Adds a single bean specifying max time before it becomes committed The bean is converted to a SolrInputDocument by the client's org.apache.solr.client.solrj.beans.DocumentObjectBinder

    obj

    the input bean

    returns

    an { @link org.apache.solr.client.solrj.response.UpdateResponse} from the server

  9. def addBean(collection: Option[String] = None, obj: Any, commitWithinMs: Int = 1): CompletionStage[UpdateResponse]

    Permalink

    Adds a single bean specifying max time before it becomes committed The bean is converted to a SolrInputDocument by the client's org.apache.solr.client.solrj.beans.DocumentObjectBinder

    Adds a single bean specifying max time before it becomes committed The bean is converted to a SolrInputDocument by the client's org.apache.solr.client.solrj.beans.DocumentObjectBinder

    collection

    to Solr collection to add documents to

    obj

    the input bean

    returns

    an { @link org.apache.solr.client.solrj.response.UpdateResponse} from the server

    Definition Classes
    AsyncSolrClient
  10. def addBeans(collection: String, beanIterator: Iterator[_]): CompletionStage[UpdateResponse]

    Permalink

    Adds the beans supplied by the given iterator.

    Adds the beans supplied by the given iterator.

    collection

    the Solr collection to add the documents to

    beanIterator

    the iterator which returns Beans

    returns

    an { @link org.apache.solr.client.solrj.response.UpdateResponse} from the server

  11. def addBeans(beanIterator: Iterator[_]): CompletionStage[UpdateResponse]

    Permalink

    Adds the beans supplied by the given iterator.

    Adds the beans supplied by the given iterator.

    beanIterator

    the iterator which returns Beans

    returns

    an { @link org.apache.solr.client.solrj.response.UpdateResponse} from the server

  12. def addBeans(collection: String, beans: Collection[_], commitWithinMs: Int): CompletionStage[UpdateResponse]

    Permalink

    Adds a collection of beans specifying max time before they become committed The beans are converted to SolrInputDocuments by the client's org.apache.solr.client.solrj.beans.DocumentObjectBinder

    Adds a collection of beans specifying max time before they become committed The beans are converted to SolrInputDocuments by the client's org.apache.solr.client.solrj.beans.DocumentObjectBinder

    collection

    the Solr collection to add documents to

    beans

    the collection of beans

    commitWithinMs

    max time (in ms) before a commit will happen

    returns

    an { @link org.apache.solr.client.solrj.response.UpdateResponse} from the server

  13. def addBeans(collection: String, beans: Collection[_]): CompletionStage[UpdateResponse]

    Permalink

    Adds a collection of beans specifying max time before they become committed The beans are converted to SolrInputDocuments by the client's org.apache.solr.client.solrj.beans.DocumentObjectBinder

    Adds a collection of beans specifying max time before they become committed The beans are converted to SolrInputDocuments by the client's org.apache.solr.client.solrj.beans.DocumentObjectBinder

    collection

    the Solr collection to add documents to

    beans

    the collection of beans

    returns

    an { @link org.apache.solr.client.solrj.response.UpdateResponse} from the server

  14. def addBeans(beans: Collection[_], commitWithinMs: Int): CompletionStage[UpdateResponse]

    Permalink

    Adds a collection of beans specifying max time before they become committed The beans are converted to SolrInputDocuments by the client's org.apache.solr.client.solrj.beans.DocumentObjectBinder

    Adds a collection of beans specifying max time before they become committed The beans are converted to SolrInputDocuments by the client's org.apache.solr.client.solrj.beans.DocumentObjectBinder

    beans

    the collection of beans

    commitWithinMs

    max time (in ms) before a commit will happen

    returns

    an { @link org.apache.solr.client.solrj.response.UpdateResponse} from the server

  15. def addBeans(beans: Collection[_]): CompletionStage[UpdateResponse]

    Permalink

    Adds a collection of beans specifying max time before they become committed The beans are converted to SolrInputDocuments by the client's org.apache.solr.client.solrj.beans.DocumentObjectBinder

    Adds a collection of beans specifying max time before they become committed The beans are converted to SolrInputDocuments by the client's org.apache.solr.client.solrj.beans.DocumentObjectBinder

    beans

    the collection of beans

    returns

    an { @link org.apache.solr.client.solrj.response.UpdateResponse} from the server

  16. def addBeans(beanIterator: Iterator[_]): CompletionStage[UpdateResponse]

    Permalink

    Adds the beans supplied by the given iterator.

    Adds the beans supplied by the given iterator.

    beanIterator

    the iterator which returns Beans

    returns

    an { @link org.apache.solr.client.solrj.response.UpdateResponse} from the server

    Definition Classes
    AsyncSolrClient
  17. def addBeans(collection: String, beanIterator: Iterator[_]): CompletionStage[UpdateResponse]

    Permalink

    Adds the beans supplied by the given iterator.

    Adds the beans supplied by the given iterator.

    collection

    the Solr collection to add the documents to

    beanIterator

    the iterator which returns Beans

    returns

    an { @link org.apache.solr.client.solrj.response.UpdateResponse} from the server

    Definition Classes
    AsyncSolrClient
  18. def addBeans(collection: Option[String] = None, beans: Iterable[_], commitWithinMs: Int = 1): CompletionStage[UpdateResponse]

    Permalink

    Adds a collection of beans specifying max time before they become committed The beans are converted to SolrInputDocuments by the client's org.apache.solr.client.solrj.beans.DocumentObjectBinder

    Adds a collection of beans specifying max time before they become committed The beans are converted to SolrInputDocuments by the client's org.apache.solr.client.solrj.beans.DocumentObjectBinder

    collection

    the Solr collection to add documents to

    beans

    the collection of beans

    commitWithinMs

    max time (in ms) before a commit will happen

    returns

    an { @link org.apache.solr.client.solrj.response.UpdateResponse} from the server

    Definition Classes
    AsyncSolrClient
  19. def addDoc(collection: String, doc: SolrInputDocument, commitWithinMs: Int): CompletionStage[UpdateResponse]

    Permalink

    Adds a single document specifying max time before it becomes committed

    Adds a single document specifying max time before it becomes committed

    collection

    the Solr collection to add the document to

    doc

    the input document

    commitWithinMs

    max time (in ms) before a commit will happen

    returns

    an { @link org.apache.solr.client.solrj.response.UpdateResponse} from the server

  20. def addDoc(collection: String, doc: SolrInputDocument): CompletionStage[UpdateResponse]

    Permalink

    Adds a single document specifying max time before it becomes committed

    Adds a single document specifying max time before it becomes committed

    collection

    the Solr collection to add the document to

    doc

    the input document

    returns

    an { @link org.apache.solr.client.solrj.response.UpdateResponse} from the server

  21. def addDoc(doc: SolrInputDocument, commitWithinMs: Int): CompletionStage[UpdateResponse]

    Permalink

    Adds a single document specifying max time before it becomes committed

    Adds a single document specifying max time before it becomes committed

    doc

    the input document

    commitWithinMs

    max time (in ms) before a commit will happen

    returns

    an { @link org.apache.solr.client.solrj.response.UpdateResponse} from the server

  22. def addDoc(doc: SolrInputDocument): CompletionStage[UpdateResponse]

    Permalink

    Adds a single document specifying max time before it becomes committed

    Adds a single document specifying max time before it becomes committed

    doc

    the input document

    returns

    an { @link org.apache.solr.client.solrj.response.UpdateResponse} from the server

  23. def addDoc(collection: Option[String] = None, doc: SolrInputDocument, commitWithinMs: Int = 1): CompletionStage[UpdateResponse]

    Permalink

    Adds a single document specifying max time before it becomes committed

    Adds a single document specifying max time before it becomes committed

    collection

    the Solr collection to add the document to

    doc

    the input document

    commitWithinMs

    max time (in ms) before a commit will happen

    returns

    an { @link org.apache.solr.client.solrj.response.UpdateResponse} from the server

    Definition Classes
    AsyncSolrClient
  24. def addDocs(collection: String, docIterator: Iterator[SolrInputDocument]): CompletionStage[UpdateResponse]

    Permalink

    Adds the documents supplied by the given iterator.

    Adds the documents supplied by the given iterator.

    collection

    the Solr collection to add documents to

    docIterator

    the iterator which returns SolrInputDocument instances

    returns

    an { @link org.apache.solr.client.solrj.response.UpdateResponse} from the server

  25. def addDocs(docIterator: Iterator[SolrInputDocument]): CompletionStage[UpdateResponse]

    Permalink

    Adds the documents supplied by the given iterator.

    Adds the documents supplied by the given iterator.

    docIterator

    the iterator which returns SolrInputDocument instances

    returns

    an { @link org.apache.solr.client.solrj.response.UpdateResponse} from the server

  26. def addDocs(collection: String, docs: Collection[SolrInputDocument], commitWithinMs: Int): CompletionStage[UpdateResponse]

    Permalink

    Adds a collection of documents, specifying max time before they become committed

    Adds a collection of documents, specifying max time before they become committed

    collection

    the Solr collection to add documents to

    docs

    the collection of documents

    commitWithinMs

    max time (in ms) before a commit will happen

    returns

    an { @link org.apache.solr.client.solrj.response.UpdateResponse} from the server

  27. def addDocs(collection: String, docs: Collection[SolrInputDocument]): CompletionStage[UpdateResponse]

    Permalink

    Adds a collection of documents, specifying max time before they become committed

    Adds a collection of documents, specifying max time before they become committed

    collection

    the Solr collection to add documents to

    docs

    the collection of documents

    returns

    an { @link org.apache.solr.client.solrj.response.UpdateResponse} from the server

  28. def addDocs(docs: Collection[SolrInputDocument], commitWithinMs: Int): CompletionStage[UpdateResponse]

    Permalink

    Adds a collection of documents, specifying max time before they become committed

    Adds a collection of documents, specifying max time before they become committed

    docs

    the collection of documents

    commitWithinMs

    max time (in ms) before a commit will happen

    returns

    an { @link org.apache.solr.client.solrj.response.UpdateResponse} from the server

  29. def addDocs(docs: Collection[SolrInputDocument]): CompletionStage[UpdateResponse]

    Permalink

    Adds a collection of documents, specifying max time before they become committed

    Adds a collection of documents, specifying max time before they become committed

    docs

    the collection of documents

    returns

    an { @link org.apache.solr.client.solrj.response.UpdateResponse} from the server

  30. def addDocs(docIterator: Iterator[SolrInputDocument]): CompletionStage[UpdateResponse]

    Permalink

    Adds the documents supplied by the given iterator.

    Adds the documents supplied by the given iterator.

    docIterator

    the iterator which returns SolrInputDocument instances

    returns

    an { @link org.apache.solr.client.solrj.response.UpdateResponse} from the server

    Definition Classes
    AsyncSolrClient
  31. def addDocs(collection: String, docIterator: Iterator[SolrInputDocument]): CompletionStage[UpdateResponse]

    Permalink

    Adds the documents supplied by the given iterator.

    Adds the documents supplied by the given iterator.

    collection

    the Solr collection to add documents to

    docIterator

    the iterator which returns SolrInputDocument instances

    returns

    an { @link org.apache.solr.client.solrj.response.UpdateResponse} from the server

    Definition Classes
    AsyncSolrClient
  32. def addDocs(collection: Option[String] = None, docs: Iterable[SolrInputDocument], commitWithinMs: Int = 1): CompletionStage[UpdateResponse]

    Permalink

    Adds a collection of documents, specifying max time before they become committed

    Adds a collection of documents, specifying max time before they become committed

    collection

    the Solr collection to add documents to

    docs

    the collection of documents

    commitWithinMs

    max time (in ms) before a commit will happen

    returns

    an { @link org.apache.solr.client.solrj.response.UpdateResponse} from the server

    Definition Classes
    AsyncSolrClient
  33. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  34. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. def commit(collection: String, waitFlush: Boolean, waitSearcher: Boolean, softCommit: Boolean): CompletionStage[UpdateResponse]

    Permalink

    Performs an explicit commit, causing pending documents to be committed for indexing

    Performs an explicit commit, causing pending documents to be committed for indexing

    collection

    the Solr collection to send the commit to

    waitFlush

    block until index changes are flushed to disk

    waitSearcher

    block until a new searcher is opened and registered as the main query searcher, making the changes visible

    softCommit

    makes index changes visible while neither fsync-ing index files nor writing a new index descriptor

    returns

    an { @link org.apache.solr.client.solrj.response.UpdateResponse} containing the response from the server

  36. def commit(collection: String, waitFlush: Boolean, waitSearcher: Boolean): CompletionStage[UpdateResponse]

    Permalink

    Performs an explicit commit, causing pending documents to be committed for indexing

    Performs an explicit commit, causing pending documents to be committed for indexing

    collection

    the Solr collection to send the commit to

    waitFlush

    block until index changes are flushed to disk

    waitSearcher

    block until a new searcher is opened and registered as the main query searcher, making the changes visible

    returns

    an { @link org.apache.solr.client.solrj.response.UpdateResponse} containing the response from the server

  37. def commit(collection: String): CompletionStage[UpdateResponse]

    Permalink

    Performs an explicit commit, causing pending documents to be committed for indexing

    Performs an explicit commit, causing pending documents to be committed for indexing

    collection

    the Solr collection to send the commit to

    returns

    an { @link org.apache.solr.client.solrj.response.UpdateResponse} containing the response from the server

  38. def commit(waitFlush: Boolean, waitSearcher: Boolean, softCommit: Boolean): CompletionStage[UpdateResponse]

    Permalink

    Performs an explicit commit, causing pending documents to be committed for indexing

    Performs an explicit commit, causing pending documents to be committed for indexing

    waitFlush

    block until index changes are flushed to disk

    waitSearcher

    block until a new searcher is opened and registered as the main query searcher, making the changes visible

    softCommit

    makes index changes visible while neither fsync-ing index files nor writing a new index descriptor

    returns

    an { @link org.apache.solr.client.solrj.response.UpdateResponse} containing the response from the server

  39. def commit(waitFlush: Boolean, waitSearcher: Boolean): CompletionStage[UpdateResponse]

    Permalink

    Performs an explicit commit, causing pending documents to be committed for indexing

    Performs an explicit commit, causing pending documents to be committed for indexing

    waitFlush

    block until index changes are flushed to disk

    waitSearcher

    block until a new searcher is opened and registered as the main query searcher, making the changes visible

    returns

    an { @link org.apache.solr.client.solrj.response.UpdateResponse} containing the response from the server

  40. def commit(): CompletionStage[UpdateResponse]

    Permalink

    Performs an explicit commit, causing pending documents to be committed for indexing

    Performs an explicit commit, causing pending documents to be committed for indexing

    returns

    an { @link org.apache.solr.client.solrj.response.UpdateResponse} containing the response from the server

  41. def commit(collection: Option[String] = None, waitFlush: Boolean = true, waitSearcher: Boolean = true, softCommit: Boolean = false): CompletionStage[UpdateResponse]

    Permalink

    Performs an explicit commit, causing pending documents to be committed for indexing

    Performs an explicit commit, causing pending documents to be committed for indexing

    collection

    the Solr collection to send the commit to

    waitFlush

    block until index changes are flushed to disk

    waitSearcher

    block until a new searcher is opened and registered as the main query searcher, making the changes visible

    softCommit

    makes index changes visible while neither fsync-ing index files nor writing a new index descriptor

    returns

    an { @link org.apache.solr.client.solrj.response.UpdateResponse} containing the response from the server

    Definition Classes
    AsyncSolrClient
  42. def deleteById(collection: String, id: String, commitWithinMs: Int): CompletionStage[UpdateResponse]

    Permalink

    Deletes a single document by unique ID, specifying max time before commit

    Deletes a single document by unique ID, specifying max time before commit

    collection

    the Solr collection to delete the document from

    id

    the ID of the document to delete

    commitWithinMs

    max time (in ms) before a commit will happen

    returns

    an { @link org.apache.solr.client.solrj.response.UpdateResponse} containing the response from the server

  43. def deleteById(collection: String, id: String): CompletionStage[UpdateResponse]

    Permalink

    Deletes a single document by unique ID, specifying max time before commit

    Deletes a single document by unique ID, specifying max time before commit

    collection

    the Solr collection to delete the document from

    id

    the ID of the document to delete

    returns

    an { @link org.apache.solr.client.solrj.response.UpdateResponse} containing the response from the server

  44. def deleteById(id: String, commitWithinMs: Int): CompletionStage[UpdateResponse]

    Permalink

    Deletes a single document by unique ID, specifying max time before commit

    Deletes a single document by unique ID, specifying max time before commit

    id

    the ID of the document to delete

    commitWithinMs

    max time (in ms) before a commit will happen

    returns

    an { @link org.apache.solr.client.solrj.response.UpdateResponse} containing the response from the server

  45. def deleteById(id: String): CompletionStage[UpdateResponse]

    Permalink

    Deletes a single document by unique ID, specifying max time before commit

    Deletes a single document by unique ID, specifying max time before commit

    id

    the ID of the document to delete

    returns

    an { @link org.apache.solr.client.solrj.response.UpdateResponse} containing the response from the server

  46. def deleteById(collection: Option[String] = None, id: String, commitWithinMs: Int = 1): CompletionStage[UpdateResponse]

    Permalink

    Deletes a single document by unique ID, specifying max time before commit

    Deletes a single document by unique ID, specifying max time before commit

    collection

    the Solr collection to delete the document from

    id

    the ID of the document to delete

    commitWithinMs

    max time (in ms) before a commit will happen

    returns

    an { @link org.apache.solr.client.solrj.response.UpdateResponse} containing the response from the server

    Definition Classes
    AsyncSolrClient
  47. def deleteByIds(collection: String, ids: List[String], commitWithinMs: Int): CompletionStage[UpdateResponse]

    Permalink

    Deletes a list of documents by unique ID, specifying max time before commit

    Deletes a list of documents by unique ID, specifying max time before commit

    collection

    the Solr collection to delete the documents from

    ids

    the list of document IDs to delete

    commitWithinMs

    max time (in ms) before a commit will happen

    returns

    an { @link org.apache.solr.client.solrj.response.UpdateResponse} containing the response from the server

  48. def deleteByIds(collection: String, ids: List[String]): CompletionStage[UpdateResponse]

    Permalink

    Deletes a list of documents by unique ID, specifying max time before commit

    Deletes a list of documents by unique ID, specifying max time before commit

    collection

    the Solr collection to delete the documents from

    ids

    the list of document IDs to delete

    returns

    an { @link org.apache.solr.client.solrj.response.UpdateResponse} containing the response from the server

  49. def deleteByIds(ids: List[String], commitWithinMs: Int): CompletionStage[UpdateResponse]

    Permalink

    Deletes a list of documents by unique ID, specifying max time before commit

    Deletes a list of documents by unique ID, specifying max time before commit

    ids

    the list of document IDs to delete

    commitWithinMs

    max time (in ms) before a commit will happen

    returns

    an { @link org.apache.solr.client.solrj.response.UpdateResponse} containing the response from the server

  50. def deleteByIds(ids: List[String]): CompletionStage[UpdateResponse]

    Permalink

    Deletes a list of documents by unique ID, specifying max time before commit

    Deletes a list of documents by unique ID, specifying max time before commit

    ids

    the list of document IDs to delete

    returns

    an { @link org.apache.solr.client.solrj.response.UpdateResponse} containing the response from the server

  51. def deleteByIds(collection: Option[String] = None, ids: Seq[String], commitWithinMs: Int = 1): CompletionStage[UpdateResponse]

    Permalink

    Deletes a list of documents by unique ID, specifying max time before commit

    Deletes a list of documents by unique ID, specifying max time before commit

    collection

    the Solr collection to delete the documents from

    ids

    the list of document IDs to delete

    commitWithinMs

    max time (in ms) before a commit will happen

    returns

    an { @link org.apache.solr.client.solrj.response.UpdateResponse} containing the response from the server

    Definition Classes
    AsyncSolrClient
  52. def deleteByQuery(collection: String, query: String, commitWithinMs: Int): CompletionStage[UpdateResponse]

    Permalink

    Deletes documents from the index based on a query, specifying max time before commit

    Deletes documents from the index based on a query, specifying max time before commit

    collection

    the Solr collection to delete the documents from

    query

    the query expressing what documents to delete

    commitWithinMs

    max time (in ms) before a commit will happen

    returns

    an { @link org.apache.solr.client.solrj.response.UpdateResponse} containing the response from the server

  53. def deleteByQuery(collection: String, query: String): CompletionStage[UpdateResponse]

    Permalink

    Deletes documents from the index based on a query, specifying max time before commit

    Deletes documents from the index based on a query, specifying max time before commit

    collection

    the Solr collection to delete the documents from

    query

    the query expressing what documents to delete

    returns

    an { @link org.apache.solr.client.solrj.response.UpdateResponse} containing the response from the server

  54. def deleteByQuery(query: String, commitWithinMs: Int): CompletionStage[UpdateResponse]

    Permalink

    Deletes documents from the index based on a query, specifying max time before commit

    Deletes documents from the index based on a query, specifying max time before commit

    query

    the query expressing what documents to delete

    commitWithinMs

    max time (in ms) before a commit will happen

    returns

    an { @link org.apache.solr.client.solrj.response.UpdateResponse} containing the response from the server

  55. def deleteByQuery(query: String): CompletionStage[UpdateResponse]

    Permalink

    Deletes documents from the index based on a query, specifying max time before commit

    Deletes documents from the index based on a query, specifying max time before commit

    query

    the query expressing what documents to delete

    returns

    an { @link org.apache.solr.client.solrj.response.UpdateResponse} containing the response from the server

  56. def deleteByQuery(collection: Option[String] = None, query: String, commitWithinMs: Int = 1): CompletionStage[UpdateResponse]

    Permalink

    Deletes documents from the index based on a query, specifying max time before commit

    Deletes documents from the index based on a query, specifying max time before commit

    collection

    the Solr collection to delete the documents from

    query

    the query expressing what documents to delete

    commitWithinMs

    max time (in ms) before a commit will happen

    returns

    an { @link org.apache.solr.client.solrj.response.UpdateResponse} containing the response from the server

    Definition Classes
    AsyncSolrClient
  57. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  58. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  59. def execute[T <: SolrResponse](r: SolrRequest[_ <: T])(implicit arg0: SolrResponseFactory[T]): CompletionStage[T]

    Permalink

    Performs a request to a solr server.

    Performs a request to a solr server.

    r

    the request to send to solr.

    Definition Classes
    JavaAsyncSolrClientAsyncSolrClient
  60. def executePreferred[T <: SolrResponse](r: SolrRequest[_ <: T], preferred: Option[SolrServer])(implicit arg0: SolrResponseFactory[T]): CompletionStage[(T, SolrServer)]

    Permalink

    Performs a request to a solr server taking the preferred server into account if provided.

    Performs a request to a solr server taking the preferred server into account if provided.

    r

    the request to send to the solr server.

    preferred

    the server that should be preferred to process the request. Specific LoadBalancer implementations have to support this and might add their own semantics.

    returns

    the response and the server that handled the request.

    Definition Classes
    JavaAsyncSolrClientAsyncSolrClient
  61. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  62. def getById(collection: String, id: String, params: SolrParams): CompletionStage[Optional[SolrDocument]]

    Permalink

    Retrieves the SolrDocument associated with the given identifier and uses the SolrParams to execute the request.

    Retrieves the SolrDocument associated with the given identifier and uses the SolrParams to execute the request.

    collection

    the Solr collection to query

    id

    the id

    params

    additional parameters to add to the query

    returns

    retrieved SolrDocument, or None if no document is found.

  63. def getById(collection: String, id: String): CompletionStage[Optional[SolrDocument]]

    Permalink

    Retrieves the SolrDocument associated with the given identifier and uses the SolrParams to execute the request.

    Retrieves the SolrDocument associated with the given identifier and uses the SolrParams to execute the request.

    collection

    the Solr collection to query

    id

    the id

    returns

    retrieved SolrDocument, or None if no document is found.

  64. def getById(id: String, params: SolrParams): CompletionStage[Optional[SolrDocument]]

    Permalink

    Retrieves the SolrDocument associated with the given identifier and uses the SolrParams to execute the request.

    Retrieves the SolrDocument associated with the given identifier and uses the SolrParams to execute the request.

    id

    the id

    params

    additional parameters to add to the query

    returns

    retrieved SolrDocument, or None if no document is found.

  65. def getById(id: String): CompletionStage[Optional[SolrDocument]]

    Permalink

    Retrieves the SolrDocument associated with the given identifier and uses the SolrParams to execute the request.

    Retrieves the SolrDocument associated with the given identifier and uses the SolrParams to execute the request.

    id

    the id

    returns

    retrieved SolrDocument, or None if no document is found.

  66. def getById(collection: Option[String] = None, id: String, params: Option[SolrParams] = None): CompletionStage[Option[SolrDocument]]

    Permalink

    Retrieves the SolrDocument associated with the given identifier and uses the SolrParams to execute the request.

    Retrieves the SolrDocument associated with the given identifier and uses the SolrParams to execute the request.

    collection

    the Solr collection to query

    id

    the id

    params

    additional parameters to add to the query

    returns

    retrieved SolrDocument, or None if no document is found.

    Definition Classes
    AsyncSolrClient
  67. def getByIds(collection: String, ids: Collection[String], params: SolrParams): CompletionStage[SolrDocumentList]

    Permalink

    Retrieves the SolrDocuments associated with the given identifiers and uses the SolrParams to execute the request.

    Retrieves the SolrDocuments associated with the given identifiers and uses the SolrParams to execute the request.

    If a document was not found, it will not be added to the SolrDocumentList.

    collection

    the Solr collection to query

    ids

    the ids

    params

    additional parameters to add to the query

    returns

    a SolrDocumentList, or null if no documents were found

  68. def getByIds(collection: String, ids: Collection[String]): CompletionStage[SolrDocumentList]

    Permalink

    Retrieves the SolrDocuments associated with the given identifiers and uses the SolrParams to execute the request.

    Retrieves the SolrDocuments associated with the given identifiers and uses the SolrParams to execute the request.

    If a document was not found, it will not be added to the SolrDocumentList.

    collection

    the Solr collection to query

    ids

    the ids

    returns

    a SolrDocumentList, or null if no documents were found

  69. def getByIds(ids: Collection[String], params: SolrParams): CompletionStage[SolrDocumentList]

    Permalink

    Retrieves the SolrDocuments associated with the given identifiers and uses the SolrParams to execute the request.

    Retrieves the SolrDocuments associated with the given identifiers and uses the SolrParams to execute the request.

    If a document was not found, it will not be added to the SolrDocumentList.

    ids

    the ids

    params

    additional parameters to add to the query

    returns

    a SolrDocumentList, or null if no documents were found

  70. def getByIds(ids: Collection[String]): CompletionStage[SolrDocumentList]

    Permalink

    Retrieves the SolrDocuments associated with the given identifiers and uses the SolrParams to execute the request.

    Retrieves the SolrDocuments associated with the given identifiers and uses the SolrParams to execute the request.

    If a document was not found, it will not be added to the SolrDocumentList.

    ids

    the ids

    returns

    a SolrDocumentList, or null if no documents were found

  71. def getByIds(collection: Option[String] = None, ids: Iterable[String], params: Option[SolrParams] = None): CompletionStage[SolrDocumentList]

    Permalink

    Retrieves the SolrDocuments associated with the given identifiers and uses the SolrParams to execute the request.

    Retrieves the SolrDocuments associated with the given identifiers and uses the SolrParams to execute the request.

    If a document was not found, it will not be added to the SolrDocumentList.

    collection

    the Solr collection to query

    ids

    the ids

    params

    additional parameters to add to the query

    returns

    a SolrDocumentList

    Definition Classes
    AsyncSolrClient
  72. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  73. def getErrorReason(url: String, rsp: NamedList[_], response: Response): String

    Permalink
    Attributes
    protected
    Definition Classes
    AsyncSolrClient
  74. def getPath(request: SolrRequest[_ <: SolrResponse]): String

    Permalink
    Attributes
    protected
    Definition Classes
    AsyncSolrClient
  75. def getResponseEncoding(response: Response): String

    Permalink
    Attributes
    protected
    Definition Classes
    AsyncSolrClient
  76. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  77. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  78. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  79. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  80. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  81. def optimize(collection: String, waitFlush: Boolean, waitSearcher: Boolean, maxSegments: Int): CompletionStage[UpdateResponse]

    Permalink

    Performs an explicit optimize, causing a merge of all segments to one.

    Performs an explicit optimize, causing a merge of all segments to one. Note: In most cases it is not required to do explicit optimize

    collection

    the Solr collection to send the optimize to

    waitFlush

    block until index changes are flushed to disk

    waitSearcher

    block until a new searcher is opened and registered as the main query searcher, making the changes visible

    maxSegments

    optimizes down to at most this number of segments

    returns

    an { @link org.apache.solr.client.solrj.response.UpdateResponse} containing the response from the server

  82. def optimize(collection: String, waitFlush: Boolean, waitSearcher: Boolean): CompletionStage[UpdateResponse]

    Permalink

    Performs an explicit optimize, causing a merge of all segments to one.

    Performs an explicit optimize, causing a merge of all segments to one. Note: In most cases it is not required to do explicit optimize

    collection

    the Solr collection to send the optimize to

    waitFlush

    block until index changes are flushed to disk

    waitSearcher

    block until a new searcher is opened and registered as the main query searcher, making the changes visible

    returns

    an { @link org.apache.solr.client.solrj.response.UpdateResponse} containing the response from the server

  83. def optimize(collection: String): CompletionStage[UpdateResponse]

    Permalink

    Performs an explicit optimize, causing a merge of all segments to one.

    Performs an explicit optimize, causing a merge of all segments to one. Note: In most cases it is not required to do explicit optimize

    collection

    the Solr collection to send the optimize to

    returns

    an { @link org.apache.solr.client.solrj.response.UpdateResponse} containing the response from the server

  84. def optimize(waitFlush: Boolean, waitSearcher: Boolean, maxSegments: Int): CompletionStage[UpdateResponse]

    Permalink

    Performs an explicit optimize, causing a merge of all segments to one.

    Performs an explicit optimize, causing a merge of all segments to one. Note: In most cases it is not required to do explicit optimize

    waitFlush

    block until index changes are flushed to disk

    waitSearcher

    block until a new searcher is opened and registered as the main query searcher, making the changes visible

    maxSegments

    optimizes down to at most this number of segments

    returns

    an { @link org.apache.solr.client.solrj.response.UpdateResponse} containing the response from the server

  85. def optimize(waitFlush: Boolean, waitSearcher: Boolean): CompletionStage[UpdateResponse]

    Permalink

    Performs an explicit optimize, causing a merge of all segments to one.

    Performs an explicit optimize, causing a merge of all segments to one. Note: In most cases it is not required to do explicit optimize

    waitFlush

    block until index changes are flushed to disk

    waitSearcher

    block until a new searcher is opened and registered as the main query searcher, making the changes visible

    returns

    an { @link org.apache.solr.client.solrj.response.UpdateResponse} containing the response from the server

  86. def optimize(): CompletionStage[UpdateResponse]

    Permalink

    Performs an explicit optimize, causing a merge of all segments to one.

    Performs an explicit optimize, causing a merge of all segments to one. Note: In most cases it is not required to do explicit optimize

    returns

    an { @link org.apache.solr.client.solrj.response.UpdateResponse} containing the response from the server

  87. def optimize(collection: Option[String] = None, waitFlush: Boolean = true, waitSearcher: Boolean = true, maxSegments: Int = 1): CompletionStage[UpdateResponse]

    Permalink

    Performs an explicit optimize, causing a merge of all segments to one.

    Performs an explicit optimize, causing a merge of all segments to one. Note: In most cases it is not required to do explicit optimize

    collection

    the Solr collection to send the optimize to

    waitFlush

    block until index changes are flushed to disk

    waitSearcher

    block until a new searcher is opened and registered as the main query searcher, making the changes visible

    maxSegments

    optimizes down to at most this number of segments

    returns

    an { @link org.apache.solr.client.solrj.response.UpdateResponse} containing the response from the server

    Definition Classes
    AsyncSolrClient
  88. def ping(): CompletionStage[SolrPingResponse]

    Permalink

    Issues a ping request to check if the server is alive

    Issues a ping request to check if the server is alive

    returns

    a { @link org.apache.solr.client.solrj.response.SolrPingResponse} containing the response from the server

    Definition Classes
    JavaAsyncSolrClientAsyncSolrClient
  89. def query(collection: String, q: SolrParams, method: METHOD): CompletionStage[QueryResponse]

    Permalink

    Performs a query to the Solr server

    Performs a query to the Solr server

    collection

    the Solr collection to query

    q

    an object holding all key/value parameters to send along the request

    method

    specifies the HTTP method to use for the request, such as GET or POST

    returns

    a { @link org.apache.solr.client.solrj.response.QueryResponse} containing the response from the server

    Definition Classes
    JavaAsyncSolrClientAsyncSolrClient
  90. def query(collection: String, q: SolrParams): CompletionStage[QueryResponse]

    Permalink

    Performs a query to the Solr server

    Performs a query to the Solr server

    collection

    the Solr collection to query

    q

    an object holding all key/value parameters to send along the request

    returns

    a { @link org.apache.solr.client.solrj.response.QueryResponse} containing the response from the server

  91. def query(q: SolrParams, method: METHOD): CompletionStage[QueryResponse]

    Permalink

    Performs a query to the Solr server

    Performs a query to the Solr server

    q

    an object holding all key/value parameters to send along the request

    method

    specifies the HTTP method to use for the request, such as GET or POST

    returns

    a { @link org.apache.solr.client.solrj.response.QueryResponse} containing the response from the server

    Definition Classes
    JavaAsyncSolrClientAsyncSolrClient
  92. def query(q: SolrParams): CompletionStage[QueryResponse]

    Permalink

    Performs a query to the Solr server

    Performs a query to the Solr server

    q

    an object holding all key/value parameters to send along the request

    returns

    a { @link org.apache.solr.client.solrj.response.QueryResponse} containing the response from the server

    Definition Classes
    JavaAsyncSolrClientAsyncSolrClient
  93. def queryAndStreamResponse(collection: String, q: SolrParams, callback: StreamingResponseCallback): CompletionStage[QueryResponse]

    Permalink

    Query solr, and stream the results.

    Query solr, and stream the results. Unlike the standard query, this will send events for each Document rather then add them to the QueryResponse.

    Although this function returns a 'QueryResponse' it should be used with care since it excludes anything that was passed to callback. Also note that future version may pass even more info to the callback and may not return the results in the QueryResponse.

    collection

    the Solr collection to query

    q

    an object holding all key/value parameters to send along the request

    callback

    the callback to stream results to

    returns

    a { @link org.apache.solr.client.solrj.response.QueryResponse} containing the response from the server

  94. def queryAndStreamResponse(q: SolrParams, callback: StreamingResponseCallback): CompletionStage[QueryResponse]

    Permalink

    Query solr, and stream the results.

    Query solr, and stream the results. Unlike the standard query, this will send events for each Document rather then add them to the QueryResponse.

    Although this function returns a 'QueryResponse' it should be used with care since it excludes anything that was passed to callback. Also note that future version may pass even more info to the callback and may not return the results in the QueryResponse.

    q

    an object holding all key/value parameters to send along the request

    callback

    the callback to stream results to

    returns

    a { @link org.apache.solr.client.solrj.response.QueryResponse} containing the response from the server

  95. def queryAndStreamResponse(collection: Option[String] = None, q: SolrParams, callback: StreamingResponseCallback): CompletionStage[QueryResponse]

    Permalink

    Query solr, and stream the results.

    Query solr, and stream the results. Unlike the standard query, this will send events for each Document rather then add them to the QueryResponse.

    Although this function returns a 'QueryResponse' it should be used with care since it excludes anything that was passed to callback. Also note that future version may pass even more info to the callback and may not return the results in the QueryResponse.

    collection

    the Solr collection to query

    q

    an object holding all key/value parameters to send along the request

    callback

    the callback to stream results to

    returns

    a { @link org.apache.solr.client.solrj.response.QueryResponse} containing the response from the server

    Definition Classes
    AsyncSolrClient
  96. def queryPreferred(q: SolrQuery, preferred: Option[SolrServer]): CompletionStage[(QueryResponse, SolrServer)]

    Permalink

    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.

    Definition Classes
    JavaAsyncSolrClientAsyncSolrClient
  97. def rollback(collection: String): CompletionStage[UpdateResponse]

    Permalink

    Performs a rollback of all non-committed documents pending.

    Performs a rollback of all non-committed documents pending. Note that this is not a true rollback as in databases. Content you have previously added may have been committed due to autoCommit, buffer full, other client performing a commit etc.

    collection

    the Solr collection to send the rollback to

    returns

    an { @link org.apache.solr.client.solrj.response.UpdateResponse} containing the response from the server

  98. def rollback(): CompletionStage[UpdateResponse]

    Permalink

    Performs a rollback of all non-committed documents pending.

    Performs a rollback of all non-committed documents pending. Note that this is not a true rollback as in databases. Content you have previously added may have been committed due to autoCommit, buffer full, other client performing a commit etc.

    returns

    an { @link org.apache.solr.client.solrj.response.UpdateResponse} containing the response from the server

  99. def rollback(collection: Option[String] = None): CompletionStage[UpdateResponse]

    Permalink

    Performs a rollback of all non-committed documents pending.

    Performs a rollback of all non-committed documents pending. Note that this is not a true rollback as in databases. Content you have previously added may have been committed due to autoCommit, buffer full, other client performing a commit etc.

    collection

    the Solr collection to send the rollback to

    returns

    an { @link org.apache.solr.client.solrj.response.UpdateResponse} containing the response from the server

    Definition Classes
    AsyncSolrClient
  100. def shutdown(): Unit

    Permalink

    Closes the http client (asynchronously) if it was not provided but created by this class.

    Closes the http client (asynchronously) if it was not provided but created by this class.

    Definition Classes
    AsyncSolrClient
  101. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  102. def toSolrResponse[T <: SolrResponse](r: SolrRequest[_ <: T], response: Response, url: String, startTime: Long)(implicit arg0: SolrResponseFactory[T], server: SolrServer): T

    Permalink
    Attributes
    protected
    Definition Classes
    AsyncSolrClient
    Annotations
    @throws( ... )
  103. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  104. def validateMimeType(expectedContentType: String, response: Response): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    AsyncSolrClient
    Annotations
    @throws( ... )
  105. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  106. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  107. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AsyncSolrClient[CompletionStage]

Inherited from AnyRef

Inherited from Any

Ungrouped