Class LukeRequest
- java.lang.Object
- 
- org.apache.solr.client.solrj.SolrRequest<T>
- 
- org.apache.solr.client.solrj.request.CollectionRequiringSolrRequest<LukeResponse>
- 
- org.apache.solr.client.solrj.request.LukeRequest
 
 
 
- 
- All Implemented Interfaces:
- Serializable
 
 public class LukeRequest extends CollectionRequiringSolrRequest<LukeResponse> - Since:
- solr 1.3
- See Also:
- Serialized Form
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class org.apache.solr.client.solrj.SolrRequestSolrRequest.METHOD, SolrRequest.SolrClientContext, SolrRequest.SolrRequestType
 
- 
 - 
Field Summary- 
Fields inherited from class org.apache.solr.client.solrj.SolrRequestSUPPORTED_METHODS, useBinaryV2, usev2
 
- 
 - 
Constructor SummaryConstructors Constructor Description LukeRequest()LukeRequest(String path)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddField(String f)protected LukeResponsecreateResponse(SolrClient client)Create a new SolrResponse to hold the response from the serverbooleangetIncludeIndexFieldFlags()intgetNumTerms()SolrParamsgetParams()StringgetRequestType()This method defines the type of this Solr request.booleanisShowSchema()voidsetFields(List<String> f)voidsetIncludeIndexFieldFlags(boolean shouldInclude)Choose whether /luke should return the index-flags for each fieldvoidsetNumTerms(int count)the number of terms to return for a given field.voidsetShowSchema(boolean showSchema)- 
Methods inherited from class org.apache.solr.client.solrj.request.CollectionRequiringSolrRequestrequiresCollection
 - 
Methods inherited from class org.apache.solr.client.solrj.SolrRequestaddHeader, addHeaders, getBasePath, getBasicAuthPassword, getBasicAuthUser, getCollection, getContentStreams, getContentWriter, getHeaders, getMethod, getPath, getPreferredNodes, getQueryParams, getResponseParser, getStreamingResponseCallback, getUserPrincipal, process, process, setBasePath, setBasicAuthCredentials, setMethod, setPath, setPreferredNodes, setQueryParams, setResponseParser, setStreamingResponseCallback, setUseBinaryV2, setUserPrincipal, setUseV2
 
- 
 
- 
- 
- 
Constructor Detail- 
LukeRequestpublic LukeRequest() 
 - 
LukeRequestpublic LukeRequest(String path) 
 
- 
 - 
Method Detail- 
addFieldpublic void addField(String f) 
 - 
isShowSchemapublic boolean isShowSchema() 
 - 
setShowSchemapublic void setShowSchema(boolean showSchema) 
 - 
getNumTermspublic int getNumTerms() 
 - 
setNumTermspublic void setNumTerms(int count) the number of terms to return for a given field. If the number is 0, it will not traverse the terms.
 - 
setIncludeIndexFieldFlagspublic void setIncludeIndexFieldFlags(boolean shouldInclude) Choose whether /luke should return the index-flags for each fieldFetching and returning the index-flags for each field in your index has non-zero cost, and can slow down requests to /luke. Users who do not care about these values can tell Solr to avoid generating them by setting the 'includeIndexFieldFlags' flag to false, saving their requests some processing. 
 - 
getIncludeIndexFieldFlagspublic boolean getIncludeIndexFieldFlags() 
 - 
createResponseprotected LukeResponse createResponse(SolrClient client) Description copied from class:SolrRequestCreate a new SolrResponse to hold the response from the server- Specified by:
- createResponsein class- SolrRequest<LukeResponse>
- Parameters:
- client- the- SolrClientthe request will be sent to
 
 - 
getParamspublic SolrParams getParams() - Specified by:
- getParamsin class- SolrRequest<LukeResponse>
 
 - 
getRequestTypepublic String getRequestType() Description copied from class:SolrRequestThis method defines the type of this Solr request.- Specified by:
- getRequestTypein class- SolrRequest<LukeResponse>
 
 
- 
 
-