public class DocumentAnalysisRequest extends SolrRequest<DocumentAnalysisResponse>
SolrRequest.METHODSUPPORTED_METHODS, useBinaryV2, usev2| Constructor and Description |
|---|
DocumentAnalysisRequest()
Constructs a new request with a default uri of "/documentanalysis".
|
DocumentAnalysisRequest(String uri)
Constructs a new request with the given request handler uri.
|
| Modifier and Type | Method and Description |
|---|---|
DocumentAnalysisRequest |
addDocument(SolrInputDocument doc)
Adds a document to be analyzed.
|
DocumentAnalysisRequest |
addDocuments(Collection<SolrInputDocument> docs)
Adds a collection of documents to be analyzed.
|
protected DocumentAnalysisResponse |
createResponse(SolrClient client)
Create a new SolrResponse to hold the response from the server
|
RequestWriter.ContentWriter |
getContentWriter(String expectedType)
If a request object wants to do a push write, implement this method.
|
List<SolrInputDocument> |
getDocuments()
Returns all documents that will be analyzed when processing the request.
|
ModifiableSolrParams |
getParams() |
String |
getQuery()
Returns the query that will be analyzed when processing the request.
|
boolean |
isShowMatch()
Returns whether index time tokens that match query time tokens will be marked as a "match".
|
DocumentAnalysisRequest |
setQuery(String query)
Sets the query to be analyzed.
|
DocumentAnalysisRequest |
setShowMatch(boolean showMatch)
Sets whether index time tokens that match query time tokens should be marked as a "match".
|
addHeader, getBasePath, getBasicAuthPassword, getBasicAuthUser, getCollection, getContentStreams, getHeaders, getMethod, getPath, getQueryParams, getResponseParser, getStreamingResponseCallback, getUserPrincipal, process, process, setBasePath, setBasicAuthCredentials, setMethod, setPath, setQueryParams, setResponseParser, setStreamingResponseCallback, setUseBinaryV2, setUserPrincipal, setUseV2public DocumentAnalysisRequest()
public DocumentAnalysisRequest(String uri)
uri - The of the request handler.public RequestWriter.ContentWriter getContentWriter(String expectedType)
SolrRequestgetContentWriter in class SolrRequest<DocumentAnalysisResponse>expectedType - This is the type that the RequestWriter would like to get. But, it is OK to send any formatprotected DocumentAnalysisResponse createResponse(SolrClient client)
SolrRequestcreateResponse in class SolrRequest<DocumentAnalysisResponse>client - the SolrClient the request will be sent topublic ModifiableSolrParams getParams()
getParams in class SolrRequest<DocumentAnalysisResponse>public DocumentAnalysisRequest addDocument(SolrInputDocument doc)
doc - The document to be analyzed.public DocumentAnalysisRequest addDocuments(Collection<SolrInputDocument> docs)
docs - The documents to be analyzed.addDocument(org.apache.solr.common.SolrInputDocument)public DocumentAnalysisRequest setQuery(String query)
query - The query to be analyzed.public DocumentAnalysisRequest setShowMatch(boolean showMatch)
false. Obviously, this flag is ignored if when the query is set to null.showMatch - Sets whether index time tokens that match query time tokens should be marked as a "match".public List<SolrInputDocument> getDocuments()
addDocument(org.apache.solr.common.SolrInputDocument)public String getQuery()
null indicating that no
query time analysis is taking place.setQuery(String)public boolean isShowMatch()
setShowMatch(boolean)Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.