IQueryParserManager::InitializeOptions method (structuredquery.h)

Sets the flags for Natural Query Syntax (NQS) and automatic wildcard characters for the specified query parser. If the query parser was created for the SystemIndex catalog, this method also sets up standard condition generators to be used later by the query parser object for recognizing named entities.

Syntax

HRESULT InitializeOptions(
  [in] BOOL         fUnderstandNQS,
  [in] BOOL         fAutoWildCard,
  [in] IQueryParser *pQueryParser
);

Parameters

[in] fUnderstandNQS

Type: BOOL

BOOL flag that controls whether NQS is supported by this instance of the query parser.

[in] fAutoWildCard

Type: BOOL

BOOL flag that controls whether a wildcard character (*) is to be assumed after each word in the query (unless followed by punctuation other than a parenthesis).

[in] pQueryParser

Type: IQueryParser*

Pointer to the query parser object.

Return value

Type: HRESULT

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

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