public interface SearchParameter
A search string is generated by JSONObject. When creating a JSONObject
used for search, use the keywords defined by this class as keys, and use the subsearches as values.
SystemCapability.Data#DATA_SEARCH| 限定符和类型 | 字段 | 说明 |
|---|---|---|
static String |
ASC |
Keyword used for sorting indexes in ascending order based on a specified field.
|
static String |
DEFAULT_GROUP |
Keyword specifying the path where the indexes of the local device are stored.
|
static String |
DESC |
Keyword used for sorting indexes in descending order based on a specified field.
|
static String |
DEVICE_ID_LIST |
Keyword that maps to a
JSONObject consisting of device IDs. |
static String |
FILTER_CONDITION |
Keyword that maps to a
JSONArray consisting of specified filters. |
static String |
GROUP_FIELD_LIST |
Keyword that maps to a
JSONArray consisting of index fields used for group search. |
static String |
LOWER |
Keyword used for obtaining indexes whose values are greater than a specified field value
based on the lexicographical order.
|
static String |
ORDER_BY |
Keyword that maps to a
JSONObject consisting of specified sorting fields and orders. |
static String |
QUERY |
Keyword that maps to a
JSONObject consisting of a user input and specified search fields. |
static String |
RAW_QUERY |
Keyword used as the key of the key-value pair (whose value is the passed search string)
contained in
IndexData returned by
SearchAbility#deleteByQuery(String,String,String) |
static String |
UPPER |
Keyword used for obtaining indexes whose values are less than a specified field value
based on the lexicographical order.
|
static final String ASC
JSONObject for sorting indexes, use a specified field
as the key and use this keyword as the value. Note that you can use multiple
sorting fields. When two indexes tie on the first field, the next one will be used to sort.static final String DEFAULT_GROUP
SearchAbility#beginSearch(String,String) method,
you should pass this keyword to groupId.static final String DESC
JSONObject for sorting indexes, use a specified field
as the key and use this keyword as the value. Note that you can use multiple
sorting fields. When two indexes tie on the first field, the next one will be used to sort.static final String DEVICE_ID_LIST
JSONObject consisting of device IDs.static final String FILTER_CONDITION
JSONArray consisting of specified filters.static final String GROUP_FIELD_LIST
JSONArray consisting of index fields used for group search.static final String LOWER
JSONObject for a range query,
use this keyword as the key and use the specified field value as the value.static final String ORDER_BY
JSONObject consisting of specified sorting fields and orders.static final String QUERY
JSONObject consisting of a user input and specified search fields.static final String RAW_QUERY
IndexData returned by
SearchAbility#deleteByQuery(String,String,String)