Compartilhar via


SearchServiceApplication.GetQuerySuggestionsWithResults method

Retorna uma coleção de sugestões de consulta que correspondam aos termos de pesquisa específicos.

Namespace:  Microsoft.Office.Server.Search.Administration
Assembly:  Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)

Syntax

'Declaração
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
'Uso
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
)

Parâmetros

  • iNumberOfQuerySuggestions
    Type: System.Int32

    Especifica o número de sugestões, que o usuário gostaria de receber.

  • iNumberOfResultSuggestions
    Type: System.Int32

    Especifica o número máximo de sugestões para retornar.

  • fPreQuerySuggestions
    Type: System.Boolean

    true para retornar as sugestões de pré consulta; Caso contrário, false.

  • fHitHighlighting
    Type: System.Boolean

    true para realçar a sugestão de consulta retornado; Caso contrário, false.

  • fCapitalizeFirstLetters
    Type: System.Boolean

    true para colocar em maiúscula a primeira letra da sugestão de consulta; Caso contrário, false.

  • fPrefixMatchAllTerms
    Type: System.Boolean

    Especifica se as sugestões retornado deve ser prefixo correspondido com o texto da consulta.

Valor retornado

Type: Microsoft.Office.Server.Search.Query.QuerySuggestionResults
A lista de sugestões de consulta.

Ver também

Referência

SearchServiceApplication class

SearchServiceApplication members

Microsoft.Office.Server.Search.Administration namespace