Поделиться через


IixssoQuery::Query property

[Indexing Service is no longer supported as of Windows XP and is unavailable for use as of Windows 8. Instead, use Windows Search for client side search and Microsoft Search Server Express for server side search.]

Retrieves or sets the query string (also known as the restriction or query restriction).

This property is read/write.

Syntax

HRESULT put_Query(
  [in]          BSTR val
);

HRESULT get_Query(
  [out, retval] BSTR *val
);

Property value

Specifies the query string.

Remarks

The combination of words or phrases or properties to search for that determines the documents to be returned in a search For Web clients, the query string variable in URLs associated with this property is qu.

The Dialect property defines the version of query language contained in the Query property. The LocaleID determines the language components (English (US), Japanese, French, and any one of the other supported languages) to use to break the query string into words, to remove noise words, and to create the appropriate stemming variations of the words in the query string.

Examples

' Search for the word "dog" near the word "cat" in .htm files
objQuery.Query = "#filename *.htm and dog near cat"

Requirements

Minimum supported client
Windows 2000 Professional [desktop apps only]
Minimum supported server
Windows 2000 Server [desktop apps only]
End of client support
Windows 7
End of server support
Windows Server 2008 R2
DLL
Ixsso.dll

See also

IixssoQuery