public class DocumentAnalysisRequest extends SolrRequest<DocumentAnalysisResponse>
SolrRequest.METHOD
SUPPORTED_METHODS
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
|
Collection<ContentStream> |
getContentStreams() |
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".
|
getBasicAuthPassword, getBasicAuthUser, getMethod, getPath, getQueryParams, getResponseParser, getStreamingResponseCallback, process, process, setBasicAuthCredentials, setMethod, setPath, setQueryParams, setResponseParser, setStreamingResponseCallback
public DocumentAnalysisRequest()
public DocumentAnalysisRequest(String uri)
uri
- The of the request handler.public Collection<ContentStream> getContentStreams() throws IOException
getContentStreams
in class SolrRequest<DocumentAnalysisResponse>
IOException
protected DocumentAnalysisResponse createResponse(SolrClient client)
SolrRequest
createResponse
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-2017 Apache Software Foundation. All Rights Reserved.