mirror of https://github.com/apache/lucene.git
removed unnecessary public static final
This commit is contained in:
parent
ecdfe97d34
commit
45847eb537
|
@ -33,155 +33,155 @@ public interface CommonParams {
|
||||||
* distributed search to ensure consistent time values are used across
|
* distributed search to ensure consistent time values are used across
|
||||||
* multiple sub-requests.
|
* multiple sub-requests.
|
||||||
*/
|
*/
|
||||||
public static final String NOW = "NOW";
|
String NOW = "NOW";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specifies the TimeZone used by the client for the purposes of
|
* Specifies the TimeZone used by the client for the purposes of
|
||||||
* any DateMath rounding that may take place when executing the request
|
* any DateMath rounding that may take place when executing the request
|
||||||
*/
|
*/
|
||||||
public static final String TZ = "TZ";
|
String TZ = "TZ";
|
||||||
|
|
||||||
/** the Request Handler (formerly known as the Query Type) - which Request Handler should handle the request */
|
/** the Request Handler (formerly known as the Query Type) - which Request Handler should handle the request */
|
||||||
public static final String QT ="qt";
|
String QT ="qt";
|
||||||
|
|
||||||
/** the response writer type - the format of the response */
|
/** the response writer type - the format of the response */
|
||||||
public static final String WT ="wt";
|
String WT ="wt";
|
||||||
|
|
||||||
/** query string */
|
/** query string */
|
||||||
public static final String Q ="q";
|
String Q ="q";
|
||||||
|
|
||||||
/** rank query */
|
/** rank query */
|
||||||
public static final String RQ ="rq";
|
String RQ ="rq";
|
||||||
|
|
||||||
/** distrib string */
|
/** distrib string */
|
||||||
public static final String DISTRIB = "distrib";
|
String DISTRIB = "distrib";
|
||||||
|
|
||||||
/** sort order */
|
/** sort order */
|
||||||
public static final String SORT ="sort";
|
String SORT ="sort";
|
||||||
|
|
||||||
/** Lucene query string(s) for filtering the results without affecting scoring */
|
/** Lucene query string(s) for filtering the results without affecting scoring */
|
||||||
public static final String FQ ="fq";
|
String FQ ="fq";
|
||||||
|
|
||||||
/** zero based offset of matching documents to retrieve */
|
/** zero based offset of matching documents to retrieve */
|
||||||
public static final String START ="start";
|
String START ="start";
|
||||||
public static final int START_DEFAULT = 0;
|
int START_DEFAULT = 0;
|
||||||
|
|
||||||
/** number of documents to return starting at "start" */
|
/** number of documents to return starting at "start" */
|
||||||
public static final String ROWS ="rows";
|
String ROWS ="rows";
|
||||||
public static final int ROWS_DEFAULT = 10;
|
int ROWS_DEFAULT = 10;
|
||||||
|
|
||||||
// SOLR-4228 start
|
// SOLR-4228 start
|
||||||
/** handler value for SolrPing */
|
/** handler value for SolrPing */
|
||||||
public static final String PING_HANDLER = "/admin/ping";
|
String PING_HANDLER = "/admin/ping";
|
||||||
|
|
||||||
/** "action" parameter for SolrPing */
|
/** "action" parameter for SolrPing */
|
||||||
public static final String ACTION = "action";
|
String ACTION = "action";
|
||||||
|
|
||||||
/** "disable" value for SolrPing action */
|
/** "disable" value for SolrPing action */
|
||||||
public static final String DISABLE = "disable";
|
String DISABLE = "disable";
|
||||||
|
|
||||||
/** "enable" value for SolrPing action */
|
/** "enable" value for SolrPing action */
|
||||||
public static final String ENABLE = "enable";
|
String ENABLE = "enable";
|
||||||
|
|
||||||
/** "ping" value for SolrPing action */
|
/** "ping" value for SolrPing action */
|
||||||
public static final String PING = "ping";
|
String PING = "ping";
|
||||||
// SOLR-4228 end
|
// SOLR-4228 end
|
||||||
|
|
||||||
/** stylesheet to apply to XML results */
|
/** stylesheet to apply to XML results */
|
||||||
public static final String XSL ="xsl";
|
String XSL ="xsl";
|
||||||
|
|
||||||
/** version parameter to check request-response compatibility */
|
/** version parameter to check request-response compatibility */
|
||||||
public static final String VERSION ="version";
|
String VERSION ="version";
|
||||||
|
|
||||||
/** query and init param for field list */
|
/** query and init param for field list */
|
||||||
public static final String FL = "fl";
|
String FL = "fl";
|
||||||
|
|
||||||
/** default query field */
|
/** default query field */
|
||||||
public static final String DF = "df";
|
String DF = "df";
|
||||||
|
|
||||||
/** Transformer param -- used with XSLT */
|
/** Transformer param -- used with XSLT */
|
||||||
public static final String TR = "tr";
|
String TR = "tr";
|
||||||
|
|
||||||
/** whether to include debug data for all components pieces, including doing explains*/
|
/** whether to include debug data for all components pieces, including doing explains*/
|
||||||
public static final String DEBUG_QUERY = "debugQuery";
|
String DEBUG_QUERY = "debugQuery";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Whether to provide debug info for specific items.
|
* Whether to provide debug info for specific items.
|
||||||
*
|
*
|
||||||
* @see #DEBUG_QUERY
|
* @see #DEBUG_QUERY
|
||||||
*/
|
*/
|
||||||
public static final String DEBUG = "debug";
|
String DEBUG = "debug";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@link #DEBUG} value indicating an interest in debug output related to timing
|
* {@link #DEBUG} value indicating an interest in debug output related to timing
|
||||||
*/
|
*/
|
||||||
public static final String TIMING = "timing";
|
String TIMING = "timing";
|
||||||
/**
|
/**
|
||||||
* {@link #DEBUG} value indicating an interest in debug output related to the results (explains)
|
* {@link #DEBUG} value indicating an interest in debug output related to the results (explains)
|
||||||
*/
|
*/
|
||||||
public static final String RESULTS = "results";
|
String RESULTS = "results";
|
||||||
/**
|
/**
|
||||||
* {@link #DEBUG} value indicating an interest in debug output related to the Query (parsing, etc.)
|
* {@link #DEBUG} value indicating an interest in debug output related to the Query (parsing, etc.)
|
||||||
*/
|
*/
|
||||||
public static final String QUERY = "query";
|
String QUERY = "query";
|
||||||
/**
|
/**
|
||||||
* {@link #DEBUG} value indicating an interest in debug output related to the distributed tracking
|
* {@link #DEBUG} value indicating an interest in debug output related to the distributed tracking
|
||||||
*/
|
*/
|
||||||
public static final String TRACK = "track";
|
String TRACK = "track";
|
||||||
/**
|
/**
|
||||||
* boolean indicating whether score explanations should structured (true),
|
* boolean indicating whether score explanations should structured (true),
|
||||||
* or plain text (false)
|
* or plain text (false)
|
||||||
*/
|
*/
|
||||||
public static final String EXPLAIN_STRUCT = "debug.explain.structured";
|
String EXPLAIN_STRUCT = "debug.explain.structured";
|
||||||
|
|
||||||
/** another query to explain against */
|
/** another query to explain against */
|
||||||
public static final String EXPLAIN_OTHER = "explainOther";
|
String EXPLAIN_OTHER = "explainOther";
|
||||||
|
|
||||||
|
|
||||||
/** If the content stream should come from a URL (using URLConnection) */
|
/** If the content stream should come from a URL (using URLConnection) */
|
||||||
public static final String STREAM_URL = "stream.url";
|
String STREAM_URL = "stream.url";
|
||||||
|
|
||||||
/** If the content stream should come from a File (using FileReader) */
|
/** If the content stream should come from a File (using FileReader) */
|
||||||
public static final String STREAM_FILE = "stream.file";
|
String STREAM_FILE = "stream.file";
|
||||||
|
|
||||||
/** If the content stream should come directly from a field */
|
/** If the content stream should come directly from a field */
|
||||||
public static final String STREAM_BODY = "stream.body";
|
String STREAM_BODY = "stream.body";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Explicitly set the content type for the input stream
|
* Explicitly set the content type for the input stream
|
||||||
* If multiple streams are specified, the explicit contentType
|
* If multiple streams are specified, the explicit contentType
|
||||||
* will be used for all of them.
|
* will be used for all of them.
|
||||||
*/
|
*/
|
||||||
public static final String STREAM_CONTENTTYPE = "stream.contentType";
|
String STREAM_CONTENTTYPE = "stream.contentType";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Whether or not the search may be terminated early within a segment.
|
* Whether or not the search may be terminated early within a segment.
|
||||||
*/
|
*/
|
||||||
public static final String SEGMENT_TERMINATE_EARLY = "segmentTerminateEarly";
|
String SEGMENT_TERMINATE_EARLY = "segmentTerminateEarly";
|
||||||
public static final boolean SEGMENT_TERMINATE_EARLY_DEFAULT = false;
|
boolean SEGMENT_TERMINATE_EARLY_DEFAULT = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Timeout value in milliseconds. If not set, or the value is >= 0, there is no timeout.
|
* Timeout value in milliseconds. If not set, or the value is >= 0, there is no timeout.
|
||||||
*/
|
*/
|
||||||
public static final String TIME_ALLOWED = "timeAllowed";
|
String TIME_ALLOWED = "timeAllowed";
|
||||||
|
|
||||||
/** 'true' if the header should include the handler name */
|
/** 'true' if the header should include the handler name */
|
||||||
public static final String HEADER_ECHO_HANDLER = "echoHandler";
|
String HEADER_ECHO_HANDLER = "echoHandler";
|
||||||
|
|
||||||
/** include the parameters in the header **/
|
/** include the parameters in the header **/
|
||||||
public static final String HEADER_ECHO_PARAMS = "echoParams";
|
String HEADER_ECHO_PARAMS = "echoParams";
|
||||||
|
|
||||||
/** include header in the response */
|
/** include header in the response */
|
||||||
public static final String OMIT_HEADER = "omitHeader";
|
String OMIT_HEADER = "omitHeader";
|
||||||
public static final String CORES_HANDLER_PATH = "/admin/cores";
|
String CORES_HANDLER_PATH = "/admin/cores";
|
||||||
public static final String COLLECTIONS_HANDLER_PATH = "/admin/collections";
|
String COLLECTIONS_HANDLER_PATH = "/admin/collections";
|
||||||
public static final String INFO_HANDLER_PATH = "/admin/info";
|
String INFO_HANDLER_PATH = "/admin/info";
|
||||||
public static final String CONFIGSETS_HANDLER_PATH = "/admin/configs";
|
String CONFIGSETS_HANDLER_PATH = "/admin/configs";
|
||||||
public static final String AUTHZ_PATH = "/admin/authorization";
|
String AUTHZ_PATH = "/admin/authorization";
|
||||||
public static final String AUTHC_PATH = "/admin/authentication";
|
String AUTHC_PATH = "/admin/authentication";
|
||||||
public static final String ZK_PATH = "/admin/zookeeper";
|
String ZK_PATH = "/admin/zookeeper";
|
||||||
|
|
||||||
public static final Set<String> ADMIN_PATHS = new HashSet<>(Arrays.asList(
|
Set<String> ADMIN_PATHS = new HashSet<>(Arrays.asList(
|
||||||
CORES_HANDLER_PATH,
|
CORES_HANDLER_PATH,
|
||||||
COLLECTIONS_HANDLER_PATH,
|
COLLECTIONS_HANDLER_PATH,
|
||||||
CONFIGSETS_HANDLER_PATH,
|
CONFIGSETS_HANDLER_PATH,
|
||||||
|
@ -189,7 +189,7 @@ public interface CommonParams {
|
||||||
AUTHZ_PATH));
|
AUTHZ_PATH));
|
||||||
|
|
||||||
/** valid values for: <code>echoParams</code> */
|
/** valid values for: <code>echoParams</code> */
|
||||||
public enum EchoParamStyle {
|
enum EchoParamStyle {
|
||||||
EXPLICIT,
|
EXPLICIT,
|
||||||
ALL,
|
ALL,
|
||||||
NONE;
|
NONE;
|
||||||
|
@ -212,50 +212,50 @@ public interface CommonParams {
|
||||||
};
|
};
|
||||||
|
|
||||||
/** which parameters to log (if not supplied all parameters will be logged) **/
|
/** which parameters to log (if not supplied all parameters will be logged) **/
|
||||||
public static final String LOG_PARAMS_LIST = "logParamsList";
|
String LOG_PARAMS_LIST = "logParamsList";
|
||||||
|
|
||||||
public static final String EXCLUDE = "ex";
|
String EXCLUDE = "ex";
|
||||||
public static final String TAG = "tag";
|
String TAG = "tag";
|
||||||
public static final String TERMS = "terms";
|
String TERMS = "terms";
|
||||||
public static final String OUTPUT_KEY = "key";
|
String OUTPUT_KEY = "key";
|
||||||
public static final String FIELD = "f";
|
String FIELD = "f";
|
||||||
public static final String VALUE = "v";
|
String VALUE = "v";
|
||||||
public static final String THREADS = "threads";
|
String THREADS = "threads";
|
||||||
public static final String TRUE = Boolean.TRUE.toString();
|
String TRUE = Boolean.TRUE.toString();
|
||||||
public static final String FALSE = Boolean.FALSE.toString();
|
String FALSE = Boolean.FALSE.toString();
|
||||||
|
|
||||||
/** Used as a local parameter on queries. cache=false means don't check any query or filter caches.
|
/** Used as a local parameter on queries. cache=false means don't check any query or filter caches.
|
||||||
* cache=true is the default.
|
* cache=true is the default.
|
||||||
*/
|
*/
|
||||||
public static final String CACHE = "cache";
|
String CACHE = "cache";
|
||||||
|
|
||||||
/** Used as a local param on filter queries in conjunction with cache=false. Filters are checked in order, from
|
/** Used as a local param on filter queries in conjunction with cache=false. Filters are checked in order, from
|
||||||
* smallest cost to largest. If cost>=100 and the query implements PostFilter, then that interface will be used to do post query filtering.
|
* smallest cost to largest. If cost>=100 and the query implements PostFilter, then that interface will be used to do post query filtering.
|
||||||
*/
|
*/
|
||||||
public static final String COST = "cost";
|
String COST = "cost";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Request ID parameter added to the request when using debug=track
|
* Request ID parameter added to the request when using debug=track
|
||||||
*/
|
*/
|
||||||
public static final String REQUEST_ID = "rid";
|
String REQUEST_ID = "rid";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Request Purpose parameter added to each internal shard request when using debug=track
|
* Request Purpose parameter added to each internal shard request when using debug=track
|
||||||
*/
|
*/
|
||||||
public static final String REQUEST_PURPOSE = "requestPurpose";
|
String REQUEST_PURPOSE = "requestPurpose";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* When querying a node, prefer local node's cores for distributed queries.
|
* When querying a node, prefer local node's cores for distributed queries.
|
||||||
*/
|
*/
|
||||||
public static final String PREFER_LOCAL_SHARDS = "preferLocalShards";
|
String PREFER_LOCAL_SHARDS = "preferLocalShards";
|
||||||
|
|
||||||
public static final String JAVABIN = "javabin";
|
String JAVABIN = "javabin";
|
||||||
|
|
||||||
public static final String JSON = "json";
|
String JSON = "json";
|
||||||
|
|
||||||
public static final String PATH = "path";
|
String PATH = "path";
|
||||||
|
|
||||||
public static final String NAME = "name";
|
String NAME = "name";
|
||||||
public static final String VALUE_LONG = "val";
|
String VALUE_LONG = "val";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue