Aracılığıyla paylaş


SearchParameters Constructors

Definition

Overloads

SearchParameters()

Initializes a new instance of the SearchParameters class.

SearchParameters(Boolean, IList<String>, String, IList<String>, String, String, Nullable<Double>, IList<String>, QueryType, IList<ScoringParameter>, String, IList<String>, SearchMode, IList<String>, Nullable<Int32>, Nullable<Int32>)

Initializes a new instance of the SearchParameters class.

SearchParameters()

Source:
SearchParameters.cs

Initializes a new instance of the SearchParameters class.

public SearchParameters ();
Public Sub New ()

Applies to

SearchParameters(Boolean, IList<String>, String, IList<String>, String, String, Nullable<Double>, IList<String>, QueryType, IList<ScoringParameter>, String, IList<String>, SearchMode, IList<String>, Nullable<Int32>, Nullable<Int32>)

Source:
SearchParameters.cs

Initializes a new instance of the SearchParameters class.

public SearchParameters (bool includeTotalResultCount = false, System.Collections.Generic.IList<string> facets = default, string filter = default, System.Collections.Generic.IList<string> highlightFields = default, string highlightPostTag = default, string highlightPreTag = default, double? minimumCoverage = default, System.Collections.Generic.IList<string> orderBy = default, Microsoft.Azure.Search.Models.QueryType queryType = Microsoft.Azure.Search.Models.QueryType.Simple, System.Collections.Generic.IList<Microsoft.Azure.Search.Models.ScoringParameter> scoringParameters = default, string scoringProfile = default, System.Collections.Generic.IList<string> searchFields = default, Microsoft.Azure.Search.Models.SearchMode searchMode = Microsoft.Azure.Search.Models.SearchMode.Any, System.Collections.Generic.IList<string> select = default, int? skip = default, int? top = default);
new Microsoft.Azure.Search.Models.SearchParameters : bool * System.Collections.Generic.IList<string> * string * System.Collections.Generic.IList<string> * string * string * Nullable<double> * System.Collections.Generic.IList<string> * Microsoft.Azure.Search.Models.QueryType * System.Collections.Generic.IList<Microsoft.Azure.Search.Models.ScoringParameter> * string * System.Collections.Generic.IList<string> * Microsoft.Azure.Search.Models.SearchMode * System.Collections.Generic.IList<string> * Nullable<int> * Nullable<int> -> Microsoft.Azure.Search.Models.SearchParameters
Public Sub New (Optional includeTotalResultCount As Boolean = false, Optional facets As IList(Of String) = Nothing, Optional filter As String = Nothing, Optional highlightFields As IList(Of String) = Nothing, Optional highlightPostTag As String = Nothing, Optional highlightPreTag As String = Nothing, Optional minimumCoverage As Nullable(Of Double) = Nothing, Optional orderBy As IList(Of String) = Nothing, Optional queryType As QueryType = Microsoft.Azure.Search.Models.QueryType.Simple, Optional scoringParameters As IList(Of ScoringParameter) = Nothing, Optional scoringProfile As String = Nothing, Optional searchFields As IList(Of String) = Nothing, Optional searchMode As SearchMode = Microsoft.Azure.Search.Models.SearchMode.Any, Optional select As IList(Of String) = Nothing, Optional skip As Nullable(Of Integer) = Nothing, Optional top As Nullable(Of Integer) = Nothing)

Parameters

includeTotalResultCount
Boolean

A value that specifies whether to fetch the total count of results. Default is false. Setting this value to true may have a performance impact. Note that the count returned is an approximation.

facets
IList<String>

The list of facet expressions to apply to the search query. Each facet expression contains a field name, optionally followed by a comma-separated list of name:value pairs.

filter
String

The OData $filter expression to apply to the search query.

highlightFields
IList<String>

The list of field names to use for hit highlights. Only searchable fields can be used for hit highlighting.

highlightPostTag
String

A string tag that is appended to hit highlights. Must be set with highlightPreTag. Default is &lt;/em&gt;.

highlightPreTag
String

A string tag that is prepended to hit highlights. Must be set with highlightPostTag. Default is &lt;em&gt;.

minimumCoverage
Nullable<Double>

A number between 0 and 100 indicating the percentage of the index that must be covered by a search query in order for the query to be reported as a success. This parameter can be useful for ensuring search availability even for services with only one replica. The default is 100.

orderBy
IList<String>

The list of OData $orderby expressions by which to sort the results. Each expression can be either a field name or a call to either the geo.distance() or the search.score() functions. Each expression can be followed by asc to indicate ascending, and desc to indicate descending. The default is ascending order. Ties will be broken by the match scores of documents. If no OrderBy is specified, the default sort order is descending by document match score. There can be at most 32 $orderby clauses.

queryType
QueryType

A value that specifies the syntax of the search query. The default is 'simple'. Use 'full' if your query uses the Lucene query syntax. Possible values include: 'simple', 'full'

scoringParameters
IList<ScoringParameter>

The list of parameter values to be used in scoring functions (for example, referencePointParameter) using the format name-values. For example, if the scoring profile defines a function with a parameter called 'mylocation' the parameter string would be "mylocation--122.2,44.8" (without the quotes).

scoringProfile
String

The name of a scoring profile to evaluate match scores for matching documents in order to sort the results.

searchFields
IList<String>

The list of field names to which to scope the full-text search. When using fielded search (fieldName:searchExpression) in a full Lucene query, the field names of each fielded search expression take precedence over any field names listed in this parameter.

searchMode
SearchMode

A value that specifies whether any or all of the search terms must be matched in order to count the document as a match. Possible values include: 'any', 'all'

select
IList<String>

The list of fields to retrieve. If unspecified, all fields marked as retrievable in the schema are included.

skip
Nullable<Int32>

The number of search results to skip. This value cannot be greater than 100,000. If you need to scan documents in sequence, but cannot use $skip due to this limitation, consider using $orderby on a totally-ordered key and $filter with a range query instead.

top
Nullable<Int32>

The number of search results to retrieve. This can be used in conjunction with $skip to implement client-side paging of search results. If results are truncated due to server-side paging, the response will include a continuation token that can be used to issue another Search request for the next page of results.

Applies to