Package | Description |
---|---|
org.apache.solr.client.solrj |
Primary APIs for communicating with a Solr Server from a Java client.
|
org.apache.solr.client.solrj.beans |
Annotation based mapping of client objects to Solr documents.
|
org.apache.solr.client.solrj.io.stream |
Stream implementations for the Streaming Aggregation API
|
org.apache.solr.client.solrj.request |
Convenience classes for dealing with various types of Solr requests.
|
org.apache.solr.client.solrj.util |
Utilities for Solr client applications.
|
org.apache.solr.common |
Common classes reused on both clients & server for dealing with
documents to be indexed and result documents . |
org.apache.solr.common.cloud |
Common Solr Cloud and ZooKeeper related classes reused on both clients & server.
|
org.apache.solr.common.util |
Common utility classes reused on both clients & server.
|
Modifier and Type | Method and Description |
---|---|
UpdateResponse |
SolrClient.add(SolrInputDocument doc)
Adds a single document
Many
SolrClient implementations have drastically slower indexing performance when documents are added
individually. |
UpdateResponse |
SolrClient.add(SolrInputDocument doc,
int commitWithinMs)
Adds a single document specifying max time before it becomes committed
|
UpdateResponse |
SolrClient.add(String collection,
SolrInputDocument doc)
Adds a single document
|
UpdateResponse |
SolrClient.add(String collection,
SolrInputDocument doc,
int commitWithinMs)
Adds a single document specifying max time before it becomes committed
|
Modifier and Type | Method and Description |
---|---|
UpdateResponse |
SolrClient.add(Collection<SolrInputDocument> docs)
Adds a collection of documents
|
UpdateResponse |
SolrClient.add(Collection<SolrInputDocument> docs,
int commitWithinMs)
Adds a collection of documents, specifying max time before they become committed
|
UpdateResponse |
SolrClient.add(Iterator<SolrInputDocument> docIterator)
Adds the documents supplied by the given iterator.
|
UpdateResponse |
SolrClient.add(String collection,
Collection<SolrInputDocument> docs)
Adds a collection of documents
|
UpdateResponse |
SolrClient.add(String collection,
Collection<SolrInputDocument> docs,
int commitWithinMs)
Adds a collection of documents, specifying max time before they become committed
|
UpdateResponse |
SolrClient.add(String collection,
Iterator<SolrInputDocument> docIterator)
Adds the documents supplied by the given iterator.
|
Modifier and Type | Method and Description |
---|---|
SolrInputDocument |
DocumentObjectBinder.toSolrInputDocument(Object obj) |
Modifier and Type | Method and Description |
---|---|
protected void |
UpdateStream.uploadBatchToCollection(List<SolrInputDocument> documentBatch)
This method will be called on every batch of tuples comsumed, after converting each tuple
in that batch to a Solr Input Document.
|
protected void |
DeleteStream.uploadBatchToCollection(List<SolrInputDocument> documentBatch)
Overrides implementation to extract the
"id" and "_version_"
(if included) from each document and use that information to construct a "Delete By Id" request. |
Modifier and Type | Method and Description |
---|---|
Iterator<SolrInputDocument> |
UpdateRequest.getDocIterator() |
List<SolrInputDocument> |
DocumentAnalysisRequest.getDocuments()
Returns all documents that will be analyzed when processing the request.
|
List<SolrInputDocument> |
UpdateRequest.getDocuments() |
Map<SolrInputDocument,Map<String,Object>> |
UpdateRequest.getDocumentsMap() |
Modifier and Type | Method and Description |
---|---|
UpdateRequest |
UpdateRequest.add(SolrInputDocument doc)
Add a SolrInputDocument to this request
|
UpdateRequest |
UpdateRequest.add(SolrInputDocument doc,
Boolean overwrite)
Add a SolrInputDocument to this request
|
UpdateRequest |
UpdateRequest.add(SolrInputDocument doc,
Integer commitWithin)
Add a SolrInputDocument to this request
|
UpdateRequest |
UpdateRequest.add(SolrInputDocument doc,
Integer commitWithin,
Boolean overwrite)
Add a SolrInputDocument to this request
|
DocumentAnalysisRequest |
DocumentAnalysisRequest.addDocument(SolrInputDocument doc)
Adds a document to be analyzed.
|
void |
JavaBinUpdateRequestCodec.StreamingUpdateHandler.update(SolrInputDocument document,
UpdateRequest req,
Integer commitWithin,
Boolean override) |
Modifier and Type | Method and Description |
---|---|
UpdateRequest |
UpdateRequest.add(Collection<SolrInputDocument> docs)
Add a collection of SolrInputDocuments to this request
|
DocumentAnalysisRequest |
DocumentAnalysisRequest.addDocuments(Collection<SolrInputDocument> docs)
Adds a collection of documents to be analyzed.
|
void |
UpdateRequest.setDocIterator(Iterator<SolrInputDocument> docIterator) |
Modifier and Type | Method and Description |
---|---|
static String |
ClientUtils.toXML(SolrInputDocument doc) |
static void |
ClientUtils.writeXML(SolrInputDocument doc,
Writer writer) |
Modifier and Type | Method and Description |
---|---|
SolrInputDocument |
SolrInputDocument.deepCopy() |
Modifier and Type | Method and Description |
---|---|
List<SolrInputDocument> |
SolrInputDocument.getChildDocuments()
Returns the list of child documents, or null if none.
|
Modifier and Type | Method and Description |
---|---|
void |
SolrInputDocument.addChildDocument(SolrInputDocument child) |
Modifier and Type | Method and Description |
---|---|
void |
SolrInputDocument.addChildDocuments(Collection<SolrInputDocument> children) |
void |
SolrInputDocument.visitSelfAndNestedDocs(BiConsumer<String,SolrInputDocument> consumer)
Beta API; may change at will.
|
Modifier and Type | Method and Description |
---|---|
protected String |
HashBasedRouter.getId(SolrInputDocument sdoc,
SolrParams params) |
Slice |
HashBasedRouter.getTargetSlice(String id,
SolrInputDocument sdoc,
String route,
SolrParams params,
DocCollection collection) |
abstract Slice |
DocRouter.getTargetSlice(String id,
SolrInputDocument sdoc,
String route,
SolrParams params,
DocCollection collection)
Returns the Slice that the document should reside on, or null if there is not enough information
|
Slice |
ImplicitDocRouter.getTargetSlice(String id,
SolrInputDocument sdoc,
String route,
SolrParams params,
DocCollection collection) |
boolean |
HashBasedRouter.isTargetSlice(String id,
SolrInputDocument sdoc,
SolrParams params,
String shardId,
DocCollection collection) |
abstract boolean |
DocRouter.isTargetSlice(String id,
SolrInputDocument sdoc,
SolrParams params,
String shardId,
DocCollection collection) |
boolean |
ImplicitDocRouter.isTargetSlice(String id,
SolrInputDocument sdoc,
SolrParams params,
String shardId,
DocCollection collection) |
int |
HashBasedRouter.sliceHash(String id,
SolrInputDocument sdoc,
SolrParams params,
DocCollection collection) |
int |
CompositeIdRouter.sliceHash(String id,
SolrInputDocument doc,
SolrParams params,
DocCollection collection) |
Modifier and Type | Method and Description |
---|---|
protected SolrInputDocument |
JavaBinCodec.createSolrInputDocument(int sz) |
SolrInputDocument |
JavaBinCodec.readSolrInputDocument(DataInputInputStream dis) |
Modifier and Type | Method and Description |
---|---|
void |
JavaBinCodec.writeSolrInputDocument(SolrInputDocument sdoc) |
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.