IQueryParser::ParsePropertyValue method (structuredquery.h)

Parses a condition for a specified property.

Syntax

HRESULT ParsePropertyValue(
  [in]          LPCWSTR        pszPropertyName,
  [in]          LPCWSTR        pszInputString,
  [out, retval] IQuerySolution **ppSolution
);

Parameters

[in] pszPropertyName

Type: LPCWSTR

Property name.

[in] pszInputString

Type: LPCWSTR

Query string to be parsed, relative to that property.

[out, retval] ppSolution

Type: IQuerySolution**

Receives an IQuerySolution object. The calling application must release it by calling its IUnknown::Release method.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

The input string can be anything that could have been written immediately after a property in a structured query. For example, "from:(bill OR alex)" would be a valid structured query, so passing System.StructuredQuery.Virtual.From (for which From is a keyword) in the pszPropertyName parameter and "(bill OR alex)" or "bill OR alex" in the pszInputString parameter would be valid. This would result in an OR of leaf nodes that relate the System.StructuredQuery.Virtual.From property with the strings "bill" and "alex".

Requirements

Requirement Value
Minimum supported client Windows XP with SP2, Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 with SP1 [desktop apps only]
Target Platform Windows
Header structuredquery.h
Redistributable Windows Desktop Search (WDS) 3.0