FilterOps
filterOp
is used by all NNA queries and the options available to use on your query will depend on what you chose for your filter
.
Please remember that filterOp
sits in between your filter
and your value
and is just the conditional linking the two.
Example: &filter=fileSize:eq:0
is a filter looking for empty files (file size equal to 0 bytes).
Yet, &filter=fileSize:notEq:0
is the opposite filter, looking for all non-empty files.
You can always find the full list of available filterOps by going to /filterOps
REST endpoint.
lt
- "less than" - Takes a Long as avalue
.gt
- "greater than" - Takes a Long as avalue
.lte
- "less than or equal to" - Takes a Long as avalue
.gte
- "greater than or equal to" - Takes a Long as avalue
.eq
- "equal to" - Can take a Long, String, or Boolean, as avalue
.notEq
- "not equal to" - Can take a Long, String, or Boolean, as avalue
.startsWith
- "starts with" - Takes a String as avalue
.notStartsWith
- "does not start with" - Takes a String as avalue
.endsWith
- "ends with" - Takes a String as avalue
.notEndsWith
- "does not end with" - Takes a String as avalue
.contains
- "contains" - Takes a String as avalue
.notContains
- "does not contain" - Takes a String as avalue
.minutesAgo
- "minutes beforefilter
timestamp" - Takes a Long as avalue
, representing minutes.hoursAgo
- "hours beforefilter
timestamp" - Takes a Long as avalue
, representing hours.daysAgo
- "days beforefilter
timestamp" - Takes a Long as avalue
, representing days.monthsAgo
- "months beforefilter
timestamp" - Takes a Long as avalue
, representing months.yearsAgo
- "years beforefilter
timestamp" - Takes a Long as avalue
, representing years.olderThanMinutes
- "minutes afterfilter
timestamp" - Takes a Long as avalue
, representing minutes.olderThanHours
- "hours afterfilter
timestamp" - Takes a Long as avalue
, representing hours.olderThanDays
- "days afterfilter
timestamp" - Takes a Long as avalue
, representing days.olderThanMonths
- "months afterfilter
timestamp" - Takes a Long as avalue
, representing months.olderThanYears
- "years afterfilter
timestamp" - Takes a Long as avalue
, representing years.dateEq
- "filter
timestamp falls on this date" - Take a String as avalue
, representing a date, like,01/01/1989
.dateNotEq
- "filter
timestamp does not falls on this date" - Take a String as avalue
, representing a date, like,01/01/1989
.dateLt
- "filter
timestamp falls on a day before this date" - Take a String as avalue
, representing a date, like,01/01/1989
.dateLte
- "filter
timestamp falls on a day equal to or before this date" - Take a String as avalue
, representing a date, like,01/01/1989
.dateStart
- "filter
timestamp falls on a day starting from..." - Take a String as avalue
, representing a date, like,01/01/1989
. Must be used in combination withdateEnd
.dateGt
- "filter
timestamp falls on a day after this date" - Take a String as avalue
, representing a date, like,01/01/1989
.dateGte
- "filter
timestamp falls on a day equal to or after this date" - Take a String as avalue
, representing a date, like,01/01/1989
.dateEnd
- "filter
timestamp falls on a day before..." - Take a String as avalue
, representing a date, like,01/01/1989
. Must be used in combination withdateStart
.