Class ContentStreamUpdateRequest
java.lang.Object
org.apache.solr.client.solrj.SolrRequest<UpdateResponse>
org.apache.solr.client.solrj.request.CollectionRequiringSolrRequest<UpdateResponse>
org.apache.solr.client.solrj.request.AbstractUpdateRequest
org.apache.solr.client.solrj.request.ContentStreamUpdateRequest
- All Implemented Interfaces:
Serializable
Basic functionality to upload a File or
ContentStream to a
Solr Cell or some other handler that takes ContentStreams (CSV)
See https://solr.apache.org/guide/solr/latest/indexing-guide/indexing-with-tika.html
See https://solr.apache.org/guide/solr/latest/indexing-guide/indexing-with-update-handlers.html
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.solr.client.solrj.request.AbstractUpdateRequest
AbstractUpdateRequest.ACTIONNested classes/interfaces inherited from class org.apache.solr.client.solrj.SolrRequest
SolrRequest.ApiVersion, SolrRequest.METHOD, SolrRequest.SolrClientContext, SolrRequest.SolrRequestType -
Field Summary
Fields inherited from class org.apache.solr.client.solrj.request.AbstractUpdateRequest
commitWithin, paramsFields inherited from class org.apache.solr.client.solrj.SolrRequest
SUPPORTED_METHODS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddContentStream(ContentStream contentStream) Add aContentStreamtogetContentStreams()voidAdd a File to theContentStreams.getContentWriter(String expectedType) If a request object wants to do a push write, implement this method.Methods inherited from class org.apache.solr.client.solrj.request.AbstractUpdateRequest
createResponse, getAction, getCommitWithin, getParams, isWaitSearcher, rollback, setAction, setAction, setAction, setAction, setAction, setAction, setAction, setCommitWithin, setParam, setParams, setWaitSearcherMethods inherited from class org.apache.solr.client.solrj.request.CollectionRequiringSolrRequest
requiresCollectionMethods inherited from class org.apache.solr.client.solrj.SolrRequest
addHeader, addHeaders, getApiVersion, getBasicAuthPassword, getBasicAuthUser, getCollection, getHeaders, getMethod, getPath, getPreferredNodes, getQueryParams, getRequestType, getResponseParser, getStreamingResponseCallback, getUserPrincipal, process, process, processWithBaseUrl, setBasicAuthCredentials, setMethod, setPath, setPreferredNodes, setQueryParams, setRequestType, setResponseParser, setStreamingResponseCallback, setUserPrincipal
-
Constructor Details
-
ContentStreamUpdateRequest
- Parameters:
url- The URL to send theContentStreamto in Solr.
-
-
Method Details
-
getContentStreams
- Overrides:
getContentStreamsin classSolrRequest<UpdateResponse>- Throws:
IOException
-
getContentWriter
Description copied from class:SolrRequestIf a request object wants to do a push write, implement this method.- Overrides:
getContentWriterin classSolrRequest<UpdateResponse>- Parameters:
expectedType- This is the type that the RequestWriter would like to get. But, it is OK to send any format
-
addFile
Add a File to theContentStreams.- Parameters:
file- The File to add.- Throws:
IOException- if there was an error with the file.- See Also:
-
addContentStream
Add aContentStreamtogetContentStreams()- Parameters:
contentStream- TheContentStream
-