STRUCTURED_QUERY_SYNTAX enumeration (structuredquery.h)

Specifies the type of query syntax.

Syntax

typedef enum tagSTRUCTURED_QUERY_SYNTAX {
  SQS_NO_SYNTAX = 0,
  SQS_ADVANCED_QUERY_SYNTAX,
  SQS_NATURAL_QUERY_SYNTAX
} STRUCTURED_QUERY_SYNTAX;

Constants

 
SQS_NO_SYNTAX
Value: 0
No syntax.
SQS_ADVANCED_QUERY_SYNTAX
Specifies the Advanced Query Syntax. For example, "kind:email to:david to:bill".
SQS_NATURAL_QUERY_SYNTAX
Specifies the Natural Query Syntax. This syntax removes the requirement for a colon between properties and values, for example, "email from david to bill".

Remarks

Use this enumeration to set the desired SQSO_SYNTAX flag in STRUCTURED_QUERY_SINGLE_OPTION, which is used with the methods IQueryParser::SetOption and IQueryParser::GetOption.

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Header structuredquery.h