Skip to main content
Question

Make the documentation for Cognite SDK understandable!

  • 19 June 2024
  • 1 reply
  • 30 views

I want to urge the developers to write a documentation that tells us how to use the available functionality.

Specifically I am looking at the filtering functionality. Let me explain my use case:

 

I need to query CDF for a lot of time series. The unfiltered query returns a TimeSeriesList of 32k TS. I only need a subset of these, and want to perform the filtering on the CDF side. I want to fetch the subset of TSs that contains any of the following strings in the name attribute (yes, the dashes and underscores included)

  • -PT-
  • -PI-
  • -PIC-
  • -PIT-

Can someone please explain how to do this? 

  • Search does not match the dashes and underscores, so I think it performs a fuzzy search. But it is not explained in the docs.
  • ContainsAny appears to only work when the property of interest is an array. So I cannot use this filter to check if a string property contains any of a list of search strings. But this limitation is drastically undercommunicated in the docs. After reading the docs several times it looks like ContainsAny is more like an EqualsAny in a similar way to In?

 

So it appears this simple filtering I try to do is not possible? 

1 reply

Userlevel 1
Badge +2

This is good requirements into the new Cognite Core model @Armin Gharakhanloo 
 

The ask is to model the different timeseries into what type of sensor that is giving us this data. 
 

Reply