Index Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Index() |
Initializes a new instance of the Index class. |
Index(String, IList<Field>, IList<ScoringProfile>, String, CorsOptions, IList<Suggester>, IList<Analyzer>, IList<Tokenizer>, IList<TokenFilter>, IList<CharFilter>, String) |
Initializes a new instance of the Index class. |
Index()
- Source:
- Index.cs
Initializes a new instance of the Index class.
public Index ();
Public Sub New ()
Applies to
Index(String, IList<Field>, IList<ScoringProfile>, String, CorsOptions, IList<Suggester>, IList<Analyzer>, IList<Tokenizer>, IList<TokenFilter>, IList<CharFilter>, String)
- Source:
- Index.cs
Initializes a new instance of the Index class.
public Index (string name, System.Collections.Generic.IList<Microsoft.Azure.Search.Models.Field> fields, System.Collections.Generic.IList<Microsoft.Azure.Search.Models.ScoringProfile> scoringProfiles = default, string defaultScoringProfile = default, Microsoft.Azure.Search.Models.CorsOptions corsOptions = default, System.Collections.Generic.IList<Microsoft.Azure.Search.Models.Suggester> suggesters = default, System.Collections.Generic.IList<Microsoft.Azure.Search.Models.Analyzer> analyzers = default, System.Collections.Generic.IList<Microsoft.Azure.Search.Models.Tokenizer> tokenizers = default, System.Collections.Generic.IList<Microsoft.Azure.Search.Models.TokenFilter> tokenFilters = default, System.Collections.Generic.IList<Microsoft.Azure.Search.Models.CharFilter> charFilters = default, string eTag = default);
new Microsoft.Azure.Search.Models.Index : string * System.Collections.Generic.IList<Microsoft.Azure.Search.Models.Field> * System.Collections.Generic.IList<Microsoft.Azure.Search.Models.ScoringProfile> * string * Microsoft.Azure.Search.Models.CorsOptions * System.Collections.Generic.IList<Microsoft.Azure.Search.Models.Suggester> * System.Collections.Generic.IList<Microsoft.Azure.Search.Models.Analyzer> * System.Collections.Generic.IList<Microsoft.Azure.Search.Models.Tokenizer> * System.Collections.Generic.IList<Microsoft.Azure.Search.Models.TokenFilter> * System.Collections.Generic.IList<Microsoft.Azure.Search.Models.CharFilter> * string -> Microsoft.Azure.Search.Models.Index
Public Sub New (name As String, fields As IList(Of Field), Optional scoringProfiles As IList(Of ScoringProfile) = Nothing, Optional defaultScoringProfile As String = Nothing, Optional corsOptions As CorsOptions = Nothing, Optional suggesters As IList(Of Suggester) = Nothing, Optional analyzers As IList(Of Analyzer) = Nothing, Optional tokenizers As IList(Of Tokenizer) = Nothing, Optional tokenFilters As IList(Of TokenFilter) = Nothing, Optional charFilters As IList(Of CharFilter) = Nothing, Optional eTag As String = Nothing)
Parameters
- name
- String
The name of the index.
- scoringProfiles
- IList<ScoringProfile>
The scoring profiles for the index.
- defaultScoringProfile
- String
The name of the scoring profile to use if none is specified in the query. If this property is not set and no scoring profile is specified in the query, then default scoring (tf-idf) will be used.
- corsOptions
- CorsOptions
Options to control Cross-Origin Resource Sharing (CORS) for the index.
- tokenFilters
- IList<TokenFilter>
The token filters for the index.
- charFilters
- IList<CharFilter>
The character filters for the index.
- eTag
- String
The ETag of the index.
Applies to
Azure SDK for .NET