IixssoQuery::SetQueryFromURL method

[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.]

Sets the properties on the query object of a Web client request.

Syntax

HRESULT SetQueryFromURL(
  [in] BSTR pwszQuery
);

Parameters

pwszQuery [in]

The CGI QueryString that is URL-encoded. See QUERY_STRING Variables.

Return value

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

Remarks

The state of the query object is not reset before loading the query string values. Unrecognized tag names in the query string are ignored.

Query string and form variables can also be parsed from a script without calling this method.

Examples

' Take the URL query string that specifies files > 10,000, 
'     sort order by rank in descending alphabetical order, 
'     and the maximum hit count = 200 
' Set the corresponding query object properties
objQuery.SetQueryFromURL("qu=%40size+%3E+10000&so=rank%5bd%5d&mh=200") 
' results are:
' objQuery.Query = "@size > 10,000"
' objQuery.SortBy = "rank[d]"
' objQuery.MaxRecords = 200

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