|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.solr.client.solrj.SolrRequest
org.apache.solr.client.solrj.request.DocumentAnalysisRequest
public class DocumentAnalysisRequest
A request for the org.apache.solr.handler.DocumentAnalysisRequestHandler.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.apache.solr.client.solrj.SolrRequest |
|---|
SolrRequest.METHOD |
| Constructor Summary | |
|---|---|
DocumentAnalysisRequest()
Constructs a new request with a default uri of "/documentanalysis". |
|
DocumentAnalysisRequest(String uri)
Constructs a new request with the given request handler uri. |
|
| Method Summary | |
|---|---|
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". |
| Methods inherited from class org.apache.solr.client.solrj.SolrRequest |
|---|
getMethod, getPath, getResponseParser, getStreamingResponseCallback, setMethod, setPath, setResponseParser, setStreamingResponseCallback |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DocumentAnalysisRequest()
public DocumentAnalysisRequest(String uri)
uri - The of the request handler.| Method Detail |
|---|
public Collection<ContentStream> getContentStreams()
throws IOException
getContentStreams in class SolrRequestIOExceptionpublic ModifiableSolrParams getParams()
getParams in class SolrRequest
public DocumentAnalysisResponse process(SolrServer server)
throws SolrServerException,
IOException
process in class SolrRequestSolrServerException
IOExceptionpublic 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)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||