SearchServiceApplication.GetQuerySuggestionsWithResults 方法
返回集合的匹配特定搜索条件的查询建议。
命名空间: Microsoft.Office.Server.Search.Administration
程序集: Microsoft.Office.Server.Search(位于 Microsoft.Office.Server.Search.dll 中)
语法
声明
Public Function GetQuerySuggestionsWithResults ( _
properties As QueryProperties, _
iNumberOfQuerySuggestions As Integer, _
iNumberOfResultSuggestions As Integer, _
fPreQuerySuggestions As Boolean, _
fHitHighlighting As Boolean, _
fCapitalizeFirstLetters As Boolean, _
fPrefixMatchAllTerms As Boolean _
) As QuerySuggestionResults
用法
Dim instance As SearchServiceApplication
Dim properties As QueryProperties
Dim iNumberOfQuerySuggestions As Integer
Dim iNumberOfResultSuggestions As Integer
Dim fPreQuerySuggestions As Boolean
Dim fHitHighlighting As Boolean
Dim fCapitalizeFirstLetters As Boolean
Dim fPrefixMatchAllTerms As Boolean
Dim returnValue As QuerySuggestionResults
returnValue = instance.GetQuerySuggestionsWithResults(properties, _
iNumberOfQuerySuggestions, iNumberOfResultSuggestions, _
fPreQuerySuggestions, fHitHighlighting, _
fCapitalizeFirstLetters, fPrefixMatchAllTerms)
public QuerySuggestionResults GetQuerySuggestionsWithResults(
QueryProperties properties,
int iNumberOfQuerySuggestions,
int iNumberOfResultSuggestions,
bool fPreQuerySuggestions,
bool fHitHighlighting,
bool fCapitalizeFirstLetters,
bool fPrefixMatchAllTerms
)
参数
properties
类型:Microsoft.Office.Server.Search.Query.QueryProperties查询的属性。
iNumberOfQuerySuggestions
类型:System.Int32指定用户希望收到的建议的数量。
iNumberOfResultSuggestions
类型:System.Int32指定要返回的建议的最大数量。
fPreQuerySuggestions
类型:System.Booleantrue返回的预查询建议 ;否则为false。
fHitHighlighting
类型:System.Booleantrue以突出显示所返回的查询建议。否则为false。
fCapitalizeFirstLetters
类型:System.Booleantrue查询建议 ; 在第一个字母大写否则为false。
fPrefixMatchAllTerms
类型:System.Boolean指定建议是否返回应能与查询文本匹配的前缀。
返回值
类型:Microsoft.Office.Server.Search.Query.QuerySuggestionResults
查询建议列表。