public class DocumentAnalysisRequest extends SolrRequest
SolrRequest.METHOD| 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.
|
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".
|
DocumentAnalysisResponse |
process(SolrServer server) |
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".
|
getMethod, getPath, getResponseParser, getStreamingResponseCallback, setMethod, setPath, setResponseParser, setStreamingResponseCallbackpublic DocumentAnalysisRequest()
public DocumentAnalysisRequest(String uri)
uri - The of the request handler.public Collection<ContentStream> getContentStreams() throws IOException
getContentStreams in class SolrRequestIOExceptionpublic ModifiableSolrParams getParams()
getParams in class SolrRequestpublic DocumentAnalysisResponse process(SolrServer server) throws SolrServerException, IOException
process in class SolrRequestSolrServerExceptionIOExceptionpublic 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-2014 Apache Software Foundation. All Rights Reserved.