UID | title | description | helpviewer_keywords | old-location | tech.root | ms.assetid | ms.date | ms.keywords | req.header | req.include-header | req.target-type | req.target-min-winverclnt | req.target-min-winversvr | req.kmdf-ver | req.umdf-ver | req.ddi-compliance | req.unicode-ansi | req.idl | req.max-support | req.namespace | req.assembly | req.type-library | req.lib | req.dll | req.irql | targetos | req.typenames | req.redist | ms.custom | f1_keywords | dev_langs | topic_type | api_type | api_location | api_name | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
NF:searchapi.ISearchQueryHelper.put_QueryTermExpansion |
ISearchQueryHelper::put_QueryTermExpansion (searchapi.h) |
Sets a value that specifies how query terms are to be expanded. |
|
search\_search_ISearchQueryHelper_put_QueryTermExpansion.htm |
search |
VS|search|~\search\wds3x\reference\ifaces\querying\isearchqueryhelper\put_querytermexpansion.htm |
12/05/2018 |
ISearchQueryHelper interface [search],put_QueryTermExpansion method, ISearchQueryHelper.put_QueryTermExpansion, ISearchQueryHelper::put_QueryTermExpansion, _search_ISearchQueryHelper_put_QueryTermExpansion, put_QueryTermExpansion, put_QueryTermExpansion method [search], put_QueryTermExpansion method [search],ISearchQueryHelper interface, search._search_ISearchQueryHelper_put_QueryTermExpansion, searchapi/ISearchQueryHelper::put_QueryTermExpansion |
searchapi.h |
Windows |
Windows XP with SP2, Windows Vista [desktop apps only] |
Windows Server 2003 with SP1 [desktop apps only] |
Searchquery.idl |
Windows |
Windows Desktop Search (WDS) 3.0 |
19H1 |
|
|
|
|
|
|
Sets a value that specifies how query terms are to be expanded.
Type: SEARCH_TERM_EXPANSION
Value from the SEARCH_TERM_EXPANSION enumeration that specifies the search term expansion. If not set, the default value is SEARCH_TERM_PREFIX_ALL.
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
The ISearchQueryHelper::put_QueryTermExpansion method allows for expansion of some query terms with wildcard characters, similar to regular expression expansion.
While the SEARCH_TERM_EXPANSION enumerated type lets you specify stem expansion, Windows Search does not currently support its use with the ISearchQueryHelper interface.
Checkout the DSearch code sample to see how to create a class for a static console application to query Windows Search using the Microsoft.Search.Interop assembly for ISearchQueryHelper.
ISearchQueryHelper::get_QueryTermExpansion
Querying the Index Programmatically