org.apache.solr.request
Interface SolrQueryRequest

All Known Implementing Classes:
LocalSolrQueryRequest, SolrQueryRequestBase

public interface SolrQueryRequest

Container for a request to execute a query.

SolrQueryRequest is not thread safe.

Version:
$Id: SolrQueryRequest.java 523774 2007-03-29 17:28:31Z yonik $
Author:
yonik

Method Summary
 void close()
          This method should be called when all uses of this request are finished, so that resources can be freed.
 java.lang.Iterable<ContentStream> getContentStreams()
          A Collection of ContentStreams passed to the request
 java.util.Map<java.lang.Object,java.lang.Object> getContext()
          Generic information associated with this request that may be both read and updated.
 SolrCore getCore()
          The solr core (coordinator, etc) associated with this request
 int getLimit()
          Deprecated. 
 SolrParams getOriginalParams()
          Returns the original request parameters.
 java.lang.String getParam(java.lang.String name)
          Deprecated. 
 SolrParams getParams()
          returns the current request parameters
 java.lang.String[] getParams(java.lang.String name)
          Deprecated. 
 java.lang.String getParamString()
          Returns a string representing all the important parameters.
 java.lang.String getQueryString()
          Deprecated. 
 java.lang.String getQueryType()
          Deprecated. 
 IndexSchema getSchema()
          The index schema associated with this request
 SolrIndexSearcher getSearcher()
          The index searcher associated with this request
 int getStart()
          Deprecated. 
 long getStartTime()
          The start time of this request in milliseconds
 void setParams(SolrParams params)
          Change the parameters for this request.
 

Method Detail

getParams

SolrParams getParams()
returns the current request parameters


setParams

void setParams(SolrParams params)
Change the parameters for this request. This does not affect the original parameters returned by getOriginalParams()


getContentStreams

java.lang.Iterable<ContentStream> getContentStreams()
A Collection of ContentStreams passed to the request


getOriginalParams

SolrParams getOriginalParams()
Returns the original request parameters. As this does not normally include configured defaults it's more suitable for logging.


getContext

java.util.Map<java.lang.Object,java.lang.Object> getContext()
Generic information associated with this request that may be both read and updated.


close

void close()
This method should be called when all uses of this request are finished, so that resources can be freed.


getParam

@Deprecated
java.lang.String getParam(java.lang.String name)
Deprecated. 

Returns the input parameter value for the specified name

Returns:
the value, or the first value if the parameter was specified more then once; may be null.

getParams

@Deprecated
java.lang.String[] getParams(java.lang.String name)
Deprecated. 

Returns the input parameter values for the specified name

Returns:
the values; may be null or empty depending on implementation

getQueryString

@Deprecated
java.lang.String getQueryString()
Deprecated. 

Returns the primary query string parameter of the request


getQueryType

@Deprecated
java.lang.String getQueryType()
Deprecated. 

Signifies the syntax and the handler that should be used to execute this query.


getStart

@Deprecated
int getStart()
Deprecated. 

starting position in matches to return to client


getLimit

@Deprecated
int getLimit()
Deprecated. 

number of matching documents to return


getStartTime

long getStartTime()
The start time of this request in milliseconds


getSearcher

SolrIndexSearcher getSearcher()
The index searcher associated with this request


getCore

SolrCore getCore()
The solr core (coordinator, etc) associated with this request


getSchema

IndexSchema getSchema()
The index schema associated with this request


getParamString

java.lang.String getParamString()
Returns a string representing all the important parameters. Suitable for logging.



Copyright © 2006 - 2009 The Apache Software Foundation