Zen Documentation Wiki

Differences

This shows you the differences between two versions of the page.

api:concepts:filters [2009/07/31 21:34]
Nate Kohari
api:concepts:filters [2009/07/31 21:37] (current)
Nate Kohari
Line 10: Line 10:
where=blocked:true where=blocked:true
</code> </code>
- 
-The value of the property acts as you would expect. If the property is Boolean, it should be true or false. If the property is a number, it must match exactly. If the property is a string, it matches any item where the property //contains// the specified value (that is, it acts as a ''LIKE'' statement). 
To negate the value of a property (the equivalent of a ''NOT''): To negate the value of a property (the equivalent of a ''NOT''):
Line 17: Line 15:
<code> <code>
where=size:!small where=size:!small
 +</code>
 +
 +To filter on only part of a property's value (if the property's value is a string), use the ''*'' character to match //any character//:
 +
 +<code>
 +where=owner:*Kohari*
</code> </code>