Class LukeRequest

All Implemented Interfaces:
Serializable

public class LukeRequest extends CollectionRequiringSolrRequest<LukeResponse>
Since:
solr 1.3
See Also:
  • Constructor Details

    • LukeRequest

      public LukeRequest()
    • LukeRequest

      public LukeRequest(String path)
  • Method Details

    • addField

      public void addField(String f)
    • setFields

      public void setFields(List<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(NamedList<Object> namedList)
      Description copied from class: SolrRequest
      Create a new SolrResponse to hold the response from the server. If the response extends SolrResponse, then there's no need to use the arguments, as SolrResponse.setResponse(NamedList) will be called right after this method.
      Specified by:
      createResponse in class SolrRequest<LukeResponse>
      Parameters:
      namedList - from SolrClient.request(SolrRequest, String).
    • getParams

      public SolrParams getParams()
      Description copied from class: SolrRequest
      The parameters for this request; never null. The runtime type may be mutable but modifications may not affect this SolrRequest instance, as it may return a new instance here every time. If the subclass specifies the response type as ModifiableSolrParams, 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:
      getParams in class SolrRequest<LukeResponse>