Search Criteria
It help users refine and narrow down their search results to find the most relevant information in unified search model
Overview π¬
Often, usersβ search criteria are too broad, resulting in a very large number of results for them to wade through and identify results that match their needs. Although users can redo searches by making search criteria more specific, they may still end up with a large number of results.
AccelerationCloud Search Criteria can be used to retrieve get list response of an entity based on specific conditions. Here are some samples for the search criteria.
Instruction
We will help users understand our search crtieria model and allow users to narrow down their list of search results by applying filters on one or more data attributes dynamically.
Fields
Field refers to input entity fields for criteria construction.
Field Name | Description | Example |
---|---|---|
key | The field name you want to query | create_date |
value | The field value in search query | 2022-01-02 |
option | match condition | EQ |
[
{
"key":"name",
"value":"Alex",
"option":"EQ"
},
{
"key":"amount",
"value":12,
"option":"EQ"
}
]
Option Condition
Conditions are the operators for criteria construction.
Description | Operator Option | Operator Short Hand |
---|---|---|
Equals | EQ | = |
Range | IN | in |
Not Equals | NEQ | != |
Greater than | GT | gt |
Greater than or Equal | GTE | gte |
Less than | LT | lt |
Less than or Equal | LTE | lte |
Contains | LIKE | like |
Starts with | STARTS_WITH | starts() |
GTE & EQ Example
[
{
"key":"created_time",
"value":"2021-12-21T12:33:42",
"option":"GTE"
},
{
"key":"amount",
"value":12,
"option":"EQ"
}
]
The search criteria wants to find create time greater than or equal 2021-12-21 and amount equal 12 dolloar
IN Example
[
{
"key":"accountId",
"value":["Axfi123","Kbdxi42","Giemd5k3"
],
"option":"IN"
}
]
The search criteria wants to find accountId in the list("Axfi123","Kbdxi42","Giemd5k3")
Updated 12 months ago