Class LukeRequest
java.lang.Object
org.apache.solr.client.solrj.SolrRequest<LukeResponse>
org.apache.solr.client.solrj.request.CollectionRequiringSolrRequest<LukeResponse>
org.apache.solr.client.solrj.request.LukeRequest
- All Implemented Interfaces:
Serializable
- Since:
- solr 1.3
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.solr.client.solrj.SolrRequest
SolrRequest.ApiVersion, SolrRequest.METHOD, SolrRequest.SolrClientContext, SolrRequest.SolrRequestType -
Field Summary
Fields inherited from class org.apache.solr.client.solrj.SolrRequest
SUPPORTED_METHODS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected LukeResponsecreateResponse(NamedList<Object> namedList) Create a new SolrResponse to hold the response from the server.booleanintThe parameters for this request; never null.booleanvoidvoidsetIncludeIndexFieldFlags(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.CollectionRequiringSolrRequest
requiresCollectionMethods inherited from class org.apache.solr.client.solrj.SolrRequest
addHeader, addHeaders, getApiVersion, getBasicAuthPassword, getBasicAuthUser, getCollection, getContentStreams, getContentWriter, getHeaders, getMethod, getPath, getPreferredNodes, getQueryParams, getRequestType, getResponseParser, getStreamingResponseCallback, getUserPrincipal, process, process, processWithBaseUrl, setBasicAuthCredentials, setMethod, setPath, setPreferredNodes, setQueryParams, setRequestType, setResponseParser, setStreamingResponseCallback, setUserPrincipal
-
Constructor Details
-
LukeRequest
public LukeRequest() -
LukeRequest
-
-
Method Details
-
addField
-
setFields
-
isShowSchema
public boolean isShowSchema() -
setShowSchema
public void setShowSchema(boolean showSchema) -
getNumTerms
public int getNumTerms() -
setNumTerms
public 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. -
setIncludeIndexFieldFlags
public 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.
-
getIncludeIndexFieldFlags
public boolean getIncludeIndexFieldFlags() -
createResponse
Description copied from class:SolrRequestCreate a new SolrResponse to hold the response from the server. If the response extendsSolrResponse, then there's no need to use the arguments, asSolrResponse.setResponse(NamedList)will be called right after this method.- Specified by:
createResponsein classSolrRequest<LukeResponse>- Parameters:
namedList- fromSolrClient.request(SolrRequest, String).
-
getParams
Description copied from class:SolrRequestThe parameters for this request; never null. The runtime type may be mutable but modifications may not affect thisSolrRequestinstance, as it may return a new instance here every time. If the subclass specifies the response type asModifiableSolrParams, then one can expect it to change this request. If the subclass has a setter then one can expect this method to return the value set.- Specified by:
getParamsin classSolrRequest<LukeResponse>
-