In SQL WHERE clause statement, the search_condition grammar is:
T-SQL
< search_condition > ::=
{ [ NOT ] <predicate> | ( <search_condition> ) }
[ { AND | OR } [ NOT ] { <predicate> | ( <search_condition> ) } ] [ ,…n ]
And base predicate like this:
T-SQL
<predicate> ::=
{ expression { = | < > | ! = | > | > = | < | < = } expression }
In page search bar, There are many examples here.



Apps that typically provide search can provide multiple dimensions of search.
And the way is this:
- select dimension
- determine operation
- fill comparison value
OK, let’s do it

use ‘Author’ ‘Milestone’ ‘Label’ dimension,
use ‘@oswaldo’ ‘%11.10’ ‘~Create’ value,
use implicit operate
do it again

use ‘United States’ ‘Moderate’ ‘Any Time’ value,
use implicit operate
again

use ‘Capacity’ ‘Price’ ‘Speed’ dimension,
use ‘1T’ ‘$100-$200’ ‘7200PM’ value,
use implicit operate
So, Main 3 element is
- dimension
- operate
- value
In SQL it is named predicate, let’s map it to SQL grammar
SQL grammar
<predicate> ::=
{ expression { = | < > | ! = | > | > = | < | < = } expression }
Mapped
<predicate> ::=
{ dimension { operate } value }
Most page searches need to determine the dimension first.
Just positive thinking
If we fill in the value first. What will happen?
Can search bar guess the dimension I want?
We use google for test



The value string on Gitlab is very characteristic, prefix is dimension.
- ‘@’ mean Author
- ‘%’ mean Milestone
- ‘~’ mean Label
Just like the basic string classification
- ‘123’ is Number string
- ‘2019-03-25T02:42Z’ is Date string
- ‘http://www.google/com’ is URI string
- ‘xiaoyao9184@gmail.com’ is E-mail string
String classification is the basis of dimensions
All are strings
If you can determine the string classification, you can guess the dimension.
SO, Experimented in UAA_UI project.
UAA use SCIM protocol for filter resources.
{attribute} {op} {value} like { dimension { operate } value }
https://example.com/{resource}?filter={attribute} {op} {value} & sortBy={attributeName}&sortOrder={ascending|descending}&attributes={attributes}
Look at an example

Search dimension is all the client attributes, it’s:
- ID
- Url
- Grant
- LastModified
- Scope
Dimension classification table is
| Attribute/Dimension | String classification |
| ID | Can’t describe |
| Url | URL |
| Grant | enumerate of ‘client_credentials’ ‘implicit’ ‘password ‘ ‘authorization_code’ ‘refresh_token’ ‘user_token’ ‘saml2-bearer’ ‘jwt-bearer’ |
| LastModified | Date |
| Scope | most contain ‘.’ character |
OK,
now exclude ‘ID’
dimension, it’s feasible to reverse-calculate dimension based on classification.
If dimensions can’t reverse-calculate, you can use ‘ANY’ for them.
Final effect

use url and grant dimensions
with EXACT option

use scope and last_modified dimensions
with EXACT option
Always enter a value, why not enter it first
More Reverse thinking

















