Class LukeRequest
- java.lang.Object
-
- org.apache.solr.client.solrj.SolrRequest<LukeResponse>
-
- org.apache.solr.client.solrj.request.LukeRequest
-
- All Implemented Interfaces:
Serializable
public class LukeRequest extends SolrRequest<LukeResponse>
- Since:
- solr 1.3
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.solr.client.solrj.SolrRequest
SolrRequest.METHOD
-
-
Field Summary
-
Fields inherited from class org.apache.solr.client.solrj.SolrRequest
SUPPORTED_METHODS, useBinaryV2, usev2
-
-
Constructor Summary
Constructors Constructor Description LukeRequest()
LukeRequest(String path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addField(String f)
protected LukeResponse
createResponse(SolrClient client)
Create a new SolrResponse to hold the response from the serverboolean
getIncludeIndexFieldFlags()
int
getNumTerms()
SolrParams
getParams()
boolean
isShowSchema()
void
setFields(List<String> f)
void
setIncludeIndexFieldFlags(boolean shouldInclude)
Choose whether /luke should return the index-flags for each field Fetching and returning the index-flags for each field in your index has non-zero cost, and can slow down requests to /luke.void
setNumTerms(int count)
the number of terms to return for a given field.void
setShowSchema(boolean showSchema)
-
Methods inherited from class org.apache.solr.client.solrj.SolrRequest
getBasePath, getBasicAuthPassword, getBasicAuthUser, getCollection, getContentStreams, getContentWriter, getMethod, getPath, getQueryParams, getResponseParser, getStreamingResponseCallback, getUserPrincipal, process, process, setBasePath, setBasicAuthCredentials, setMethod, setPath, setQueryParams, setResponseParser, setStreamingResponseCallback, setUseBinaryV2, setUserPrincipal, setUseV2
-
-
-
-
Constructor Detail
-
LukeRequest
public LukeRequest()
-
LukeRequest
public LukeRequest(String path)
-
-
Method Detail
-
addField
public void addField(String f)
-
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 field Fetching 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
protected LukeResponse createResponse(SolrClient client)
Description copied from class:SolrRequest
Create a new SolrResponse to hold the response from the server- Specified by:
createResponse
in classSolrRequest<LukeResponse>
- Parameters:
client
- theSolrClient
the request will be sent to
-
getParams
public SolrParams getParams()
- Specified by:
getParams
in classSolrRequest<LukeResponse>
-
-