Share via


SearchExecutor.ExecuteQueries method

Runs a batch of queries.

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

Syntax

'Declaration
Public Function ExecuteQueries ( _
    queries As Dictionary(Of String, Query), _
    handleExceptions As Boolean _
) As Dictionary(Of String, ResultTableCollection)
'Usage
Dim instance As SearchExecutor
Dim queries As Dictionary(Of String, Query)
Dim handleExceptions As Boolean
Dim returnValue As Dictionary(Of String, ResultTableCollection)

returnValue = instance.ExecuteQueries(queries, _
    handleExceptions)
public Dictionary<string, ResultTableCollection> ExecuteQueries(
    Dictionary<string, Query> queries,
    bool handleExceptions
)

Parameters

  • queries
    Type: System.Collections.Generic.Dictionary<String, Query>

    The batch of search queries to run. Each item in the dictionary is a key-value pair where the String is the key and the query is the value. The queries are grouped by their unique String keys.

  • handleExceptions
    Type: System.Boolean

    Specifies whether the exception should be ignored when retrieving results. If true, the results will still be retrieved and the exception will be ignored. The default value is false.

Return value

Type: System.Collections.Generic.Dictionary<String, ResultTableCollection>
Each item represents the results for one of the search queries passed. The item in the dictionary has a unique key and a ResultTableCollection value.

See also

Reference

SearchExecutor class

SearchExecutor members

Microsoft.Office.Server.Search.Query namespace