Click or drag to resize
OSIsoft, LLC

AFSearchParseQueryString Method

Parses the specified search query into search tokens which can be used to search for objects.

Namespace:  OSIsoft.AF.Search
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 2.10.8.440
Syntax
public static IList<AFSearchTokenBase> ParseQueryString(
	string query
)

Parameters

query
Type: SystemString
The search query to be parsed. Strings will be interpreted with the Parse(String, AFTime, IFormatProvider) method so that relative formats with intervals ("*", "T+3h", etc.) are also supported. Relative time intervals are based on the database's QueryDate.

Return Value

Type: IListAFSearchTokenBase
Returns a list of search tokens representing the parts of the parsed query.
Remarks
The specified query is parsed into tokens. These tokens can be used to perform a search for objects from the server. See Search Overview for more information.
Version Information

AFSDK

Supported in: 2.10.5
See Also
Enabling Operational Intelligence