Skip to main content
Skip table of contents

Filter Query: Number Range Filter

Only Items between 150 and 300 width

JSON
{
	"kind": "NumericRangeFilter",
	"field": "fileMetadata.width",
	"range": { 
		"names": { 
			"fieldId.en":"low res",
			"fieldId.de":"low res"
		},
	"from": "150",
	"to": "300"
	}
}

Basic Filter

Filter content that has a numeric field value in the configured range.

JSON
{
	"kind": "NumericRangeFilter",
	"field": "layerId.fieldId",
	"range": { 
		"names": { 
			"fieldId.en":"low res",
			"fieldId.de":"low res"
		},
	"from": "0",
	"to": "150"
	}
}

Properties

kind

Discriminator, string, required

field

The field's name to execute the filter. It is composed of the field ids of the hierarchy joined with "." (i.e. personLayer.address.street), check the DateTime field.

range

The range for the value of the numeric field.

If no range provided, the filter in facets shows an error "query execution failure.". At least one range is required.

names

The translations of the ranges. The values are nullable (can be empty), if provided contain language-specific range names

from

A whole or decimal number.

to

A whole or decimal number.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.