The EntityFilter project aims to provide a generic search syntax for golang objects. Frontend filter parsers are provided along with backend searchers for different types of datastores.
- Attribute to query
- Type of match to perform
- Target value
name:=myname
nameis the attribute to query:=specifies an equals comparisonmynameis the target value
- Equals
:= - Not Equals
:!= - Contains
:~ - Not Contains
:!~
- Filters can be chained together with commas
- Each filter condition must be true for the entity to match
- There is currently no limit on the number of filters that can be chained, however you can expect that more conditions will result in a longer query depending on the backend datastore
name:=myname,age:=12
In the above example, name must be "myname" AND age must be 12