Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Puts a query-time phrase in the IPhraseSink object.
Syntax
HRESULT PutPhrase(
[in] const WCHAR *pwcPhrase,
[in] ULONG cwcPhrase
);
Parameters
[in] pwcPhrase
A pointer to a buffer that contains a phrase.
[in] cwcPhrase
The number of characters in pwcPhrase. There is no limit on the size of a query-time phrase.
Return value
This method can return one of these values.
| Return code | Description |
|---|---|
|
The operation was completed successfully. |
|
PutPhrase was called at index time instead of query time. |
Remarks
PutPhrase is called by the IWordBreaker::BreakText method of the IWordBreaker implementation. Phrases that the IPhraseSink object handles are used by Windows Search to expand the original query text.
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows 2000 Professional [desktop apps only] |
| Minimum supported server | Windows 2000 Server [desktop apps only] |
| Target Platform | Windows |
| Header | indexsrv.h |