Search Knowledge Base by Keyword

Filter the products on time-based criteria

Filtering the Products by Creation date

Example:

Select products created from 10 May 2018 00:00:00

https://catalogue.onda-dias.eu/dias-catalogue/Products?$search=”creationDate:[2018-05-10T00:00:00.000Z%20TO%20*]”

 

Select products created from 1 June to 1 July 2018

https://catalogue.onda-dias.eu/dias-catalogue/Products?$search=”creationDate:[2018-06-01T00:00:00.000Z%20TO%202018-06-08T00:00:00.000Z]”

 

Filtering the Products by Sensing Time (start and stop)

The keywords that can be used to filter products on sensing time are:

  • beginPosition: a time interval search based on the Sensing Start Time of the products.
  • endPosition: a time interval search based on the Sensing Stop Time of the products.

 

Example:

Search all products with sensing time from 1 of May 2018 to today

https://catalogue.onda-dias.eu/dias-catalogue/Products?$search=”beginPosition:[2018-05-01T00:00:00.000Z TO *]”

 

Count all products with sensing time from 1 May 2018 to 1 June 2018

https://catalogue.onda-dias.eu/dias-catalogue/Products/$count?$search=”beginPosition:[2018-05- 01T00:00:00.000Z%20TO%202018-06-01T00:00:00.000Z]”

 

Count all products with sensing time in the last day

https://catalogue.onda-dias.eu/dias-catalogue/Products/$count?$search=”beginPosition:[NOW-1DAY TO NOW]”

 

Count all products with a sensing start time in the last month

https://catalogue.onda-dias.eu/dias-catalogue/Products/$count?$search=”beginPosition:[NOW-30DAYS TO NOW]”

 

Count all products with a sensing start time in the last hour

https://catalogue.onda-dias.eu/dias-catalogue/Products/$count?$search=”beginPosition:[NOW-1HOUR TO NOW]”