Guides
Home

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 NameDescriptionExample
keyThe field name you want to querycreate_date
valueThe field value in search query2022-01-02
optionmatch conditionEQ
[
    {
        "key":"name",
        "value":"Alex",
        "option":"EQ"
    },
     {
        "key":"amount",
        "value":12,
        "option":"EQ"
    }
]

Option Condition

Conditions are the operators for criteria construction.
DescriptionOperator OptionOperator Short Hand
EqualsEQ=
RangeINin
Not EqualsNEQ!=
Greater thanGTgt
Greater than or EqualGTEgte
Less thanLTlt
Less than or EqualLTElte
ContainsLIKElike
Starts withSTARTS_WITHstarts()

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")