Package org.apache.solr.util
Class TestHarness.LocalRequestFactory
java.lang.Object
org.apache.solr.util.TestHarness.LocalRequestFactory
- Enclosing class:
TestHarness
A Factory that generates SolrQueryRequestBase objects using a specified set of default options.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.solr.request.SolrQueryRequestBasemakeRequest(String... q) Creates a SolrQueryRequestBase based on variable args; for historical reasons, this method has some peculiar behavior: If there is a single arg, then it is treated as the "q" param, and the SolrQueryRequestBase consists of that query string along with "qt", "start", and "rows" params (based on the qtype, start, and limit properties of this factory) along with any other default "args" set on this factory.
-
Field Details
-
qtype
-
start
public int start -
limit
public int limit -
args
-
-
Constructor Details
-
LocalRequestFactory
public LocalRequestFactory()
-
-
Method Details
-
makeRequest
Creates a SolrQueryRequestBase based on variable args; for historical reasons, this method has some peculiar behavior:- If there is a single arg, then it is treated as the "q" param, and the SolrQueryRequestBase consists of that query string along with "qt", "start", and "rows" params (based on the qtype, start, and limit properties of this factory) along with any other default "args" set on this factory.
- If there are multiple args, then there must be an even number of them, and each pair of args is used as a key=value param in the SolrQueryRequestBase. NOTE: In this usage, the "qtype", "start", "limit", and "args" properties of this factory are ignored.
-