IPhraseSink::PutSmallPhrase method (indexsrv.h)
Puts a small query-time phrase in the IPhraseSink object for WordBreaker.
Syntax
HRESULT PutSmallPhrase(
[in] const WCHAR *pwcNoun,
[in] ULONG cwcNoun,
[in] const WCHAR *pwcModifier,
[in] ULONG cwcModifier,
[in] ULONG ulAttachmentType
);
Parameters
[in] pwcNoun
A pointer to a buffer that contains a word being modified.
[in] cwcNoun
The number of characters in pwcNoun. There is no limit on the size of a query-time phrase.
[in] pwcModifier
A pointer to the word modifying pwcNoun.
[in] cwcModifier
The number of characters in pwcModifier. There is no limit on the size of a query-time phrase.
[in] ulAttachmentType
A wordbreaker-specific value which a wordbreaker can use to store additional information about the method of composition.
Return value
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
PutSmallPhrase 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 |
---|---|
Target Platform | Windows |
Header | indexsrv.h |