Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Query - Field Value Range Filter

  1. sRange(field, from, to)
  2. Example

sRange(field, from, to)

The sRange filter is used to search the content of a field, and match a range of values (inclusive). This filter works on fields with number values.


In the above example, the search matches all records where the value of the ‘’ field is between 5 and 10, inclusive.

The following search will NOT match (‘@fields.numstr’ has a string value):

sRange("@fields.numstr","5","10")  // will not match data

nor will the following (start / end values must be quoted strings):

sRange("@fields.numstr",5,10) // will not compile

Note that the provided ‘start’ / ‘stop’ values must be quoted strings.


The example below uses the demo-dataset from the introduction/tutorial page, dataset.

let {id, isprime, odd, even} = f("@fields")

Note that the search filter does not return a presentable value. It is almost always following by the data extraction command ‘let’.

Page last updated: 2022 Oct 02